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

.psa-chat {
    --psa-red: #b71937;
    --psa-red-dark: #8a1028;
    --psa-red-deep: #700b20;
    --psa-cream: #fff8ed;
    --psa-white: #ffffff;
    --psa-ink: #231f20;
    --psa-muted: #756e6b;
    --psa-border: rgba(82, 44, 35, 0.15);
    --psa-border-strong: rgba(82, 44, 35, 0.24);
    --psa-green: #347a40;
    --psa-green-light: rgba(52, 122, 64, 0.1);
    --psa-error: #a51d33;
    --psa-error-light: rgba(165, 29, 51, 0.08);
    --psa-shadow: 0 24px 70px rgba(31, 18, 14, 0.25);

    position: relative;
    z-index: 2147483000;
    font-family: inherit;
}

.psa-chat button,
.psa-chat input,
.psa-chat textarea,
.psa-chat select {
    font: inherit;
}

.psa-chat button {
    -webkit-tap-highlight-color: transparent;
}

.psa-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   SHARED LAUNCHER
   ========================================================= */

.psa-chat__launcher {
    position: fixed;
    z-index: 2147483001;
    margin: 0;
    border: 0;
    cursor: pointer;
}

/* =========================================================
   DESKTOP LAUNCHER
   ========================================================= */

.psa-chat__launcher--desktop {
    right: 8px;
    bottom: 8px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--psa-red);
    color: var(--psa-white);
    box-shadow:
        0 9px 26px rgba(81, 17, 28, 0.29),
        0 2px 7px rgba(81, 17, 28, 0.18);
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.psa-chat__launcher--desktop:hover {
    transform: translateY(-2px);
    background: var(--psa-red-dark);
    box-shadow:
        0 12px 30px rgba(81, 17, 28, 0.34),
        0 3px 9px rgba(81, 17, 28, 0.2);
}

.psa-chat__launcher--desktop svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: currentColor;
}

.psa-chat__launcher--mobile {
    display: none;
}

/* =========================================================
   KEYBOARD FOCUS
   ========================================================= */

.psa-chat__launcher:focus-visible,
.psa-chat__close:focus-visible,
.psa-chat__actions button:focus-visible,
.psa-chat__composer input:focus-visible,
.psa-chat__composer button:focus-visible,
.psa-chat__product-button:focus-visible,
.psa-chat__show-more:focus-visible,
.psa-chat__search-suggestion button:focus-visible,
.psa-chat__group-button:focus-visible,
.psa-chat__variation-option:focus-visible,
.psa-chat__variation-qty-button:focus-visible,
.psa-chat__variation-qty-input:focus-visible,
.psa-chat__option-choice input:focus-visible
    + .psa-chat__option-choice-box,
.psa-chat__option-notes:focus-visible {
    outline: 3px solid rgba(183, 25, 55, 0.3);
    outline-offset: 3px;
}

/* =========================================================
   BACKDROP
   ========================================================= */

.psa-chat__backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483002;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(27, 19, 17, 0.34);
    transition:
        opacity 220ms ease,
        visibility 220ms ease;
}

.psa-chat__backdrop.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   CHAT PANEL
   ========================================================= */

.psa-chat__panel {
    position: fixed;
    right: 8px;
    bottom: 64px;
    z-index: 2147483003;

    width: min(390px, calc(100vw - 24px));
    height: min(650px, calc(100vh - 84px));
    height: min(650px, calc(100dvh - 84px));

    display: flex;
    flex-direction: column;
    overflow: hidden;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    border: 1px solid var(--psa-border);
    border-radius: 24px;
    background: var(--psa-cream);
    box-shadow: var(--psa-shadow);

    transform: translateY(14px) scale(0.985);
    transform-origin: right bottom;

    transition:
        opacity 220ms ease,
        visibility 220ms ease,
        transform 220ms ease;
}

.psa-chat__panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* =========================================================
   HEADER
   ========================================================= */

.psa-chat__header {
    position: relative;
    min-height: 82px;
    padding: 16px 66px 16px 16px;
    display: flex;
    align-items: center;
    color: var(--psa-white);
    background:
        linear-gradient(
            135deg,
            var(--psa-red-dark) 0%,
            var(--psa-red) 100%
        );
}

