/* =====================================================================
   site.css — static public-site structure and component styling.
   Intended live location: /assets/css/site.css
   No inline styling and no database values belong in this file.
   ===================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--site-text);
    background: var(--site-background);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.site-container {
    width: min(calc(100% - 40px), var(--site-content-width));
    margin-inline: auto;
}

/* =====================================================================
   Announcement bar
   ===================================================================== */

.announcement-bar {
    position: relative;
    color: #fff;
    background: var(--site-primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.announcement-bar__inner {
    padding-block: 7px;
    text-align: center;
}

/* =====================================================================
   Site header
   ===================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--site-surface) 97%, transparent);
    border-bottom: 1px solid var(--site-border);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    min-height: 70px;
    gap: 22px;
}


.site-header__brand-slot {
    position: relative;
    display: inline-flex;
    justify-self: start;
    width: fit-content;
    max-width: 240px;
    min-width: 0;
}

.site-header__nav-slot {
    position: relative;
    display: inline-flex;
    justify-self: center;
    width: fit-content;
    min-width: 0;
}

.site-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    max-width: 240px;
    min-width: 0;
}

.site-brand__logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 56px;
    object-fit: contain;
}

.site-brand__text {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.site-brand__name {
    color: var(--site-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.site-brand__tagline {
    margin-top: 3px;
    color: var(--site-text-soft);
    font-size: 0.76rem;
}

.site-navigation {
    position: relative;
    display: flex;
    align-items: center;
    gap: 23px;
    font-size: 0.9rem;
    font-weight: 650;
}

.site-navigation a,
.site-header__actions a {
    transition: color 0.15s ease;
}

.site-navigation a:hover,
.site-header__actions a:hover {
    color: var(--site-primary-dark);
}

.site-navigation a[aria-current="page"] {
    color: var(--site-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.site-navigation a:focus-visible,
.site-header__actions a:focus-visible,
.button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--site-primary) 35%, transparent);
    outline-offset: 3px;
}

.site-header__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    color: var(--site-text-soft);
    font-size: 0.87rem;
    font-weight: 650;
}

.site-header__account-links {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.site-header__customer-name {
    color: var(--site-text-soft);
}

.site-header__logout-form {
    margin: 0;
}

.site-header__logout-link {
    appearance: none;
    display: inline;
    margin: 0;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: left;
}

.site-header__logout-link:hover {
    color: var(--site-primary-dark);
}

.site-header__logout-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--site-primary) 35%, transparent);
    outline-offset: 3px;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cart-link__count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding-inline: 6px;
    color: #fff;
    background: var(--site-primary-dark);
    border-radius: 999px;
    font-size: 0.72rem;
}

.site-nav-toggle {
    display: none;
    padding: 7px 11px;
    color: var(--site-text);
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: 7px;
    cursor: pointer;
}

/* =====================================================================
   Main
   ===================================================================== */

.site-main {
    min-height: 60vh;
}

/* =====================================================================
   Homepage intro
   ===================================================================== */

.homepage-intro {
    background: var(--site-surface);
    border-bottom: 1px solid var(--site-border);
}

.homepage-intro__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding-block: 34px;
}

.homepage-intro__copy {
    max-width: 760px;
}

.homepage-intro h1,
.section-heading h2,
.about-panel h2,
.pickup-panel h2 {
    margin: 0;
    color: var(--site-text);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.homepage-intro h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.homepage-intro p {
    max-width: 700px;
    margin: 12px 0 0;
    color: var(--site-text-soft);
    font-size: 1rem;
}

.homepage-intro__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--site-primary-dark);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

/* =====================================================================
   Buttons
   ===================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button--primary {
    color: #fff;
    background: var(--site-primary-dark);
}

.button--primary:hover {
    background: var(--site-primary);
}

.button--secondary {
    color: var(--site-text);
    background: var(--site-surface);
    border-color: var(--site-border);
}

.button--secondary:hover {
    border-color: var(--site-primary-dark);
}

.button--small {
    min-height: 32px;
    padding: 6px 10px;
    color: var(--site-text);
    background: var(--site-surface);
    border-color: var(--site-border);
    font-size: 0.78rem;
}

.button--small:hover {
    color: #fff;
    background: var(--site-primary-dark);
    border-color: var(--site-primary-dark);
}

/* =====================================================================
   Homepage sections
   ===================================================================== */

.homepage-section {
    padding: 44px 0;
}

.homepage-section--compact {
    padding: 34px 0 18px;
}

.homepage-section--surface {
    background: var(--site-surface);
    border-block: 1px solid var(--site-border);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.section-heading--compact {
    margin-bottom: 15px;
}

.section-heading h2,
.about-panel h2,
.pickup-panel h2 {
    font-size: clamp(1.55rem, 3vw, 1.75rem);
}

.section-heading > a,
.text-link {
    color: var(--site-primary-dark);
    font-size: 0.86rem;
    font-weight: 750;
}

.section-heading > a:hover,
.text-link:hover {
    text-decoration: underline;
}

/* =====================================================================
   Ordering steps
   ===================================================================== */

.ordering-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ordering-step {
    display: flex;
    gap: 13px;
    padding: 15px 16px;
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
}

.ordering-step__number {
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: #fff;
    background: var(--site-primary-dark);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.ordering-step h3 {
    margin: 1px 0 4px;
    font-size: 0.96rem;
}

.ordering-step p {
    margin: 0;
    color: var(--site-text-soft);
    font-size: 0.82rem;
}

/* =====================================================================
   Category grid
   ===================================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

/*
 * When the optional homepage information column is enabled, the category
 * portion keeps the same compact card treatment and uses three columns.
 * The homepage layout can apply this modifier when that feature is wired in.
 */
.homepage-category-layout--with-info .category-grid--homepage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card,
.product-card {
    overflow: hidden;
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.category-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--site-primary-dark) 35%, var(--site-border));
    box-shadow: 0 8px 22px rgba(35, 40, 46, 0.08);
}

.category-card__image,
.product-card__image,
.about-panel__image {
    width: 100%;
    object-fit: cover;
}

.category-card__image {
    display: block;
    aspect-ratio: 16 / 9;
}

.category-grid--4x3 .category-card__image {
    aspect-ratio: 4 / 3;
}

.category-card__body {
    display: flex;
    flex: 1 1 auto;
    min-height: 128px;
    flex-direction: column;
    padding: 11px 12px 10px;
}

.category-card__body strong {
    font-size: 0.94rem;
    line-height: 1.25;
}

.category-card__body small {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--site-text-soft);
    font-size: 0.75rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.category-card__action {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 11px;
    color: var(--site-primary-dark);
    font-size: 0.73rem;
    font-weight: 800;
    line-height: 1.2;
}

.category-card:hover .category-card__action {
    text-decoration: underline;
}

/* =====================================================================
   Product grid
   ===================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-card__image {
    aspect-ratio: 4 / 3;
}

.product-card__body {
    padding: 13px;
}

.product-card h3 {
    margin: 0;
    font-size: 0.96rem;
}

.product-card h3 a:hover {
    color: var(--site-primary-dark);
}

.product-card p {
    margin: 6px 0 0;
    color: var(--site-text-soft);
    font-size: 0.79rem;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.product-card__footer strong {
    color: var(--site-text);
    font-size: 0.96rem;
}

/* =====================================================================
   About panel
   ===================================================================== */

.about-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 38px;
}

