/* =====================================================================
   Customize-pagina — "Premium Light Glassmorphism"
   Scoped binnen .borduur-customize-wrapper zodat de stijl het rest van
   het thema niet beïnvloedt. Plugin-form-velden worden via specifieke
   selectors gestyled (radio/checkbox verbergen → label als chip/card).
   ===================================================================== */

.borduur-customize-wrapper {
    --primary: #2C2C2A;
    --accent: #E87A3E;
    --accent-2: #D26A2E;
    --accent-soft: #FCEDE2;
    --accent-glow: rgba(232, 122, 62, 0.28);
    --secondary: #2D5C6B;
    --bg-1: #FAFAFA;
    --bg-2: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-strong: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.8);
    --line: #E5E7EB;
    --shadow: 0 6px 28px rgba(15, 30, 60, 0.06);
    --text: #1A1A1A;
    --text-dim: #7F8C8D;
    --text-muted: #9aa5b4;
    --success: #2ea566;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t: 250ms var(--ease);

    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(1000px 500px at 80% -10%, rgba(232,122,62,0.06), transparent 60%),
        radial-gradient(800px 400px at 0% 100%, rgba(45,92,107,0.04), transparent 60%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
    max-width: 1600px;
    margin: 24px auto 40px;
    padding: 0 32px;
    box-sizing: border-box;
}
.borduur-customize-wrapper *,
.borduur-customize-wrapper *::before,
.borduur-customize-wrapper *::after { box-sizing: border-box; }

/* ---- Page header (binnen content, géén thema-header) ---- */
.borduur-customize-header {
    padding: 22px 0 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.borduur-customize-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary);
}
.borduur-customize-price {
    font-size: 14px;
    color: var(--text-dim);
}
.borduur-customize-meta {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Glass utility ---- */
.borduur-customize-wrapper .glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* ---- Layout ---- */
.borduur-customize-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(380px, 2fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .borduur-customize-wrapper { padding: 0 16px; }
    .borduur-customize-layout { grid-template-columns: 1fr; }
}

/* ---- Viewer paneel ---- */
.borduur-viewer-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 640px;
    padding: 18px;
    overflow: hidden;
}
.borduur-3d-viewer {
    flex: 1;
    width: 100%;
    min-height: 480px;
    border-radius: 10px;
    background: #f5f5f5;
    overflow: hidden;
    cursor: grab;
}
.borduur-3d-viewer:active { cursor: grabbing; }
@media (max-width: 1024px) {
    .borduur-viewer-pane { min-height: 480px; }
    .borduur-3d-viewer { min-height: 360px; }
}

.viewer-watermark {
    position: absolute;
    right: 26px;
    bottom: 26px;
    height: 30px;
    width: auto;
    opacity: 0.30;
    pointer-events: none;
    user-select: none;
    z-index: 3;
}

/* View toolbar */
.borduur-view-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.borduur-view-buttons {
    display: inline-flex;
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px;
}
.borduur-view-btn {
    background: transparent;
    color: var(--text-dim);
    border: none;
    padding: 7px 14px;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    transition: all var(--t);
}
.borduur-view-btn:hover { color: var(--text); background: rgba(15,30,60,0.04); }
.borduur-view-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 10px var(--accent-glow);
}
.borduur-auto-rotate {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-dim);
    cursor: pointer; user-select: none; font-weight: 500;
}
.borduur-auto-rotate input { accent-color: var(--accent); cursor: pointer; }

/* ---- Config-panel ---- */
.borduur-config-pane {
    padding: 26px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}
@media (max-width: 1024px) {
    .borduur-config-pane { max-height: none; }
}
.borduur-config-pane::-webkit-scrollbar { width: 6px; }
.borduur-config-pane::-webkit-scrollbar-track { background: transparent; }
.borduur-config-pane::-webkit-scrollbar-thumb { background: rgba(15,30,60,0.12); border-radius: 3px; }

/* Section-headings binnen het config-panel — komt overeen met demo's h3-look.
   We targeten zowel onze eigen .borduur-section h3 als de bestaande h3's
   van de plugin-form. */
.borduur-config-pane h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--primary);
    margin: 26px 0 12px;
    font-weight: 700;
    border: none;
    padding: 0;
}
.borduur-config-pane h3:first-of-type { margin-top: 0; }

