/* Checkout livraison configurateur — thème sombre, formulaire e-commerce */

.config-delivery-sheet {
    position: fixed;
    inset: 0;
    z-index: 1850;
    background: #09090b !important;
    color: #e4e4e7;
    overflow: hidden;
    font-family: Inter, system-ui, sans-serif;
}

.config-delivery-sheet[hidden]:not(.is-open) {
    display: none !important;
}

.config-delivery-sheet.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: #09090b !important;
}

body.config-delivery-sheet-open .configurator-mp-mobile-cta,
body.config-delivery-sheet-open .wizard-footer,
body.config-delivery-sheet-open .cart-overlay,
body.config-delivery-sheet-open .macemay-site-header {
    visibility: hidden !important;
    pointer-events: none;
}

.config-delivery-sheet__page {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 5.75rem;
}

.config-delivery-sheet .cd-topbar {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 56px;
    padding: 0.65rem 1rem;
    background: #09090b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.config-delivery-sheet .cd-topbar h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    color: #fafafa !important;
    letter-spacing: 0;
    font-family: Inter, system-ui, sans-serif !important;
}

.config-delivery-sheet__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.15rem;
    border: 0;
    background: none;
    color: #a1a1aa !important;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

.config-delivery-sheet__back:hover {
    color: #fafafa !important;
}

.config-delivery-sheet .cd-layout {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.15rem 0 1.5rem;
}

.config-delivery-sheet .cd-intro {
    margin: 0 0 1.1rem;
    max-width: 36rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #a1a1aa !important;
}

.config-delivery-sheet .config-delivery-block {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.config-delivery-sheet .config-delivery-title,
.config-delivery-sheet .config-delivery-desc,
.config-delivery-sheet .config-delivery-country {
    display: none !important;
}

.config-delivery-sheet .cd-card {
    margin: 0 0 1rem;
    padding: 1.05rem 1.1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: #111113;
}

.config-delivery-sheet .cd-h,
.config-delivery-sheet .config-delivery-subtitle,
.config-delivery-sheet #configAddressTitle {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: #fafafa !important;
    font-family: Inter, system-ui, sans-serif !important;
    letter-spacing: 0;
    text-transform: none;
}

.config-delivery-sheet .cd-field {
    margin: 0 0 0.85rem;
}

.config-delivery-sheet .cd-field label,
.config-delivery-sheet .config-delivery-grid label,
.config-delivery-sheet .config-delivery-postal label,
.config-delivery-sheet .config-delivery-relay label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #c4c4cc !important;
    letter-spacing: 0;
}

.config-delivery-sheet .cd-help,
.config-delivery-sheet .config-delivery-postal small,
.config-delivery-sheet .config-delivery-relay > p {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #8b8b96 !important;
}

.config-delivery-sheet input[type="text"],
.config-delivery-sheet input[type="tel"],
.config-delivery-sheet .config-delivery-postal input,
.config-delivery-sheet .config-delivery-grid input,
.config-delivery-sheet .config-delivery-relay input:not([type="hidden"]) {
    width: 100%;
    max-width: none;
    min-height: 44px;
    padding: 0.55rem 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 8px !important;
    background: #09090b !important;
    color: #fafafa !important;
    font: inherit;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.config-delivery-sheet #configShipPostal {
    max-width: 10rem;
}

.config-delivery-sheet input:focus {
    outline: 2px solid rgba(201, 162, 39, 0.45);
    outline-offset: 1px;
    border-color: #c9a227 !important;
}

.config-delivery-sheet .config-delivery-local {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(20, 83, 45, 0.28);
    color: #bbf7d0 !important;
    font-size: 0.82rem;
}

.config-delivery-sheet .config-delivery-warn {
    margin: 0 0 0.65rem;
    color: #fbbf24 !important;
    font-size: 0.82rem;
    font-weight: 600;
}

.config-delivery-sheet .config-delivery-options,
.config-delivery-sheet .config-delivery-options--cards {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.config-delivery-sheet .config-delivery-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem;
    min-height: 0 !important;
    padding: 0.8rem 0.9rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    background: #09090b !important;
    cursor: pointer;
    box-shadow: none !important;
}

.config-delivery-sheet .config-delivery-option:has(input:checked) {
    border-color: #c9a227 !important;
    background: rgba(201, 162, 39, 0.08) !important;
}

.config-delivery-sheet .config-delivery-option input {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: 0;
    accent-color: #c9a227;
    flex-shrink: 0;
}

.config-delivery-sheet .config-delivery-option__icon {
    display: none !important;
}

.config-delivery-sheet .cd-opt-body,
.config-delivery-sheet .config-delivery-option__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.configurator-page .config-delivery-sheet .config-delivery-option strong,
.configurator-page .config-delivery-sheet .config-delivery-option > span > strong,
.configurator-page .config-delivery-sheet .config-delivery-block .config-delivery-option strong,
.configurator-page .config-delivery-sheet .cd-opt-body strong,
.configurator-page .config-delivery-sheet .cd-h {
    color: #fafafa !important;
}