.about-panel__image-wrap {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
}

.about-panel__image {
    aspect-ratio: 4 / 3;
}

.about-panel__content p {
    margin: 13px 0 12px;
    color: var(--site-text-soft);
}

/* =====================================================================
   Pickup panel
   ===================================================================== */

.homepage-section--pickup {
    padding-top: 0;
}

.pickup-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px 28px;
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: calc(var(--site-radius) + 2px);
}

.pickup-panel p {
    max-width: 720px;
    margin: 9px 0 0;
    color: var(--site-text-soft);
}

.pickup-panel .button--primary {
    flex: 0 0 auto;
}

/* =====================================================================
   Footer
   ===================================================================== */

.site-footer {
    color: #f7f7f7;
    background: #2f3338;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 34px;
    padding-block: 36px 28px;
}

.site-footer h2 {
    margin: 0 0 10px;
    font-size: 0.92rem;
}

.site-footer p,
.footer-contact,
.social-links {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
}

.footer-links,
.footer-contact,
.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.footer-links a,
.footer-contact a,
.social-links a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover,
.footer-contact a:hover,
.social-links a:hover {
    color: #fff;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 14px;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.74rem;
}

/* =====================================================================
   Responsive — 900px
   ===================================================================== */

@media (max-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .homepage-category-layout--with-info .category-grid--homepage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-header__inner {
        grid-template-columns: 1fr auto auto;
    }

    .site-nav-toggle {
        display: inline-flex;
    }

    .site-header__nav-slot {
        position: static;
        justify-self: auto;
    }
.site-navigation {
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        background: var(--site-surface);
        border: 1px solid var(--site-border);
        border-radius: var(--site-radius);
        box-shadow: 0 10px 28px rgba(35, 40, 46, 0.12);
    }

    .site-navigation.is-open {
        display: flex;
    }

    .site-navigation a {
        padding: 9px 10px;
        border-radius: 6px;
    }

    .site-navigation a:hover {
        background: var(--site-background);
    }

    .homepage-intro__inner,
    .about-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .homepage-intro__inner {
        display: flex;
    }

    .ordering-steps {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-panel {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =====================================================================
   Responsive — 620px
   ===================================================================== */

@media (max-width: 620px) {
    .site-header__account-links {
        gap: 8px;
    }

    .site-header__customer-name {
        display: none;
    }
    .site-container {
        width: min(calc(100% - 28px), var(--site-content-width));
    }

    .site-header__inner {
        min-height: 62px;
        gap: 10px;
    }

    .site-brand__logo {
        max-width: 150px;
        max-height: 44px;
    }

    .site-brand__tagline,
    .site-header__actions > a:first-child {
        display: none;
    }

    .site-header__actions {
        gap: 8px;
    }

    .homepage-intro__inner {
        padding-block: 26px;
    }

    .homepage-intro h1 {
        font-size: 2rem;
    }

    .homepage-intro__actions,
    .pickup-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .homepage-intro__actions .button,
    .pickup-panel .button {
        width: 100%;
    }

    .homepage-section {
        padding: 34px 0;
    }

    .homepage-section--compact {
        padding-top: 28px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .homepage-category-layout--with-info .category-grid--homepage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .category-card__body {
        min-height: 112px;
        padding: 9px 10px;
    }

    .category-card__body small {
        -webkit-line-clamp: 3;
    }

    .category-card__action {
        padding-top: 9px;
    }

    .pickup-panel {
        padding: 21px;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 4px;
    }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* =====================================================================
   Homepage information cards
   ===================================================================== */

.homepage-category-layout {
    display: grid;
    gap: 12px;
}

.homepage-category-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.homepage-info-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    padding: 18px;
    background-color: var(--info-card-background, var(--site-surface));
    color: var(--info-card-text, var(--site-text));
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
}

.homepage-info-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-info-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
    pointer-events: none;
}

.homepage-info-card__overlay--5 { opacity: .05; }
.homepage-info-card__overlay--10 { opacity: .10; }
.homepage-info-card__overlay--15 { opacity: .15; }
.homepage-info-card__overlay--20 { opacity: .20; }
.homepage-info-card__overlay--25 { opacity: .25; }
.homepage-info-card__overlay--30 { opacity: .30; }
.homepage-info-card__overlay--35 { opacity: .35; }
.homepage-info-card__overlay--40 { opacity: .40; }
.homepage-info-card__overlay--45 { opacity: .45; }
.homepage-info-card__overlay--50 { opacity: .50; }
.homepage-info-card__overlay--55 { opacity: .55; }
.homepage-info-card__overlay--60 { opacity: .60; }
.homepage-info-card__overlay--65 { opacity: .65; }
.homepage-info-card__overlay--70 { opacity: .70; }
.homepage-info-card__overlay--75 { opacity: .75; }
.homepage-info-card__overlay--80 { opacity: .80; }
.homepage-info-card__overlay--85 { opacity: .85; }
.homepage-info-card__overlay--90 { opacity: .90; }

.homepage-info-card__content {
    position: relative;
    z-index: 2;
    width: 100%;
    align-self: flex-start;
    overflow-wrap: anywhere;
}

.homepage-info-card__content > :first-child { margin-top: 0; }
.homepage-info-card__content > :last-child { margin-bottom: 0; }
.homepage-info-card__content p { margin: 0 0 .75em; }
.homepage-info-card__content h1,
.homepage-info-card__content h2,
.homepage-info-card__content h3 { margin: .45em 0 .35em; line-height: 1.15; }
.homepage-info-card__content h1 { font-size: 2em; }
.homepage-info-card__content h2 { font-size: 1.5em; }
.homepage-info-card__content h3 { font-size: 1.17em; }
.homepage-info-card__content blockquote {
    margin: .75em 0;
    padding-left: .9em;
    border-left: 3px solid currentColor;
}
.homepage-info-card__content a { color: inherit; text-decoration: underline; }
.homepage-info-card__content .ql-font-serif { font-family: Georgia, "Times New Roman", serif; }
.homepage-info-card__content .ql-font-monospace { font-family: "Courier New", Courier, monospace; }
.homepage-info-card__content .ql-align-center { text-align: center; }
.homepage-info-card__content .ql-align-right { text-align: right; }
.homepage-info-card__content .ql-align-justify { text-align: justify; }
.homepage-info-card__content .ql-indent-1 { padding-left: 3em; }
.homepage-info-card__content .ql-indent-2 { padding-left: 6em; }
.homepage-info-card__content .ql-indent-3 { padding-left: 9em; }
.homepage-info-card__content .ql-indent-4 { padding-left: 12em; }
.homepage-info-card__content .ql-indent-5 { padding-left: 15em; }
.homepage-info-card__content .ql-indent-6 { padding-left: 18em; }
.homepage-info-card__content .ql-indent-7 { padding-left: 21em; }
.homepage-info-card__content .ql-indent-8 { padding-left: 24em; }

.homepage-info-card__content ol,
.homepage-info-card__content ul {
    margin: .6em 0;
    padding: 0;
    list-style: none;
    counter-reset: homepage-info-list;
}

.homepage-info-card__content li {
    position: relative;
    padding-left: 1.5em;
}

.homepage-info-card__content li > .ql-ui {
    display: none;
}

.homepage-info-card__content li[data-list="bullet"]::before,
.homepage-info-card__content li[data-list="ordered"]::before {
    position: absolute;
    left: 0;
    width: 1.1em;
    text-align: right;
}

.homepage-info-card__content li[data-list="bullet"]::before {
    content: "•";
}

.homepage-info-card__content li[data-list="ordered"] {
    counter-increment: homepage-info-list;
}

.homepage-info-card__content li[data-list="ordered"]::before {
    content: counter(homepage-info-list) ".";
}

@media (max-width: 1100px) {
    .homepage-category-layout {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .homepage-category-row {
        display: contents;
    }
}

@media (max-width: 620px) {
    .homepage-category-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .homepage-info-card {
        padding: 14px;
    }
}

/* =====================================================================
   Gift certificate storefront card
   ===================================================================== */

.category-card--gift-certificate {
    color: inherit;
}


/* =====================================================================
   Add-to-cart animation
   ===================================================================== */

.fly-to-cart-image {
    position: fixed;
    z-index: 9999;
    margin: 0;
    object-fit: cover;
    border-radius: 10px;
    pointer-events: none;
    transform-origin: center center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.cart-link.is-cart-updated .cart-link__count {
    animation: cart-count-pop .42s ease;
}

@keyframes cart-count-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .fly-to-cart-image {
        display: none;
    }

    .cart-link.is-cart-updated .cart-link__count {
        animation: none;
    }
}

/* =====================================================================
   Optional website chat launcher
   ===================================================================== */

.website-chat-launcher {
    position: fixed;
    z-index: 90;
    top: 52%;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    border: 1px solid color-mix(in srgb, var(--site-primary) 28%, var(--site-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-surface) 96%, transparent);
    color: var(--site-text);
    padding: 7px 15px 7px 8px;
    box-shadow: 0 10px 28px rgba(25, 31, 38, .15);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.website-chat-launcher:hover {
    border-color: color-mix(in srgb, var(--site-primary) 55%, var(--site-border));
    box-shadow: 0 13px 34px rgba(25, 31, 38, .20);
    transform: translateY(-50%) translateY(-2px);
}

.website-chat-launcher:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--site-primary) 25%, transparent);
    outline-offset: 3px;
}

.website-chat-launcher__icon {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--site-primary);
    color: #fff;
}

.website-chat-launcher__icon svg {
    display: block;
    width: 27px;
    height: 27px;
    overflow: visible;
}

.website-chat-launcher__bubble,
.website-chat-launcher__person {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.website-chat-launcher__bubble { stroke-width: 1.7; }
.website-chat-launcher__head { fill: currentColor; }
.website-chat-launcher__person { stroke-width: 1.8; }

.website-chat-launcher__status {
    position: absolute;
    right: -1px;
    bottom: 1px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--site-surface);
    border-radius: 50%;
    background: #27a857;
}

.website-chat-launcher__copy {
    display: grid;
    min-width: 0;
    text-align: left;
    line-height: 1.12;
}

.website-chat-launcher__copy strong {
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 800;
}

.website-chat-launcher__copy small {
    margin-top: 3px;
    color: var(--site-muted);
    font-size: .7rem;
    font-weight: 650;
}

@media (max-width: 1460px) {
    .website-chat-launcher {
        top: auto;
        right: 20px;
        bottom: 22px;
        transform: none;
    }

    .website-chat-launcher:hover { transform: translateY(-2px); }
}

@media (max-width: 620px) {
    .website-chat-launcher {
        right: 14px;
        bottom: 14px;
        min-height: 50px;
        padding: 6px 12px 6px 7px;
    }

    .website-chat-launcher__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .website-chat-launcher__copy strong { font-size: .82rem; }
    .website-chat-launcher__copy small { font-size: .67rem; }
}

/* Chat launcher size/position refinement */
.website-chat-launcher {
    right: 5px;
    min-height: 46px;
    gap: 8px;
    padding: 5px 11px 5px 6px;
}

.website-chat-launcher__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.website-chat-launcher__icon svg {
    width: 23px;
    height: 23px;
}

.website-chat-launcher__status {
    width: 9px;
    height: 9px;
    border-width: 2px;
}

.website-chat-launcher__copy strong {
    font-size: .78rem;
}

.website-chat-launcher__copy small {
    margin-top: 2px;
    font-size: .62rem;
}

@media (max-width: 1460px) {
    .website-chat-launcher {
        right: 5px;
        bottom: 18px;
    }
}

@media (max-width: 620px) {
    .website-chat-launcher {
        right: 5px;
        bottom: 10px;
        min-height: 44px;
        padding: 5px 10px 5px 6px;
    }

    .website-chat-launcher__icon {
        width: 33px;
        height: 33px;
        flex-basis: 33px;
    }

    .website-chat-launcher__copy strong {
        font-size: .76rem;
    }

    .website-chat-launcher__copy small {
        font-size: .6rem;
    }
}

/* Final chat launcher placement */
.website-chat-launcher {
    top: auto;
    right: 5px;
    bottom: 18px;
    transform: none;
}

.website-chat-launcher:hover {
    transform: translateY(-2px);
}

/* =====================================================================
   Website chat modal
   ===================================================================== */

.website-chat-launcher__copy {
    display: flex;
    align-items: center;
}

.website-chat-launcher__copy strong {
    font-size: .78rem;
}

.website-chat-launcher__status.is-online,
.website-chat-modal__status.is-online {
    background: #27a857;
}

.website-chat-launcher__status.is-offline,
.website-chat-modal__status.is-offline {
    background: #d04444;
}

body.website-chat-open {
    overflow: hidden;
}

.website-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: none;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
}

