/* All snow can be disabled by setting --cz-ny-snow-image to none. */
:root { --cz-ny-snow-image: url('../image/new-year/snow-soft.webp'); }
.cz-ny-home .hero-buttons > .hero-button,
.cz-ny-home .header-new__cta:not(.header-new__login),
.cz-ny-home #pricing .pricing-card-container { position:relative; overflow:visible; }
.cz-ny-home .hero-buttons > .hero-button::after,
.cz-ny-home .header-new__cta:not(.header-new__login)::after,
.cz-ny-home #pricing .pricing-card-container::before {
    content:''; position:absolute; left:var(--cz-snow-inset,12px); right:var(--cz-snow-inset,12px);
    top:var(--cz-snow-top,-31px); height:var(--cz-snow-height,56px);
    background:var(--cz-ny-snow-image) center / 100% 100% no-repeat;
    pointer-events:none; z-index:2;
}
.cz-ny-home .hero-button--trial::after { transform:scaleX(-1); }
.cz-ny-home .header-new__cta:not(.header-new__login) { --cz-snow-top:-16px; --cz-snow-height:30px; --cz-snow-inset:10px; }
.cz-ny-home #pricing .pricing-card-container { --cz-snow-top:-34px; --cz-snow-height:62px; --cz-snow-inset:10px; }
.cz-ny-home #pricing .pricing-card-container:nth-child(even)::before { transform:scaleX(-1); }
#service, #pricing { scroll-margin-top:108px; }

