.p-header__logo {
    background-image: url("../images/logo.png") !important;
}


/* === CHECKOUT & CART UX IMPROVEMENTS (MOBILE & DESKTOP) === */
/* 1. Fix blue backgrounds to clean white/light grey with readable text */
.c-box__bottom {
    background-color: #f5f6fa !important;
    color: #4a4d57 !important;
    border-top: 1px solid #e2e4ec !important;
}
.is-active .c-progress__step {
    background: #f0f2fa !important;
    border-color: #293170 !important;
}
#checkout-payment-method-load #payment_form_payzen_multi,
#checkout-payment-method-load #payment_form_payzen_standard,
#checkout-payment-method-load .form-list #payment_form_bankpayment {
    list-style: none !important;
    background-color: #ffffff !important;
    color: #73757f !important;
    border: 1px solid #d8dae0 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0.6rem 0 0.8rem !important;
}
#checkout-payment-method-load #payment_form_payzen_multi,
#checkout-payment-method-load #payment_form_payzen_standard {
    padding: 1.2rem 1.4rem !important;
}

/* 2. Retractable Virement (bankpayment) on white background */
.c-bankpayment-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    background-color: #ffffff;
    color: #20222b;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background-color 0.15s ease;
    user-select: none;
}
.c-bankpayment-toggle:hover {
    background-color: #f8f9fc;
}
.c-bankpayment-toggle__title {
    color: #20222b;
    font-weight: 600;
}
.c-bankpayment-toggle__right {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #293170;
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}
.c-bankpayment-toggle__chevron {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 2px solid #293170;
    border-bottom: 2px solid #293170;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -0.2rem;
}
.c-bankpayment-toggle.is-open .c-bankpayment-toggle__chevron {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}
.c-bankpayment-body {
    padding: 1.2rem 1.4rem;
    border-top: 1px solid #e2e4ec;
    background-color: #ffffff;
    color: #73757f;
    border-radius: 0 0 8px 8px;
    font-size: 1.3rem;
    line-height: 1.45;
}
.c-bankpayment-intro,
.c-bankpayment-intl,
.c-bankpayment-note {
    margin: 0.4rem 0 0.6rem;
    color: #73757f;
    font-size: 1.3rem;
}
.c-bankpayment-intl {
    margin-top: 0.8rem;
    font-weight: 500;
}
.c-bankpayment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.4rem 0;
}
.c-bankpayment-table td {
    padding: 0.2rem 0.8rem 0.2rem 0;
    vertical-align: top;
    color: #73757f;
    font-size: 1.3rem;
}
.c-bankpayment-table td label {
    color: #20222b;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

/* 3. HTTPS Notice Banner */
.o-section--checkout .o-section__notice {
    padding: 0.6rem 1.2rem !important;
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
}
.o-section--checkout .o-section__notice__icon {
    width: 1.8rem !important;
    height: 1.8rem !important;
    margin-right: 0.8rem !important;
}
.o-section--checkout .o-section__notice__text span {
    display: inline !important;
}

/* 4. Compact Checkout Steps & Immediate Validate Button Visibility */
.login-checkout .c-title {
    padding: 0 !important;
    margin: 0 0 0.8rem !important;
    background: none !important;
    font-weight: 600 !important;
}
.login-checkout .c-title::before,
.login-checkout .c-title::after {
    content: none !important;
}
.o-section--checkout .c-box__head--separator {
    margin-bottom: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}
.o-section--checkout .c-box__head--separator h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
}
.o-section--checkout .c-box--main p.u-text-md {
    margin: 0 0 0.6rem !important;
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
}
.o-section--checkout .c-choices {
    margin-bottom: 0.4rem !important;
}
.o-section--checkout .c-choices__item {
    margin: 0 0 0.5rem !important;
}
.o-section--checkout .c-choices__label {
    padding: 0.8rem 1rem 0.8rem 3.8rem !important;
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
}
.o-section--checkout .c-choices__label::before {
    top: 50% !important;
    left: 1.2rem !important;
    width: 1.8rem !important;
    height: 1.8rem !important;
    transform: translateY(-50%) !important;
}
.o-section--checkout .c-choices__label::after {
    top: 50% !important;
    left: 1.65rem !important;
    transform: translateY(-10%) scaleX(-1) rotate(135deg) !important;
}
.o-section--checkout #co-billing-form .u-mt-3xl,
.o-section--checkout #co-shipping-form .u-mt-3xl {
    margin-top: 0.2rem !important;
    margin-bottom: 0.4rem !important;
}
.o-section--checkout .c-field {
    margin-bottom: 0.5rem !important;
}
.o-section--checkout .c-field input[type="text"],
.o-section--checkout .c-field input[type="email"],
.o-section--checkout .c-field input[type="tel"],
.o-section--checkout .c-field input[type="password"],
.o-section--checkout .c-field--select select {
    height: 3.8rem !important;
    padding-top: 1.2rem !important;
    padding-bottom: 0.2rem !important;
    font-size: 1.3rem !important;
}
.o-section--checkout .c-field label {
    font-size: 1.2rem !important;
}
.c-checkout-choices-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.2rem;
}
.c-checkout-choices-row > .c-choices__item {
    flex: 1 1 calc(50% - 0.3rem);
    margin-bottom: 0.4rem !important;
}
.o-section--checkout .c-box__bottom--checkout {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 95 !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* 5. Mobile Checkout Layout (No scrolling required, Validate button immediately visible) */
@media (max-width: 63.9375em) {
    .o-section--checkout .o-section__notice {
        padding: 0.4rem 0.8rem !important;
        font-size: 1.15rem !important;
    }
    .o-section--checkout {
        padding-top: 5.8rem !important;
        padding-bottom: 0.8rem !important;
    }
    .o-section--checkout .o-section__progress {
        position: absolute !important;
        top: 2.8rem !important;
        left: 0 !important;
        width: 100% !important;
    }
    .o-section--checkout .c-progress__list {
        padding: 0.4rem 0 !important;
    }
    .o-section--checkout .c-progress__step {
        font-size: 1.2rem !important;
        min-height: 1.8rem !important;
        padding-left: 2.4rem !important;
    }
    .o-section--checkout .c-progress__step::before {
        width: 1.6rem !important;
        height: 1.6rem !important;
        top: calc(50% - 0.8rem) !important;
    }
    .o-section--checkout .is-active .c-progress__step::after {
        width: 0.8rem !important;
        height: 0.8rem !important;
        top: calc(50% - 0.4rem) !important;
        left: 0.4rem !important;
    }
    .login-checkout .c-box {
        padding: 1rem 1.2rem !important;
        margin-bottom: 0.6rem !important;
    }
    .login-checkout .c-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.4rem !important;
    }
    .login-checkout p.u-text-md,
    .login-checkout ul.u-text-md {
        display: none !important;
    }
    .login-checkout .u-mt-lg {
        margin-top: 0.4rem !important;
    }
    .login-checkout .c-button {
        min-height: 3.8rem !important;
        padding: 0.8rem 1.4rem !important;
        font-size: 1.4rem !important;
    }
    .o-section--checkout .c-box--main {
        padding: 1rem 1.2rem !important;
    }
    .o-section--checkout .o-section__action.c-box__bottom--checkout {
        position: sticky !important;
        bottom: 0 !important;
        left: auto !important;
        width: calc(100% + 2.4rem) !important;
        margin: 0.4rem -1.2rem 0 !important;
        padding: 0.6rem 1.2rem !important;
        background-color: #ffffff !important;
        border-top: 1px solid #e2e4ec !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08) !important;
        z-index: 95 !important;
    }
    .o-section--checkout .c-box__bottom--checkout .c-box__bottom__text {
        display: none !important;
    }
    .o-section--checkout .c-box__bottom--checkout .c-button {
        padding: 0.9rem 1.4rem !important;
        min-height: 4rem !important;
        font-size: 1.45rem !important;
    }
    .o-section--checkout .c-summary {
        margin: 0.6rem -1.2rem 0 !important;
        padding: 0.8rem 1.2rem 0 !important;
    }
    .o-section--checkout .c-summary__toggle {
        margin-bottom: 0.4rem !important;
        font-size: 1.4rem !important;
    }
    .o-section--checkout .c-summary .u-text-4xl {
        font-size: 1.7rem !important;
    }
}

