/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Walvis Products — opmaak per onderwerp. PHP-logica staat in functions.php. */

/* ==========================================================================
 * 01 — Bestaande basis: menu, productattributen en zoeken
 * ========================================================================== */

/* Add your custom styles here */

.toon-alles > a,
.toon-alles a,
nav .toon-alles a,
ul li.toon-alles a {
  font-weight: 700 !important;
}

/* =========================================================
   WooCommerce product attributes – clean specs layout
   ========================================================= */

/* Tabel basis */
.woocommerce table.woocommerce-product-attributes {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
  margin: 0 !important;
}

/* Verwijder alle standaard borders */
.woocommerce table.woocommerce-product-attributes,
.woocommerce table.woocommerce-product-attributes tr,
.woocommerce table.woocommerce-product-attributes th,
.woocommerce table.woocommerce-product-attributes td {
  border: 0 !important;
}

/* Rij styling */
.woocommerce table.woocommerce-product-attributes tr {
  background: #ffffff !important;
}

/* Zebra rows zoals voorbeeld */
.woocommerce table.woocommerce-product-attributes tr:nth-child(even) {
  background: #f4f4f4 !important;
}

/* Cellen */
.woocommerce table.woocommerce-product-attributes th,
.woocommerce table.woocommerce-product-attributes td {
  padding: 12px 16px !important;
  text-align: left !important;
  vertical-align: middle !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.4 !important;
  color: #222222 !important;
  background: transparent !important;
}