.website-chat-modal.is-open {
    display: flex;
}

.website-chat-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(20, 26, 32, .38);
    backdrop-filter: blur(2px);
}

.website-chat-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(390px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: var(--site-surface);
    box-shadow: 0 24px 70px rgba(18, 24, 30, .24);
}

.website-chat-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px;
    border-bottom: 1px solid var(--site-border);
    background: color-mix(in srgb, var(--site-primary) 7%, var(--site-surface));
}

.website-chat-modal__identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.website-chat-modal__avatar {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--site-primary);
    color: #fff;
}

.website-chat-modal__avatar svg {
    width: 24px;
    height: 24px;
}

.website-chat-modal__avatar circle {
    fill: currentColor;
}

.website-chat-modal__avatar path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.website-chat-modal__status {
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 10px;
    height: 10px;
    border: 2px solid var(--site-surface);
    border-radius: 50%;
}

.website-chat-modal__identity h2 {
    margin: 0;
    color: var(--site-text);
    font-size: 1rem;
}

.website-chat-modal__identity p {
    margin: 3px 0 0;
    color: var(--site-muted);
    font-size: .72rem;
    font-weight: 650;
}

.website-chat-modal__close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--site-muted);
    cursor: pointer;
}

.website-chat-modal__close:hover {
    background: color-mix(in srgb, var(--site-text) 7%, transparent);
    color: var(--site-text);
}

