/**
 * Product Configurator Styles (v3 - Flat Form)
 */

/* Base */
.configurator-wrapper * {
    box-sizing: border-box;
}

.configurator-wrapper {
    background: #f8f8f8;
    color: #11143a;
    line-height: 1.6;
    margin: 20px 0;
    clear: both;
}

.configurator-wrapper .container {
}

/* Layout */
.configurator-wrapper .product-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: #ffffff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Image */
.configurator-wrapper .product-image-section {
    position: sticky;
    top: 24px;
    height: fit-content;
}

.configurator-wrapper .product-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Title & Price */
.configurator-wrapper .product-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #11143a;
}

.configurator-wrapper .price-section {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: 24px;
}

.configurator-wrapper .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #11143a;
}

.configurator-wrapper .price-vat {
    font-size: 0.875rem;
    color: #6b7280;
    margin-left: 6px;
}

.configurator-wrapper .price-pending {
    font-size: 1rem;
    color: #6b7280;
    font-style: italic;
}

/* Summary / Form */
.configurator-wrapper .summary-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.configurator-wrapper .summary-grid {
    background: #f8f8f8;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.configurator-wrapper .summary-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.configurator-wrapper .summary-item:last-child {
    border-bottom: none;
}

.configurator-wrapper .summary-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.9rem;
    padding-top: 9px;
}

/* Dropdown */
.configurator-wrapper .summary-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #ffffff;
    cursor: pointer;
    width: 100%;
}

.configurator-wrapper .summary-select:focus {
    outline: none;
    border-color: #5AA8E5;
}

/* Text input (length) */
.configurator-wrapper .summary-value-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.configurator-wrapper .summary-input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #ffffff;
    width: 100%;
    appearance: textfield;
    -moz-appearance: textfield;
}

.configurator-wrapper .summary-input::-webkit-outer-spin-button,
.configurator-wrapper .summary-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.configurator-wrapper .summary-input:focus {
    outline: none;
    border-color: #5AA8E5;
}

/* Length over-limit warning */
.configurator-wrapper .length-warning {
    background: #fff8e1;
    border: 1px solid #f5c842;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #7a5a00;
    line-height: 1.5;
}

.configurator-wrapper .length-warning a {
    color: #5AA8E5;
    text-decoration: none;
}

.configurator-wrapper .length-warning a:hover {
    text-decoration: underline;
}

/* Buttons */
.configurator-wrapper .btn-primary {
    background: #5AA8E5;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.configurator-wrapper .btn-primary:hover:not(:disabled) {
    background: #4a97d1;
}

.configurator-wrapper .btn-primary:disabled,
.configurator-wrapper .btn-primary.disabled {
    background: #c0c0c0;
    cursor: not-allowed;
    opacity: 0.7;
}

.configurator-wrapper .btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
    width: 100%;
}

/* Errors */
.configurator-wrapper .configurator-error {
    background: #fdeaea;
    border: 1px solid #f5b5b5;
    color: #b91c1c;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .configurator-wrapper .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .configurator-wrapper .product-image-section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 600px) {
    .configurator-wrapper .summary-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .configurator-wrapper .summary-label {
        padding-top: 0;
    }
}
/* ── Sets product page overrides (postid-29047) ─────────────────────────── */
.postid-29047 {
    .product_title.entry-title,
    .stockstatus-skuwrap,
    div.product .woocommerce-product-gallery,
    &.single-product .price,
    &.single-product div.product form.cart {
        display: none !important;
    }
    &.single-product div.product .summary {
        width: 100%;
    }
    .single-product-container {
        max-width: 1256px;
    }
    .product-config-section .price {
        display: flex !important;
        font-size: 34px !important;
        flex-wrap: wrap;
        gap: 15px !important;
        row-gap: 4px !important;
        line-height: 1;
    }
    .product-config-section p.price span.aslowas {
        width: 100%;
        font-size: 13.6px !important;
    }
    .product-config-section p.price span.vatpricewrap {
        font-size: 17px !important;
    }
    .product-config-section #currentPrice {
        display: flex;
        align-items: baseline;
    }
    .product-config-section p.price.hidden {
        display: none !important;
    }
    #currentPrice .price {
        margin-top: 0;
    }
}