/* input(5,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '@container'
input(40,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '@container'
input(365,21): run-time error CSS1035: Expected colon, found '{' */
.hero-banner-section {
    position: relative;
    padding-block: calc(var(--spacer) * 3.75);

    @container (max-width: 768px) {
        padding-block: 0 var(--section-padding);
    }

    &:before {
        content: '';
        background-image: var(--hero-image-url);
        background-size: contain;
        background-position: right top;
        background-repeat: no-repeat;
        position: absolute;
        inset: 0;
        z-index: -1;

        @container (max-width: 768px) {
            background-image: url(/media/uywc4coa/about-billboard-mobile.png?v=SLzDXXiAEl0I4cNSOl5lM20LaO4);
            background-size: cover;
            display: block;
            position: static;
            margin-bottom: var(--section-padding);
            height: 60vw;
        }
    }

    h1 {}

    .rte-content {
        @container (max-width: 768px) {}
    }
}

.confirmation-details-section {
    /* Space from the billboard above and the footer below. */
    padding-block: var(--section-padding);

    @container (max-width: 768px) {
        .btn {
            width: 100%;
        }
    }

    h2 {
        margin-bottom: calc(var(--spacer) * 1.5);
    }

    .confirmation-details {
        display: flex;

        @container (max-width: 1024px) {
            flex-direction: column;
        }

        > div {
            border: 1px solid rgb(var(--color-charcoal-60));
            border-radius: 4px 0 0 4px;
            flex: 1;
            padding: calc(var(--spacer) * 2);

            @container (max-width: 768px) {
                border-radius: 4px 4px 0 0;
                padding: var(--spacer);
            }

            &:last-child {
                border-radius: 0 4px 4px 0;
                border-left: none;

                @container (max-width: 768px) {
                    border-radius: 0 0 4px 4px;
                    border-top: none;
                    border-left: 1px solid rgb(var(--color-charcoal-60));
                }
            }
        }

        address {
            font-size: .875em;
            line-height: 1.6;
        }

        .to-location,
        .order-items {
            margin-bottom: calc(var(--spacer) * 1.5);
            padding-bottom: calc(var(--spacer) * 1.5);
            border-bottom: 1px solid rgb(var(--color-charcoal-60));
        }

        .from-location {
            display: flex;
            gap: calc(var(--spacer) 8 1.5);
            justify-content: space-between;

            @container (max-width: 1024px) {
                flex-direction: column;
            }

            a {
                margin-top: var(--spacer);
                display: inline-flex;
                align-items: center;
                gap: calc(var(--spacer) * .25);
                color: rgb(var(--color-link));
                font-size: 1rem;
                font-weight: 700;
                text-decoration: none;

                span {
                    text-decoration: underline;
                }

                .icon-glyph {
                    text-decoration: none;
                    font-size: 1.25em;
                }
            }
        }

        .eyebrow-sm {
            display: flex;
            align-items: center;
            gap: calc(var(--spacer) * .25);
            color: rgb(var(--color-charcoal-80));

            .icon-glyph {
                font-size: 2em;
            }
        }

        .section-details {
            padding-left: calc(var(--spacer) * 1.75);
        }

        .store-status {
            margin-top: var(--spacer);
            flex-wrap: wrap;
            align-items: center;
            font-size: 12px;
            font-weight: 500;
            line-height: 1.3;
            display: flex;

            .store-open,
            .store-closed {
                white-space: nowrap;
                align-items: center;
                display: inline-flex;
                gap: 4px;
                margin-inline: calc(var(--spacer) * .25);
            }

            .store-open:before,
            .store-closed:before {
                content: '';
                height: 4px;
                aspect-ratio: 1 / 1;
                border-radius: 50%;
                display: inline-block;
            }

            @media (max-width: 768px) {

                .store-open:before,
                .store-closed:before {
                    content: none;
                }
            }

            .store-open {
                color: rgb(var(--color-success-90));
            }

            .store-open:before {
                background-color: rgb(var(--color-success-90));
            }

            .store-closed {
                color: rgb(var(--color-error-90));
            }

            .store-closed:before {
                background-color: rgb(var(--color-error-90));
            }
        }

        .carrier {
            margin-top: var(--spacer);
            display: flex;
            align-items: center;
            gap: calc(var(--spacer) * .25);

            &::before {
                content: '';
                display: inline-block;
                width: calc(var(--spacer) * 1.5);
                background-size: contain;
                aspect-ratio: 1;
            }

            &.carrier-roadie:before {
                background-image: url(/images/vendor-logos/roadie-logo-@50x.png?v=UfhqfF_ucz-mSelOEQY6FHRILiM);
            }

            &.carrier-ups:before {
                background-image: url(/images/vendor-logos/ups-logo-@50x.png?v=CQnyq0xBrBz_jxD1qas25qTFbQQ);
            }

            &.carrier-fedex-freight:before {
                background-image: url(/images/vendor-logos/fedex-logo-@50x.png?v=a9zlt28hPzb0oz7LXRTS-eHNTbI);
            }
        }

        .retailer-map {
            width: calc(var(--spacer) * 16);
            height: calc(var(--spacer) * 9);

            @container (max-width: 1024px) {
                width: 100%;
                margin-top: var(--spacer);
            }
        }

        .order-items .section-details {
            display: flex;
            flex-direction: column;
            gap: calc(var(--spacer) * 1.5);
        }

        .order-item {
            display: flex;
            align-items: center;
            gap: var(--spacer);

            @container (max-width: 768px) {
                .body-3xs {
                    display: flex;
                    flex-direction: column-reverse;
                }
            }

            img {
                width: calc(var(--spacer) * 3);
                height: calc(var(--spacer) * 2.75);
                object-fit: cover;
                object-position: center;
            }

            div {
                margin: 0;
            }

            span {
                font-weight: 700;
            }
        }

        .part-name {
            flex: 1;
        }

        .line-item {
            display: flex;
            justify-content: space-between;
            align-items: center;

            span {
                &:first-child {
                    font-size: .75em;
                }

                &:last-child {
                    font-weight: 700;
                }
            }
        }

        .leaders {
            span {
                &:first-child {
                    font-size: 1.5em;
                    font-weight: 600;
                }

                &:last-child {
                    font-weight: 600;
                    font-size: 2.5em;
                    font-family: var(--font-family-display);
                }
            }
        }

        .payment-method {
            font-weight: 600;
            text-align: right;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: calc(var(--spacer) * .25);

            &::before {
                content: '';
                display: inline-block;
                width: calc(var(--spacer) * 3);
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center;
                aspect-ratio: 1 / 1;
            }

            &.payment-visa::before {
                background-image: url(/images/vendor-logos/visa-logo-@50x.png?v=vqLTY7iPp7TWN6J7nTWRZIKyTa4);
            }

            &.payment-mc::before {
                background-image: url(/images/vendor-logos/mc-logo-@50x.png);
            }

            &.payment-paypal::before {
                background-image: url(/images/vendor-logos/paypal-logo-@50x.png);
            }
        }
    }

    .print-link {
        margin-top: var(--spacer);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: calc(var(--spacer) * .25);
        color: rgb(var(--color-link));
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;

        @container (max-width: 768px) {
            margin-bottom: var(--spacer);
        }

        span {
            text-decoration: underline;
        }

        .icon-glyph {
            text-decoration: none;
            font-size: 1.25em;
        }
    }
}

@media print {

    body > header,
    body > footer {
        display: none;
    }

    a.btn {
        display: none;
    }

    .confirmation-details-section {
        .print-link {
            display: none;
        }

        .confirmation-details .from-location {
            flex-direction: row;
            gap: calc(var(--spacer) * 3);

            > div {
                width: 50%;
            }

            a {
                display: none;
            }
        }
    }

    .hero-banner-section {
        display: none;
    }
}