/* ---- Plugin form-overrides ----------------------------------------- */

/* Verberg de Shoptimizer cart-quantity-velden die de plugin standaard
   onderdrukt (defensive). */
.borduur-config-pane form.cart > .quantity { display: none; }

/* ---- Kleurkeuze → swatches ---------------------------------------- */
/* Plugin: .kleurkeuze-opties > label.option > <img> + <input type=radio> + tekst */
.borduur-config-pane .kleurkeuze-opties {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 6px 0;
}
.borduur-config-pane .kleurkeuze-opties label.option {
    position: relative;
    cursor: pointer;
    margin: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 6px rgba(15,30,60,0.12);
    transition: all var(--t);
    font-size: 0; /* tekst-label verbergen, alleen visueel beeld */
    display: block;
}
.borduur-config-pane .kleurkeuze-opties label.option:hover {
    transform: scale(1.10);
    box-shadow: 0 4px 12px rgba(15,30,60,0.20);
}
.borduur-config-pane .kleurkeuze-opties label.option img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.borduur-config-pane .kleurkeuze-opties label.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.borduur-config-pane .kleurkeuze-opties label.option:has(input:checked) {
    box-shadow: 0 0 0 3px var(--accent), 0 4px 16px var(--accent-glow);
    transform: scale(1.08);
}

/* ---- Techniek (borduring/bedrukking) → tegels --------------------- */
.borduur-config-pane .borduring-opties {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.borduur-config-pane .borduring-radio-label {
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all var(--t);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    margin: 0;
}
.borduur-config-pane .borduring-radio-label:hover {
    background: rgba(255,255,255,0.85);
    transform: translateY(-1px);
}
.borduur-config-pane .borduring-radio-label input[type="radio"] {
    position: absolute; opacity: 0; pointer-events: none;
}
.borduur-config-pane .borduring-radio-label .radio-image {
    width: 36px; height: 36px; object-fit: contain;
}
.borduur-config-pane .borduring-radio-label span {
    font-weight: 600; font-size: 13px; color: var(--text);
}
.borduur-config-pane .borduring-radio-label:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent), 0 6px 20px var(--accent-glow);
}

/* ---- Posities → chips ---------------------------------------------- */
.borduur-config-pane .borduring-locaties ul,
.borduur-config-pane .bedrukking-locaties ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.borduur-config-pane .options {
    list-style: none;
    margin: 0;
    padding: 0;
}
.borduur-config-pane .options > label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all var(--t);
    user-select: none;
    margin: 0;
    font-weight: 500;
    color: var(--text);
}
.borduur-config-pane .options > label:hover {
    background: rgba(255,255,255,0.85);
}
.borduur-config-pane .options:has(input[type="checkbox"]:checked) > label {
    background: var(--accent-soft);
    border-color: var(--accent);
}
.borduur-config-pane .options > label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px; height: 16px;
    border-radius: 4px;
    border: 1.5px solid rgba(15,30,60,0.18);
    background: white;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    transition: all var(--t);
}
.borduur-config-pane .options > label input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.borduur-config-pane .options > label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    color: white;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
}
.borduur-config-pane .options > label > img.checkbox-image {
    width: 24px; height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.borduur-config-pane .options .info-icon,
.borduur-config-pane .options .info-icon2 { display: none; }

/* Uitklap-panel per positie */
.borduur-config-pane .borduring-location-options,
.borduur-config-pane .bedrukking-location-options {
    grid-column: 1 / -1;
    margin-top: 6px;
    margin-bottom: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.borduur-config-pane .borduring-location-options b,
.borduur-config-pane .bedrukking-location-options b {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    font-weight: 600;
}
.borduur-config-pane .borduring-type-selector,
.borduur-config-pane .bedrukking-type-selector {
    margin-top: 4px;
    margin-bottom: 10px;
}

/* ---- Form-inputs --------------------------------------------------- */
.borduur-config-pane input[type="text"],
.borduur-config-pane input[type="number"],
.borduur-config-pane select {
    width: 100%;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: all var(--t);
}
.borduur-config-pane input[type="text"]:focus,
.borduur-config-pane input[type="number"]:focus,
.borduur-config-pane select:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(232,122,62,0.18);
}
.borduur-config-pane select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236b7785' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.borduur-config-pane label {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin: 12px 0 6px;
    font-weight: 500;
}

