/**
 * Product Configurator Sidebar
 *
 * @package wcreatebasis
 */

/* ── Wrapper & overlay ──────────────────────────────────────────── */
.bdw-configurator {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}
.bdw-configurator.active {
    pointer-events: all;
}

.configurator-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .3s ease;
    pointer-events: none;
}
.bdw-configurator.active .configurator-overlay {
    background: rgba(0,0,0,.45);
    pointer-events: all;
}

/* ── Sidebar panel ──────────────────────────────────────────────── */
.configurator-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: var(--pd-bg, #FAF7F4);
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.configurator-sidebar.active {
    transform: translateX(0);
}

/* ── Header ─────────────────────────────────────────────────────── */
.configurator-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    background: var(--pd-dark, #1A1614);
    flex-shrink: 0;
}
.configurator-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .3px;
    margin: 0;
}
.configurator-sub {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    margin-left: auto;
}
.configurator-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
    opacity: .7;
    transition: opacity .15s;
}
.configurator-close:hover { opacity: 1; }

/* ── Body ───────────────────────────────────────────────────────── */
.configurator-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Product naam + SKU */
.configurator-product-info {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pd-border, #E8E1D9);
}
.configurator-product-name {
    margin: 0 0 4px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--pd-dark, #1A1614);
    line-height: 1.2;
}
.configurator-product-sku {
    margin: 0;
    font-size: 12px;
    color: var(--pd-mid, #6B6560);
}

/* Formulier — hergebruikt bdw-form-row / bdw-f-label / bdw-pill etc. uit bdw-catalog.css */
.configurator-form {
    /* geen extra stijl nodig — klassen komen uit bdw-catalog.css */
}

/* ── Footer ─────────────────────────────────────────────────────── */
.configurator-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--pd-border, #E8E1D9);
    background: var(--pd-surface, #FFFFFF);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.configurator-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.configurator-qty-row .bdw-qty {
    /* erft bdw-qty stijl uit bdw-catalog.css */
}

/* Toevoegen-knop — erft bdw-cta-add uit bdw-catalog.css */
.configurator-footer .bdw-cta-add {
    width: 100%;
    height: auto;
    padding: 14px 20px;
    justify-content: center;
}

/* ── Laadstatus ─────────────────────────────────────────────────── */
.configurator-form.loading {
    opacity: .5;
    pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .configurator-sidebar { max-width: 100%; }
    .configurator-sub { display: none; }
}