.configurator-page .config-delivery-sheet .config-delivery-option small,
.configurator-page .config-delivery-sheet .config-delivery-block .config-delivery-option small,
.configurator-page .config-delivery-sheet .cd-opt-body small {
    color: #c4c4cc !important;
}

.config-delivery-sheet .cd-opt-price {
    flex-shrink: 0;
    font-size: 0.88rem;
    font-weight: 650;
    color: #f1d784 !important;
}

.config-delivery-sheet .config-delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.config-delivery-sheet .config-delivery-grid .full {
    grid-column: 1 / -1;
}

.config-delivery-sheet .config-delivery-relay {
    padding: 1.05rem 1.1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: #111113;
}

.config-delivery-sheet .config-delivery-relay-search {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.config-delivery-sheet .config-delivery-relay-search input {
    flex: 1;
}

.config-delivery-sheet .config-delivery-relay-search button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 0.95rem;
    border: 0;
    border-radius: 8px;
    background: #c9a227;
    color: #161410;
    font-weight: 700;
    cursor: pointer;
}

.config-delivery-sheet .cd-map {
    padding: 0.45rem;
    margin: 0.35rem 0 0.75rem;
    border-radius: 10px;
    background: #d4d4d8;
}

.config-delivery-sheet #configRelayPickerFrame {
    display: block;
    width: 100%;
    min-height: 380px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: #fff;
}

.config-delivery-sheet #configRelayPickerFrame[hidden] {
    display: none !important;
}

.config-delivery-sheet .cd-relay-fields {
    display: grid;
    gap: 0.55rem;
}

.config-delivery-sheet .cd-aside {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: #09090b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.config-delivery-sheet .cd-recap {
    display: block;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: #111113;
}

.config-delivery-sheet .cd-totals {
    display: none;
}

.config-delivery-sheet .cd-aside-total small {
    display: block;
    color: #8b8b96;
    font-size: 0.68rem;
    font-weight: 650;
}

.config-delivery-sheet .cd-aside-total strong,
.config-delivery-sheet #configDeliverySheetTotal {
    color: #fafafa !important;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 1.15rem;
    font-weight: 700;
}

.config-delivery-sheet .config-delivery-kicker,
.config-delivery-sheet .config-delivery-sheet__eyebrow,
.config-delivery-sheet .config-delivery-sheet__brand,
.config-delivery-sheet .config-delivery-sheet__lead {
    display: none !important;
}

.config-delivery-sheet__pay,
.config-delivery-sheet #configDeliverySheetPay {
    flex: 1 1 auto;
    max-width: none !important;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #c9a227;
    color: #161410 !important;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
}

.config-delivery-sheet__pay:hover {
    background: #dbb84a;
}

.config-delivery-sheet__pay:disabled {
    opacity: 0.7;
    cursor: wait;
}

.config-delivery-sheet__error {
    flex: 1 0 100%;
    margin: 0;
    color: #fbbf24 !important;
    font-size: 0.82rem;
    font-weight: 600;
}

.config-delivery-sheet .cd-total-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    color: #a1a1aa !important;
}

.config-delivery-sheet .cd-total-row strong {
    color: #fafafa !important;
    font-weight: 650;
}

.config-delivery-sheet .cd-total-row--grand {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fafafa !important;
    font-weight: 700;
}

.config-delivery-sheet .cd-recap-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.config-delivery-sheet .cd-recap-kicker,
.config-delivery-sheet .config-delivery-sheet__recap-kicker {
    color: #a1a1aa;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.config-delivery-sheet .cd-recap-main strong,
.config-delivery-sheet .config-delivery-sheet__recap-main strong {
    color: #fafafa !important;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 0.95rem;
    font-weight: 650;
}

.config-delivery-sheet .cd-recap-main span,
.config-delivery-sheet .config-delivery-sheet__recap-main span {
    color: #a1a1aa !important;
    font-size: 0.82rem;
}

@media (min-width: 900px) {
    .config-delivery-sheet__page {
        padding-bottom: 0;
    }

    .config-delivery-sheet .cd-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 1.5rem;
        align-items: start;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .config-delivery-sheet .cd-main {
        min-width: 0;
    }

    .config-delivery-sheet .cd-aside {
        position: sticky;
        top: 4.5rem;
        left: auto;
        right: auto;
        bottom: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        background: #111113;
    }

    .config-delivery-sheet .cd-recap,
    .config-delivery-sheet .cd-totals {
        display: block;
    }

    .config-delivery-sheet .cd-aside-total {
        display: none;
    }

    .config-delivery-sheet__pay {
        width: 100%;
        max-width: none;
    }

    .config-delivery-sheet .config-delivery-options {
        display: grid !important;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .config-delivery-sheet .config-delivery-grid {
        grid-template-columns: 1fr;
    }

    .config-delivery-sheet #configRelayPickerFrame {
        min-height: 320px;
    }
}

#paymentModal.modal,
body.config-delivery-sheet-open #paymentModal {
    z-index: 100050 !important;
}

body.config-delivery-sheet-open .notification,
.configurator-page .notification {
    z-index: 100060 !important;
}
