:root {
    --brand-primary: #4F46E5;
    --brand-primary-hover: #4338CA;
    --border-color: #D1D5DB;
    --focus-ring-color: #A5B4FC;
    --text-primary: #111827;
    --text-secondary: #6B7281;
    --background-light: #FFFFFF;
    --container-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

footer {
    margin: 80px 20px 0;
    background: black;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    color: #fff;
}

.block__footer-copyright {
    text-align: center;
    color: #fff;
    padding: 10px;
    font-size: .8rem;
}

.footer__logos img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
}

.footer__blocks {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__block {
    padding: 10px 30px;
    margin-right: 0;
    padding-right: 0;
}

.footer__block--border {
    border-left: 1px solid #ffffff20;
}

.footer__block h2 {
    font-size: 1rem;
    color: #ffffff50;
    margin-bottom: 30px;
}

.footer__link a {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.social-links li {
    margin-bottom: 5px;
}

.footer__link {
    font-size: 0.8rem;
    min-height: 16px;
}

.chat-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: #2381FF;
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.chat-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(35, 129, 255, 0.4);
}

.chat-button svg {
    width: 32px;
    height: 32px;
}

.contact-support-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1001;
    width: calc(100% - 40px);
    max-width: 420px;
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    border: 1px solid #E9E9E9;
    overflow: hidden;
    transform-origin: bottom right;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-support-container[hidden] {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.close-button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #2381FF;
    border: 2px solid #2381FF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease-out, border-color 0.3s ease-out;
}

.close-button:hover {
    background-color: #FFFFFF;
    border-color: #2381FF;
}

.close-button svg {
    width: 20px;
    height: 20px;
}

.close-button svg line {
    stroke: #FFFFFF;
    transition: stroke 0.3s ease-out;
}

.close-button:hover svg line {
    stroke: #2381FF;
}

.support-form-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0px 32px 32px;
}

