body {
    background: linear-gradient(322deg, #FFC7BD 36.6%, #9EE7E9 81.73%);
    background-repeat: no-repeat;

    &:has(#partyBuilderSubmit.active) { 
        overflow: hidden;
    }

    div.page-header {
        h2 {
            font-family: 'Glacial Indifference';
            letter-spacing: 2px;
        }
        
        div.images {
            margin-top: 72px;
            display: flex;
            justify-content: center;
            gap: 72px;
            flex-wrap: wrap;

            img {
                max-width: 350px;
            }

            @media (max-width: 1200px) {
                gap: 36px;
            }
        }

        div.usps {
            margin-top: 72px;
            display: flex;
            justify-content: center;
            gap: 72px;
            flex-wrap: wrap;
            
            div.usp {
                text-align: center;
                max-width: 350px;

                img {
                    height: 200px;
                    display: inline;
                }

                h3 {
                    font-size: 2.2rem;
                }

                p {
                    background-color: white;
                    border: solid 1px var(--colourPrimary);
                    padding: 18px;
                    border-radius: 18px;
                    box-shadow: var(--defaultShadow);
                    color: black;
                    text-shadow: none;

                    span {
                        display: block;
                        margin-top: 9px;
                        font-size: 1rem;
                    }
                }
            }
        }
    }

    div.section.plain {
        color: white;
    }

    div.section.journey {
        div.base-price {
            text-align: center;

            div.tag {
                background-image: url("../../images/landing/party/party-price-badge-b78c9c018447d7334f00efc2c0f40df4.svg");
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center center;

                width: fit-content;
                margin-left: auto;
                margin-right: auto;

                display: flex;
                padding: 36px;
                padding-left: 75px;
                color: white;
                font-size: 2.2rem;
                font-weight: bold;
            }
        }
    }

    div.section.benefits {
        div.benefits {
            display: flex;
            flex-direction: column;
            gap: 36px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            padding: 18px;

            article.benefit {
                display: flex;
                align-items: center;
                gap: 72px;

                &.right {
                    flex-direction: row-reverse;
                }

                img {
                    width: 200px;
                }

                h3 {
                    font-size: 2.2rem;
                    text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.5);
                }

                p {
                    color: black;
                }

                @media (max-width: 650px) {
                    gap: 36px;
                    flex-direction: column !important;
                    text-align: center;
                }
            }
        }
    }

    #partyBuilder {
        max-width: 1300px;
        margin-left: auto;
        margin-right: auto;

        svg.loading {
            display: none;
        }

        &.loading {
            > * { 
                display: none;
            }

            svg.loading {
                display: block !important;
                margin-left: auto;
                margin-right: auto;
                margin-top: 18px;
            }
        }

        display: flex;
        gap: 22px;
        padding: 36px;
        align-items: flex-start;

        div.builder {
            flex: 1;

            > p.title {
                text-align: left;
                font-size: 2.2rem;
                margin-top: 18px;
            }

            div.options {
                display: flex;
                flex-wrap: wrap;
                gap: 40px;
                justify-content: space-evenly;
                margin-top: 18px;

                button.change-selection {
                    display: none;
                }

                &.max-reached {
                    article:not(.active) {
                        display: none;
                    }

                    > button.change-selection {
                        display: block;
                    }
                }

                article {
                    --imageWidth: 300px;

                    width: 100%;
                    display: flex;
                    gap: 22px;
                    position: relative;
                    overflow: hidden;   
                    
                    &:not([data-forced]) {
                        cursor: pointer;
                    }

                    img {
                        width: var(--imageWidth);
                        aspect-ratio: 16/12;
                        background-color: silver;
                        border-top-left-radius: 20px;
                        border-bottom-left-radius: 20px;
                        object-fit: cover;
                        flex-shrink: 0;
                    }

                    div.content {
                        padding: 18px;
                        padding-left: 0;
                        flex: 1;
                        display: flex;
                        flex-direction: column;

                        div.header {
                            width: 100%;
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            gap: 18px;
                        }

                        p.title {
                            font-size: 1.8rem;
                        }

                        p.description {
                            margin-top: 18px;
                            font-size: 1rem;
                            text-align: left;
                            flex: 1;
                        }

                        button {
                            margin-left: auto;
                            margin-right: 0;
                            margin-top: 18px;
                        }
                    }

                    div.selected {
                        display: none;
                        position: absolute;
                        left: 0;
                        top: 0;
                        bottom: 0;
                        width: var(--imageWidth);
                        justify-content: center;
                        align-items: center;
                        background-color: rgba(255, 255, 255, 0.5);

                        svg {
                            width: calc(var(--imageWidth) * 0.25);
                            fill: var(--colourSuccess);
                        }
                    }

                    button {
                        span.desktop {
                            display: inline;
                        }

                        span.mobile {
                            display: none;
                        }
                    }

                    button.selected {
                        display: none;

                        background-color: var(--colourSuccess);
                        gap: 18px;
                        align-items: center;

                        svg {
                            fill: white;
                            width: 20px;
                        }
                    }

                    &.active {
                        div.selected {
                            display: flex;
                        }

                        button.add {
                            display: none;
                        }

                        button.selected {
                            display: flex;
                        }
                    }
                }
            }

            div.make-it-special {
                margin-top: 44px;
                margin-bottom: 44px;

                font-size: 1.1rem;
                text-align: center;

                > a {
                    margin-left: auto;
                    margin-right: auto;
                    margin-top: 20px;
                }
            }
        }

        div.basket {
            margin-top: 18px;
            padding: 18px;
            width: 350px;
            position: sticky;
            top: 150px;

            div.header {
                display: flex;
                justify-content: space-between;
                align-items: center;

                svg {
                    display: none;
                }

                p.cost {
                    display: none;
                }
            }

            div.item {
                margin-top: 20px;

                div.info {
                    font-weight: bold;
                    display: flex;
                    gap: 20px;

                    div.label {
                        flex: 1;
                    }
                }

                p {
                    font-size: 1rem;
                }
            }

            p.total {
                text-align: right;
                margin-top: 20px;
            }

            p.subtext {
                margin-top: 20px;
                text-align: center;
                font-size: 0.8rem;
            }

            button {
                margin-top: 20px;
            }
        }

        @media (max-width: 1150px) {
            gap: 0 !important;

            div.basket {
                position: fixed;
                top: unset;
                bottom: 0;
                right: 20px;
                width: calc(100% - 40px);
                max-width: 400px;
                border-bottom: none;
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
                z-index: 999;

                p.cost {
                    display: block !important;
                }

                svg {
                    fill: white;
                    width: 20px;

                    &.open {
                        display: none;
                    }

                    &.closed {
                        fill: black;
                        display: block !important;
                    }
                }

                &:not(.open) {
                    background-color: var(--colourPrimary);
                    color: white;

                    div.backdrop {
                        display: none;
                    }

                    div.wrapper {
                        display: none;
                    }

                    svg {
                        &.open {
                            display: block !important;
                        }

                        &.closed {
                            display: none !important;
                        }
                    }
                }

                div.items {
                    max-height: 400px;
                    overflow-y: scroll;
                }
            }

            &:has(div.basket.open) {
                div.basket-backdrop {
                    position: fixed;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background-color: rgba(0, 0, 0, 0.5);
                    z-index: 998;
                }
            }
        }

        p.mobile {
            display: none;
        }

        @media (max-width: 768px) {
            div.basket {
                max-width: unset !important;
                left: 20px;
                right: 20px;
                border-radius: 0;
            }

            div.options > article {
                flex-direction: column;
                max-width: 300px;

                img {
                    width: 100% !important;
                    aspect-ratio: 4/3 !important;
                    border-bottom-left-radius: 0 !important;
                }

                p.title {
                    height: 45px;
                    display: block;
                    font-size: 1.8rem;
                    color: white;
                    background-color: rgba(0, 0, 0, 0.5);
                    margin-top: -67px;
                    text-align: left;
                    padding-left: 12px;
                    padding-right: 12px;
                }

                div.content {
                    padding-top: 0 !important;

                    div.header {
                        p.title {
                            display: none;
                        }

                        flex-wrap: wrap;
                    }

                    p {
                        width: 100%;
                        text-align: center;
                    }

                    padding-left: 18px !important;

                    button {
                        span.desktop {
                            display: none;
                        }

                        span.mobile {
                            display: inline;
                        }
                    }
                }
            }
        }
    }

    #partyBuilderConfirm {
        &:not(.active) {
            display: none;
        }

        > div.backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }

        > div.card {
            --width: 500px;

            @media (max-width: 550px) {
                --width: 95vw;
            }

            position: fixed;
            top: 200px;
            left: calc(50% - (var(--width) / 2));
            width: var(--width);
            z-index: 1001;
            overflow-y: auto;

            p.title {
                font-size: 2.2rem;
                text-align: center;
                margin: 20px;
            }

            > #bookingJourney {
                border: none;
                box-shadow: none;

                p.time-waiting {
                    text-align: center;
                }

                p.no-times-available {
                    text-align: center;
                }

                div.times {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 20px;
                    justify-content: space-evenly;

                    label {
                        display: flex;
                        gap: 9px;

                        &.disabled {
                            opacity: 0.8;
                            text-decoration: line-through;
                        }

                        svg.time-spinner {
                            animation: rotation-anim 1s infinite linear;
                            display: none;
                            width: 20px;
                        }

                        &.waiting {
                            input {
                                display: none;
                            }

                            svg {
                                display: block;
                            }
                        }
                    }
                }
            }
        }
    }
}