.psa-chat__brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.psa-chat__brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--psa-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.psa-chat__brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.psa-chat__brand-copy strong {
    overflow: hidden;
    color: var(--psa-white);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.psa-chat__brand-copy span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.2;
}

.psa-chat__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--psa-white);
    cursor: pointer;
    transition:
        background-color 160ms ease,
        transform 160ms ease;
}

.psa-chat__close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: rotate(3deg);
}

.psa-chat__close span {
    display: block;
    margin: 0;
    padding: 0 0 3px;
    font-size: 31px;
    font-weight: 300;
    line-height: 1;
}

/* =========================================================
   BODY
   ========================================================= */

.psa-chat__body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 18px 18px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(183, 25, 55, 0.28) transparent;
}

.psa-chat__body::-webkit-scrollbar {
    width: 6px;
}

.psa-chat__body::-webkit-scrollbar-track {
    background: transparent;
}

.psa-chat__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(183, 25, 55, 0.28);
}

/* =========================================================
   MESSAGES
   ========================================================= */

.psa-chat__message {
    max-width: 88%;
    margin: 0 0 16px;
    padding: 14px 15px;
    border: 1px solid var(--psa-border);
    border-radius: 17px 17px 17px 5px;
    background: var(--psa-white);
    color: var(--psa-ink);
    box-shadow: 0 7px 20px rgba(58, 32, 26, 0.06);
}

.psa-chat__message--user {
    margin-left: auto;
    border-color: var(--psa-red);
    border-radius: 17px 17px 5px 17px;
    background: var(--psa-red);
    color: var(--psa-white);
}

.psa-chat__message p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.psa-chat__message p + p {
    margin-top: 5px;
}

/* =========================================================
   INITIAL ACTION BUTTONS
   ========================================================= */

.psa-chat__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.psa-chat__actions button {
    min-height: 52px;
    margin: 0;
    padding: 12px 13px;
    border: 1px solid rgba(138, 16, 40, 0.17);
    border-radius: 12px;
    background: var(--psa-white);
    color: var(--psa-red-dark);
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    text-align: left;
    box-shadow: 0 4px 14px rgba(58, 32, 26, 0.045);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease;
}

.psa-chat__actions button:hover {
    transform: translateY(-1px);
    border-color: var(--psa-red);
    background: var(--psa-red);
    color: var(--psa-white);
}

.psa-chat__conversation:empty {
    display: none;
}

/* =========================================================
   PRODUCT SEARCH LOADING
   ========================================================= */

.psa-chat__search-loading {
    width: fit-content;
    max-width: 90%;
    margin: 0 0 16px;
    padding: 11px 13px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--psa-border);
    border-radius: 14px 14px 14px 5px;
    background: var(--psa-white);
    color: var(--psa-muted);
    font-size: 13px;
    line-height: 1.3;
    box-shadow: 0 5px 16px rgba(58, 32, 26, 0.05);
}

.psa-chat__search-spinner {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: block;
    border: 2px solid rgba(183, 25, 55, 0.18);
    border-top-color: var(--psa-red);
    border-radius: 50%;
    animation: psa-chat-spin 700ms linear infinite;
}

@keyframes psa-chat-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   GUIDED SHOPPING CATEGORY CHOICES
   ========================================================= */

.psa-chat__group-panel {
    width: 100%;
    margin: 0 0 18px;
}

.psa-chat__group-panel > .psa-chat__message {
    max-width: 100%;
    margin-bottom: 11px;
}

.psa-chat__group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.psa-chat__group-button {
    min-width: 0;
    min-height: 62px;
    margin: 0;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    border: 1px solid rgba(138, 16, 40, 0.18);
    border-radius: 13px;
    background: var(--psa-white);
    color: var(--psa-red-dark);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 4px 14px rgba(58, 32, 26, 0.045);
    transition:
        transform 150ms ease,
        border-color 150ms ease,
        background-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease;
}