/* Label kolom */
.woocommerce-product-attributes-item__label {
  width: 32% !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* Value kolom */
.woocommerce-product-attributes-item__value {
  width: 68% !important;
  padding-left: 28px !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* Kill italics volledig (WooCommerce gebruikt <em>) */
.woocommerce-product-attributes-item__value em,
.woocommerce-product-attributes-item__value i,
.woocommerce-product-attributes-item__value p,
.woocommerce-product-attributes-item__value span {
  font-style: normal !important;
  font-weight: 400 !important;
}

/* Verwijder inner marges */
.woocommerce-product-attributes-item__label p,
.woocommerce-product-attributes-item__value p,
.woocommerce-product-attributes-item__value ul,
.woocommerce-product-attributes-item__value ol {
  margin: 0 !important;
  padding: 0 !important;
  font-style: normal !important;
}

/* Subtiele scheidingslijn */
.woocommerce table.woocommerce-product-attributes tr + tr {
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.04) !important;
}

/* Mobiel: label boven value */
@media (max-width: 600px) {
  .woocommerce table.woocommerce-product-attributes th,
  .woocommerce table.woocommerce-product-attributes td {
    display: block !important;
    width: 100% !important;
  }

  .woocommerce-product-attributes-item__value {
    padding-left: 16px !important;
  }
}

/* Spook-items (spacers) in het mega menu verbergen */
@media (min-width: 1025px) {
    .walvis-menu-spacer,
    .walvis-menu-spacer a,
    li.walvis-menu-spacer a {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 1024px) {
    .walvis-menu-spacer {
        display: none !important;
    }
}

/* FiboSearch zoekbalk in thema-lettertype ----- */
.dgwt-wcas-search-wrapp .dgwt-wcas-search-input,
.dgwt-wcas-search-wrapp .dgwt-wcas-search-input::placeholder {
  font-family: "Poppins", sans-serif !important;
}

/* FiboSearch suggesties in thema-lettertype ----- */
.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-suggestions-wrapp * {
  font-family: "Poppins", sans-serif !important;
}


/* ==========================================================================
 * 02 — Bedankpagina: bestaande huisstijl en gerichte uitlijning
 * ========================================================================== */

/* ==========================================================
 * Walvis Products - Bedankpagina / order-ontvangen styling
 * ========================================================== */

/* Sectiekoppen in huisstijlkleur */
.woocommerce-order h2 {
	color: #29246C;
	font-weight: 700;
}

/* Succesmelding */
.woocommerce-order .woocommerce-thankyou-order-received {
	background: #f2f1f9;
	border-left: 4px solid #29246C;
	color: #29246C;
	font-weight: 600;
	padding: 14px 18px;
	border-radius: 8px;
}

/* Overzichtsbalk bovenaan (bestelnummer, datum, enz.) */
.woocommerce-order .woocommerce-order-overview {
	border: 1px solid #e3e2ee;
	border-radius: 10px;
	padding: 6px 0;
	margin: 18px 0 28px;
}
.woocommerce-order .woocommerce-order-overview li {
	border-color: #e3e2ee !important;
	color: #777;
	text-transform: none;
	font-size: 12px;
}
.woocommerce-order .woocommerce-order-overview li strong {
	color: #29246C;
	font-size: 15px;
	margin-top: 3px;
}

/* Bestelgegevens-tabel */
.woocommerce-order table.order_details {
	border-collapse: collapse;
	width: 100%;
}
.woocommerce-order table.order_details thead th {
	color: #29246C;
	border-bottom: 2px solid #29246C;
	padding: 10px 8px;
}
.woocommerce-order table.order_details td,
.woocommerce-order table.order_details th {
	border-bottom: 1px solid #eee;
	padding: 10px 8px;
}
.woocommerce-order table.order_details tfoot th {
	color: #29246C;
}

/* Actieknoppen (Factuur / E-Factuur) */
.woocommerce-order .order-actions-button,
.woocommerce-order .woocommerce-table a.button {
	display: inline-block !important;
	background: #29246C !important;
	color: #fff !important;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	border: 1px solid #29246C !important;
	margin: 4px 8px 4px 0 !important;
	line-height: 1.2 !important;
}
.woocommerce-order .order-actions-button:hover,
.woocommerce-order .woocommerce-table a.button:hover {
	background: #1f1d4d !important;
	border-color: #1f1d4d !important;
	color: #fff !important;
}
/* E-Factuur als tweede, rustiger knop */
.woocommerce-order .order-actions-button.invoice_xml {
	background: #fff !important;
	color: #29246C !important;
}
.woocommerce-order .order-actions-button.invoice_xml:hover {
	background: #f2f1f9 !important;
	color: #29246C !important;
}

/* Betaalbevestiging (Mollie) */
.woocommerce-order .mollie-instructions {
	background: #f8f8fc;
	border: 1px solid #e3e2ee;
	border-radius: 8px;
	padding: 12px 16px;
}

/* Adreskaarten */
.woocommerce-order .woocommerce-customer-details address {
	border: 1px solid #e3e2ee;
	border-radius: 10px;
	padding: 16px 18px;
	background: #fff;
	line-height: 1.6;
}
.woocommerce-order .woocommerce-column__title {
	color: #29246C;
}

/* btw-nummer regel accentueren */
.woocommerce-order .woocommerce-order-details > p strong {
	color: #29246C;
}

/* ==========================================================
 * Bedankpagina - bestelgegevens strakker
 * ========================================================== */

/* Tabel compacter en lijnen niet volledig doortrekken */
.woocommerce-order table.order_details {
	margin-top: 10px;
	margin-bottom: 30px;
}

.woocommerce-order table.order_details th,
.woocommerce-order table.order_details td {
	padding: 8px 10px;
	line-height: 1.4;
	vertical-align: top;
}

/* Productregels: subtiele lijn, niet die dikke rode balk */
.woocommerce-order table.order_details tbody td {
	border-bottom: 1px solid #ece;
	border-bottom-color: #eceaf4;
}

/* Alleen de bedragkolom rechts uitlijnen. */
.woocommerce-order table.order_details td.product-total,
.woocommerce-order table.order_details tfoot td {
	text-align: right;
}
.woocommerce-order table.order_details th {
	text-align: left;
	font-weight: 600;
	color: #29246C;
}

/* Footer-rijen (Subtotaal, Verzending, Totaal) rustiger */
.woocommerce-order table.order_details tfoot th,
.woocommerce-order table.order_details tfoot td {
	border-bottom: 1px solid #eceaf4;
	padding: 8px 10px;
}

/* Totaal-regel accentueren als afsluiter */
.woocommerce-order table.order_details tfoot tr:nth-last-child(2) th,
.woocommerce-order table.order_details tfoot tr:nth-last-child(2) td {
	border-top: 2px solid #29246C;
	font-weight: 700;
	color: #29246C;
}

/* "via Verzenden" en btw-tekst kleiner en grijs */
.woocommerce-order table.order_details small {
	color: #999;
	font-weight: 400;
}

/* Ruimte tussen de secties */
.woocommerce-order section.woocommerce-order-details,
.woocommerce-order section.woocommerce-customer-details {
	margin-top: 24px;
}

body .woocommerce-order table.order_details th.product-name,
body .woocommerce-order table.order_details td.product-name {
    text-align: left !important;
}
body .woocommerce-order table.order_details th.product-total,
body .woocommerce-order table.order_details td.product-total,
body .woocommerce-order table.order_details tfoot td {
    text-align: right !important;
}
body .woocommerce-order table.order_details .wc-item-meta {
    text-align: left;
}


/* ==========================================================================
 * 03 — Checkout: betaalkaarten, iconen en invoervakken
 * ========================================================================== */

/* Reset standaard WooCommerce lijststijl */
ul.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Elk betaalmiddel als kaartje */
ul.wc_payment_methods li.wc_payment_method {
    margin: 0 !important;
    padding: 0 !important;
}

/* Verberg de standaard radio button */
ul.wc_payment_methods li.wc_payment_method > input[name="payment_method"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Label als klikbaar kaartje */
ul.wc_payment_methods li.wc_payment_method > label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    transition: border-color 0.15s ease !important;
    margin: 0 !important;
}

ul.wc_payment_methods li.wc_payment_method > label:hover {
    border-color: #29246C !important;
}

/* Icoontje rechts groter en netter */
ul.wc_payment_methods li.wc_payment_method > label img.mollie-gateway-icon {
    width: 44px !important;
    height: 30px !important;
    object-fit: contain !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 5px !important;
    padding: 3px !important;
    background: #fff !important;
    margin-left: 12px !important;
    flex-shrink: 0 !important;
}

/* Payment box (bijv. creditcard velden) */
ul.wc_payment_methods li.wc_payment_method .payment_box {
    padding: 12px 16px !important;
    background: #f8f8fc !important;
    border: 1px solid #e0e0e0 !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    margin-top: -2px !important;
}


/* ==========================================================================
 * 04 — Checkout: selectie en toetsenbordfocus volgen de radioknop
 * ========================================================================== */

/* Classic WooCommerce/Elementor checkout: the checked radio is the source of truth. */
body #payment ul.wc_payment_methods > li.wc_payment_method > label {
    border: 1px solid #e0e0e0 !important;
    box-shadow: none !important;
    font-weight: 400 !important;
}
body #payment ul.wc_payment_methods > li.wc_payment_method > label:hover {
    border-color: #29246c !important;
}
body #payment ul.wc_payment_methods > li.wc_payment_method > input[name="payment_method"]:checked + label {
    border-color: #29246c !important;
    box-shadow: inset 0 0 0 1px #29246c !important;
    font-weight: 500 !important;
}
body #payment ul.wc_payment_methods > li.wc_payment_method > input[name="payment_method"]:focus-visible + label {
    outline: 2px solid #29246c;
    outline-offset: 3px;
}


