/* Event info modal */
.csd-event-info-source {
    display: none;
}

.csd-event-info-modal {
    --csd-modal-gap-y: clamp(1.1rem, 3.5vh, 1.75rem);
    --csd-modal-gap-x: clamp(0.75rem, 3vw, 1.35rem);
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    flex-direction: column;
    align-items: center;
    padding:
        max(var(--csd-modal-gap-y), env(safe-area-inset-top, 0px))
        max(var(--csd-modal-gap-x), env(safe-area-inset-right, 0px))
        max(var(--csd-modal-gap-y), env(safe-area-inset-bottom, 0px))
        max(var(--csd-modal-gap-x), env(safe-area-inset-left, 0px));
    overflow: hidden;
    box-sizing: border-box;
}

.csd-event-info-modal.is-open {
    display: flex;
    justify-content: center;
}

.csd-event-info-modal-open {
    overflow: hidden;
}

.csd-event-info-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.csd-event-info-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-width: 720px;
    flex: 1 1 0;
    min-height: 0;
    max-height: calc(100dvh - 2 * var(--csd-modal-gap-y));
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
}

.csd-event-info-modal__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.csd-event-info-modal__body .csd-event-info-source__hero {
    position: relative;
    flex: 0 0 auto;
    height: clamp(200px, 36vh, 320px);
    min-height: 180px;
    overflow: hidden;
    background: #e8eef0;
}

.csd-event-info-modal__body .csd-event-info-source__hero-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.csd-event-info-modal__body .csd-event-info-source__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.csd-event-info-modal__body .csd-event-info-source__back,
.csd-event-info-source__back {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.csd-event-info-modal__body .csd-event-info-source__panel {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: -2rem;
    padding: 0 1.15rem 0.75rem;
}

.csd-event-info-modal__body .csd-event-info-source__head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    padding: 1rem 1rem 0.85rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.csd-event-info-modal__body .csd-event-info-source__calendar {
    flex-shrink: 0;
    width: 76px;
    text-align: center;
    border: 0;
    padding: 0.55rem 0.4rem 0.5rem;
    background: #ececec;
    color: #7A9CA5;
    line-height: 1.05;
}

.csd-event-info-modal__body .csd-event-info-source__calendar-weekday {
    display: block;
    text-transform: uppercase;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
    color: #9ab0b6;
    font-weight: 500;
}

.csd-event-info-modal__body .csd-event-info-source__calendar-day {
    display: block;
    font-size: 2.15rem;
    font-weight: 700;
    color: #111;
    line-height: 1;
    margin: 3px 0;
}

.csd-event-info-modal__body .csd-event-info-source__calendar-month {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #7A9CA5;
}

.csd-event-info-modal__body .csd-event-info-source__head-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.csd-event-info-modal__body .csd-event-info-source__title {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #1a1a1a;
    font-weight: 700;
}

.csd-event-info-modal__body .csd-event-info-source__tagline {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    color: #999;
    font-weight: 400;
    line-height: 1.4;
}

.csd-event-info-modal__body .csd-event-info-source__when {
    margin: 0 0 0.2rem;
    font-size: 1.08rem;
    line-height: 1.45;
    color: #111;
    font-weight: 700;
}

.csd-event-info-modal__body .csd-event-info-source__where {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0 0 0.2rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #444;
}

.csd-event-info-modal__body .csd-event-info-source__where i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #7A9CA5;
}

.csd-event-info-modal__body .csd-event-info-source__address {
    margin: 0.1rem 0 0.4rem;
    padding-left: calc(1em + 0.35rem);
    font-size: 0.88rem;
    line-height: 1.45;
    color: #555;
}

.csd-event-info-modal__body .csd-event-info-source__promo {
    margin: 0.45rem 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: #7C4A1A;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
}

.csd-event-info-modal__body .csd-event-info-source__note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
    padding: 0;
    background: transparent;
    color: #444;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
}

.csd-event-info-modal__body .csd-event-info-source__info-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 0.08rem;
    object-fit: contain;
    display: block;
}

.csd-event-info-modal__body .csd-event-info-source__description-part ol,
.csd-event-info-modal__body .csd-event-info-source__description-part ul,
.csd-event-info-modal__body .csd-event-info-source__note ol,
.csd-event-info-modal__body .csd-event-info-source__note ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.csd-event-info-modal__body .csd-event-info-source__description-part li,
.csd-event-info-modal__body .csd-event-info-source__note li {
    margin: 0 0 0.85rem;
    padding: 0;
}

.csd-event-info-modal__body .csd-event-info-source__description-part li:last-child {
    margin-bottom: 0;
}

.csd-event-info-modal__body .csd-event-info-source__description {
    display: block;
    margin-top: 3.5rem;
    padding-top: 0.35rem;
    text-align: left;
}

.csd-event-info-modal__body .csd-event-info-source__description-body {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #555;
}

.csd-event-info-modal__body .csd-event-info-source__description-part {
    margin-bottom: 0.85rem;
}

.csd-event-info-modal__body .csd-event-info-source__description-part:last-child {
    margin-bottom: 0;
}

.csd-event-info-modal__body .csd-event-info-source__description p {
    margin: 0 0 0.85rem;
}

.csd-event-info-modal__body .csd-event-info-source__description p:last-child {
    margin-bottom: 0;
}

.csd-event-info-source__footer,
.csd-event-info-modal__body .csd-event-info-source__footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 0.85rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
    background: #fff;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.07);
}

.csd-event-info-source__footer .csd-event-info-source__book,
.csd-event-info-modal__body .csd-event-info-source__book {
    width: auto;
    max-width: none;
    min-width: 10.5rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    padding: 0.72rem 2.25rem !important;
    text-decoration: none;
    font-size: 1.05rem !important;
}

.csd-promo-code,
.csd-event-info-modal__body .csd-promo-code {
    color: inherit;
    font-weight: 700;
}

@media screen and (max-width: 639px) {
    .csd-event-info-modal {
        --csd-modal-gap-y: clamp(0.65rem, 2vh, 1rem);
        --csd-modal-gap-x: clamp(0.45rem, 2vw, 0.75rem);
    }

    .csd-event-info-modal__dialog {
        width: 100%;
        max-width: 100%;
    }

    .csd-event-info-modal__body .csd-event-info-source__hero {
        height: clamp(140px, 26vh, 200px);
        min-height: 130px;
    }

    .csd-event-info-modal__body .csd-event-info-source__panel {
        padding: 0 0.85rem 0.65rem;
    }

    .csd-event-info-modal__body .csd-event-info-source__head {
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .csd-event-info-modal__body .csd-event-info-source__calendar {
        width: 64px;
    }

    .csd-event-info-modal__body .csd-event-info-source__calendar-day {
        font-size: 1.75rem;
    }

    .csd-event-info-modal__body .csd-event-info-source__description {
        margin-top: 3rem;
    }

    .csd-event-info-modal__body .csd-event-info-source__title {
        font-size: 1.08rem;
    }

    .csd-event-info-modal__body .csd-event-info-source__when {
        font-size: 1rem;
    }

    .csd-event-info-source__footer,
    .csd-event-info-modal__body .csd-event-info-source__footer {
        padding: 0.75rem 0.85rem calc(0.95rem + env(safe-area-inset-bottom, 0px));
    }

    .csd-event-info-source__footer .csd-event-info-source__book,
    .csd-event-info-modal__body .csd-event-info-source__book {
        width: auto;
        max-width: none;
        min-width: 9.5rem;
        padding: 0.68rem 1.85rem !important;
        font-size: 1rem !important;
    }
}
