/*
 * Amelia event-information popup only.
 * The JavaScript adds .amelia-custom-event-popup after confirming that the
 * dialog contains Amelia's event-information component.
 */

.amelia-custom-event-overlay > .el-overlay-dialog,
.amelia-custom-event-overlay .el-overlay-dialog {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
}

.el-dialog.amelia-custom-event-popup {
    --amelia-custom-image-width: 45.625%;
    position: relative !important;
    display: block !important;
    width: min(960px, calc(100vw - 64px)) !important;
    max-width: 960px !important;
    height: auto !important;
    max-height: calc(100dvh - 64px) !important;
    aspect-ratio: 160 / 73 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16) !important;
}

/* Header chrome is removed; only the close button remains. */
.amelia-custom-event-popup > .el-dialog__header {
    position: absolute !important;
    z-index: 30 !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: calc(100% - var(--amelia-custom-image-width)) !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.amelia-custom-event-popup .am-el__header-inner,
.amelia-custom-event-popup > .el-dialog__header > .el-dialog__title {
    display: none !important;
}

.amelia-custom-event-popup > .el-dialog__header .el-dialog__headerbtn {
    display: grid !important;
    place-items: center !important;
    top: 12px !important;
    right: 32px !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #151515 !important;
    box-shadow: none !important;
    pointer-events: auto !important;
}

.amelia-custom-event-popup > .el-dialog__header .el-dialog__close,
.amelia-custom-event-popup > .el-dialog__header .am-icon-close {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 25px !important;
    line-height: 1 !important;
    color: currentColor !important;
}

.amelia-custom-event-popup > .el-dialog__body {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.amelia-custom-event-popup .am-elf,
.amelia-custom-event-popup .am-eli {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.amelia-custom-event-popup .am-elf {
    height: 100% !important;
    min-height: 0 !important;
}

.amelia-custom-event-popup .am-eli {
    display: grid !important;
    grid-template-columns:
        var(--amelia-custom-image-width)
        calc(100% - var(--amelia-custom-image-width)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
}

/* Square, edge-to-edge gallery. */
.amelia-custom-event-popup .am-eli__image.am-gc {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 0 !important;
    background: #f2f2f2 !important;
    touch-action: pan-y;
}

.amelia-custom-event-popup .am-gc__display {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* Minimal carousel arrows, visible only while hovering the image. */
.amelia-custom-event-popup .am-gc__arrows {
    position: absolute !important;
    z-index: 5 !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.amelia-custom-event-popup .am-gc__arrow {
    display: block !important;
    width: 46px !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background-color: rgba(255, 255, 255, 0.76) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 18px 28px !important;
    color: #171717 !important;
    box-shadow: none !important;
    font-size: 0 !important;
    opacity: 0 !important;
    transform: translateY(3px) !important;
    transition: opacity 160ms ease, transform 160ms ease !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto !important;
}

.amelia-custom-event-popup .am-gc__arrow::before {
    content: none !important;
    display: none !important;
}

.amelia-custom-event-popup .am-gc__arrow::after,
.amelia-custom-event-popup .am-gc__arrow > i,
.amelia-custom-event-popup .am-gc__arrow > svg {
    display: none !important;
}

.amelia-custom-event-popup .am-icon-arrow-left {
    position: absolute !important;
    left: 30px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 30'%3E%3Cpath d='M15.5 3.5 5 15l10.5 11.5' fill='none' stroke='%23171717' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.amelia-custom-event-popup .am-icon-arrow-right {
    position: absolute !important;
    right: 30px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 30'%3E%3Cpath d='M4.5 3.5 15 15 4.5 26.5' fill='none' stroke='%23171717' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.amelia-custom-event-popup .am-eli__image:hover .am-gc__arrow,
.amelia-custom-event-popup .am-gc__arrow:focus-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Small, reference-style gallery dots. */
.amelia-custom-event-popup .am-gc__bullets {
    position: absolute !important;
    z-index: 6 !important;
    right: 0 !important;
    bottom: 17px !important;
    left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.amelia-custom-event-popup .am-gc__bullets-item {
    width: 9px !important;
    height: 9px !important;
    min-height: 9px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.62) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

.amelia-custom-event-popup .am-gc__bullets-item.am-active,
.amelia-custom-event-popup .am-gc__bullets-item[aria-current="true"] {
    width: 12px !important;
    height: 12px !important;
    min-height: 12px !important;
    background: #fff !important;
}

.amelia-custom-event-popup
    .am-gc.amelia-custom-gallery-single
    .am-gc__bullets,
.amelia-custom-event-popup
    .am-gc.amelia-custom-gallery-single
    .am-gc__arrows {
    display: none !important;
}

/* Right-side event copy. */
.amelia-custom-event-popup .amelia-custom-popup-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 42px 32px 94px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.amelia-custom-event-popup .amelia-custom-popup-details-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: fit-content !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #287d7b !important;
    font-family: "Comfortaa", sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.amelia-custom-event-popup .amelia-custom-popup-details-link:hover,
.amelia-custom-event-popup .amelia-custom-popup-details-link:focus-visible {
    color: #155f5d !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.amelia-custom-event-popup .amelia-custom-popup-details-link__icon {
    flex: 0 0 16px;
    width: 16px !important;
    height: 16px !important;
    overflow: visible !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.amelia-custom-event-popup
    .amelia-custom-popup-content::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

.amelia-custom-event-popup .am-eli__header {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.amelia-custom-event-popup .am-eli__header .am-ec,
.amelia-custom-event-popup .am-ec__info {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.amelia-custom-event-popup .am-ec__period,
.amelia-custom-event-popup .am-ec__actions {
    display: none !important;
}

.amelia-custom-event-popup .amelia-custom-popup-date {
    margin: 0 0 6px !important;
    color: #222 !important;
    font-family: var(--am-font-family, sans-serif) !important;
    font-size: 18px !important;
    font-weight: 550 !important;
    line-height: 1.35 !important;
}

.amelia-custom-event-popup .am-ec__info-name {
    margin: 0 !important;
    color: #111 !important;
    font-family: "El Messiri", serif !important;
    font-size: 31px !important;
    font-weight: 500 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.015em !important;
}

.amelia-custom-event-popup .am-eli__main {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px 0 0 !important;
    overflow: visible !important;
}

.amelia-custom-event-popup > .el-dialog__body::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

.amelia-custom-event-popup .am-eli__main .el-tabs,
.amelia-custom-event-popup .am-eli__main .el-tabs__content,
.amelia-custom-event-popup .am-eli__main .el-tab-pane {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.amelia-custom-event-popup .am-eli__main .el-tabs__header,
.amelia-custom-event-popup .am-eli__main .el-tab-pane:not(:first-child),
.amelia-custom-event-popup .am-eli__timetable,
.amelia-custom-event-popup .am-eli__description-title {
    display: none !important;
}

.amelia-custom-event-popup .am-eli__description,
.amelia-custom-event-popup .am-eli__main-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.amelia-custom-event-popup .am-eli__description-text,
.amelia-custom-event-popup .am-eli__description-text p,
.amelia-custom-event-popup .am-eli__description-text span {
    margin: 0 !important;
    color: #383838 !important;
    font-family: "Comfortaa", sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}

.amelia-custom-event-popup .am-eli__description-text p + p {
    margin-top: 2px !important;
}

.amelia-custom-event-popup .am-eli__description-text p:empty {
    display: block !important;
    height: 3px !important;
    min-height: 3px !important;
    line-height: 0 !important;
}

.amelia-custom-event-popup .am-eli__description-btn {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #969696 !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
}

/* The real Amelia quantity step remains mounted for state management. */
.amelia-custom-event-popup.amelia-custom-popup-has-quantity
    .am-slide-popup__block {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Footer aligns with the right content column. */
.amelia-custom-event-popup > .el-dialog__footer {
    position: absolute !important;
    z-index: 20 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: calc(100% - var(--amelia-custom-image-width)) !important;
    margin: 0 !important;
    padding: 14px 32px 16px !important;
    border: 0 !important;
    border-top: 1px solid #dedede !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: none !important;
}

.amelia-custom-event-popup > .el-dialog__footer .am-elf__footer {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.amelia-custom-event-popup .amelia-custom-popup-quantity {
    position: relative !important;
    display: block !important;
    flex: 0 0 144px !important;
    width: 144px !important;
    height: 50px !important;
    min-height: 50px !important;
    overflow: hidden !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #202020 !important;
    line-height: 1 !important;
}

.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input-number__decrease,
.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input-number__increase {
    position: absolute !important;
    z-index: 2 !important;
    top: 50% !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #333 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
}

.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input-number__decrease {
    left: 0 !important;
}

.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input-number__increase {
    right: 0 !important;
}

.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input-number__decrease::before {
    content: "−" !important;
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 25px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
}

.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input-number__increase::before {
    content: "+" !important;
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 25px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
}

.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input-number__decrease > *,
.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input-number__increase > * {
    display: none !important;
}

.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input-number__decrease.is-disabled,
.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input-number__increase.is-disabled {
    color: #a8a8a8 !important;
    cursor: default !important;
}

.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input,
.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input__wrapper {
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 48px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.amelia-custom-event-popup
    .amelia-custom-popup-quantity
    .el-input__inner {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #202020 !important;
    text-align: center !important;
    font-size: 19px !important;
    font-weight: 500 !important;
    line-height: 48px !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-text-fill-color: #202020 !important;
    box-shadow: none !important;
    pointer-events: auto !important;
}

.amelia-custom-event-popup .amelia-custom-popup-quantity-value {
    display: none;
}

.amelia-custom-event-popup
    > .el-dialog__footer
    .am-elf__footer
    > .am-button--primary {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

.amelia-custom-event-popup
    > .el-dialog__footer
    .am-button--primary
    .am-button__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    width: 100% !important;
}

.amelia-custom-event-popup .amelia-custom-popup-price {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    white-space: nowrap !important;
    font: inherit !important;
}

@media (max-width: 767px) {
    .amelia-custom-event-overlay > .el-overlay-dialog,
    .amelia-custom-event-overlay .el-overlay-dialog {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 !important;
    }

    .el-dialog.amelia-custom-event-popup {
        --amelia-custom-image-width: 100%;
        position: relative !important;
        display: block !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .amelia-custom-event-popup > .el-dialog__header {
        right: 0 !important;
        width: 100% !important;
        height: 64px !important;
    }

    .amelia-custom-event-popup > .el-dialog__header .el-dialog__headerbtn {
        top: 12px !important;
        right: 20px !important;
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        border: 0 !important;
        border-radius: 11px !important;
        background: rgba(255, 255, 255, 0.82) !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .amelia-custom-event-popup > .el-dialog__body {
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .amelia-custom-event-popup .am-eli {
        display: block !important;
        height: auto !important;
        min-height: 100% !important;
        padding-bottom: 150px !important;
    }

    .amelia-custom-event-popup .am-eli__image.am-gc {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .amelia-custom-event-popup .am-gc__arrows {
        display: none !important;
    }

    .amelia-custom-event-popup .am-gc__bullets {
        bottom: 14px !important;
        gap: 6px !important;
    }

    .amelia-custom-event-popup .am-gc__bullets-item {
        width: 8px !important;
        height: 8px !important;
        min-height: 8px !important;
    }

    .amelia-custom-event-popup .am-gc__bullets-item.am-active,
    .amelia-custom-event-popup
        .am-gc__bullets-item[aria-current="true"] {
        width: 11px !important;
        height: 11px !important;
        min-height: 11px !important;
    }

    .amelia-custom-event-popup .amelia-custom-popup-content {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 14px 20px 20px !important;
        overflow: visible !important;
    }

    .amelia-custom-event-popup .amelia-custom-popup-details-link {
        margin: 8px 0 0 !important;
        font-size: 16px !important;
    }

    .amelia-custom-event-popup .amelia-custom-popup-details-link__icon {
        flex-basis: 15px;
        width: 15px !important;
        height: 15px !important;
    }

    .amelia-custom-event-popup .am-eli__header {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .amelia-custom-event-popup .amelia-custom-popup-date {
        margin-bottom: 5px !important;
        font-size: 17px !important;
        font-weight: 550 !important;
    }

    .amelia-custom-event-popup .am-ec__info-name {
        font-size: 28px !important;
        line-height: 1.14 !important;
    }

    .amelia-custom-event-popup .am-ec__actions-price,
    .amelia-custom-event-popup .am-ec__info-price {
        display: none !important;
    }

    .amelia-custom-event-popup .am-eli__main {
        width: 100% !important;
        margin: 0 !important;
        padding: 12px 0 0 !important;
        overflow: visible !important;
    }

    .amelia-custom-event-popup .am-eli__description-text,
    .amelia-custom-event-popup .am-eli__description-text p,
    .amelia-custom-event-popup .am-eli__description-text span {
        font-size: 17px !important;
        line-height: 1.38 !important;
    }

    .amelia-custom-event-popup .am-eli__description-btn {
        font-size: 16px !important;
    }

    .amelia-custom-event-popup > .el-dialog__footer {
        position: absolute !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 10px 20px 12px !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .amelia-custom-event-popup > .el-dialog__footer .am-elf__footer {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .amelia-custom-event-popup .amelia-custom-popup-quantity {
        grid-row: 1 !important;
        width: 100% !important;
        height: 50px !important;
        min-height: 50px !important;
    }

    .amelia-custom-event-popup
        .amelia-custom-popup-quantity
        .el-input-number__decrease,
    .amelia-custom-event-popup
        .amelia-custom-popup-quantity
        .el-input-number__increase,
    .amelia-custom-event-popup
        .amelia-custom-popup-quantity
        .el-input,
    .amelia-custom-event-popup
        .amelia-custom-popup-quantity
        .el-input__wrapper,
    .amelia-custom-event-popup
        .amelia-custom-popup-quantity
        .el-input__inner {
        height: 48px !important;
        min-height: 48px !important;
    }

    .amelia-custom-event-popup
        > .el-dialog__footer
        .am-elf__footer
        > .am-button--primary {
        grid-row: 2 !important;
        width: 100% !important;
        height: 50px !important;
        min-height: 50px !important;
        font-size: 18px !important;
    }
}

@media (min-width: 768px) {
    .amelia-custom-event-popup
        .amelia-custom-popup-quantity-value {
        position: absolute !important;
        z-index: 4 !important;
        top: 50% !important;
        left: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 999px !important;
        background: #fff !important;
        color: #202020 !important;
        font-family: "Comfortaa", sans-serif !important;
        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
        pointer-events: none !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* Customer form, payment choice, and confirmation dialogs. */
.amelia-custom-booking-step-overlay > .el-overlay-dialog,
.amelia-custom-booking-step-overlay .el-overlay-dialog {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
}

.el-dialog.amelia-custom-booking-step-popup {
    --amelia-step-gutter: 36px;
    position: relative !important;
    width: 650px !important;
    max-width: calc(100vw - 48px) !important;
    height: auto !important;
    max-height: calc(100dvh - 48px) !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: #fff !important;
}

.amelia-custom-booking-step-popup > .el-dialog__header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 66px !important;
    margin: 0 !important;
    padding: 0 var(--amelia-step-gutter) !important;
    border: 0 !important;
    border-bottom: 1px solid #dedede !important;
    background: #fff !important;
    box-shadow: none !important;
}

.amelia-custom-booking-step-popup
    > .el-dialog__header
    .am-el__header-inner {
    display: flex !important;
    align-items: center !important;
    width: calc(100% - 54px) !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.amelia-custom-booking-step-popup
    > .el-dialog__header
    .am-el__header-inner__title {
    color: #202020 !important;
    font-family: "Comfortaa", sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.amelia-custom-booking-step-popup .amelia-custom-back-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #202020 !important;
    box-shadow: none !important;
}

.amelia-custom-booking-step-popup
    .amelia-custom-back-button
    .am-el__header-inner__title {
    display: block !important;
    font-size: 17px !important;
}

.amelia-custom-booking-step-popup
    .amelia-custom-back-button
    .am-icon-arrow-left {
    display: block !important;
    flex: 0 0 auto !important;
    width: 9px !important;
    height: 9px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1.5px solid currentColor !important;
    border-left: 1.5px solid currentColor !important;
    background: none !important;
    transform: rotate(45deg) !important;
}

.amelia-custom-booking-step-popup
    .amelia-custom-back-button
    .am-icon-arrow-left::before,
.amelia-custom-booking-step-popup
    .amelia-custom-back-button
    .am-icon-arrow-left::after {
    content: none !important;
    display: none !important;
}

.amelia-custom-booking-step-popup
    > .el-dialog__header
    .el-dialog__headerbtn {
    display: grid !important;
    place-items: center !important;
    top: 12px !important;
    right: var(--amelia-step-gutter) !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #151515 !important;
    box-shadow: none !important;
}

.amelia-custom-booking-step-popup
    > .el-dialog__header
    .el-dialog__close,
.amelia-custom-booking-step-popup
    > .el-dialog__header
    .am-icon-close {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    color: currentColor !important;
    font-size: 25px !important;
    line-height: 1 !important;
}

.amelia-custom-booking-step-popup > .el-dialog__body {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 28px var(--amelia-step-gutter) 32px !important;
    box-shadow: none !important;
}

.amelia-custom-booking-step-popup > .el-dialog__body .am-elf,
.amelia-custom-booking-step-popup
    > .el-dialog__body
    .am-dialog-el__main-container,
.amelia-custom-booking-step-popup .am-payments,
.amelia-custom-booking-step-popup .am-elf__main-content {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.amelia-custom-booking-step-popup > .el-dialog__footer {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px var(--amelia-step-gutter) !important;
    border: 0 !important;
    border-top: 1px solid #dedede !important;
    background: #fff !important;
    box-shadow: none !important;
}

.amelia-custom-booking-step-popup
    > .el-dialog__footer
    .am-elf__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.amelia-custom-form-popup
    > .el-dialog__footer
    .am-elf__footer
    > .am-button--primary,
.amelia-custom-payment-popup
    > .el-dialog__footer
    .am-elf__footer
    > .am-button--primary {
    width: auto !important;
    min-width: 220px !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

/* One clean input border, including while typing. */
.amelia-custom-form-popup .am-input-wrapper,
.amelia-custom-payment-popup .am-input-wrapper {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.amelia-custom-form-popup .el-input__wrapper,
.amelia-custom-payment-popup .el-input__wrapper {
    border: 1px solid #dedede !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.amelia-custom-form-popup .el-input__wrapper:hover,
.amelia-custom-form-popup .el-input__wrapper.is-focus,
.amelia-custom-form-popup .el-input.is-focus .el-input__wrapper,
.amelia-custom-form-popup .am-input-wrapper:focus-within,
.amelia-custom-payment-popup .el-input__wrapper:hover,
.amelia-custom-payment-popup .el-input__wrapper.is-focus,
.amelia-custom-payment-popup .el-input.is-focus .el-input__wrapper,
.amelia-custom-payment-popup .am-input-wrapper:focus-within {
    outline: 0 !important;
    box-shadow: none !important;
}

.amelia-custom-form-popup .el-input__wrapper:focus-within,
.amelia-custom-payment-popup .el-input__wrapper:focus-within {
    border-color: var(--am-c-primary, #226b6b) !important;
}

.amelia-custom-form-popup .el-input__inner,
.amelia-custom-payment-popup .el-input__inner {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Newsletter checkbox alignment. */
.amelia-custom-form-popup .am-subscribe .el-form-item__content,
.amelia-custom-form-popup .am-subscribe .am-checkbox-wrapper,
.amelia-custom-form-popup .am-subscribe .el-checkbox {
    display: flex !important;
    align-items: center !important;
}

.amelia-custom-form-popup .am-subscribe .el-checkbox {
    gap: 10px !important;
    width: auto !important;
    min-height: 24px !important;
    margin: 0 !important;
}

.amelia-custom-form-popup .am-subscribe .el-checkbox__input {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    height: 22px !important;
}

.amelia-custom-form-popup .am-subscribe .el-checkbox__inner {
    width: 22px !important;
    height: 22px !important;
    border-radius: 5px !important;
}

.amelia-custom-form-popup .am-subscribe .el-checkbox__label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

/* Payment choices: text first, decorative icons removed. */
.amelia-custom-payment-popup .am-payments__method-button > img,
.amelia-custom-payment-popup .am-payments__method-button img,
.amelia-custom-payment-popup .am-fs__coupon .el-input__prefix,
.amelia-custom-payment-popup .am-fs__coupon .am-icon-coupon {
    display: none !important;
}

.amelia-custom-payment-popup
    .am-fs__coupon
    .el-input--prefix
    .el-input__wrapper {
    padding-left: 12px !important;
}

.amelia-custom-payment-popup .am-payments__method-cards {
    margin-bottom: 12px !important;
}

.amelia-custom-payment-popup .am-payments__method-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 68px !important;
    padding: 18px 16px 22px !important;
}

.amelia-custom-payment-popup .am-payments__method-button > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.amelia-custom-payment-popup .am-payments__method-button p {
    margin: 0 !important;
    text-align: center !important;
}

.amelia-custom-payment-popup .am-payments__sentence {
    margin-top: 4px !important;
}

.amelia-custom-payment-popup .am-fs__coupon .am-button--primary {
    border: 1px solid var(--am-c-primary, #226b6b) !important;
    background: transparent !important;
    color: var(--am-c-primary, #226b6b) !important;
    box-shadow: none !important;
}

/* The secondary confirmation action stays visibly secondary. */
.amelia-custom-thank-you-popup
    > .el-dialog__footer
    .am-congrats
    > .am-button--secondary {
    border: 1px solid var(--am-c-primary, #226b6b) !important;
    background: transparent !important;
    color: var(--am-c-primary, #226b6b) !important;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    .amelia-custom-booking-step-overlay > .el-overlay-dialog,
    .amelia-custom-booking-step-overlay .el-overlay-dialog {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 !important;
    }

    .el-dialog.amelia-custom-booking-step-popup {
        --amelia-step-gutter: 20px;
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .amelia-custom-booking-step-popup > .el-dialog__header {
        flex: 0 0 66px !important;
        min-height: 66px !important;
    }

    .amelia-custom-booking-step-popup
        > .el-dialog__header
        .el-dialog__headerbtn {
        top: 11px !important;
        right: var(--amelia-step-gutter) !important;
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        border: 0 !important;
        border-radius: 11px !important;
        background: rgba(255, 255, 255, 0.82) !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .amelia-custom-booking-step-popup > .el-dialog__body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .amelia-custom-booking-step-popup
        > .el-dialog__body::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
    }

    .amelia-custom-booking-step-popup > .el-dialog__footer {
        flex: 0 0 auto !important;
        padding-top: 12px !important;
        padding-bottom: 14px !important;
    }

    .amelia-custom-form-popup
        > .el-dialog__footer
        .am-elf__footer
        > .am-button--primary,
    .amelia-custom-payment-popup
        > .el-dialog__footer
        .am-elf__footer
        > .am-button--primary {
        width: 100% !important;
        min-width: 0 !important;
        height: 50px !important;
        min-height: 50px !important;
        font-size: 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amelia-custom-event-popup .am-gc__arrow {
        transition: none !important;
    }
}
