.modal {
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow-y: auto;
    padding: 5rem 1rem;
    box-sizing: border-box;
}

.modal-content {
    background: var(--custom-background);
    padding: 2rem;
    border-radius: .6rem;
    max-width: 40rem;
    position: relative;
    overflow-wrap: anywhere;

    .modal-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 2rem;

        .modal-single-event-title {
            font-size: var(--font-size-2xl);
            font-weight: 700;
        }

        .fa-xmark {
            font-size: var(--font-size-xl);
            cursor: pointer;
        }
    }

    .modal-section {
        background-color: var(--custom-light);
        margin: 0 0 1rem 0;
        padding: 1rem;
        border-radius: .6rem;

        .modal-single-event-details {
            margin-top: 1rem;
            line-height: .7rem;
        }

        .modal-event-dropdown {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            margin: 0;

            #ticketDropdownIcon {
                transition: transform 0.3s ease;
            }

            #ticketDropdownIcon.rotated {
                transform: rotate(180deg);
            }

        }

        .modal-event-add-to-cart {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .single_add_to_cart_button {
            background-color: var(--custom-yellow);
            border-radius: .3rem;
            padding: .7rem 1.5rem;
            font-weight: 700;
            border: 2px solid var(--custom-yellow);

            &:hover {
                background: transparent;
            }
        }

        #totalPrice {
            margin: 0;
            display: flex;
            align-items: center;
        }

    }

    h3 {
        font-size: var(--font-size-lg);
        font-weight: 700;
        margin-bottom: 0;
    }
}

span.asterisk {
    color: var(--custom-red);
}

.custom-fields-input {
    background-color: var(--custom-background) !important;
}

.modal-required {
    font-size: var(--font-size-sm)
}
/*@media (max-width: 992px) {*/
/*    .modal-content {*/
/*        max-width: 40rem;*/
/*    }*/
/*}*/

@media (max-width: 768px) {

    .modal-content {
        max-width: 35rem;

        .modal-head {
            .modal-single-event-title {
                font-size: var(--font-size-xl);
            }
        }
    }

    .single_add_to_cart_button {
        margin-top: 1rem;
    }

}

@media (max-width: 575px) {
    .modal-content {
        width: 100%;

        .location {
            line-height: 1.5rem;
        }
        .modal-event-add-to-cart {
            flex-direction: column;
        }


        .single_add_to_cart_button {
            margin-top: 1rem;
        }

    }
}