.website-chat-modal__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.website-chat-modal__body {
    padding: 20px;
}

.website-chat-step {
    display: none;
}

.website-chat-step.is-active {
    display: block;
}

.website-chat-greeting {
    margin: 0;
    color: var(--site-text);
    font-size: 1.18rem;
    font-weight: 800;
}

.website-chat-intro {
    margin: 7px 0 17px;
    color: var(--site-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.website-chat-field {
    display: grid;
    gap: 6px;
    margin-top: 13px;
}

.website-chat-field > span {
    color: var(--site-text);
    font-size: .75rem;
    font-weight: 750;
}

.website-chat-field input,
.website-chat-field textarea {
    width: 100%;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: var(--site-surface);
    color: var(--site-text);
    padding: 10px 11px;
    font: inherit;
    font-size: .86rem;
    outline: none;
    box-sizing: border-box;
}

.website-chat-field textarea {
    min-height: 116px;
    resize: vertical;
    line-height: 1.45;
}

.website-chat-field input:focus,
.website-chat-field textarea:focus {
    border-color: color-mix(in srgb, var(--site-primary) 65%, var(--site-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-primary) 13%, transparent);
}

.website-chat-primary {
    width: 100%;
    min-height: 42px;
    margin-top: 17px;
    border: 0;
    border-radius: 10px;
    background: var(--site-primary);
    color: #fff;
    padding: 9px 14px;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
}

.website-chat-primary:hover {
    filter: brightness(.95);
}

.website-chat-error {
    margin: 10px 0 0;
    color: #b52d2d;
    font-size: .75rem;
    font-weight: 700;
}

.website-chat-development-note {
    margin: 10px 0 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--site-primary) 7%, var(--site-surface));
    color: var(--site-muted);
    padding: 9px 10px;
    font-size: .72rem;
    line-height: 1.4;
}

