/* Event Studio effect picker + contained preview effects. Kept separate so create_event.html does not become a small nation-state. */
.evcs-page {
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.evcs-page::before,
.evcs-page::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(24px);
    opacity: .52;
    mix-blend-mode: multiply;
}

.evcs-page::before {
    width: min(520px, 44vw);
    height: min(520px, 44vw);
    left: -8vw;
    top: 14vh;
    background: radial-gradient(circle, rgba(226,52,138,.22), rgba(226,52,138,.08) 44%, transparent 72%);
    animation: evcsOrbDriftA 13s ease-in-out infinite;
}

.evcs-page::after {
    width: min(460px, 40vw);
    height: min(460px, 40vw);
    right: -9vw;
    bottom: 8vh;
    background: radial-gradient(circle, rgba(139,92,246,.18), rgba(240,197,165,.14) 45%, transparent 74%);
    animation: evcsOrbDriftB 16s ease-in-out infinite;
}

.evcs-shell,
.evcs-mobile-head,
.evcs-mobile-preview,
.evcs-desktop-preview {
    position: relative;
    z-index: 1;
}

@keyframes evcsOrbDriftA {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(9vw,7vh,0) scale(1.08); }
}

@keyframes evcsOrbDriftB {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(-8vw,-6vh,0) scale(1.1); }
}

.evcs-effect-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(229,218,198,.92);
    border-radius: 18px;
    background: rgba(255,255,255,.66);
}

.evcs-effect-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.evcs-effect-panel-head strong,
.evcs-effect-panel-head small {
    display: block;
    font-family: var(--sans, "Manrope", sans-serif);
}

.evcs-effect-panel-head strong {
    color: var(--evcs-ink, #1E1812);
    font-size: 13px;
    font-weight: 900;
}

.evcs-effect-panel-head small {
    margin-top: 4px;
    color: var(--evcs-muted, #8A7B6A);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.45;
}

.evcs-effect-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 8px 11px;
    border: 1px solid var(--evcs-line, #E5DAC6);
    border-radius: 999px;
    background: #fff;
    color: var(--evcs-rose-deep, #B91E6B);
    cursor: pointer;
    font: 900 10px/1 var(--sans, "Manrope", sans-serif);
}

.evcs-effect-clear:hover,
.evcs-effect-clear.is-active {
    border-color: rgba(226,52,138,.35);
    background: #FFF3F8;
}

.evcs-effect-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 12px;
}

.evcs-effect-cats button {
    padding: 7px 10px;
    border: 1px solid var(--evcs-line, #E5DAC6);
    border-radius: 999px;
    background: #fff;
    color: var(--evcs-muted, #8A7B6A);
    cursor: pointer;
    font: 900 10px/1 var(--sans, "Manrope", sans-serif);
}

.evcs-effect-cats button.is-active {
    border-color: rgba(226,52,138,.34);
    background: #FFF2F8;
    color: var(--evcs-rose-deep, #B91E6B);
}

.evcs-effect-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 12px;
    max-height: 340px;
    overflow-y: auto;
    padding: 2px 4px 8px 2px;
}

.evcs-effect-swatch {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 68px;
    border: 1px solid rgba(30,24,18,.08);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(111,53,255,.18), rgba(255,62,165,.14));
    box-shadow: 0 16px 34px -28px rgba(30,24,18,.48);
    cursor: pointer;
    color: rgba(30,24,18,.68);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.evcs-effect-swatch:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px -30px rgba(30,24,18,.54);
}

.evcs-effect-swatch.is-selected {
    border-color: rgba(226,52,138,.68);
    box-shadow: 0 0 0 3px rgba(226,52,138,.10), 0 22px 42px -30px rgba(226,52,138,.58);
}

.evcs-effect-swatch i {
    position: relative;
    z-index: 1;
    font-size: 21px;
}

.evcs-effect-swatch span {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 7px;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(30,24,18,.72);
    font: 900 8px/1.15 var(--sans, "Manrope", sans-serif);
}

.evcs-effect-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    contain: strict;
}

.evcs-invite-topline,
.evcs-invite-host,
.evcs-invite-main,
.evcs-preview-detail-list,
.evcs-preview-collection,
.evcs-invite-features,
.evcs-invite-rsvp,
.evcs-invite-brand {
    position: relative;
    z-index: 2;
}

.evcs-guest-message-stage {
    z-index: 6;
}

.evcs-invite-glow {
    z-index: 0;
}

.evcs-effect-layer canvas,
.evcs-effect-layer .p5Canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.evcs-fx-dot {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: var(--s, 8px);
    height: var(--s, 8px);
    border-radius: 999px;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    animation: evcsFxFloat var(--d, 8s) ease-in-out var(--delay, 0s) infinite;
    background: var(--c, rgba(255,255,255,.82));
    box-shadow: 0 0 calc(var(--s, 8px) * 1.5) var(--c, rgba(255,255,255,.78));
}

.evcs-fx-snow {
    border-radius: 50%;
    animation-name: evcsFxSnow;
    animation-timing-function: linear;
}

.evcs-fx-bubble {
    border: 1px solid rgba(255,255,255,.58);
    background: rgba(255,255,255,.14);
    box-shadow: inset 0 0 18px rgba(255,255,255,.18), 0 8px 26px rgba(0,0,0,.08);
    animation-name: evcsFxBubble;
    animation-timing-function: ease-in;
}

.evcs-fx-bokeh {
    filter: blur(2px);
    animation-name: evcsFxBokeh;
}

.evcs-fx-anime-dot,
.evcs-fx-helix-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 0 16px rgba(255,255,255,.55);
}

@keyframes evcsFxFloat {
    0%, 100% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.72); }
    18%, 74% { opacity: .9; }
    50% { transform: translate3d(calc(-50% + var(--dx, 24px)), calc(-50% + var(--dy, -28px)), 0) scale(1.08); }
}