.psa-chat__group-button:hover {
    transform: translateY(-1px);
    border-color: var(--psa-red);
    background: var(--psa-red);
    color: var(--psa-white);
    box-shadow: 0 7px 18px rgba(89, 19, 34, 0.14);
}

.psa-chat__group-button--all {
    grid-column: 1 / -1;
    min-height: 54px;
    align-items: center;
    text-align: center;
}

.psa-chat__group-label {
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.psa-chat__group-count {
    color: var(--psa-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.2;
}

.psa-chat__group-button:hover .psa-chat__group-count {
    color: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   PRODUCT RESULTS
   ========================================================= */

.psa-chat__product-results {
    width: 100%;
    margin: 2px 0 18px;
}

.psa-chat__product-results--continued {
    margin-top: 10px;
}

.psa-chat__product-results-heading {
    margin: 0 0 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.psa-chat__product-results-heading strong {
    color: var(--psa-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.psa-chat__product-results-heading span {
    color: var(--psa-muted);
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}

.psa-chat__product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */

.psa-chat__product-card {
    min-width: 0;
    padding: 10px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    overflow: hidden;
    border: 1px solid var(--psa-border);
    border-radius: 15px;
    background: var(--psa-white);
    box-shadow: 0 6px 18px rgba(58, 32, 26, 0.055);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.psa-chat__product-card.is-expanded {
    border-color: rgba(183, 25, 55, 0.25);
    box-shadow:
        0 8px 24px rgba(58, 32, 26, 0.08),
        0 0 0 1px rgba(183, 25, 55, 0.04);
}

.psa-chat__product-image-link {
    width: 88px;
    height: 88px;
    display: block;
    overflow: hidden;
    border-radius: 11px;
    background: #f5eee4;
    text-decoration: none;
}

.psa-chat__product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.psa-chat__product-details {
    min-width: 0;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.psa-chat__product-title {
    margin: 1px 0 4px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--psa-ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.psa-chat__product-title:hover {
    color: var(--psa-red);
}

.psa-chat__product-price {
    min-height: 20px;
    margin: 0 0 5px;
    color: var(--psa-red-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.psa-chat__product-price .amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.psa-chat__product-price .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.psa-chat__product-status-row {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
}

.psa-chat__product-stock,
.psa-chat__product-type {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.psa-chat__product-stock {
    position: relative;
    padding-left: 9px;
}

.psa-chat__product-stock::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.psa-chat__product-stock--available {
    color: #33783e;
}

.psa-chat__product-stock--available::before {
    background: #3f9b4c;
}

.psa-chat__product-stock--unavailable {
    color: #9f2736;
}

.psa-chat__product-stock--unavailable::before {
    background: #b71937;
}

.psa-chat__product-type {
    color: var(--psa-muted);
}

.psa-chat__product-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.psa-chat__product-button {
    min-width: 0;
    min-height: 34px;
    margin: 0;
    padding: 7px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition:
        transform 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease,
        opacity 150ms ease;
}

.psa-chat__product-button:hover {
    transform: translateY(-1px);
}

.psa-chat__product-button--primary {
    border: 1px solid var(--psa-red);
    background: var(--psa-red);
    color: var(--psa-white);
}

.psa-chat__product-button--primary:hover {
    border-color: var(--psa-red-dark);
    background: var(--psa-red-dark);
    color: var(--psa-white);
}

.psa-chat__product-button--secondary {
    border: 1px solid rgba(138, 16, 40, 0.2);
    background: var(--psa-white);
    color: var(--psa-red-dark);
}

.psa-chat__product-button--secondary:hover {
    border-color: var(--psa-red);
    background: #fff7f8;
    color: var(--psa-red);
}

.psa-chat__product-button:disabled {
    border-color: #d5cfcb;
    background: #e7e2df;
    color: #8d8783;
    cursor: not-allowed;
    opacity: 0.78;
    transform: none;
}

.psa-chat__product-button.is-loading {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.psa-chat__product-button.is-added {
    border-color: var(--psa-green);
    background: var(--psa-green);
    color: var(--psa-white);
}

/* =========================================================
   INLINE PRODUCT EXPANSION
   ========================================================= */

.psa-chat__product-expansion {
    grid-column: 1 / -1;
    width: calc(100% + 20px);
    min-width: 0;
    margin: 1px -10px -10px;
    overflow: hidden;
    border-top: 1px solid rgba(82, 44, 35, 0.12);
    background:
        linear-gradient(
            180deg,
            rgba(255, 248, 237, 0.5) 0%,
            rgba(255, 248, 237, 0.94) 100%
        );
    animation: psa-chat-expand 180ms ease-out;
}

@keyframes psa-chat-expand {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.psa-chat__product-expansion-inner {
    width: 100%;
    min-width: 0;
    padding: 13px 11px 12px;
}

.psa-chat__dynamic-options {
    width: 100%;
    min-width: 0;
}

.psa-chat__option-group {
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
}

.psa-chat__option-group:last-child {
    margin-bottom: 0;
}

.psa-chat__option-group--variations {
    margin-bottom: 15px;
}

.psa-chat__option-group--notes {
    margin-top: 2px;
}

.psa-chat__option-label {
    margin: 0 0 8px;
    color: var(--psa-ink);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.psa-chat__option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.psa-chat__option-choice {
    min-width: 0;
    display: block;
    position: relative;
    margin: 0;
    cursor: pointer;
}

.psa-chat__option-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.psa-chat__option-choice-box {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 9px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1.5px solid rgba(138, 16, 40, 0.17);
    border-radius: 10px;
    background: var(--psa-white);
    color: var(--psa-ink);
    text-align: center;
    transition:
        transform 150ms ease,
        border-color 150ms ease,
        background-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease,
        opacity 150ms ease;
}

.psa-chat__option-choice:hover
    .psa-chat__option-choice-box {
    transform: translateY(-1px);
    border-color: var(--psa-red);
}

.psa-chat__option-choice-box strong {
    display: block;
    color: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.psa-chat__option-choice-box span {
    display: block;
    color: inherit;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0.78;
}

.psa-chat__option-choice input:checked
    + .psa-chat__option-choice-box {
    border-color: var(--psa-red);
    background: var(--psa-red);
    color: var(--psa-white);
    box-shadow: 0 5px 14px rgba(183, 25, 55, 0.16);
}

.psa-chat__option-choice input:disabled
    + .psa-chat__option-choice-box {
    border-color: #d8d2ce;
    background: #eee9e6;
    color: #8d8783;
    cursor: not-allowed;
    opacity: 0.68;
}

.psa-chat__option-choice:has(input:disabled) {
    cursor: not-allowed;
}

.psa-chat__option-choice:has(input:disabled):hover
    .psa-chat__option-choice-box {
    transform: none;
    border-color: #d8d2ce;
}

.psa-chat__option-notes {
    width: 100%;
    min-width: 0;
    min-height: 82px;
    max-height: 150px;
    display: block;
    margin: 0;
    padding: 10px 11px;
    resize: vertical;
    border: 1px solid var(--psa-border-strong);
    border-radius: 10px;
    outline: none;
    background: var(--psa-white);
    color: var(--psa-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.psa-chat__option-notes::placeholder {
    color: #918b87;
    opacity: 1;
}

.psa-chat__option-notes:focus {
    border-color: var(--psa-red);
}

/* =========================================================
   VARIATION OPTIONS
   ========================================================= */

.psa-chat__variation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.psa-chat__variation-option {
    min-width: 0;
    min-height: 64px;
    margin: 0;
    padding: 9px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1.5px solid rgba(138, 16, 40, 0.18);
    border-radius: 10px;
    background: var(--psa-white);
    color: var(--psa-ink);
    cursor: pointer;
    text-align: center;
    transition:
        transform 150ms ease,
        border-color 150ms ease,
        background-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease,
        opacity 150ms ease;
}

.psa-chat__variation-option:hover {
    transform: translateY(-1px);
    border-color: var(--psa-red);
}

.psa-chat__variation-option strong {
    color: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.psa-chat__variation-option span {
    color: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.psa-chat__variation-option span .amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.psa-chat__variation-option small {
    color: inherit;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0.72;
}

.psa-chat__variation-option.is-selected {
    border-color: var(--psa-red);
    background: var(--psa-red);
    color: var(--psa-white);
    box-shadow: 0 5px 14px rgba(183, 25, 55, 0.17);
}

.psa-chat__variation-option.is-unavailable,
.psa-chat__variation-option:disabled {
    border-color: #d5cfcb;
    background: #eee9e6;
    color: #8d8783;
    cursor: not-allowed;
    opacity: 0.7;
}

.psa-chat__variation-option.is-unavailable:hover,
.psa-chat__variation-option:disabled:hover {
    transform: none;
    border-color: #d5cfcb;
}

/* =========================================================
   PURCHASE AREA
   ========================================================= */

.psa-chat__purchase-area {
    width: 100%;
    min-width: 0;
    margin-top: 3px;
    padding-top: 12px;
    border-top: 1px solid rgba(82, 44, 35, 0.12);
}

.psa-chat__variation-summary {
    min-height: 38px;
    margin: 0 0 9px;
    padding: 9px 10px;
    border-radius: 9px;
    background: rgba(183, 25, 55, 0.06);
    color: var(--psa-ink);
    font-size: 10.5px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.psa-chat__variation-summary strong {
    color: var(--psa-red-dark);
    font-weight: 850;
}

.psa-chat__variation-summary .amount {
    color: inherit;
    font-size: inherit;
    font-weight: 800;
}

.psa-chat__variation-footer {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.psa-chat__variation-quantity {
    width: 106px;
    min-width: 106px;
    display: grid;
    grid-template-columns: 32px 38px 32px;
    align-items: center;
    gap: 2px;
}

.psa-chat__variation-qty-button {
    width: 32px;
    min-width: 32px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(138, 16, 40, 0.18);
    border-radius: 9px;
    background: var(--psa-white);
    color: var(--psa-red-dark);
    cursor: pointer;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.psa-chat__variation-qty-button:hover {
    border-color: var(--psa-red);
    background: #fff7f8;
}

.psa-chat__variation-qty-button:disabled {
    border-color: #d5cfcb;
    background: #f0ece9;
    color: #aaa4a0;
    cursor: default;
    opacity: 0.65;
}

.psa-chat__variation-qty-input {
    width: 38px;
    min-width: 38px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: var(--psa-ink);
    font-size: 16px;
    font-weight: 850;
    line-height: 40px;
    text-align: center;
    box-shadow: none;
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: none;
}

.psa-chat__variation-qty-input::-webkit-inner-spin-button,
.psa-chat__variation-qty-input::-webkit-outer-spin-button {
    margin: 0;
    display: none;
    -webkit-appearance: none;
}

.psa-chat__variation-add {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 11px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
}

.psa-chat__variation-add:only-child {
    grid-template-columns: 1fr;
}

.psa-chat__add-label {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.psa-chat__add-price {
    color: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
}

/* =========================================================
   CART STATUS AND ERRORS
   ========================================================= */

.psa-chat__inline-status {
    min-height: 0;
    margin: 8px 0 0;
    padding: 0;
    color: var(--psa-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}

.psa-chat__inline-status:empty {
    display: none;
}

.psa-chat__inline-status.is-loading {
    display: block;
    padding: 8px 9px;
    border: 1px solid rgba(82, 44, 35, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--psa-muted);
}

.psa-chat__inline-status.is-success {
    display: block;
    padding: 8px 9px;
    border: 1px solid rgba(52, 122, 64, 0.2);
    border-radius: 8px;
    background: var(--psa-green-light);
    color: var(--psa-green);
}

.psa-chat__inline-status.is-error {
    display: block;
    padding: 8px 9px;
    border: 1px solid rgba(165, 29, 51, 0.2);
    border-radius: 8px;
    background: var(--psa-error-light);
    color: var(--psa-error);
}

.psa-chat__card-error {
    grid-column: 1 / -1;
    width: 100%;
    margin: 2px 0 0;
    padding: 9px 10px;
    border: 1px solid rgba(165, 29, 51, 0.2);
    border-radius: 9px;
    background: var(--psa-error-light);
    color: var(--psa-error);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* =========================================================
   LEGACY VARIATION PANEL COMPATIBILITY
   ========================================================= */

.psa-chat__variation-result {
    width: 100%;
    margin: 11px 0 18px;
}

.psa-chat__variation-panel {
    width: 100%;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--psa-border);
    border-radius: 16px;
    background: var(--psa-white);
    box-shadow: 0 7px 22px rgba(58, 32, 26, 0.07);
}

.psa-chat__variation-heading {
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.psa-chat__variation-heading strong {
    color: var(--psa-ink);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.psa-chat__variation-heading span {
    color: var(--psa-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.3;
}

.psa-chat__variation-view {
    width: 100%;
    min-height: 39px;
    margin-top: 8px;
}

/* =========================================================
   SHOW MORE AND SEARCH AGAIN
   ========================================================= */

.psa-chat__show-more-wrapper,
.psa-chat__search-suggestion {
    margin-top: 11px;
    display: flex;
    justify-content: center;
}

.psa-chat__show-more,
.psa-chat__search-suggestion button {
    min-height: 40px;
    margin: 0;
    padding: 9px 16px;
    border: 1px solid var(--psa-red);
    border-radius: 999px;
    background: transparent;
    color: var(--psa-red-dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    transition:
        background-color 150ms ease,
        color 150ms ease,
        transform 150ms ease;
}

.psa-chat__show-more:hover,
.psa-chat__search-suggestion button:hover {
    transform: translateY(-1px);
    background: var(--psa-red);
    color: var(--psa-white);
}

.psa-chat__show-more:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

/* =========================================================
   MESSAGE COMPOSER
   ========================================================= */

.psa-chat__composer {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    border-top: 1px solid var(--psa-border);
    background: rgba(255, 255, 255, 0.94);
}

.psa-chat__composer input {
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid rgba(75, 43, 35, 0.18);
    border-radius: 13px;
    background: var(--psa-white);
    color: var(--psa-ink);
    font-size: 14px;
    line-height: 1.2;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.psa-chat__composer input::placeholder {
    color: #918b87;
    opacity: 1;
}

.psa-chat__composer input:focus {
    border-color: var(--psa-red);
    outline: none;
}

.psa-chat__composer button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: var(--psa-red);
    color: var(--psa-white);
    cursor: pointer;
    transition:
        transform 160ms ease,
        background-color 160ms ease;
}

.psa-chat__composer button:hover {
    transform: translateY(-1px);
    background: var(--psa-red-dark);
}

.psa-chat__composer button svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

/* =========================================================
   MOBILE PAGE LOCK
   ========================================================= */

html.psa-chat-page-locked,
body.psa-chat-page-locked {
    overflow: hidden;
    overscroll-behavior: none;
}

body.psa-chat-page-locked {
    touch-action: none;
}

/* =========================================================
   TABLET
   ========================================================= */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    .psa-chat__launcher--desktop {
        display: none;
    }

    .psa-chat__launcher--mobile {
        top: 50%;
        right: 0;
        left: auto;
        bottom: auto;

        width: 26px;
        min-width: 26px;
        height: 99px;
        margin: 0;
        padding: 7px 0 6px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        border-radius: 9px 0 0 9px;
        background:
            linear-gradient(
                180deg,
                #c01a3b 0%,
                var(--psa-red) 100%
            );
        color: var(--psa-white);

        box-shadow:
            -4px 4px 13px rgba(71, 18, 26, 0.18),
            -1px 1px 4px rgba(71, 18, 26, 0.1);

        transform: translateY(-50%);
    }

    .psa-chat__mobile-icon {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
        display: grid;
        place-items: center;
        margin: 0 0 3px;
        padding: 0;
    }

    .psa-chat__mobile-icon svg {
        width: 15px;
        height: 15px;
        display: block;
        fill: currentColor;
    }

    .psa-chat__mobile-word {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .psa-chat__mobile-word span {
        display: block;
        height: 15px;
        margin: 0;
        padding: 0;
        color: var(--psa-white);
        font-size: 10px;
        font-weight: 850;
        line-height: 15px;
        letter-spacing: 0;
        text-align: center;
    }

    .psa-chat__composer input,
    .psa-chat__variation-qty-input,
    .psa-chat__option-notes {
        font-size: 16px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 767px) {

    .psa-chat__launcher--desktop {
        display: none;
    }

    .psa-chat__launcher--mobile {
        top: 54%;
        right: 0;
        left: auto;
        bottom: auto;

        width: 26px;
        min-width: 26px;
        height: 99px;
        margin: 0;
        padding: 7px 0 6px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        border-radius: 9px 0 0 9px;
        background:
            linear-gradient(
                180deg,
                #c01a3b 0%,
                var(--psa-red) 100%
            );
        color: var(--psa-white);

        box-shadow:
            -4px 4px 13px rgba(71, 18, 26, 0.18),
            -1px 1px 4px rgba(71, 18, 26, 0.1);

        transform: translateY(-50%);
    }

    .psa-chat__mobile-icon {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
        display: grid;
        place-items: center;
        margin: 0 0 3px;
        padding: 0;
    }

    .psa-chat__mobile-icon svg {
        width: 15px;
        height: 15px;
        display: block;
        fill: currentColor;
    }

    .psa-chat__mobile-word {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .psa-chat__mobile-word span {
        display: block;
        height: 15px;
        margin: 0;
        padding: 0;
        color: var(--psa-white);
        font-size: 10px;
        font-weight: 850;
        line-height: 15px;
        letter-spacing: 0;
        text-align: center;
    }

    .psa-chat__panel {
        top: 10px;
        right: 10px;
        bottom: 10px;
        left: 10px;

        width: auto;
        height: auto;
        max-height: none;

        border-radius: 22px;
        transform: translateY(18px) scale(0.99);
        transform-origin: center bottom;
    }

    .psa-chat__panel.is-open {
        transform: translateY(0) scale(1);
    }

    .psa-chat__header {
        min-height: 82px;
        padding: 14px 64px 14px 14px;
    }

    .psa-chat__brand {
        gap: 10px;
    }

    .psa-chat__brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 14px;
    }

    .psa-chat__brand-copy strong {
        font-size: 15px;
    }

    .psa-chat__brand-copy span {
        font-size: 12px;
    }

    .psa-chat__close {
        top: 10px;
        right: 10px;
        width: 44px;
        min-width: 44px;
        height: 44px;
    }

    .psa-chat__close span {
        font-size: 32px;
    }

    .psa-chat__body {
        padding: 18px 14px 16px;
    }

    .psa-chat__actions {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .psa-chat__actions button {
        min-height: 48px;
        text-align: center;
    }

    .psa-chat__group-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .psa-chat__group-button {
        min-height: 56px;
        align-items: center;
        text-align: center;
    }

    .psa-chat__group-button--all {
        grid-column: auto;
    }

    .psa-chat__product-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
        padding: 9px;
    }

    .psa-chat__product-image-link {
        width: 82px;
        height: 82px;
    }

    .psa-chat__product-details {
        min-height: 82px;
    }

    .psa-chat__product-actions {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .psa-chat__product-button {
        min-height: 33px;
    }

    .psa-chat__product-expansion {
        width: calc(100% + 18px);
        margin-right: -9px;
        margin-bottom: -9px;
        margin-left: -9px;
    }

    .psa-chat__product-expansion-inner {
        padding: 12px 9px 11px;
    }

    .psa-chat__variation-grid,
    .psa-chat__option-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .psa-chat__variation-option {
        min-height: 60px;
    }

    .psa-chat__option-choice-box {
        min-height: 55px;
    }

    .psa-chat__variation-footer {
        grid-template-columns: 106px minmax(0, 1fr);
        gap: 7px;
    }

    .psa-chat__variation-add {
        min-height: 44px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .psa-chat__add-label,
    .psa-chat__add-price {
        font-size: 10px;
    }

    .psa-chat__composer {
        padding-top: 10px;
        padding-right: calc(10px + env(safe-area-inset-right, 0px));
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        padding-left: calc(10px + env(safe-area-inset-left, 0px));
    }

    /*
     * iPhone Safari does not zoom form controls whose
     * computed font size is at least 16px.
     */
    .psa-chat__composer input,
    .psa-chat__variation-qty-input,
    .psa-chat__option-notes,
    .psa-chat textarea,
    .psa-chat select {
        font-size: 16px;
    }

    .psa-chat__composer input,
    .psa-chat__variation-qty-input,
    .psa-chat__option-notes {
        touch-action: manipulation;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 380px) {

    .psa-chat__header {
        padding-right: 61px;
    }

    .psa-chat__brand-copy strong {
        font-size: 14px;
    }

    .psa-chat__brand-copy span {
        font-size: 11px;
    }

    .psa-chat__body {
        padding: 14px 12px;
    }

    .psa-chat__message {
        max-width: 94%;
    }

    .psa-chat__group-panel > .psa-chat__message {
        max-width: 100%;
    }

    .psa-chat__product-card {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .psa-chat__product-image-link {
        width: 74px;
        height: 74px;
    }

    .psa-chat__product-details {
        min-height: 74px;
    }

    .psa-chat__variation-footer {
        grid-template-columns: 102px minmax(0, 1fr);
        gap: 6px;
    }

    .psa-chat__variation-quantity {
        width: 102px;
        min-width: 102px;
        grid-template-columns: 31px 36px 31px;
        gap: 2px;
    }

    .psa-chat__variation-qty-button {
        width: 31px;
        min-width: 31px;
    }

    .psa-chat__variation-qty-input {
        width: 36px;
        min-width: 36px;
    }

    .psa-chat__variation-add {
        padding-right: 6px;
        padding-left: 6px;
    }

    .psa-chat__add-label,
    .psa-chat__add-price {
        font-size: 9px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .psa-chat__launcher,
    .psa-chat__panel,
    .psa-chat__backdrop,
    .psa-chat__close,
    .psa-chat__actions button,
    .psa-chat__composer button,
    .psa-chat__product-card,
    .psa-chat__product-button,
    .psa-chat__show-more,
    .psa-chat__search-suggestion button,
    .psa-chat__group-button,
    .psa-chat__variation-option,
    .psa-chat__variation-qty-button,
    .psa-chat__option-choice-box {
        transition: none;
    }

    .psa-chat__search-spinner {
        animation: none;
    }

    .psa-chat__product-expansion {
        animation: none;
    }
}

/* =========================================================
   FLATSOME CART DRAWER ABOVE THE ASSISTANT
   ========================================================= */

/*
 * Flatsome uses Magnific Popup for its off-canvas cart drawer.
 * Its overlay and drawer must appear above the assistant while
 * the assistant remains mounted underneath.
 */
html .mfp-bg,
body .mfp-bg {
    z-index: 2147483644 !important;
}

html .mfp-wrap,
body .mfp-wrap {
    z-index: 2147483645 !important;
}

html .mfp-container,
body .mfp-container,
html .mfp-content,
body .mfp-content {
    z-index: 2147483646 !important;
}

html #cart-popup,
body #cart-popup,
html .off-canvas-cart,
body .off-canvas-cart {
    z-index: 2147483646 !important;
}

/*
 * Keep the assistant visible underneath the cart drawer.
 */
body.mfp-ready .psa-chat__panel.is-open,
body.mfp-zoom-out-cur .psa-chat__panel.is-open {
    visibility: visible !important;
    opacity: 1 !important;
}

/*
 * Prevent accidental interaction with the assistant while the
 * cart overlay is receiving customer clicks.
 */
body.mfp-ready .psa-chat__panel,
body.mfp-ready .psa-chat__backdrop {
    pointer-events: none !important;
}

/*
 * Restore assistant interaction after the cart drawer closes.
 */
body:not(.mfp-ready) .psa-chat__panel.is-open {
    pointer-events: auto !important;
}

body:not(.mfp-ready) .psa-chat__backdrop.is-visible {
    pointer-events: auto !important;
}