/* File-upload */
.borduur-config-pane .borduring-logo-upload,
.borduur-config-pane .bedrukking-logo-upload {
    margin: 8px 0 12px;
}
.borduur-config-pane input[type="file"] {
    width: 100%;
    background: rgba(255,255,255,0.5);
    border: 1px dashed rgba(15,30,60,0.22);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-dim);
    transition: all var(--t);
}
.borduur-config-pane input[type="file"]:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

/* Lettertype-grid */
.borduur-config-pane .borduring-tekst-input .borduring-options,
.borduur-config-pane .bedrukking-tekst-input .borduring-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 6px 0 4px;
}
@media (max-width: 1024px) {
    .borduur-config-pane .borduring-tekst-input .borduring-options,
    .borduur-config-pane .bedrukking-tekst-input .borduring-options {
        grid-template-columns: repeat(2, 1fr);
    }
}
.borduur-config-pane .borduring-option.option {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 6px;
    cursor: pointer;
    transition: all 200ms var(--ease);
    user-select: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}
.borduur-config-pane .borduring-option.option:hover {
    box-shadow: 0 4px 14px rgba(232,122,62,0.18);
    border-color: rgba(232,122,62,0.4);
}
.borduur-config-pane .borduring-option.option:has(input:checked) {
    border: 2px solid var(--accent);
    background: rgba(232,122,62,0.08);
}
.borduur-config-pane .borduring-option.option input[type="radio"] {
    position: absolute; opacity: 0; pointer-events: none;
}
.borduur-config-pane .borduring-option.option img {
    max-width: 100%;
    max-height: 36px;
    width: auto !important;
    height: auto !important;
}

/* ---- Maatkeuze-tabel ---------------------------------------------- */
.borduur-config-pane .maatkeuze-tabel table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
}
.borduur-config-pane .maatkeuze-tabel th,
.borduur-config-pane .maatkeuze-tabel td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.borduur-config-pane .maatkeuze-tabel th {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}
.borduur-config-pane .maatkeuze-input {
    width: 70px;
    padding: 6px 8px;
    font-weight: 600;
    text-align: center;
}

/* ---- Levertijd + meldingen ---------------------------------------- */
.borduur-config-pane .levertijd {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    padding: 10px 12px;
    background: rgba(46, 165, 102, 0.06);
    border-radius: 8px;
    color: var(--success);
    font-size: 12px;
    font-weight: 500;
}
.borduur-config-pane .levertijd svg { width: 18px; height: 18px; }

/* Info-popups (uitleg) — laten staan maar inpassen in look */
.borduur-config-pane .info-popup,
.borduur-config-pane .info-popup2 {
    /* origineel display:none, alleen visueel netjes als 'm wel verschijnt */
    z-index: 1000;
}
.borduur-config-pane .info-popup-content {
    background: white;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(15,30,60,0.18);
}

/* WC notices */
.borduur-customize-wrapper .woocommerce-notices-wrapper,
.borduur-customize-wrapper .woocommerce-error,
.borduur-customize-wrapper .woocommerce-message,
.borduur-customize-wrapper .woocommerce-info {
    margin-bottom: 16px;
    font-size: 13px;
}

/* ---- Footer met prijs + acties ------------------------------------ */
.borduur-customize-footer {
    margin-top: 20px;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}
@media (max-width: 1024px) {
    .borduur-customize-footer { grid-template-columns: 1fr; }
}
.borduur-price-incl {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.8px;
    font-variant-numeric: tabular-nums;
}
.borduur-price-excl {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 6px;
    font-weight: 500;
}
.borduur-price-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}
.borduur-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 260px;
}

/* Primary "Bestel direct" — override op de bestaande klasse */
.borduur-customize-wrapper .borduur-order-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 26px;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 18px var(--accent-glow);
    transition: all var(--t);
    letter-spacing: 0.2px;
    width: 100%;
    margin: 0;
}
.borduur-customize-wrapper .borduur-order-button:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--accent-glow);
}