@keyframes evcsFxSnow {
    0% { opacity: 0; transform: translate3d(-50%, -30px, 0) rotate(0deg); }
    12%, 82% { opacity: .85; }
    100% { opacity: 0; transform: translate3d(calc(-50% + var(--dx, 30px)), calc(100vh + 60px), 0) rotate(240deg); }
}

@keyframes evcsFxBubble {
    0% { opacity: 0; transform: translate3d(-50%, calc(100% + 50px), 0) scale(.62); }
    16%, 76% { opacity: .72; }
    100% { opacity: 0; transform: translate3d(calc(-50% + var(--dx, 36px)), -80px, 0) scale(1.08); }
}

@keyframes evcsFxBokeh {
    0%, 100% { opacity: .18; transform: translate3d(-50%, -50%, 0) scale(.78); }
    50% { opacity: .36; transform: translate3d(calc(-50% + var(--dx, 40px)), calc(-50% + var(--dy, -30px)), 0) scale(1.08); }
}


.evcs-fx-coverage-dot {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: var(--s, 5px);
    height: var(--s, 5px);
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(.7);
    background: var(--c, rgba(255,255,255,.62));
    box-shadow: 0 0 calc(var(--s, 5px) * 2.4) var(--c, rgba(255,255,255,.55));
    animation: evcsFxCoverage var(--d, 10s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes evcsFxCoverage {
    0%, 100% { opacity: .05; transform: translate3d(-50%, -50%, 0) scale(.65); }
    22%, 78% { opacity: var(--o, .55); }
    50% { transform: translate3d(calc(-50% + var(--dx, 18px)), calc(-50% + var(--dy, -22px)), 0) scale(1.05); }
}

.evcs-desktop-preview-root .evcs-effect-layer {
    min-height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .evcs-page::before,
    .evcs-page::after,
    .evcs-fx-dot,
    .evcs-fx-coverage-dot {
        animation: none !important;
    }
}

@media (max-width: 575.98px) {
    .evcs-effect-panel-head {
        flex-direction: column;
    }
    .evcs-effect-clear {
        width: 100%;
    }
}


/* Eventify host modal — shared by Event Studio previews and public invitations. */
body.evcs-host-modal-open {
    overflow: hidden !important;
}

.evcs-host-modal {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.evcs-host-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.evcs-host-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(20, 13, 18, .62);
    cursor: default;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.evcs-host-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(500px, 100%);
    max-height: min(720px, calc(100svh - 40px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 28px;
    background: #FFFEFB;
    color: #1E1812;
    box-shadow: 0 42px 110px -42px rgba(19, 11, 17, .78);
    transform: translateY(14px) scale(.98);
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
    font-family: var(--evip-sans, var(--sans, "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif));
}

.evcs-host-modal.is-open .evcs-host-modal-dialog {
    transform: translateY(0) scale(1);
}

.evcs-host-modal-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 26px 26px 22px;
    overflow: hidden;
    border-bottom: 1px solid #E5DAC6;
    background:
        radial-gradient(circle at 8% 0%, rgba(226, 52, 138, .18), transparent 42%),
        radial-gradient(circle at 98% 0%, rgba(139, 92, 246, .15), transparent 40%),
        linear-gradient(145deg, #FFF9FC, #FBF8FF 58%, #FFFDF8);
}

.evcs-host-modal-heading {
    min-width: 0;
}

.evcs-host-modal-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: #B91E6B;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.evcs-host-modal-heading > strong {
    display: block;
    color: #1E1812;
    font-family: var(--evip-serif, var(--serif, "Cormorant Garamond", Georgia, serif));
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.035em;
}

.evcs-host-modal-heading > p {
    max-width: 360px;
    margin: 11px 0 0;
    color: #6F6256;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.55;
}

.evcs-host-modal-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(216, 201, 174, .92);
    border-radius: 50%;
    background: rgba(255, 254, 251, .9);
    color: #1E1812;
    box-shadow: 0 16px 34px -24px rgba(30, 24, 18, .5);
    cursor: pointer;
}

.evcs-host-modal-close:hover,
.evcs-host-modal-close:focus-visible {
    border-color: rgba(226, 52, 138, .4);
    color: #B91E6B;
    outline: none;
}

.evcs-host-modal-list {
    display: grid;
    gap: 10px;
    max-height: min(430px, 52svh);
    overflow-y: auto;
    padding: 18px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(185, 30, 107, .32) transparent;
}

.evcs-host-modal-person {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 34px;
    gap: 13px;
    align-items: center;
    min-width: 0;
    padding: 13px;
    border: 1px solid #E5DAC6;
    border-radius: 19px;
    background: linear-gradient(135deg, #FFFFFF, #FFF9FC);
    box-shadow: 0 18px 42px -34px rgba(30, 24, 18, .44);
}

.evcs-host-modal-avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: linear-gradient(135deg, #F7C8DE, #DCCBFF);
    color: #7C2453;
    box-shadow: 0 0 0 1px #E5DAC6, 0 14px 30px -24px rgba(30, 24, 18, .62);
    object-fit: cover;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.evcs-host-modal-person-copy {
    min-width: 0;
}

.evcs-host-modal-person-copy > span,
.evcs-host-modal-person-copy > strong,
.evcs-host-modal-person-copy > small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.evcs-host-modal-person-copy > span {
    margin-bottom: 5px;
    color: #B91E6B;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.evcs-host-modal-person-copy > strong {
    color: #1E1812;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.evcs-host-modal-person-copy > small {
    margin-top: 5px;
    color: #8A7B6A;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.25;
}

.evcs-host-modal-person > i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFF0F7;
    color: #B91E6B;
    font-size: 14px;
}

.evcs-host-modal-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 20px 17px;
    border-top: 1px solid #E5DAC6;
    background: #FBF7F0;
    color: #8A7B6A;
    text-align: center;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.4;
}

.evcs-host-modal-foot i {
    color: #E2348A;
}

@media (max-width: 575.98px) {
    .evcs-host-modal {
        place-items: end center;
        padding: 0;
    }

    .evcs-host-modal-dialog {
        width: 100%;
        max-height: 88svh;
        border-width: 1px 0 0;
        border-radius: 26px 26px 0 0;
        transform: translateY(36px);
    }

    .evcs-host-modal.is-open .evcs-host-modal-dialog {
        transform: translateY(0);
    }

    .evcs-host-modal-head {
        padding: 22px 18px 18px;
    }

    .evcs-host-modal-heading > strong {
        font-size: 36px;
    }

    .evcs-host-modal-heading > p {
        font-size: 11px;
    }

    .evcs-host-modal-close {
        width: 40px;
        height: 40px;
    }

    .evcs-host-modal-list {
        max-height: 54svh;
        padding: 14px;
    }

    .evcs-host-modal-person {
        grid-template-columns: 50px minmax(0, 1fr) 30px;
        gap: 11px;
        padding: 11px;
        border-radius: 17px;
    }

    .evcs-host-modal-avatar {
        width: 50px;
        height: 50px;
    }

    .evcs-host-modal-person-copy > strong {
        font-size: 13px;
    }

    .evcs-host-modal-foot {
        padding-bottom: max(17px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .evcs-host-modal,
    .evcs-host-modal-dialog {
        transition: none !important;
    }
}


/* Eventify invite wishlist preview/products */
.evcs-wishlist-showcase {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    max-width: 520px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 22px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px -42px rgba(0,0,0,.72);
}
.evcs-wishlist-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #fff;
}
.evcs-wishlist-head span {
    font: 900 9px/1 var(--evip-sans, var(--sans, "Manrope", sans-serif));
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .82;
}
.evcs-wishlist-head strong {
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 900 11px/1 var(--evip-sans, var(--sans, "Manrope", sans-serif));
}
.evcs-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.evcs-wishlist-card {
    position: relative;
    display: block;
    min-width: 0;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    background: rgba(255,255,255,.11);
    color: #fff !important;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.evcs-wishlist-card:hover {
    color: #fff !important;
    transform: translateY(-2px);
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.38);
}
.evcs-wishlist-card *,
.evcs-wishlist-card:hover * { text-decoration: none !important; }
.evcs-wishlist-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,.16);
    margin-bottom: 7px;
}
.evcs-wishlist-card img,
.evcs-wishlist-img-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    object-fit: cover;
    border-radius: inherit;
    background: rgba(255,255,255,.18);
}
.evcs-wishlist-card img { z-index: 1; }
.evcs-wishlist-img-fallback { z-index: 0; color: rgba(255,255,255,.88); }
.evcs-wishlist-img-fallback i { font-size: 22px; opacity: .82; }
.evcs-wishlist-price {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 7px;
    border-radius: 999px;
    background: rgba(30,24,18,.74);
    color: #fff;
    font: 900 8px/1 var(--evip-sans, var(--sans, "Manrope", sans-serif));
    box-shadow: 0 10px 24px -16px rgba(0,0,0,.7);
}
.evcs-wishlist-title,
.evcs-wishlist-card strong {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.45em;
    max-height: 2.45em;
    color: #fff;
    font: 900 9px/1.22 var(--evip-sans, var(--sans, "Manrope", sans-serif));
    text-shadow: 0 1px 8px rgba(0,0,0,.18);
}
.evcs-desktop-preview-root .evcs-wishlist-showcase {
    grid-area: wishlist;
    width: min(100%, 820px);
    max-width: 820px;
    margin: 0;
    padding: 14px;
    border-radius: 24px;
    justify-self: start;
}
.evcs-desktop-preview-root .evcs-wishlist-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
.evcs-desktop-preview-root .evcs-wishlist-card { padding: 7px; border-radius: 16px; }
.evcs-desktop-preview-root .evcs-wishlist-title,
.evcs-desktop-preview-root .evcs-wishlist-card strong { font-size: 8.5px; }
@media (max-width: 520px) {
    .evcs-wishlist-showcase { padding: 11px; border-radius: 20px; max-width: 100%; }
    .evcs-wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .evcs-wishlist-card { padding: 6px; border-radius: 14px; }
    .evcs-wishlist-media { margin-bottom: 6px; border-radius: 11px; }
    .evcs-wishlist-title,
    .evcs-wishlist-card strong { font-size: 8px; }
}


/* Eventify wishlist preview layout correction: show every selected product in compact rows. */
.evcs-invite-canvas {
    --evcs-canvas-scroll-height: 100%;
}

.evcs-invite-canvas::before,
.evcs-invite-canvas::after,
.evcs-effect-layer,
.evcs-guest-message-stage {
    min-height: var(--evcs-canvas-scroll-height, 100%) !important;
}

.evcs-effect-layer,
.evcs-guest-message-stage {
    bottom: auto !important;
    height: var(--evcs-canvas-scroll-height, 100%) !important;
}

.evcs-preview-sticky .evcs-invite-canvas:has(.evcs-wishlist-showcase:not(.d-none)) {
    height: auto !important;
    min-height: clamp(520px, calc(100vh - 228px), 760px) !important;
}

@media (max-height: 760px) and (min-width: 981px) {
    .evcs-preview-sticky .evcs-invite-canvas:has(.evcs-wishlist-showcase:not(.d-none)) {
        height: auto !important;
        min-height: clamp(490px, calc(100vh - 198px), 690px) !important;
    }
}

.evcs-wishlist-showcase {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.evcs-wishlist-head {
    justify-content: flex-start !important;
    align-items: center !important;
}

.evcs-wishlist-head strong {
    display: none !important;
}

.evcs-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
}

.evcs-wishlist-card {
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.evcs-wishlist-media {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    max-height: none !important;
}

.evcs-wishlist-card > .evcs-wishlist-title,
.evcs-wishlist-card strong.evcs-wishlist-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 2.4em !important;
    max-height: 2.4em !important;
    overflow-wrap: anywhere !important;
}

.evcs-desktop-preview-root .evcs-wishlist-showcase {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
}

.evcs-desktop-preview-root .evcs-wishlist-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

@media (max-width: 520px) {
    .evcs-wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.evcs-invite-canvas::before,
.evcs-invite-canvas::after {
    bottom: auto !important;
    height: var(--evcs-canvas-scroll-height, 100%) !important;
}

/* Keep the live phone preview content inside the black device frame. */
.evcs-preview-sticky .evcs-device-frame {
    overflow: hidden !important;
    align-self: center;
}
.evcs-preview-sticky .evcs-invite-canvas {
    max-height: clamp(520px, calc(100vh - 228px), 760px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}
.evcs-preview-sticky .evcs-invite-canvas:has(.evcs-wishlist-showcase:not(.d-none)) {
    min-height: clamp(520px, calc(100vh - 228px), 760px) !important;
}

/* ============================================================
   Event Studio live-phone containment correction.
   Only affects the right-side create/edit live preview frame.
   Keeps product cards, RSVP, gifting, co-host and save logic untouched.
   ============================================================ */
.evcs-preview-sticky .evcs-device-frame {
    overflow: hidden !important;
}

.evcs-preview-sticky .evcs-invite-canvas {
    height: auto !important;
    min-height: 0 !important;
    max-height: clamp(520px, calc(100vh - 228px), 760px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.evcs-preview-sticky .evcs-invite-canvas:has(.evcs-wishlist-showcase:not(.d-none)) {
    min-height: 0 !important;
    height: auto !important;
}

.evcs-preview-sticky .evcs-invite-canvas::before,
.evcs-preview-sticky .evcs-invite-canvas::after,
.evcs-preview-sticky .evcs-effect-layer,
.evcs-preview-sticky .evcs-effect-layer canvas,
.evcs-preview-sticky .evcs-effect-layer .p5Canvas {
    min-height: var(--evcs-canvas-scroll-height, 100%) !important;
    height: var(--evcs-canvas-scroll-height, 100%) !important;
}

.evcs-preview-sticky .evcs-guest-message-stage {
    min-height: min(var(--evcs-canvas-scroll-height, 100%), 690px) !important;
    height: min(var(--evcs-canvas-scroll-height, 100%), 690px) !important;
    max-height: 690px !important;
    bottom: auto !important;
}

.evcs-preview-sticky .evcs-guest-message {
    bottom: 22px !important;
}