/* ==========================================================================
 * 05 — Winkelwagen: gecentreerde laadspinner
 * ========================================================================== */

body .single_add_to_cart_button.loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none;
}
body .single_add_to_cart_button.loading > * {
    visibility: hidden !important;
}
body .single_add_to_cart_button.loading::before {
    content: none !important;
}
body .single_add_to_cart_button.loading::after {
    content: "" !important;
    font-family: inherit !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin: auto !important;
    padding: 0 !important;
    border: 2px solid rgba(255, 255, 255, .45) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: walvis-atc-spin .6s linear infinite !important;
}
@keyframes walvis-atc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* ==========================================================================
 * 06 — Winkelwagen: bevestiging na toevoegen
 * ========================================================================== */

/* Na toevoegen: strakke bevestiging met vinkje, gelijk op beide pagina's.
		   Pas #1f1d4d aan naar de exacte Walvis-huisstijlkleur indien gewenst. */
		.single_add_to_cart_button.added {
			background-color: #1f1d4d !important;
			color: #fff !important;
			pointer-events: none;
		}
		.single_add_to_cart_button.added::before {
			content: none !important;
		}
		.single_add_to_cart_button.added::after {
			content: "\2713";
			margin-left: 6px;
			font-weight: 700;
		}
		/* Op telefoon: alleen het vinkje, tekst verbergen (knop is te smal). */
		@media (max-width: 767px) {
			.single_add_to_cart_button.added .walvis-added-label {
				display: none;
			}
			.single_add_to_cart_button.added::after {
				margin-left: 0;
			}
		}