/* 6. Desktop Checkout Layout: Progression de la commande to the RIGHT of Récapitulatif */
@media (min-width: 64em) {
    .checkout-onepage-index .o-wrapper {
        max-width: 138rem !important;
        padding-left: 2.4rem !important;
        padding-right: 2.4rem !important;
    }
    .o-section--checkout {
        padding-top: 4.4rem !important;
        padding-bottom: 1.6rem !important;
        align-items: flex-start !important;
    }
    .o-section--checkout > .o-section__main {
        width: calc(100% - 52rem) !important;
    }
    .o-section--checkout .c-box--main {
        padding: 1.6rem 2.2rem !important;
    }
    .o-section--checkout .c-box--main .c-box__head--separator::before {
        left: -2.2rem !important;
        right: -2.2rem !important;
    }
    .o-section--checkout .c-box--main .c-box__bottom--checkout {
        margin: 0.8rem -2.2rem -1.6rem !important;
        padding: 0.9rem 2.2rem !important;
    }
    .o-section--checkout #o-summary {
        width: 50rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1.6rem !important;
        position: sticky !important;
        top: 1.6rem !important;
    }
    .o-section--checkout #o-summary > .c-box--aside {
        flex: 1 1 50% !important;
        width: calc(50% - 0.8rem) !important;
        margin-top: 0 !important;
        padding: 1.6rem !important;
    }
    .o-section--checkout #o-summary .c-summary .u-text-4xl {
        font-size: 2rem !important;
    }
    .o-section--checkout #o-summary .c-progress__step {
        margin: 0 -1.6rem !important;
        padding: 0.8rem 0.8rem 0.8rem 5rem !important;
        font-size: 1.3rem !important;
    }
    .o-section--checkout #o-summary .c-progress__step::before {
        left: 1.6rem !important;
    }
    .o-section--checkout #o-summary .is-active .c-progress__step::after,
    .o-section--checkout #o-summary .is-completed .c-progress__step::after {
        left: 2.1rem !important;
    }
    .o-section--checkout #o-summary .c-progress__item:not(:last-child) {
        padding-bottom: 1rem !important;
    }
    .o-section--checkout #o-summary .c-progress__item:not(:last-child)::after {
        top: 3.4rem !important;
        left: 0.9rem !important;
        height: calc(100% - 3.4rem) !important;
    }
}