.cz-ny-wish, .cz-ny-wish *, #cz-ny-wish-dialog, #cz-ny-wish-dialog * { box-sizing: border-box; }
.cz-ny-wish {
    --cz-ny-ink: #10284f;
    --cz-ny-orange: #082e74;
    position: fixed;
    z-index: 1002;
    width: clamp(148px, calc(20.5vw + 25px), 230px);
    height: clamp(158px, calc(21vw + 32px), 242px);
    color: var(--cz-ny-ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
    isolation: isolate;
}
.cz-ny-wish.is-visible { opacity: 1; visibility: visible; transition-delay:0s; }
.cz-ny-wish[hidden] { display: none; }
.cz-ny-wish button { font-family: inherit; }
.cz-ny-wish__open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.cz-ny-wish__scale {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: 50% 58%;
    transition: transform .25s ease;
}
.cz-ny-wish__float {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    animation: cz-ny-float 4.2s ease-in-out infinite;
    animation-delay: var(--cz-ny-sway-delay, 0s);
    transform-origin: 59% 12%;
    transform: rotate(-12deg);
    pointer-events: none;
}
.cz-ny-wish__image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.cz-ny-wish__open:is(:hover, :focus-visible) .cz-ny-wish__float { animation-play-state: paused; }
.cz-ny-wish__open:is(:hover, :focus-visible) .cz-ny-wish__scale { transform: scale(1.1); }
.cz-ny-wish__open:focus-visible { outline: 2px solid #2857a5; outline-offset: 5px; border-radius: 50%; }
.cz-ny-wish__dismiss {
    position: absolute;
    top: 3px;
    right: -2px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d9e3f1;
    border-radius: 50%;
    background: #ffffffed;
    color: #526781;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
}
.cz-ny-wish:is(:hover, :focus-within) .cz-ny-wish__dismiss { opacity: 1; }
.cz-ny-wish__dismiss svg { width: 12px; height: 12px; }
/* A gift tag with softly cut upper corners. */
#cz-ny-wish-dialog {
    position:fixed; inset:0; width:min(620px, calc(100vw - 40px)); max-width:none;
    max-height:calc(100dvh - 48px); margin:auto; padding:0; border:0;
    background:transparent; color:#10284f; overflow:hidden;
    font-family:'Inter Tight','Inter',sans-serif;
    filter:drop-shadow(0 22px 35px #0c2b5938); overscroll-behavior:contain;
}
#cz-ny-wish-dialog::backdrop { background:#0b1d3959; backdrop-filter:blur(7px); }
#cz-ny-wish-dialog[open] { animation:cz-ny-dialog-in .32s ease backwards; }
.cz-ny-dialog__layout {
    display:flex; flex-direction:column; align-items:center; gap:0;
    max-height:inherit; overflow:auto; overscroll-behavior:contain; scroll-padding-block:32px;
    padding:42px 44px 28px;
    background:linear-gradient(180deg,#edf5ff 0%,#f8fbff 30%,#fff 58%);
    -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20620%20780%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22white%22%20fill-rule%3D%22evenodd%22%20d%3D%22M48%200H572L620%2048V756Q620%20780%20596%20780H24Q0%20780%200%20756V48Z%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
    mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20620%20780%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22white%22%20fill-rule%3D%22evenodd%22%20d%3D%22M48%200H572L620%2048V756Q620%20780%20596%20780H24Q0%20780%200%20756V48Z%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
}
.cz-ny-dialog__close {
    position:absolute; top:34px; right:26px; z-index:3;
    width:36px; height:36px; padding:0; display:grid; place-items:center;
    border:1px solid #d9e3f1; border-radius:50%; background:#ffffffed;
    color:#3e587e; cursor:pointer;
}
.cz-ny-dialog__close svg { width:16px; height:16px; }
.cz-ny-dialog__close:hover { background:#edf4ff; }
.cz-ny-dialog__close:focus-visible, .cz-ny-dialog__cta:focus-visible, .cz-ny-wish__dismiss:focus-visible {
    outline:2px solid #2857a5; outline-offset:4px;
}
.cz-ny-dialog__visual {
    display:flex; align-items:center; justify-content:center; width:100%;
    flex-shrink:0; margin:0 auto 12px;
}
.cz-ny-dialog__visual img {
    display:block; width:176px; height:176px; object-fit:contain;
    filter:drop-shadow(0 10px 12px #2b5ba414); user-select:none;
}
.cz-ny-dialog__content { display:flex; flex-direction:column; align-items:center; width:100%; flex-shrink:0; }
#cz-ny-wish-dialog h2 {
    font-family:inherit; font-size:30px; line-height:1.14; font-weight:600;
    letter-spacing:-.025em; text-transform:none; color:#10284f;
    margin:0 0 14px; padding:0; text-align:center;
}
#cz-ny-wish-dialog p {
    font-family:inherit; font-size:16px; font-weight:400; line-height:1.55;
    color:#526781; text-align:center; margin:0;
}
.cz-ny-dialog__next { width:100%; margin-top:20px; padding-top:19px; border-top:1px solid #d9e3f1; }
.cz-ny-dialog__cta {
    display:flex; align-items:center; justify-content:center; width:100%; margin-top:14px;
    padding:15px 20px; border-radius:26px; background:#082e74; color:#fff;
    font-family:inherit; font-size:15px; line-height:1.3; font-weight:600;
    text-decoration:none; text-align:center; transition:background .2s;
}
.cz-ny-dialog__cta:hover { background:#17478f; color:#fff; }
.cz-ny-dialog__edition {
    display:block; margin-top:18px; font-size:10px; font-weight:600;
    line-height:1.5; letter-spacing:.07em; color:#607b9e;
    text-transform:uppercase; text-align:center;
}
@keyframes cz-ny-float { 0%,100% { transform:rotate(-20deg); } 50% { transform:rotate(-4deg); } }
@keyframes cz-ny-dialog-in { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:none; } }
@media (hover:none) { .cz-ny-wish__dismiss { opacity:1; } }
@media (max-width:600px) {
    .cz-ny-wish__open { height:100%; }
    .cz-ny-wish__dismiss { top:0; right:-3px; opacity:1; }
    #cz-ny-wish-dialog { width:calc(100% - 24px); max-height:calc(100dvh - 32px); }
    .cz-ny-dialog__layout { padding:34px 24px 22px; }
    .cz-ny-dialog__close { top:28px; right:20px; width:32px; height:32px; }
    .cz-ny-dialog__visual { margin-bottom:10px; }
    .cz-ny-dialog__visual img { width:140px; height:140px; }
    #cz-ny-wish-dialog h2 { font-size:26px; line-height:1.12; margin-bottom:13px; }
    #cz-ny-wish-dialog p { font-size:15px; line-height:1.48; }
    .cz-ny-dialog__next { margin-top:18px; padding-top:17px; }
    .cz-ny-dialog__cta { padding:14px 18px; font-size:14px; }
    .cz-ny-dialog__edition { font-size:9px; }
}
@media (max-width:600px) and (max-height:720px) {
    .cz-ny-dialog__layout { padding:28px 22px 20px; }
    .cz-ny-dialog__visual img { width:100px; height:100px; }
    #cz-ny-wish-dialog h2 { font-size:24px; }
    #cz-ny-wish-dialog p { font-size:14px; line-height:1.45; }
}
@media (prefers-reduced-motion:reduce) {
    .cz-ny-wish *, .cz-ny-wish, #cz-ny-wish-dialog, #cz-ny-wish-dialog * { animation:none !important; transition:none !important; }
}

/* A shared snow-and-stardust reveal for every ornament wish. */
.cz-ny-magic[popover] {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
    overflow: hidden;
}
.cz-ny-magic::backdrop { background: transparent; pointer-events: none; }
#cz-ny-wish-dialog[open].has-magic:not(.is-conjuring) { animation: none; }
#cz-ny-wish-dialog[open].is-conjuring {
    animation: cz-ny-magic-reveal .75s cubic-bezier(.16, 1, .3, 1) .4s backwards;
}
#cz-ny-wish-dialog.is-conjuring::backdrop {
    animation: cz-ny-magic-backdrop .8s ease both;
}
@keyframes cz-ny-magic-reveal {
    from { opacity: 0; transform: translateY(12px) scale(.97); filter: blur(7px) drop-shadow(0 22px 35px #0c2b5938); }
    to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 22px 35px #0c2b5938); }
}
@keyframes cz-ny-magic-backdrop {
    from { background: #0b1d3900; backdrop-filter: blur(0); }
    to { background: #0b1d3959; backdrop-filter: blur(7px); }
}
@media (prefers-reduced-motion: reduce) {
    #cz-ny-wish-dialog[open].is-conjuring { animation: none; }
    #cz-ny-wish-dialog.is-conjuring::backdrop { animation: none; }
    .cz-ny-magic { display: none; }
}

/* Keep each ornament compact enough to float over the page. */
.cz-ny-wish.is-preview { width:196px; height:210px; }
@media (min-width:601px) and (max-width:1199px) {
    .cz-ny-wish.is-preview { width:150px; height:160px; }
}
@media (max-width:600px) {
    .cz-ny-wish.is-preview { width:104px; height:112px; }
    .cz-ny-home .hero-buttons > .hero-button::after { top:-27px; height:48px; left:14px; right:14px; }
}