/* ==========================================================================
 * 07 — Btw: controle-uitkomst uitsluitend in het orderbeheer
 * ========================================================================== */

/* Vang ook achtergebleven markup uit geoptimaliseerde checkoutbestanden af. */
body.woocommerce-checkout #wpfactory_wc_eu_vat_progress,
body.woocommerce-checkout #wpfactory_wc_eu_vat_details {
    display: none !important;
}


/* ==========================================================================
 * 08 — Herroeping: leesbare aantallen naast de nummerpijltjes
 * ========================================================================== */

body form.woocommerce-form-order-withdrawal-request input[type="number"].qty {
    box-sizing: border-box;
    width: 5.5rem !important;
    min-width: 5.5rem;
    max-width: 100%;
    padding: .5rem .65rem !important;
    color: #161516 !important;
    background: #f3f7fb;
    text-align: left !important;
}


/* ==========================================================================
 * 09 — Checkout: leesbare telefoonuitleg zonder tooltip
 * ========================================================================== */

body #billing_phone_field .walvis-phone-help,
body #shipping_phone_field .walvis-phone-help {
    display: block;
    position: static;
    clear: both;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #555665;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
    opacity: 1;
    visibility: visible;
}


/* ==========================================================================
 * 10 — Bestelgegevens op mobiel: adresblokken met natuurlijke hoogte
 * ========================================================================== */

@media (max-width: 767px) {
    body .woocommerce-customer-details .woocommerce-columns--addresses {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin: 0;
    }
    body .woocommerce-customer-details .woocommerce-columns--addresses::before,
    body .woocommerce-customer-details .woocommerce-columns--addresses::after {
        display: none;
    }
    body .woocommerce-customer-details .woocommerce-column {
        float: none !important;
        clear: none;
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0;
    }
    body .woocommerce-customer-details .woocommerce-column__title {
        margin: 0 0 12px !important;
        font-size: clamp(1.25rem, 5.5vw, 1.625rem) !important;
        line-height: 1.3 !important;
    }
    body .woocommerce-customer-details address {
        box-sizing: border-box;
        height: auto !important;
        min-height: 0 !important;
        max-height: none;
        margin: 0;
        padding: 20px !important;
        overflow-wrap: anywhere;
    }
    body .woocommerce-customer-details address p {
        line-height: 1.5;
        overflow-wrap: anywhere;
    }
}


/* ==========================================================================
 * 11 — Bedankpagina: overzichtsbalk en betaalmelding uitlijnen
 * ========================================================================== */

