/* ============================================================
   DIY Express Windows - Window Configurator Wizard
   ============================================================ */

.dew-deposit-banner {
    background: #f97316;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    margin-bottom: 12px;
}

.dew-live-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.dew-live-price {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}
.dew-in-stock {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
}

/* ── Gallery: keep theme float for two-column layout ── */
.woocommerce-product-gallery {
    float: left !important;
}
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    display: block !important;
}
/* Force main image to fill gallery width */
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
}

/* ── Hide native flex-control-nav (replaced by custom strip) ── */
.woocommerce-product-gallery .flex-control-nav {
    display: none !important;
}

/* ── Custom thumbnail strip — appended inside gallery div ── */
.dew-thumb-strip {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
.dew-thumb {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s, border-color 0.15s;
    display: block !important;
    flex: 0 0 60px !important;
}
.dew-thumb:hover { opacity: 1; }
.dew-thumb.dew-thumb-active {
    border-color: #1d4ed8;
    opacity: 1;
}

/* ── Trust pills — appended inside gallery div after thumb strip ── */
.dew-trust-pills {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px !important;
    margin-bottom: 4px !important;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}
.dew-trust-pill {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 99px;
    font-size: 11px;
    color: #6b7280;
    padding: 4px 10px;
    font-weight: 500;
}

/* Step tabs */
.dew-steps {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}
.dew-step-btn {
    flex: 1;
    padding: 6px 2px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    border: none;
    border-right: 1px solid #d1d5db;
    transition: background 0.15s, color 0.15s;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.dew-step-btn:last-child { border-right: none; }
.dew-step-btn.dew-active {
    background: #1d4ed8;
    color: #fff;
}
.dew-step-btn .dew-step-num {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 1px;
    letter-spacing: 0;
}

.dew-step-panel { display: none; }
.dew-step-panel.dew-active { display: block; }

/* Nav buttons */
.dew-step-nav {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 6px;
}
.dew-step-nav button {
    flex: 1;
    padding: 11px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dew-step-nav button:hover { background: #f3f4f6; }
.dew-step-nav .dew-btn-next {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}
.dew-step-nav .dew-btn-next:hover { background: #1e40af; }

/* Validation error */
.dew-validation-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Review summary */
.dew-summary-box {
    background: #1e3a5f;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
}
.dew-summary-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
    margin-bottom: 8px;
}
.dew-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #e0f2fe;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dew-summary-row:last-of-type { border-bottom: none; }
.dew-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.dew-summary-total .dew-total-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.dew-summary-total .dew-total-val {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* ATC proxy button */
.dew-atc-wrap {
    margin-bottom: 6px;
    display: none;
}
.dew-step-panel.dew-active .dew-atc-wrap {
    display: block;
}
.dew-atc-wrap .dew-proxy-atc {
    width: 100% !important;
    background: #f97316 !important;
    border: none !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 16px 24px !important;
    border-radius: 6px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    min-height: 54px !important;
    cursor: pointer !important;
}
.dew-atc-wrap .dew-proxy-atc:hover { background: #ea6c00 !important; }

.dew-deposit-note {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 10px;
}

/* === WIZARD ACTIVE STYLES === */

body.dew-wizard-active .summary .price,
body.dew-wizard-active .summary .stock { display: none !important; }

body.dew-wizard-active .pewc-group-heading-wrapper { display: none !important; }

body.dew-wizard-active .pewc-total-field-wrapper,
body.dew-wizard-active .pewc-total-field { display: none !important; }

body.dew-wizard-active form.cart > .quantity,
body.dew-wizard-active form.cart > .single_add_to_cart_button { display: none !important; }

body li.pewc-item[data-field-type="calculation"] { display: none !important; }

body.dew-wizard-active ul.pewc-product-extra-groups li.pewc-item { display: none !important; }

body.dew-wizard-active ul.pewc-product-extra-groups li.pewc-item.dew-visible {
    display: block !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.dew-wizard-active ul.pewc-product-extra-groups li.pewc-item.pewc-hidden,
body.dew-wizard-active ul.pewc-product-extra-groups li.pewc-item.pewc-hidden-field { display: none !important; }

/* Field grid */
body.dew-wizard-active ul.pewc-product-extra-groups {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    padding: 0 !important;
}

body.dew-wizard-active li.pewc-item.pewc-item-checkbox-group.dew-visible,
body.dew-wizard-active li.pewc-item.pewc-item-checkbox.dew-visible,
body.dew-wizard-active li.pewc-item.pewc-item-text.dew-visible,
body.dew-wizard-active li.pewc-item.pewc-item-number.dew-visible { grid-column: 1 / -1 !important; }

body.dew-wizard-active li.pewc-item.pewc-item-select-box.dew-visible { grid-column: span 1 !important; }

body.dew-wizard-active li.pewc-item .pewc-item-field-wrapper { margin-bottom: 0 !important; padding-bottom: 0 !important; }
body.dew-wizard-active li.pewc-item h4.pewc-field-label { margin-bottom: 4px !important; margin-top: 0 !important; }
body.dew-wizard-active li.pewc-item p.pewc-description { margin-top: 2px !important; margin-bottom: 0 !important; font-size: 11px !important; }

body.dew-wizard-active li.pewc-item.pewc-item-checkbox-group.dew-visible {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 12px !important;
}

body.dew-wizard-active .quantity { display: none !important; }

@media (min-width: 768px) {
    .dew-live-price { font-size: 30px; }
}

@media (max-width: 767px) {
    .woocommerce-product-gallery { float: none !important; width: 100% !important; }
}