/* 7. Cart Page (/checkout/cart) Compact & Immediate Validate Button */
.c-coupon-toggle {
    background: none;
    border: 0;
    padding: 0.2rem 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 1.3rem;
    text-decoration: underline;
}
.c-coupon-form__row {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
}
.c-coupon-form__field {
    flex: 1 1 auto;
    margin-bottom: 0 !important;
}
.c-coupon-form__field input {
    height: 4rem !important;
}
.c-coupon-form__action {
    flex: 0 0 auto;
}
.c-coupon-form__btn {
    height: 4rem !important;
    min-height: 4rem !important;
    padding: 0 1.4rem !important;
    font-size: 1.3rem !important;
}
.checkout-cart-index .o-section {
    padding-top: 1.2rem !important;
    padding-bottom: 1.6rem !important;
}
.checkout-cart-index .c-box__head h1 {
    font-size: 2.2rem !important;
    margin-bottom: 0.6rem !important;
}
.checkout-cart-index .c-order__item {
    padding: 0.8rem 0 !important;
}
.checkout-cart-index .c-summary__item:not(:last-child) > * {
    padding-bottom: 0.5rem !important;
}
.checkout-cart-index .o-section__aside .u-text-4xl {
    font-size: 2rem !important;
}
.checkout-cart-index .c-box__action {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 95 !important;
    background: #ffffff !important;
}
@media (max-width: 63.9375em) {
    .checkout-cart-index .c-order {
        max-height: 30vh;
        overflow-y: auto;
    }
    .checkout-cart-index .c-order__item__picture {
        width: 6.4rem !important;
        height: 6.4rem !important;
    }
    .checkout-cart-index .c-order__item__picture img {
        width: 6.4rem !important;
        height: 6.4rem !important;
    }
    .checkout-cart-index .o-section__aside {
        padding-top: 0.8rem !important;
    }
    .checkout-cart-index .o-section__aside h3 {
        margin-bottom: 0.6rem !important;
        font-size: 1.5rem !important;
    }
    .checkout-cart-index .c-box__action {
        padding: 0.6rem 0 !important;
        margin-top: 0.4rem !important;
    }
    .checkout-cart-index .c-box__action .c-button {
        min-height: 4.4rem !important;
        padding: 1rem 1.6rem !important;
        font-size: 1.5rem !important;
    }
}
@media (min-width: 64em) {
    .checkout-cart-index .o-section__aside {
        position: sticky !important;
        top: 1.6rem !important;
    }
}