.contact-support-container .block__label {
    margin-bottom: 8px;
    border-bottom: 1px solid #ECECEC;
    color: #272727;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.items--wrapper-support {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-form-list .item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-form-list .item__label {
    font-size: 0.875rem;
    color: #4C5D82;
    font-weight: 600;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.support-form-list .input--default {
    border: 2px solid #E5E8F2;
    border-radius: 10px;
    color: #272727;
    padding: 0 14px;
    font-size: 1rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 500;
    height: 50px;
    background-color: #FDFDFE;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-form-list .input--default:focus {
    outline: none;
    border-color: #2381FF;
    box-shadow: 0 0 0 4px rgba(35, 129, 255, 0.1);
}

.support-form-list textarea.input--default {
    height: auto;
    /* min-height: 180px; */
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}

.support-form-list button[type="submit"] {
    width: 100%;
    display: inline-flex;
    padding: 0 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #2381FF;
    border-radius: 10px;
    color: #FFFFFF;
    border: 2px solid #2381FF;
    transition: all 0.3s ease-out;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    height: 50px;
    margin-top: 8px;
}

.support-form-list button[type="submit"]:hover {
    background-color: #FFFFFF;
    border-color: #2381FF;
    color: #2381FF;
}

@media(min-width: 992px) {
    .footer__blocks {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media(min-width: 1200px) {
    .footer__blocks {
        grid-template-columns: 40% 1fr 1fr 1fr 1fr;
    }
}

.footer__links a:not([href]) {
    cursor: text;
    pointer-events: none;
    text-decoration: none;
    color: inherit;
}

/* Email Marketing (EMT) subscribe embed — first footer column */

.footer__newsletter .footer__newsletter-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer__newsletter button.footer__newsletter-submit {
    border: 0;
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 8px 12px;
    margin: 0;
    background-color: #e89600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 39px;
    width: auto;
}

.footer__newsletter input.footer__newsletter-input {
    padding: 8px 12px;
    margin: 0;
    font-size: 14px;
    color: #fff;
    background-color: color-mix(in oklab, #fff 10%, transparent);
    border: 1px solid color-mix(in oklab, #fff 10%, transparent);
    height: 39px;
    width: 100%;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.footer__newsletter input.footer__newsletter-input:focus {
    border-color: color-mix(in oklab, #fff 10%, transparent);
    background-color: color-mix(in oklab, #fff 10%, transparent);
}

.footer__newsletter .footer__newsletter-label {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer__newsletter .footer__newsletter-row {
    display: flex;
}

.footer__newsletter .footer__newsletter-field {
    min-width: 240px;
}

.footer__newsletter .footer__newsletter-field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer__newsletter button.footer__newsletter-submit:hover {
    opacity: 0.92;
}

.footer__newsletter button.footer__newsletter-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.footer__newsletter .footer__newsletter-message--error {
    color: #b91c1c;
    font-size: 14px;
}

.footer__newsletter .footer__newsletter-message--ok {
    color: #007f5c;
    font-size: 14px;
}

/* Party WOW footer */

footer {
    position: relative;
    margin: 80px 0 0;
    border-radius: 0;
    background: var(--pw-gradient-footer, linear-gradient(100deg, #b7ffb8 0%, #fff3a4 38%, #ffc39f 68%, #f3a7dd 100%));
    color: #2c2a27;
}
/* 
footer:has(.footer__newsletter) {
    margin-top: 0;
} */

footer .container-inner--footer {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 24px 62px;
}

footer .footer__blocks {
    display: grid;
    grid-template-columns: minmax(0, 300px) repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: clamp(32px, 4vw, 56px);
    row-gap: 0;
}

/* Figma places the social buttons under the brand text, not in their own column. */
@media (min-width: 621px) {
    footer .footer__blocks > .footer__block {
        grid-row: 1;
    }

    footer .footer__blocks > .footer__block:has(.social-links) {
        grid-row: 2;
        grid-column: 1;
        margin-top: 26px;
    }
}

@media (max-width: 620px) {
    footer .footer__blocks > .footer__block {
        order: 2;
    }

    footer .footer__blocks > .footer__block:first-child {
        order: 0;
    }

    footer .footer__blocks > .footer__block:has(.social-links) {
        order: 1;
    }
}

footer .footer__block:has(.social-links) h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
}

footer .footer__block {
    min-width: 0;
    margin: 0;
    padding: 0;
}

footer .footer__block--border {
    border: 0;
}

/* The logo asset is square with ~22% transparent padding top and bottom, which
   would otherwise push the tagline far below the artwork. */
footer .footer__logos {
    height: 78px;
    margin: 0 0 14px;
    overflow: hidden;
}

footer .footer__logos img {
    width: 140px;
    height: 140px;
    max-width: none;
    max-height: none;
    margin: -31px 0 -32px;
    object-fit: contain;
}

footer .footer__block h2 {
    margin: 0 0 20px;
    color: #201f1d;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.3;
    text-transform: uppercase;
}

footer .footer__links {
    margin: 0;
}

footer .footer__link {
    min-height: 0;
    color: #4f4b4d;
    font-size: 13px;
    line-height: 1.45;
}

footer .footer__link a {
    display: block;
    margin: 0 0 13px;
    color: #3c3940;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

footer .footer__block:first-child .footer__link a {
    max-width: 300px;
    color: #6b6570;
    font-weight: 400;
}

footer .footer__block:first-child .footer__link:first-child a {
    margin-bottom: 16px;
    color: #2c2a27;
    font-size: 15px;
    font-weight: 700;
}

footer .footer__link a[href]:hover,
footer .footer__link a[href]:focus-visible {
    color: var(--pw-color-primary, #9a4b9d);
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

footer .social-links li {
    margin: 0;
}

/* The Figma icons already carry their own white pill and border. */
footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c2a27;
    transition: transform .2s ease;
}

footer .social-links a:hover,
footer .social-links a:focus-visible {
    transform: translateY(-2px);
}

footer .social-links svg {
    width: 32px;
    height: 32px;
}

/* LinkedIn, X and YouTube still use the multicolour brand logos, so flatten
   them to match the outlined Facebook, Instagram and TikTok icons. */
footer .social-links a[aria-label^="LinkedIn"] svg path,
footer .social-links a[aria-label^="X "] svg path:last-child,
footer .social-links a[aria-label^="Youtube"] svg path:last-child {
    fill: currentColor !important;
}

footer .social-links a[aria-label^="Youtube"] svg path:first-child {
    fill: transparent !important;
}

/* Newsletter band above the footer columns. */
footer .footer__newsletter {
    position: relative;
    padding: 44px 24px 40px;
    /* --pw-newsletter-image lets a shop swap the confetti artwork for its own. */
    background: var(--pw-color-newsletter-bg, #fbe8f2) var(--pw-newsletter-image, url("https://cdn.erply.com/assets/552705/image/wVc8L3amIzwd9sVRnPZKzYoebDa8N3hE71LrKAVACiLUhqFPpK.png")) center / cover no-repeat;
    color: #26232a;
    text-align: center;
    margin: 0;
}

footer .footer__newsletter-inner {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

footer .footer__newsletter .footer__newsletter-label {
    margin: 0;
    color: #1f1c23;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

footer .footer__newsletter .footer__newsletter-lead {
    max-width: 420px;
    margin: 10px auto 0;
    color: #5c5560;
    font-size: 13px;
    line-height: 1.5;
}

footer .footer__newsletter-frame {
    width: 100%;
    margin-top: 20px;
}

/* Figma nests the submit button inside a single white pill with the input. */
footer .footer__newsletter .footer__newsletter-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 10px rgb(38 35 42 / 10%);
}

footer .footer__newsletter .footer__newsletter-field {
    flex: 1 1 auto;
    min-width: 0;
}

footer .footer__newsletter input.footer__newsletter-input {
    height: 38px;
    padding: 8px 8px 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #353236;
    font-size: 13px;
}

footer .footer__newsletter input.footer__newsletter-input::placeholder {
    color: #8d8891;
    opacity: 1;
}

footer .footer__newsletter input.footer__newsletter-input:focus {
    background: transparent;
    outline: 0;
}

footer .footer__newsletter .footer__newsletter-row:focus-within {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--pw-color-primary, #9a4b9d) 35%, transparent), 0 2px 10px rgb(38 35 42 / 10%);
}

footer .footer__newsletter button.footer__newsletter-submit {
    flex: 0 0 auto;
    width: auto;
    height: 38px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--pw-color-primary, #9a4b9d);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

footer .footer__newsletter button.footer__newsletter-submit:hover,
footer .footer__newsletter button.footer__newsletter-submit:focus-visible {
    background: var(--pw-color-primary-dark, #783b7a);
    opacity: 1;
}

footer .footer__newsletter .footer__newsletter-terms {
    max-width: 420px;
    margin: 14px auto 0;
    color: #6d6672;
    font-size: 11px;
    line-height: 1.45;
}

footer .footer__newsletter-message {
    margin-top: 10px;
    font-size: 13px;
}

footer .block__footer-copyright {
    width: calc(100% - 48px);
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 0 24px;
    border-top: 1px solid rgb(44 42 39 / 14%);
    color: #6a666b;
    font-size: 12px;
    text-align: center;
}

footer .block__footer-copyright a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 991px) {
    footer .container-inner--footer {
        padding: 48px 24px 36px;
    }

    footer .footer__blocks {
        grid-template-columns: minmax(0, 260px) repeat(2, minmax(0, 1fr));
        column-gap: 36px;
        row-gap: 0;
    }
}

@media (max-width: 620px) {
    footer {
        margin-top: 64px;
    }

    footer .container-inner--footer {
        padding: 42px 24px 28px;
    }

    footer .footer__blocks {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 30px;
    }

    footer .footer__logos {
        height: 66px;
        margin: 0 0 12px;
    }

    footer .footer__logos img {
        width: 120px;
        height: 120px;
        margin: -26px 0 -28px;
    }

    footer .footer__block h2 {
        margin-bottom: 14px;
    }

    footer .footer__newsletter {
        padding: 34px 16px 30px;
    }

    footer .footer__newsletter .footer__newsletter-label {
        font-size: 22px;
    }

    footer .footer__newsletter input.footer__newsletter-input {
        height: 40px;
        padding-left: 14px;
    }

    footer .footer__newsletter button.footer__newsletter-submit {
        height: 40px;
        padding: 0 16px;
    }

    footer .block__footer-copyright {
        width: calc(100% - 48px);
        padding: 18px 0 22px;
        line-height: 1.5;
    }
}

/* Party WOW radius normalization for the optional support widget. */
.contact-support-container {
    border-radius: 8px;
}

.close-button,
.support-form-list .input--default,
.support-form-list button[type="submit"] {
    border-radius: 0;
}

/* Preserve the intentional CVI circles and newsletter pills. */
.chat-button {
    border-radius: 50%;
}

footer .footer__newsletter input.footer__newsletter-input,
footer .footer__newsletter button.footer__newsletter-submit,
footer .footer__newsletter .footer__newsletter-row {
    border-radius: 999px;
}