body .woocommerce-order ul.woocommerce-order-overview {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.2fr) minmax(0, 1.35fr) minmax(0, .65fr) minmax(0, 1fr);
    gap: 16px 24px;
    margin: 18px 0 28px !important;
    padding: 16px 20px !important;
    border: 1px solid #e3e2ee !important;
    border-radius: 10px !important;
    list-style: none;
}
body .woocommerce-order ul.woocommerce-order-overview::before,
body .woocommerce-order ul.woocommerce-order-overview::after {
    display: none !important;
    content: none !important;
}
body .woocommerce-order ul.woocommerce-order-overview > li {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
}
body .woocommerce-order ul.woocommerce-order-overview > li strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}
body .woocommerce-order .mollie-instructions {
    box-sizing: border-box;
    padding: 16px 20px !important;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
/* De tekst beschrijft de betaalstatus al; het decoratieve icoon vervalt. */
body .woocommerce-order .mollie-instructions::before {
    display: none !important;
    content: none !important;
}
body .woocommerce-order .mollie-instructions > p {
    margin: 0;
}
body .woocommerce-order .mollie-instructions > p + p {
    margin-top: .75em;
}
@media (max-width: 1024px) {
    body .woocommerce-order ul.woocommerce-order-overview {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}
@media (max-width: 767px) {
    body .woocommerce-order ul.woocommerce-order-overview {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
 * 12 — Homepages: rechte USP-balk en Duitse promotiekaarten (18-11-2026)
 * Alleen desktop; de bestaande mobiele kaarten en USP-slider blijven intact.
 * ========================================================================== */
@media (min-width: 1025px) {
    /* Alle taalversies: dezelfde bovenlijn, zonder ongelijke alinea-marges. */
    body.home :is(.elementor-element-5ad821f, .elementor-element-d6fa05f, .elementor-element-678bad5, .elementor-element-4740e72) > .e-con {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        column-gap: 12px;
        align-items: flex-start;
    }
    body.home :is(.elementor-element-5ad821f, .elementor-element-d6fa05f, .elementor-element-678bad5, .elementor-element-4740e72) > .e-con > .e-con {
        align-self: flex-start;
        width: 100%;
        min-width: 0;
        margin: 0;
        justify-content: flex-start;
    }
    body.home :is(.elementor-element-5ad821f, .elementor-element-d6fa05f, .elementor-element-678bad5, .elementor-element-4740e72) .elementor-widget-text-editor p {
        margin: 0;
    }
    /* Duitse kaarten: beide kolommen passen binnen de kaart, ook met lange CTA. */
    body.home .elementor-5383 :is(.elementor-element-0ffc0ba, .elementor-element-f6300e6, .elementor-element-40db892) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(170px, 1.1fr);
        column-gap: 18px;
        align-items: center;
        padding: clamp(18px, 1.4vw, 26px);
    }
    body.home .elementor-5383 :is(.elementor-element-cc43735, .elementor-element-dfbdfa9, .elementor-element-2aaa0f9) {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        height: 100%;
        margin: 0;
        padding: 24px 0;
        justify-content: space-between;
    }
    body.home .elementor-5383 :is(.elementor-element-dfbdfa9, .elementor-element-2aaa0f9) > .e-con-inner {
        width: 100%;
        height: 100%;
        justify-content: space-between;
    }
    body.home .elementor-5383 :is(.elementor-element-413d18c, .elementor-element-8578654, .elementor-element-98cdced) {
        width: 100%;
    }
    body.home .elementor-5383 :is(.elementor-element-71a8c72, .elementor-element-e1d8620, .elementor-element-2c9fba5) {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
    }
    body.home .elementor-5383 :is(.elementor-element-4fcdfd4, .elementor-element-cce9230, .elementor-element-4ad9e6e) {
        width: 100%;
        margin: 0;
    }
    body.home .elementor-5383 :is(.elementor-element-76f5d89, .elementor-element-d27261c, .elementor-element-536079c) .elementor-button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px;
        white-space: nowrap;
    }
}
@media (min-width: 1025px) and (max-width: 1599px) {
    /* Reserveer op kleinere desktops twee titelregels in elke USP-kolom. */
    body.home :is(.elementor-element-5ad821f, .elementor-element-d6fa05f, .elementor-element-678bad5, .elementor-element-4740e72) .elementor-widget-heading {
        min-height: 2.4em;
        font-size: 15px;
    }
}

@media (min-width: 1025px) and (max-width: 1199px) {
    body.home :is(.elementor-element-5ad821f, .elementor-element-d6fa05f, .elementor-element-678bad5, .elementor-element-4740e72) .elementor-widget-heading {
        min-height: 3.6em;
    }
}
