/* MV_CHECKOUT_GOLD_V1
   Manlyvite gold botanical checkout design.
   Presentation only: no payment or form logic changes.
*/

/* Main checkout background */
.checkout-shell,
main:has(> .checkout-hero) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 95% 8%,
            rgba(216,174,76,.19),
            transparent 35%
        ),
        radial-gradient(
            ellipse at 4% 91%,
            rgba(216,174,76,.12),
            transparent 38%
        ),
        linear-gradient(150deg,#fffdf7,#f7f0df);
}

/* Decorative gold branches */
.checkout-shell::before,
.checkout-shell::after,
main:has(> .checkout-hero)::before,
main:has(> .checkout-hero)::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    width: 400px;
    height: 600px;
    background:
        url("../images/decor/manlyvite-cart-gold-sprig.svg")
        center / contain no-repeat;
}

.checkout-shell::before,
main:has(> .checkout-hero)::before {
    top: -110px;
    right: -165px;
    opacity: .42;
}

.checkout-shell::after,
main:has(> .checkout-hero)::after {
    bottom: -220px;
    left: -185px;
    transform: rotate(185deg);
    opacity: .28;
}

.checkout-shell > .container,
main:has(> .checkout-hero) > * {
    position: relative;
    z-index: 1;
}

/* Compact checkout introduction */
.checkout-shell .checkout-intro,
.checkout-hero {
    position: relative;
    height: auto;
    min-height: 0;
    margin-bottom: 32px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(170,125,45,.25);
}

.checkout-shell .checkout-intro::before,
.checkout-hero::before {
    content: "";
    display: block;
    width: 68px;
    height: 4px;
    margin-bottom: 22px;
    background: #E9BD35;
    border-radius: 8px;
}

.checkout-shell .checkout-intro h1,
.checkout-hero h1 {
    color: #123D28;
    font-size: clamp(38px,4.1vw,56px);
    margin-bottom: 12px;
}

.checkout-shell .checkout-intro p:not(.eyebrow),
.checkout-hero p:not(.section-label) {
    color: #536558;
}

/* Customer form and summary panels */
.checkout-shell .checkout-form-preview,
.checkout-shell .checkout-order-summary,
.checkout-layout .checkout-form,
.checkout-layout .checkout-summary {
    border: 1px solid rgba(170,135,66,.24);
    border-radius: 21px;
    background: rgba(255,253,248,.97);
    box-shadow: 0 12px 35px rgba(44,58,35,.075);
}

/* Add visual emphasis to the order summary */
.checkout-shell .checkout-order-summary,
.checkout-layout .checkout-summary {
    background:
        linear-gradient(155deg,#fffef9,#faf5e6);
    border-top: 4px solid #E9BD35;
}

/* Form-section heading numbers */
.checkout-shell .checkout-section-heading > span,
.checkout-layout .checkout-section-heading > span {
    background: #EAC94D;
    color: #153B28;
    border-radius: 50%;
}

/* Refinement without overriding input validation */
.checkout-shell input,
.checkout-shell select,
.checkout-shell textarea,
.checkout-layout input,
.checkout-layout select,
.checkout-layout textarea {
    border-radius: 9px;
}

.checkout-shell input:focus-visible,
.checkout-shell select:focus-visible,
.checkout-shell textarea:focus-visible,
.checkout-layout input:focus-visible,
.checkout-layout select:focus-visible,
.checkout-layout textarea:focus-visible {
    outline: 2px solid #B58A39;
    outline-offset: 2px;
}

/* Desktop layout */
@media (min-width: 1080px) {
    .checkout-shell .checkout-layout-preview,
    .checkout-layout {
        display: grid;
        grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
        gap: 28px;
        align-items: start;
    }
}

/* Tablet and mobile */
@media (max-width: 1079px) {
    .checkout-shell .checkout-layout-preview,
    .checkout-layout {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (max-width: 600px) {
    .checkout-shell::before,
    main:has(> .checkout-hero)::before {
        width: 230px;
        height: 340px;
        right: -155px;
        top: -85px;
        opacity: .23;
    }

    .checkout-shell::after,
    main:has(> .checkout-hero)::after {
        width: 220px;
        height: 325px;
        left: -155px;
        bottom: -120px;
        opacity: .17;
    }

    .checkout-shell .checkout-intro,
    .checkout-hero {
        margin-bottom: 24px;
        padding-bottom: 18px;
    }

    .checkout-shell .checkout-form-preview,
    .checkout-shell .checkout-order-summary {
        padding: 22px;
        border-radius: 17px;
    }
}