/*
 * Page « Commande bouteilles » (templates/tmp-postal-checkout.php)
 * Couleurs et polices du kit Elementor du site : noir #151515, bordeaux #97262C, or #FBBE2D,
 * texte #474747 ; Fredoka One (titres), Barlow (texte), Merriweather (présentation du vin).
 */

.nbz-postal {
    --nbz-postal-dark: #151515;
    --nbz-postal-wine: #97262C;
    --nbz-postal-text: #474747;
    --nbz-postal-light: #E1E1E1;
    --nbz-postal-line: #e7e1d8;
    --nbz-postal-cream: #faf7f2;
}

.nbz-postal.site-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 20px 72px;
    font-family: "Barlow", sans-serif;
    color: var(--nbz-postal-text);
}

.nbz-postal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* ------------------------------------------------------------------ Bouteille */

.nbz-postal__product {
    background: #fff;
    border: 1px solid var(--nbz-postal-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(21, 21, 21, .08);
}

.nbz-postal-bottle + .nbz-postal-bottle {
    border-top: 1px solid var(--nbz-postal-line);
}

.nbz-postal-bottle__media {
    background: #fff;
    padding: 32px 32px 0;
    text-align: center;
}

.nbz-postal-bottle__image img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.nbz-postal-bottle__thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.nbz-postal-bottle__thumb {
    width: 64px;
    height: 64px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--nbz-postal-line);
    border-radius: 10px;
    cursor: pointer;
}

.nbz-postal-bottle__thumb:hover,
.nbz-postal-bottle__thumb.is-active {
    border-color: var(--nbz-postal-wine);
    background: #fff;
}

.nbz-postal-bottle__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nbz-postal-bottle__body {
    padding: 28px 40px 36px;
}

.nbz-postal-bottle__kicker {
    margin: 0 0 10px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nbz-postal-wine);
}

.nbz-postal-bottle__title {
    margin: 0 0 14px;
    font-family: "Fredoka One", sans-serif;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--nbz-postal-dark);
}

.nbz-postal-bottle__excerpt,
.nbz-postal-bottle__description {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 300;
    line-height: 1.75;
}

.nbz-postal-bottle__excerpt {
    font-size: 1.02rem;
    font-style: italic;
    color: #5a5148;
}

.nbz-postal-bottle__excerpt p:last-child,
.nbz-postal-bottle__description p:last-child {
    margin-bottom: 0;
}

.nbz-postal-bottle__buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0;
    padding: 18px 0;
    border-top: 1px solid var(--nbz-postal-line);
    border-bottom: 1px solid var(--nbz-postal-line);
}

.nbz-postal-bottle__price {
    margin: 0;
    font-family: "Fredoka One", sans-serif;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--nbz-postal-wine);
}

.nbz-postal-bottle__price del {
    font-size: 1.1rem;
    color: #a8a8a8;
}

.nbz-postal-bottle__price ins {
    text-decoration: none;
}

.nbz-postal-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--nbz-postal-line);
    border-radius: 999px;
    overflow: hidden;
}

.nbz-postal-qty.is-loading {
    opacity: .5;
    pointer-events: none;
}

.nbz-postal .nbz-postal-qty__btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--nbz-postal-cream);
    color: var(--nbz-postal-dark);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.nbz-postal .nbz-postal-qty__btn:hover {
    background: var(--nbz-postal-wine);
    color: #fff;
}

.nbz-postal .nbz-postal-qty__input {
    width: 52px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
}

.nbz-postal-qty__input::-webkit-outer-spin-button,
.nbz-postal-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.nbz-postal-bottle__description {
    font-size: .95rem;
}

.nbz-postal-bottle__attributes {
    margin-top: 20px;
}

.nbz-postal__reassurance {
    margin: 0;
    padding: 8px 40px;
    list-style: none;
    /* Fond clair : gris du pied de page du site */
    background: var(--nbz-postal-light);
    color: var(--nbz-postal-text);
    font-size: .88rem;
    line-height: 1.5;
}

.nbz-postal__reassurance li {
    padding: 16px 0 16px 16px;
    border-left: 3px solid var(--nbz-postal-wine);
    margin: 12px 0;
}

.nbz-postal__reassurance strong {
    display: block;
    margin-bottom: 2px;
    font-family: "Fredoka One", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--nbz-postal-dark);
}

/* ------------------------------------------------------------------ Commande */

.nbz-postal__checkout {
    padding: 32px 36px 36px;
    background: var(--nbz-postal-cream);
    border: 1px solid var(--nbz-postal-line);
    border-radius: 18px;
}

.nbz-postal__checkout-title {
    margin: 0 0 4px;
    font-family: "Fredoka One", sans-serif;
    font-size: 1.9rem;
    font-weight: 400;
    color: var(--nbz-postal-dark);
}

.nbz-postal__checkout-intro {
    margin: 0 0 24px;
}

/* Formulaire WooCommerce sur une seule colonne */
.nbz-postal .woocommerce .col2-set .col-1,
.nbz-postal .woocommerce .col2-set .col-2 {
    float: none;
    width: 100%;
    max-width: none;
    padding: 0;
}

.nbz-postal .woocommerce .col2-set .col-2 {
    margin-top: 28px;
}

.nbz-postal .woocommerce h3,
.nbz-postal .woocommerce-checkout .checkout .col-2 h3#ship-to-different-address {
    font-family: "Fredoka One", sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--nbz-postal-dark);
}

.nbz-postal .woocommerce form .form-row input.input-text,
.nbz-postal .woocommerce form .form-row select,
.nbz-postal .woocommerce form .form-row textarea,
.nbz-postal .select2-container--default .select2-selection--single {
    background: #fff;
    border: 1px solid #d9d2c7;
    border-radius: 8px;
}

.nbz-postal .woocommerce-checkout-review-order {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--nbz-postal-line);
    border-radius: 12px;
}

.nbz-postal #payment {
    background: transparent;
    border-radius: 0;
}

.nbz-postal #payment .place-order .button,
.nbz-postal #place_order,
.nbz-postal__conflict .button.alt {
    width: 100%;
    padding: 16px 24px;
    background: var(--nbz-postal-wine);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-family: "Fredoka One", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
}

.nbz-postal #place_order:hover,
.nbz-postal__conflict .button.alt:hover {
    background: var(--nbz-postal-dark);
}

.nbz-postal__conflict {
    padding: 20px;
    background: #fff;
    border-left: 4px solid var(--nbz-postal-wine);
    border-radius: 8px;
}

.nbz-postal__conflict-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 0;
}

.nbz-postal__conflict-actions .button {
    text-align: center;
}

/* ------------------------------------------------------------------ Mobile */

@media (max-width: 1024px) {
    .nbz-postal__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .nbz-postal.site-main {
        padding: 20px 12px 48px;
    }

    .nbz-postal-bottle__media {
        padding: 20px 20px 0;
    }

    .nbz-postal-bottle__image img {
        max-height: 360px;
    }

    .nbz-postal-bottle__body,
    .nbz-postal__reassurance {
        padding-left: 22px;
        padding-right: 22px;
    }

    .nbz-postal__checkout {
        padding: 24px 18px 28px;
    }
}