@media (min-width: 700px) {
    .website-chat-modal {
        align-items: flex-end;
        padding: 0 10px 84px 20px;
    }
}

@media (max-width: 620px) {
    .website-chat-modal {
        align-items: flex-end;
        justify-content: center;
        padding: 12px;
    }

    .website-chat-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        border-radius: 16px;
    }
}

/* =====================================================================
   Website chat live conversation refinements
   ===================================================================== */

.website-chat-launcher__badge {
    position: absolute;
    top: -5px;
    right: -7px;
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    border: 2px solid var(--site-surface);
    border-radius: 999px;
    background: #cf3535;
    color: #fff;
    padding: 0 4px;
    font-size: .58rem;
    font-weight: 800;
    line-height: 1;
}

.website-chat-modal__dialog {
    display: flex;
    max-height: min(650px, calc(100vh - 105px));
    flex-direction: column;
}

.website-chat-modal__body {
    min-height: 0;
    padding: 0;
}

.website-chat-step[data-chat-step="conversation"].is-active {
    display: flex;
    min-height: 390px;
    max-height: 560px;
    flex-direction: column;
}

.website-chat-welcome {
    padding: 18px 20px 6px;
}

.website-chat-welcome.has-messages {
    padding-bottom: 2px;
}

.website-chat-welcome.has-messages .website-chat-intro {
    margin-bottom: 5px;
}

