/* Hide legacy Liquid button chrome after JS enhancement. */
.icesco-waitlist-button-wrap--enhanced .elementor-widget-ld_button > .elementor-widget-container > a.elementor-button {
    display: none !important;
}

.elementor-widget-ld_button .icesco-waitlist-button-wrap {
    width: auto;
}

/* Header-matched style: colors / motion only — size comes from waitlist-button.css. */
.icesco-waitlist-button-wrap.icesco-waitlist-button-wrap--header-style {
    justify-content: flex-start;
    width: auto;
}

.icesco-waitlist-button-wrap.icesco-waitlist-button-wrap--header-style .icesco-waitlist-button {
    background-color: var(--e-global-color-1cc35c3, #000000);
    border: 0;
    border-radius: 100px;
    --icesco-waitlist-hover-bg: #171717;
    --icesco-waitlist-hover-translate-y: -1px;
    --icesco-waitlist-duration: 0.6s;
    --icesco-waitlist-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --icesco-waitlist-icon-shift-x: 0px;
    --icesco-waitlist-icon-shift-y: 0px;
    --icesco-waitlist-icon-scale: 0.9;
    --icesco-waitlist-icon-slide-distance: 40px;
    --icesco-waitlist-icon-slide-angle: 135deg;
    --icesco-waitlist-icon-slide-angle-negative: calc(135deg * -1);
    --icesco-waitlist-icon-rotate-normal: -45deg;
    --icesco-waitlist-icon-rotate-hover: -45deg;
}

.icesco-waitlist-button-wrap.icesco-waitlist-button-wrap--header-style .icesco-waitlist-button__label {
    color: var(--e-global-color-8d06097, #f7f7fc);
    font-family: "BwGradual", sans-serif;
    font-weight: 600;
}

.icesco-waitlist-button-wrap.icesco-waitlist-button-wrap--header-style .icesco-waitlist-button__bubble {
    background-color: var(--e-global-color-8d06097, #f7f7fc);
    border-radius: 999px;
}

.icesco-waitlist-button-wrap.icesco-waitlist-button-wrap--header-style .icesco-waitlist-button__icon,
.icesco-waitlist-button-wrap.icesco-waitlist-button-wrap--header-style .icesco-waitlist-button__icon svg,
.icesco-waitlist-button-wrap.icesco-waitlist-button-wrap--header-style .icesco-waitlist-button__icon svg path {
    color: var(--e-global-color-1cc35c3, #000000);
    fill: var(--e-global-color-1cc35c3, #000000);
    stroke: var(--e-global-color-1cc35c3, #000000);
}

/* BitForms submit → waitlist CTA structure, teal fill (Previous Events Read more). */
[id^="bitforms_"] .icesco-waitlist-button-wrap,
[id^="bitforms_"] .icesco-waitlist-button-wrap--header-style {
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
}

[id^="bitforms_"] .icesco-waitlist-button-wrap button.icesco-waitlist-button[type="submit"],
[id^="bitforms_"] button.icesco-waitlist-button[type="submit"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #00968b !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 100px !important;
    box-shadow: none !important;
    color: #f7f7fc !important;
    cursor: pointer;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: var(--icesco-btn-gap, 10px) !important;
    font: inherit;
    height: auto !important;
    min-height: var(--icesco-btn-height, 42px) !important;
    max-height: none !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4px var(--icesco-btn-pad-end, 4px) 4px var(--icesco-btn-pad-inline-start, 16px) !important;
    line-height: 1.25 !important;
    --icesco-waitlist-hover-bg: #5646A5;
    --icesco-waitlist-hover-translate-y: -1px;
    --icesco-waitlist-duration: 0.6s;
    --icesco-waitlist-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --icesco-waitlist-icon-shift-x: 0px;
    --icesco-waitlist-icon-shift-y: 0px;
    --icesco-waitlist-icon-scale: 1;
    --icesco-waitlist-icon-slide-distance: 40px;
    --icesco-waitlist-icon-slide-angle: 135deg;
    --icesco-waitlist-icon-slide-angle-negative: calc(135deg * -1);
    --icesco-waitlist-icon-rotate-normal: -45deg;
    --icesco-waitlist-icon-rotate-hover: -45deg;
    --icesco-waitlist-bubble-hover-bg: #f7f7fc;
    --icesco-waitlist-icon-hover-color: #00968b;
}

[id^="bitforms_"] .icesco-waitlist-button-wrap .icesco-waitlist-button__label,
.bit-form [id^="bitforms_"] .icesco-waitlist-button__label.d-none {
    color: #f7f7fc !important;
    display: block !important;
    flex: 1 1 auto !important;
    font-family: "BwGradual", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: start !important;
    width: auto !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    visibility: visible !important;
}

/* Bit Form loading spinner (first span) — keep it inside the teal pill. */
[id^="bitforms_"] .icesco-waitlist-button .bf-spinner {
    border-right-color: transparent !important;
    border-top-color: #f7f7fc !important;
    box-sizing: border-box;
    flex: 0 0 auto;
    height: 14px !important;
    margin: 0 8px 0 0 !important;
    width: 14px !important;
}

[id^="bitforms_"] .icesco-waitlist-button[disabled],
[id^="bitforms_"] .icesco-waitlist-button.disabled {
    cursor: wait;
    opacity: 0.9;
}

[id^="bitforms_"] .icesco-waitlist-button-wrap .icesco-waitlist-button__bubble {
    background-color: #f7f7fc !important;
    border-radius: 999px !important;
    flex: 0 0 auto !important;
    height: var(--icesco-btn-bubble, 34px) !important;
    width: var(--icesco-btn-bubble, 34px) !important;
    min-width: var(--icesco-btn-bubble, 34px) !important;
    margin: 0 !important;
    margin-inline-start: auto !important;
}

[id^="bitforms_"] .icesco-waitlist-button-wrap .icesco-waitlist-button__icon,
[id^="bitforms_"] .icesco-waitlist-button-wrap .icesco-waitlist-button__icon i,
[id^="bitforms_"] .icesco-waitlist-button-wrap .icesco-waitlist-button__icon svg,
[id^="bitforms_"] .icesco-waitlist-button-wrap .icesco-waitlist-button__icon svg path {
    color: #000000 !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

/* Legacy teal read-more class kept for any cached markup. */
.icesco-waitlist-button-wrap.icesco-waitlist-button-wrap--read-more-style {
    justify-content: flex-start;
    width: auto;
}

[id^="bitforms_"] .btcd-fld-itm:has(> .icesco-waitlist-button-wrap),
[id^="bitforms_"] .btcd-fld-itm:has(> button.icesco-waitlist-button[type="submit"]),
[id^="bitforms_"] .bf-button-field,
[id^="bitforms_"] .bf-input-field-wrapper:has(.icesco-waitlist-button-wrap) {
    display: flex !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

/* BitForms leftover success/error chrome: the native submit is replaced with
   the waitlist CTA, but an empty msg-content box still occupies a row. */
[id^="bitforms_"] [class*="msg-container"].deactive,
[id^="bitforms_"] [class*="msg-container"]:not(.active),
[id^="bitforms_"] .bf-msg-content:empty,
[id^="bitforms_"] [class*="msg-content"]:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Pagination and utility controls should stay native. */
.icesco-event-grid__pagination .icesco-waitlist-button,
.icesco-content-grid__pagination .icesco-waitlist-button,
.menu-toggle .icesco-waitlist-button,
.lqd-lity-close-btn-wrap .icesco-waitlist-button {
    all: revert;
}

/* Floating "Partner With US" FAB: already hidden on mobile; also hide on tablet
   so it does not cover venue/event content. */
@media (max-width: 1024px) {
    .elementor-element-04646c4,
    .elementor-1118 .elementor-element.elementor-element-04646c4 {
        display: none !important;
    }
}