/* Secundair: bestaande WC submit-knop */
.borduur-customize-wrapper .single_add_to_cart_button {
    background: rgba(255,255,255,0.7);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--t);
    width: 100%;
    margin: 0;
}
.borduur-customize-wrapper .single_add_to_cart_button:hover {
    background: white;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.borduur-quote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.borduur-quote-help-text {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}
.borduur-quote-btn {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--t);
    text-decoration: none;
    text-align: center;
    display: inline-block;
}
.borduur-quote-btn:hover {
    background: var(--accent-soft);
    color: var(--accent-2);
}

/* ---- Quick-quantity (snelle aantal-shortcut) ----------------------- */
.borduur-quick-quantity {
    margin-top: 18px;
}
.borduur-quick-quantity h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}
.borduur-quick-quantity .quantity-control {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 6px;
}
.borduur-quick-quantity .quantity-control button {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--t);
}
.borduur-quick-quantity .quantity-control button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.borduur-quick-quantity .quantity-control input[type="number"] {
    text-align: center;
    font-weight: 600;
    padding: 8px;
    background: white;
}
.borduur-quick-quantity .quantity-control input[type="number"]::-webkit-outer-spin-button,
.borduur-quick-quantity .quantity-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.borduur-quick-quantity .quantity-control input[type="number"] {
    -moz-appearance: textfield;
}
.borduur-quick-quantity-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Staffelkorting-banner — visueel signaal, prijs blijft plugin-berekening. */
.discount-banner {
    margin-top: 10px;
    background: rgba(46, 165, 102, 0.08);
    border: 1px solid rgba(46, 165, 102, 0.3);
    color: var(--success);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.discount-banner.hidden {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    /* Niet display:none — anders verspringt de layout en is er geen fade */
    height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    overflow: hidden;
}
.discount-banner .discount-icon {
    font-weight: 700;
    color: var(--success);
}
.discount-banner .discount-detail {
    color: var(--text);
    font-weight: 500;
}

.borduur-proof-disclaimer {
    background: rgba(232, 122, 62, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin-top: 18px;
}

.borduur-footer-credit {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 16px 0 4px;
    letter-spacing: 0.4px;
}
.borduur-footer-credit a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.borduur-footer-credit a:hover { color: var(--accent-2); }

/* ---- Animaties ----------------------------------------------------- */
@keyframes borduur-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes borduur-slide-in-right {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.borduur-fade-up   { animation: borduur-fade-up 700ms var(--ease) both; }
.borduur-slide-in  { animation: borduur-slide-in-right 700ms var(--ease) both; }


/* ================================================================
   BB v1.4.6 — Rustige customize-layout
   - thema-chrome (header/menu/balken/footer) verborgen
   - één doorlopende achtergrond
   - één scroll: gewoon de pagina zelf, niets afgeknipt
   - 3D-viewer blijft in beeld tijdens scrollen (sticky)
   - prijsbalk blijft onderin beeld (sticky)
   ================================================================ */
body.borduur-customize-page .site-header,
body.borduur-customize-page header.site-header,
body.borduur-customize-page .topbar-wrapper,
body.borduur-customize-page .col-full.topbar-wrapper,
body.borduur-customize-page .header-widget-region,
body.borduur-customize-page .storefront-breadcrumb,
body.borduur-customize-page .archive-header,
body.borduur-customize-page .shoptimizer-primary-navigation,
body.borduur-customize-page #site-navigation,
body.borduur-customize-page .main-navigation,
body.borduur-customize-page .site-footer,
body.borduur-customize-page #colophon,
body.borduur-customize-page .beb-announce,
body.borduur-customize-page .borduur-footer-credit { display: none !important; }

/* Eén achtergrondkleur over alles */
body.borduur-customize-page,
body.borduur-customize-page .site,
body.borduur-customize-page .site-content,
body.borduur-customize-page .shoptimizer-archive { background: #faf3ec !important; }

body.borduur-customize-page .site-content,
body.borduur-customize-page .content-area,
body.borduur-customize-page .col-full { margin: 0 !important; padding: 0 !important; max-width: none !important; }

.borduur-customize-wrapper {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 18px 28px 24px;
    background: linear-gradient(160deg, #fdfbf8 0%, #faf3ec 55%, #f6e3d4 100%);
}

.borduur-customize-header { position: relative; }
.borduur-back-link {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #dc6431;
    text-decoration: none;
}
.borduur-back-link:hover { text-decoration: underline; }

.borduur-customize-layout { display: flex; gap: 22px; align-items: flex-start; }
.borduur-viewer-pane { flex: 1 1 60%; position: sticky; top: 16px; }
body.admin-bar .borduur-viewer-pane { top: 48px; }
.borduur-3d-viewer { height: min(60vh, 540px); }
.borduur-config-pane { flex: 1 1 40%; max-width: 470px; overflow: visible !important; max-height: none !important; }

.borduur-customize-footer { position: sticky; bottom: 12px; z-index: 60; margin-top: 18px; }

/* BB v1.5.6 — de prijsbalk plakt onderin beeld. Met een doorschijnende
   achtergrond scrolde de tekst eronder zichtbaar dóór de balk heen. Daarom
   op de customize-pagina een dekkende achtergrond, en onderaan de pagina
   ruimte zodat de laatste regels nooit onder de balk blijven hangen. */
body.borduur-customize-page .borduur-customize-footer.glass {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--glass-border);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .10), var(--shadow);
}
body.borduur-customize-page .borduur-customize-wrapper { padding-bottom: 40px; }

/* ---- BB v1.5.6 — formaat-schuif per positie ---- */
.borduur-formaat-wrap {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, .07);
}
.borduur-formaat-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.borduur-formaat-rij {
    display: flex;
    align-items: center;
    gap: 10px;
}
.borduur-formaat-icoon {
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1;
    font-size: 11px;
}
.borduur-formaat-icoon.groot { font-size: 18px; }
.borduur-formaat-slider {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    height: 4px;
    border-radius: 3px;
    background: #e3ddd3;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.borduur-formaat-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    cursor: pointer;
}
.borduur-formaat-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    cursor: pointer;
}
.borduur-formaat-slider::-moz-range-track {
    height: 4px;
    border-radius: 3px;
    background: #e3ddd3;
}

/* BTW-schakelaar */
.borduur-btw-toggle { display: inline-flex; margin-top: 8px; border: 1px solid #e3ddd3; border-radius: 20px; overflow: hidden; background: #fff; }
.borduur-btw-toggle button { border: 0; background: transparent; padding: 5px 14px; font-size: 12px; font-weight: 700; cursor: pointer; color: #7a7a7a; }
.borduur-btw-toggle button.active { background: #dc6431; color: #fff; }
.borduur-price-block.show-excl .borduur-price-incl { font-size: 14px; opacity: .65; font-weight: 600; }
.borduur-price-block.show-excl .borduur-price-excl { font-size: 24px; font-weight: 800; opacity: 1; color: inherit; }

@media (max-width: 900px) {
    .borduur-customize-layout { flex-direction: column; }
    .borduur-viewer-pane { position: static; width: 100%; }
    .borduur-config-pane { max-width: none; }
    .borduur-3d-viewer { height: 55vh; }
}

/* BB v1.5.7 — mobiel: de prijsbalk werd één hoge kolom (±300px) die de halve
   pagina afdekte, met de prijs links en de knoppen gecentreerd (scheef).
   Nu een compacte, symmetrische balk: prijs links, knoppen rechts, en de
   hulpregels verborgen — die staan op de bestelpagina alsnog. */
@media (max-width: 700px) {
    .borduur-customize-wrapper { padding: 12px 14px 32px; }
    .borduur-customize-layout { gap: 14px; }
    .borduur-customize-footer {
        grid-template-columns: 1fr auto;
        gap: 4px 14px;
        padding: 12px 16px;
        bottom: 8px;
    }
    .borduur-price-incl { font-size: 24px; }
    .borduur-price-excl { margin-top: 3px; font-size: 11px; }
    .borduur-price-note,
    .borduur-quote-help-text { display: none; }
    .borduur-btw-toggle { margin-top: 6px; }
    .borduur-btw-toggle button { padding: 4px 10px; font-size: 11px; }
    .borduur-footer-actions { min-width: 0; gap: 6px; }
    .borduur-customize-wrapper .borduur-order-button { padding: 11px 18px; font-size: 14px; }
    .borduur-quote-section { margin-top: 0; }
    .borduur-quote-btn { padding: 5px 12px; font-size: 11px; }
    .borduur-price-block.show-excl .borduur-price-excl { font-size: 18px; }
}

/* BB v1.4.6b — thema zet overflow op html én body; daardoor plakt de sticky
   viewer niet. Op de customize-pagina laten we alléén html scrollen. */
html:has(body.borduur-customize-page) { overflow-x: hidden; overflow-y: auto; }
body.borduur-customize-page { overflow: visible !important; }

/* BB v1.4.7 — merkbalk bovenaan de customize-pagina */
.borduur-brand-bar {
    display: flex;
    align-items: center;
    padding: 4px 0 10px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    margin-bottom: 12px;
}
.borduur-brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.borduur-brand-bar img { height: 46px; width: auto; display: block; }
.borduur-brand-naam { font-size: 22px; font-weight: 900; letter-spacing: .5px; color: #1a1d23; text-transform: uppercase; }
.borduur-brand-naam span { color: #dc6431; }

/* ================================================================
   BB v1.4.7b — Overzichtelijk bewerken van een positie
   - een aangevinkte positie krijgt de volle breedte (eigen rij)
   - buurkaartjes rekken niet meer mee
   - het logo/tekst-paneel krijgt ruimte en nette velden
   ================================================================ */
.borduur-config-pane ul:has(> li.options) { align-items: start; }
.borduur-config-pane li.options.active { grid-column: 1 / -1; }

.borduur-config-pane .borduring-location-options,
.borduur-config-pane .bedrukking-location-options {
    margin-top: 12px;
    padding: 16px 16px 8px;
    background: #fffdfa;
    border: 1px solid #eee3d8;
    border-radius: 12px;
    text-align: left;
}
.borduur-config-pane .borduring-location-options label,
.borduur-config-pane .bedrukking-location-options label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #7a7368;
    margin: 10px 0 4px;
}
.borduur-config-pane .borduring-location-options select,
.borduur-config-pane .bedrukking-location-options select,
.borduur-config-pane .borduring-location-options input[type="text"],
.borduur-config-pane .bedrukking-location-options input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e3dbcf;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    margin: 0 0 10px;
}
.borduur-config-pane .borduring-location-options input[type="file"],
.borduur-config-pane .bedrukking-location-options input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    margin: 0 0 10px;
}

/* BB v1.4.7c — lettertype/opties-grid past binnen het paneel en wrapt netjes */
.borduur-config-pane li.options.active .borduring-options {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box;
}
.borduur-config-pane li.options.active .borduring-options img {
    width: 100% !important;
    height: auto !important;
    display: block;
}
.borduur-config-pane li.options.active .bedrukking-tekst-input,
.borduur-config-pane li.options.active .borduring-tekst-input {
    width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* BB v1.4.7d — lettertype-kaartjes zelf ook vloeibaar (hadden vaste breedte) */
.borduur-config-pane li.options.active .borduring-options .borduring-option,
.borduur-config-pane li.options.active .borduring-options .option,
.borduur-config-pane li.options.active .borduring-options label {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* ================================================================
   BB v1.4.8 — opvallende prijs, scherper logo, kleurnamen
   ================================================================ */
/* Prijs rechtsboven: groot, dik en oranje */
.borduur-customize-price {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #dc6431 !important;
    line-height: 1.1;
}
.borduur-customize-price ins {
    text-decoration: none;
    color: #dc6431 !important;
    font-weight: 900 !important;
}
.borduur-customize-price del {
    font-size: 14px;
    font-weight: 500;
    color: #9a9389 !important;
}
.borduur-customize-price small,
.borduur-customize-price .woocommerce-price-suffix {
    font-size: 13px;
    font-weight: 600;
    color: #7a7368;
}

/* Kleurnaam onder elk rondje */
.bb-kleur-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.bb-kleur-naam {
    font-size: 10.5px;
    font-weight: 600;
    color: #5b554c;
    text-align: center;
    max-width: 78px;
    line-height: 1.15;
}

/* ================================================================
   BB v1.4.8b — kleuren als symmetrische vakjes
   ================================================================ */
.borduur-config-pane .kleurkeuze-opties {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
}
.borduur-config-pane .bb-kleur-wrap {
    background: #fff;
    border: 1.5px solid #e7e0d5;
    border-radius: 12px;
    padding: 12px 6px 10px;
    margin: 0;
    min-height: 104px;
    justify-content: flex-start;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.borduur-config-pane .bb-kleur-wrap:hover {
    border-color: #dc6431;
    transform: translateY(-1px);
}
.borduur-config-pane .bb-kleur-wrap:has(input:checked) {
    border-color: #dc6431;
    box-shadow: 0 0 0 2px rgba(220, 100, 49, .22);
    background: #fff9f4;
}
.borduur-config-pane .bb-kleur-wrap label {
    margin: 0 auto !important;
}
.borduur-config-pane .bb-kleur-naam {
    margin-top: 2px;
}

/* ================================================================
   BB v1.4.8c — info-popup (het i-tje) als nette gecentreerde modal
   ================================================================ */
.borduur-config-pane .info-popup,
.borduur-config-pane .info-popup2 {
    position: fixed !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    background: rgba(20, 20, 20, .45);
    z-index: 10000 !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
/* het script zet display:block — wij centreren met flex zodra hij open is */
.borduur-config-pane .info-popup[style*="block"],
.borduur-config-pane .info-popup2[style*="block"] {
    display: flex !important;
}
.borduur-config-pane .info-popup-content {
    position: relative;
    width: min(680px, 92vw);
    max-height: 82vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    padding: 28px 30px 24px;
    box-shadow: 0 24px 64px rgba(15, 30, 60, .35);
}
.borduur-config-pane .info-popup-content .close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 28px;
    font-weight: 700;
    color: #8a8a8a;
    cursor: pointer;
    line-height: 1;
}
.borduur-config-pane .info-popup-content .close:hover { color: #dc6431; }
.borduur-config-pane .info-popup-content img { max-width: 100%; height: auto; }

/* BB v1.4.8d — popup-inhoud: originele positionering hard overschrijven */
.borduur-config-pane .info-popup .info-popup-content,
.borduur-config-pane .info-popup2 .info-popup-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: min(680px, 92vw) !important;
    max-width: none !important;
    max-height: 82vh !important;
    overflow-y: auto !important;
}

/* BB v1.4.8e — popups staan nu direct onder <body>; zelfde modal-stijl daarheen */
body.borduur-customize-page > .info-popup,
body.borduur-customize-page > .info-popup2 {
    position: fixed !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    background: rgba(20, 20, 20, .45);
    z-index: 100000 !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    display: none;
}
body.borduur-customize-page > .info-popup[style*="block"],
body.borduur-customize-page > .info-popup2[style*="block"] {
    display: flex !important;
}
body.borduur-customize-page > .info-popup .info-popup-content,
body.borduur-customize-page > .info-popup2 .info-popup-content {
    position: relative !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: min(680px, 92vw) !important;
    max-width: none !important;
    max-height: 82vh !important;
    overflow-y: auto !important;
    background: #fff;
    border-radius: 14px;
    padding: 28px 30px 24px;
    box-shadow: 0 24px 64px rgba(15, 30, 60, .35);
}
body.borduur-customize-page > .info-popup .close,
body.borduur-customize-page > .info-popup2 .close {
    position: absolute;
    top: 10px; right: 16px;
    font-size: 28px; font-weight: 700;
    color: #8a8a8a; cursor: pointer; line-height: 1;
}
body.borduur-customize-page > .info-popup .close:hover,
body.borduur-customize-page > .info-popup2 .close:hover { color: #dc6431; }
body.borduur-customize-page > .info-popup img,
body.borduur-customize-page > .info-popup2 img { max-width: 100%; height: auto; }


/* BB 02-08-2026: positie-iconen strak tegen de linkerkant, tekst rechts.
   Zo staan alle plaatjes in een rechte kolom, ongeacht hun breedte. */
li.options > label > img.checkbox-image { margin-left: 0 !important; margin-right: 10px; }
li.options > label > div { margin-left: 0; margin-right: auto; text-align: left; }