.website-chat-thread {
    display: flex;
    min-height: 150px;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    overflow-y: auto;
    padding: 11px 18px 14px;
    scroll-behavior: smooth;
}

.website-chat-message {
    display: flex;
    width: 100%;
}

.website-chat-message--customer {
    justify-content: flex-end;
}

.website-chat-message--admin,
.website-chat-message--system {
    justify-content: flex-start;
}

.website-chat-message__bubble {
    max-width: 82%;
    border-radius: 15px;
    padding: 9px 11px 7px;
    box-shadow: 0 1px 2px rgba(20, 27, 34, .06);
}

.website-chat-message--customer .website-chat-message__bubble {
    border-bottom-right-radius: 5px;
    background: var(--site-primary);
    color: #fff;
}

.website-chat-message--admin .website-chat-message__bubble {
    border: 1px solid var(--site-border);
    border-bottom-left-radius: 5px;
    background: color-mix(in srgb, var(--site-surface) 95%, var(--site-text));
    color: var(--site-text);
}

.website-chat-message--system .website-chat-message__bubble {
    border-radius: 10px;
    background: color-mix(in srgb, var(--site-text) 5%, var(--site-surface));
    color: var(--site-muted);
}

.website-chat-message__sender {
    display: block;
    margin-bottom: 3px;
    font-size: .66rem;
    font-weight: 800;
}

.website-chat-message__bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: .82rem;
    line-height: 1.42;
}

.website-chat-message__meta {
    display: block;
    margin-top: 4px;
    text-align: right;
    font-size: .57rem;
    opacity: .7;
}

.website-chat-typing {
    margin: 0;
    padding: 2px 20px 9px;
    color: var(--site-muted);
    font-size: .7rem;
    font-style: italic;
}

.website-chat-closed {
    margin: 8px 18px 16px;
    border: 1px solid var(--site-border);
    border-radius: 9px;
    background: color-mix(in srgb, var(--site-text) 4%, var(--site-surface));
    color: var(--site-muted);
    padding: 10px 11px;
    font-size: .76rem;
    text-align: center;
}

.website-chat-composer {
    border-top: 1px solid var(--site-border);
    background: color-mix(in srgb, var(--site-surface) 97%, var(--site-text));
    padding: 10px 12px 11px;
}

.website-chat-field--message {
    margin: 0;
}

.website-chat-field--message textarea {
    min-height: 64px;
    max-height: 130px;
    border-radius: 11px;
    resize: none;
}

.website-chat-composer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    margin-top: 8px;
}

.website-chat-composer__hint {
    color: var(--site-muted);
    font-size: .64rem;
    font-weight: 650;
}

.website-chat-send {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 9px;
    background: var(--site-primary);
    color: #fff;
    padding: 7px 11px;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}

.website-chat-send:disabled {
    opacity: .55;
    cursor: wait;
}

.website-chat-send svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.website-chat-step[data-chat-step="identity"] {
    padding: 20px;
}

.website-chat-step[data-chat-step="conversation"] > .website-chat-error {
    margin: 0;
    padding: 8px 15px 11px;
    border-top: 1px solid #f1d0d0;
    background: #fff5f5;
}

@media (max-width: 620px) {
    .website-chat-modal__dialog {
        max-height: calc(100vh - 24px);
    }

    .website-chat-step[data-chat-step="conversation"].is-active {
        min-height: min(540px, calc(100vh - 120px));
        max-height: calc(100vh - 120px);
    }

    .website-chat-thread {
        padding-left: 13px;
        padding-right: 13px;
    }

    .website-chat-message__bubble {
        max-width: 88%;
    }
}



/* Website chat identity / reconnection controls */
.website-chat-choice-actions {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.website-chat-secondary {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--site-border);
    border-radius: 9px;
    background: var(--site-surface);
    color: var(--site-text);
    padding: 9px 13px;
    font: inherit;
    font-size: .8rem;
    font-weight: 750;
    cursor: pointer;
}

.website-chat-secondary:hover {
    background: var(--site-background);
}

.website-chat-field-note {
    display: block;
    margin-top: 5px;
    color: var(--site-muted);
    font-size: .68rem;
    line-height: 1.35;
}

.website-chat-field input[data-chat-pin-input] {
    max-width: 120px;
    letter-spacing: .18em;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
    .website-chat-choice-actions {
        gap: 8px;
    }

    .website-chat-field input[data-chat-pin-input] {
        max-width: 100%;
    }
}


/* End current customer chat */
.website-chat-end {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    border: 0;
    background: transparent;
    color: var(--site-muted);
    padding: 4px 8px;
    font: inherit;
    font-size: .72rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.website-chat-end:hover {
    color: var(--site-text);
}

.website-chat-end:disabled {
    opacity: .5;
    cursor: wait;
}


/* Post-chat confirmation state */
.website-chat-ended {
    min-height: 330px;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 34px 26px;
    text-align: center;
}

.website-chat-ended[hidden] {
    display: none;
}

.website-chat-ended__icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--site-primary) 10%, var(--site-surface));
    color: var(--site-primary);
}

.website-chat-ended__icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.website-chat-ended h3 {
    margin: 0;
    color: var(--site-text);
    font-size: 1.1rem;
}

.website-chat-ended p {
    max-width: 270px;
    margin: 8px 0 18px;
    color: var(--site-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.website-chat-ended__button {
    width: auto;
    min-width: 145px;
    padding-inline: 18px;
}

@media (max-width: 620px) {
    .website-chat-ended {
        min-height: 300px;
        padding: 28px 22px;
    }
}
