/* Seojan AI Assistant WooCommerce — white responsive interface */
.haisa-root,
.haisa-root * {
    box-sizing: border-box;
}

.haisa-root {
    --haisa-accent: #10a37f;
    --haisa-secondary: #0d8f73;
    --haisa-bg: #fff;
    --haisa-surface: #f7f7f8;
    --haisa-text: #202123;
    --haisa-muted: #6b7280;
    --haisa-border: #e5e7eb;
    --haisa-user: #f0f2f5;
    --haisa-panel-w: 460px;
    --haisa-panel-h: 740px;
    --haisa-radius: 24px;
    --haisa-border-w: 1px;
    --haisa-glow: 0px;
    --haisa-launcher: 66px;
    --haisa-offset-x: 24px;
    --haisa-offset-y: 24px;
    --haisa-z: 999999;
    --haisa-viewport-height: 100dvh;
    --haisa-viewport-top: 0px;
    color: var(--haisa-text);
    color-scheme: light;
    direction: rtl;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.75;
    text-align: right;
}

.haisa-root button,
.haisa-root textarea,
.haisa-root input {
    font: inherit;
}

.haisa-root button,
.haisa-root a {
    -webkit-tap-highlight-color: transparent;
}

.haisa-root img,
.haisa-root svg {
    max-width: 100%;
}

.haisa-root [hidden] {
    display: none !important;
}

.haisa-root--floating {
    position: fixed;
    z-index: var(--haisa-z);
    bottom: calc(var(--haisa-offset-y) + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

.haisa-root--floating.haisa-root--right {
    right: calc(var(--haisa-offset-x) + env(safe-area-inset-right, 0px));
}

.haisa-root--floating.haisa-root--left {
    left: calc(var(--haisa-offset-x) + env(safe-area-inset-left, 0px));
}

.haisa-root--inline {
    position: relative;
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

/* Launcher and invitation */
.haisa-launcher {
    position: absolute;
    right: 0;
    bottom: 0;
    width: var(--haisa-launcher);
    height: var(--haisa-launcher);
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: visible;
    isolation: isolate;
    pointer-events: auto;
    cursor: pointer;
    color: var(--haisa-accent);
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--haisa-accent) 26%, var(--haisa-border));
    border-radius: 50%;
    box-shadow:
        0 12px 34px rgba(15, 23, 42, .17),
        0 0 var(--haisa-glow) color-mix(in srgb, var(--haisa-accent) 34%, transparent),
        inset 0 0 0 5px color-mix(in srgb, var(--haisa-accent) 7%, #fff);
    transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, opacity .2s ease;
}

.haisa-root--left .haisa-launcher {
    right: auto;
    left: 0;
}

.haisa-launcher::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 7px;
    border-radius: 50%;
    background: linear-gradient(145deg, color-mix(in srgb, var(--haisa-accent) 12%, #fff), #fff);
}

.haisa-launcher:hover {
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 17px 42px rgba(15, 23, 42, .2), 0 0 var(--haisa-glow) color-mix(in srgb, var(--haisa-accent) 38%, transparent);
}

.haisa-launcher:active {
    transform: translateY(-1px) scale(.975);
}

.haisa-launcher__halo {
    position: absolute;
    z-index: -2;
    inset: -6px;
    border: 1px solid color-mix(in srgb, var(--haisa-accent) 25%, transparent);
    border-radius: 50%;
    opacity: .75;
}

.haisa-root.is-inviting .haisa-launcher__halo {
    animation: haisa-pulse-ring 1.9s ease-out infinite;
}

.haisa-launcher__icon {
    position: absolute;
    z-index: 1;
    inset: 7px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.haisa-launcher__icon.has-custom-image {
    overflow: hidden;
}

.haisa-launcher__icon.has-custom-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.haisa-launcher__icon.has-woman {
    inset: auto 0 -3px;
    width: 100%;
    height: calc(var(--haisa-launcher) + 31px);
    overflow: visible;
}

.haisa-launcher__icon.has-woman .haisa-woman-svg {
    position: absolute;
    right: 50%;
    bottom: -13px;
    width: calc(var(--haisa-launcher) + 15px);
    height: calc(var(--haisa-launcher) + 43px);
    transform: translateX(50%);
    filter: drop-shadow(0 5px 5px rgba(15, 23, 42, .08));
    transition: transform .34s cubic-bezier(.2,.8,.2,1);
}

.haisa-root.is-inviting .haisa-launcher__icon.has-woman .haisa-woman-svg,
.haisa-launcher:hover .haisa-launcher__icon.has-woman .haisa-woman-svg {
    transform: translateX(50%) translateY(-5px);
}

/* A single luminous turquoise star orbits the uploaded support avatar. */
.haisa-launcher__orbit {
    position: absolute;
    z-index: 4;
    inset: -9px;
    border-radius: 50%;
    pointer-events: none;
    animation: haisa-avatar-orbit 5.4s linear infinite;
    will-change: transform;
}

.haisa-launcher__orbit::before {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid transparent;
    border-top-color: rgba(34, 211, 238, .72);
    border-right-color: rgba(14, 165, 233, .34);
    border-bottom-color: rgba(45, 212, 191, .12);
    border-radius: 50%;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, .34));
}

.haisa-launcher__orbit > i {
    position: absolute;
    top: -1px;
    left: 50%;
    width: 17px;
    height: 17px;
    display: block;
    background: linear-gradient(135deg, #a5f3fc 5%, #22d3ee 42%, #0ea5e9 72%, #2dd4bf 100%);
    clip-path: polygon(50% 0%, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0% 50%, 39% 37%);
    transform: translate(-50%, -37%);
    box-shadow: 0 0 10px rgba(34, 211, 238, .95), 0 0 20px rgba(14, 165, 233, .55);
    filter: drop-shadow(0 0 5px rgba(34, 211, 238, .95));
    animation: haisa-star-twinkle 1.55s ease-in-out infinite;
}

.haisa-launcher__orbit > i::after {
    content: "";
    position: absolute;
    inset: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px #fff;
}

.haisa-root.is-inviting .haisa-launcher__orbit,
.haisa-launcher:hover .haisa-launcher__orbit {
    animation-duration: 3.2s;
}

.haisa-launcher__badge {
    position: absolute;
    z-index: 5;
    top: -5px;
    left: -5px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #e11d48;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.haisa-launcher__label {
    position: absolute;
    top: 50%;
    left: calc(100% + 11px);
    padding: 7px 11px;
    white-space: nowrap;
    color: var(--haisa-text);
    background: #fff;
    border: 1px solid var(--haisa-border);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .11);
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transform: translate(7px, -50%);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.haisa-root--left .haisa-launcher__label {
    right: calc(100% + 11px);
    left: auto;
    transform: translate(-7px, -50%);
}

.haisa-launcher:hover .haisa-launcher__label {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

.haisa-launcher-invite {
    position: absolute;
    right: 0;
    bottom: calc(var(--haisa-launcher) + 14px);
    width: min(306px, calc(100vw - 32px));
    padding: 14px 14px 12px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 9px 10px;
    pointer-events: none;
    color: var(--haisa-text);
    background: rgba(255,255,255,.98);
    border: 1px solid var(--haisa-border);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.97);
    transform-origin: bottom right;
    transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility .28s ease;
}

.haisa-root--left .haisa-launcher-invite {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.haisa-launcher-invite::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid var(--haisa-border);
    border-bottom: 1px solid var(--haisa-border);
    transform: rotate(45deg);
}

.haisa-root--left .haisa-launcher-invite::after {
    right: auto;
    left: 22px;
}

.haisa-root.is-inviting .haisa-launcher-invite {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.haisa-launcher-invite__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.haisa-launcher-invite__copy strong {
    color: var(--haisa-text);
    font-size: 15px;
    line-height: 1.5;
}

.haisa-launcher-invite__copy span {
    color: var(--haisa-muted);
    font-size: 12.5px;
    line-height: 1.75;
}

.haisa-launcher-invite__close {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 27px;
    height: 27px;
    padding: 6px;
    display: grid;
    place-items: center;
    color: var(--haisa-muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.haisa-launcher-invite__close:hover {
    color: var(--haisa-text);
    background: var(--haisa-surface);
}

.haisa-launcher-invite__close svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.haisa-launcher-invite__button {
    align-self: end;
    min-height: 34px;
    padding: 7px 11px;
    color: #fff;
    background: var(--haisa-accent);
    border: 0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    cursor: pointer;
}

/* Panel */
.haisa-panel {
    position: absolute;
    right: 0;
    bottom: calc(var(--haisa-launcher) + 16px);
    width: min(var(--haisa-panel-w), calc(100vw - 24px));
    height: min(var(--haisa-panel-h), calc(100dvh - var(--haisa-launcher) - var(--haisa-offset-y) - 30px));
    min-height: min(500px, 76dvh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    container-type: inline-size;
    pointer-events: none;
    color: var(--haisa-text);
    background: var(--haisa-bg);
    border: var(--haisa-border-w) solid var(--haisa-border);
    border-radius: var(--haisa-radius);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .17), 0 4px 16px rgba(15,23,42,.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.975);
    transform-origin: bottom right;
    transition: opacity .24s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility .24s ease;
}

.haisa-root--left .haisa-panel {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.haisa-root.is-open .haisa-panel,
.haisa-root--inline .haisa-panel {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.haisa-root.is-open .haisa-launcher,
.haisa-root.is-open .haisa-launcher-invite {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(.88);
}

.haisa-root--inline .haisa-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, var(--haisa-panel-w));
    height: var(--haisa-panel-h);
    min-height: 500px;
}

.haisa-root--shortcode .haisa-panel {
    max-width: 100%;
}

.haisa-header {
    position: relative;
    z-index: 3;
    min-height: 72px;
    padding: 11px 13px 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--haisa-border);
}

.haisa-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.haisa-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--haisa-accent);
    background: color-mix(in srgb, var(--haisa-accent) 9%, #fff);
    border: 1px solid color-mix(in srgb, var(--haisa-accent) 17%, var(--haisa-border));
    border-radius: 14px;
}

.haisa-avatar > svg,
.haisa-avatar > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.haisa-avatar > svg {
    width: 43px;
    height: 50px;
    margin-top: 5px;
}

.haisa-avatar > i {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 11px;
    height: 11px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
}

.haisa-identity__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.45;
}

.haisa-identity__copy strong {
    max-width: 245px;
    overflow: hidden;
    color: var(--haisa-text);
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.haisa-identity__copy small {
    max-width: 260px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: var(--haisa-muted);
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.haisa-online-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}

.haisa-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.haisa-icon-button,
.haisa-order-back {
    width: 36px;
    height: 36px;
    padding: 8px;
    display: grid;
    place-items: center;
    color: var(--haisa-muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.haisa-icon-button:hover,
.haisa-order-back:hover {
    color: var(--haisa-text);
    background: var(--haisa-surface);
}

.haisa-icon-button:active,
.haisa-order-back:active {
    transform: scale(.94);
}

.haisa-icon-button svg,
.haisa-order-back svg,
.haisa-send svg,
.haisa-voice svg,
.haisa-order-submit svg,
.haisa-secure-note svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.haisa-launcher:focus-visible,
.haisa-launcher-invite__button:focus-visible,
.haisa-launcher-invite__close:focus-visible,
.haisa-icon-button:focus-visible,
.haisa-send:focus-visible,
.haisa-voice:focus-visible,
.haisa-chip:focus-visible,
.haisa-action:focus-visible,
.haisa-suggestion:focus-visible,
.haisa-product__button:focus-visible,
.haisa-product__image:focus-visible,
.haisa-product__title a:focus-visible,
.haisa-order-submit:focus-visible,
.haisa-order-back:focus-visible,
.haisa-input:focus-visible,
.haisa-order-form input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--haisa-accent) 28%, transparent);
    outline-offset: 2px;
}

.haisa-connection-state {
    min-height: 34px;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #9a3412;
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    font-size: 11.5px;
}

.haisa-connection-state span {
    width: 7px;
    height: 7px;
    background: #f97316;
    border-radius: 50%;
}

.haisa-content {
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    background: var(--haisa-bg);
}

.haisa-messages {
    min-height: 0;
    padding: 18px 14px 12px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.haisa-messages::-webkit-scrollbar {
    width: 7px;
}

.haisa-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.haisa-message {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: haisa-message-in .28s cubic-bezier(.2,.8,.2,1) both;
}

.haisa-message--user {
    justify-content: flex-start;
}

.haisa-message__mini-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--haisa-accent);
    background: color-mix(in srgb, var(--haisa-accent) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--haisa-accent) 15%, var(--haisa-border));
    border-radius: 10px;
}

.haisa-message__mini-avatar svg,
.haisa-message__mini-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.haisa-message__mini-avatar .haisa-woman-svg {
    width: 29px;
    height: 34px;
    margin-top: 4px;
}

.haisa-message__body {
    min-width: 0;
    max-width: calc(100% - 38px);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
}

.haisa-message--user .haisa-message__body {
    max-width: 88%;
    margin-right: auto;
    align-items: flex-end;
    flex: 0 1 auto;
}

.haisa-message__bubble {
    max-width: 100%;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    color: var(--haisa-text);
    background: #fff;
    border: 1px solid var(--haisa-border);
    border-radius: 5px 15px 15px 15px;
    box-shadow: 0 2px 9px rgba(15,23,42,.035);
}

.haisa-message--user .haisa-message__bubble {
    background: var(--haisa-user);
    border-color: transparent;
    border-radius: 15px 5px 15px 15px;
    box-shadow: none;
}

.haisa-message__bubble p {
    margin: 0;
}

.haisa-message__bubble p + p,
.haisa-message__bubble ul + p,
.haisa-message__bubble ol + p,
.haisa-message__bubble p + ul,
.haisa-message__bubble p + ol {
    margin-top: 8px;
}

.haisa-message__bubble ul,
.haisa-message__bubble ol {
    margin: 7px 0 0;
    padding: 0 20px 0 0;
}

.haisa-message__bubble li + li {
    margin-top: 3px;
}

.haisa-message__bubble code {
    padding: 1px 5px;
    direction: ltr;
    color: #065f46;
    background: #ecfdf5;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .92em;
}

.haisa-message__time {
    margin-top: 3px;
    padding: 0 4px;
    color: var(--haisa-muted);
    font-size: 9.5px;
    line-height: 1.3;
}

.haisa-typing,
.haisa-streaming--pending {
    min-width: min(205px, 72vw);
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--haisa-muted);
}

.haisa-typing__label {
    min-width: 0;
    color: var(--haisa-muted);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
}

.haisa-typing__dots {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
    direction: ltr;
}

.haisa-typing__dots > i {
    width: 5px;
    height: 5px;
    display: block;
    background: var(--haisa-accent);
    border-radius: 50%;
    animation: haisa-typing 1.15s infinite ease-in-out;
}

.haisa-typing__dots > i:nth-child(2) { animation-delay: .13s; }
.haisa-typing__dots > i:nth-child(3) { animation-delay: .26s; }

.haisa-streaming {
    min-height: 39px;
}

.haisa-stream-status {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--haisa-muted);
    font-size: 12px;
}

.haisa-stream-status::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 2px solid color-mix(in srgb, var(--haisa-accent) 24%, var(--haisa-border));
    border-top-color: var(--haisa-accent);
    border-radius: 50%;
    animation: haisa-spin .8s linear infinite;
}

/* Tables */
.haisa-table-wrap {
    max-width: 100%;
    margin-top: 8px;
    overflow-x: auto;
    border: 1px solid var(--haisa-border);
    border-radius: 10px;
}

.haisa-table-wrap table {
    width: 100%;
    min-width: 360px;
    border: 0;
    border-collapse: collapse;
    background: #fff;
    font-size: 11.5px;
}

.haisa-table-wrap th,
.haisa-table-wrap td {
    padding: 8px 9px;
    color: var(--haisa-text);
    text-align: right;
    border: 0;
    border-bottom: 1px solid var(--haisa-border);
    border-left: 1px solid var(--haisa-border);
}

.haisa-table-wrap th {
    background: var(--haisa-surface);
    font-weight: 800;
}

.haisa-table-wrap tr:last-child td { border-bottom: 0; }
.haisa-table-wrap th:last-child,
.haisa-table-wrap td:last-child { border-left: 0; }

/* Products — always a stable two-column grid for multiple cards */
.haisa-products {
    width: 100%;
    min-width: 0;
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.haisa-products--single {
    grid-template-columns: minmax(0, 1fr);
}

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

.haisa-product {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--haisa-text);
    background: #fff;
    border: 1px solid var(--haisa-border);
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(15,23,42,.045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.haisa-product:hover {
    border-color: color-mix(in srgb, var(--haisa-accent) 28%, var(--haisa-border));
    box-shadow: 0 8px 22px rgba(15,23,42,.09);
    transform: translateY(-2px);
}

.haisa-product__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--haisa-surface);
    border-bottom: 1px solid var(--haisa-border);
    text-decoration: none;
}

.haisa-product__image img {
    width: 100%;
    height: 100%;
    padding: 7px;
    display: block;
    object-fit: contain;
    transition: transform .22s ease;
}

.haisa-product:hover .haisa-product__image img {
    transform: scale(1.025);
}

.haisa-product__image.has-no-image::before {
    content: "تصویر محصول";
    color: var(--haisa-muted);
    font-size: 11px;
}

.haisa-product__image.has-no-image img {
    display: none;
}

.haisa-product__discount {
    position: absolute;
    top: 7px;
    right: 7px;
    padding: 3px 6px;
    color: #fff;
    background: #e11d48;
    border-radius: 7px;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.5;
}

.haisa-product__content {
    min-width: 0;
    padding: 9px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
}

.haisa-product__title {
    min-width: 0;
    min-height: 43px;
    margin: 0;
    color: var(--haisa-text);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.75;
}

.haisa-product__title a {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.haisa-product__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.haisa-product__price {
    min-width: 0;
    color: var(--haisa-text);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.haisa-product__price del,
.haisa-product__price ins,
.haisa-product__price .amount {
    color: inherit !important;
    background: transparent !important;
    text-decoration-thickness: 1px;
}

.haisa-product__stock {
    align-self: flex-start;
    max-width: 100%;
    padding: 2px 6px;
    overflow: hidden;
    color: #047857;
    background: #ecfdf5;
    border-radius: 6px;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.haisa-product__stock.is-out {
    color: #b91c1c;
    background: #fef2f2;
}

.haisa-product__button {
    width: 100%;
    min-height: 36px;
    margin-top: auto;
    padding: 7px 8px;
    display: grid;
    place-items: center;
    color: #fff !important;
    background: var(--haisa-accent) !important;
    border: 1px solid var(--haisa-accent) !important;
    border-radius: 9px;
    box-shadow: none !important;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.55;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease, background .18s ease;
}

.haisa-product__button:hover {
    color: #fff !important;
    filter: brightness(.94);
}

.haisa-product__button:active {
    transform: scale(.98);
}

.haisa-product__button:disabled {
    cursor: wait;
    opacity: .72;
}

.haisa-product__button.is-added {
    background: #047857 !important;
    border-color: #047857 !important;
}

/* Actions and suggestions */
.haisa-actions,
.haisa-suggestions {
    width: 100%;
    min-width: 0;
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.haisa-action,
.haisa-suggestion {
    min-width: 0;
    min-height: 34px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: anywhere;
    border-radius: 9px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

.haisa-action {
    color: #fff !important;
    background: var(--haisa-accent);
    border: 1px solid var(--haisa-accent);
}

.haisa-suggestion {
    color: var(--haisa-text);
    background: #fff;
    border: 1px solid var(--haisa-border);
}

.haisa-suggestion:hover {
    color: var(--haisa-accent);
    border-color: color-mix(in srgb, var(--haisa-accent) 35%, var(--haisa-border));
}

/* Quick actions: full text, no clipped horizontal carousel */
.haisa-quick-actions {
    width: 100%;
    min-width: 0;
    padding: 10px 12px 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid var(--haisa-border);
}

.haisa-quick-actions:empty {
    display: none;
}

.haisa-quick-actions[hidden],
.haisa-composer-meta[hidden] {
    display: none !important;
}

.haisa-chip {
    min-width: 0;
    min-height: 43px;
    margin: 0;
    padding: 7px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    color: var(--haisa-text);
    background: var(--haisa-surface);
    border: 1px solid var(--haisa-border);
    border-radius: 11px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.haisa-chip::before {
    content: "✦";
    margin-left: 4px;
    color: var(--haisa-accent);
    font-size: 10px;
}

.haisa-chip:hover {
    color: var(--haisa-accent);
    background: color-mix(in srgb, var(--haisa-accent) 5%, #fff);
    border-color: color-mix(in srgb, var(--haisa-accent) 32%, var(--haisa-border));
    transform: translateY(-1px);
}

/* Composer */
.haisa-composer-wrap {
    position: relative;
    z-index: 3;
    padding: 10px 12px 8px;
    flex: 0 0 auto;
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--haisa-border);
}

.haisa-composer {
    min-height: 48px;
    padding: 5px 6px 5px 7px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 15px;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.haisa-composer:focus-within {
    border-color: color-mix(in srgb, var(--haisa-accent) 58%, #d1d5db);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--haisa-accent) 10%, transparent);
}

.haisa-input {
    width: 100%;
    min-width: 0;
    min-height: 37px;
    max-height: 112px;
    padding: 7px 4px;
    resize: none;
    overflow-y: auto;
    color: var(--haisa-text);
    caret-color: var(--haisa-accent);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 1.65;
    outline: 0;
}

.haisa-input::placeholder {
    color: #9ca3af;
}

.haisa-input:disabled {
    cursor: wait;
    opacity: .75;
}

.haisa-send,
.haisa-voice {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 9px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
}

.haisa-send {
    color: #fff;
    background: var(--haisa-accent);
    border: 0;
}

.haisa-send:disabled {
    color: #9ca3af;
    background: #eef0f2;
    cursor: default;
}

.haisa-send:not(:disabled):active,
.haisa-voice:active {
    transform: scale(.94);
}

.haisa-voice {
    color: var(--haisa-muted);
    background: transparent;
    border: 0;
}

.haisa-voice:hover {
    color: var(--haisa-accent);
    background: color-mix(in srgb, var(--haisa-accent) 7%, #fff);
}

.haisa-voice.is-listening {
    color: #dc2626;
    background: #fef2f2;
    animation: haisa-mic-pulse 1.2s ease infinite;
}

.haisa-composer-meta {
    min-height: 17px;
    padding: 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--haisa-muted);
    font-size: 8.5px;
    line-height: 1.4;
}

.haisa-composer-meta b {
    direction: ltr;
    font-weight: 600;
}

/* Secure order view */
.haisa-order-view {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: flex;
    flex-direction: column;
    color: var(--haisa-text);
    background: #fff;
}

.haisa-order-view > header {
    min-height: 72px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border-bottom: 1px solid var(--haisa-border);
}

.haisa-order-view > header > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.haisa-order-view > header strong {
    font-size: 14px;
}

.haisa-order-view > header small {
    color: var(--haisa-muted);
    font-size: 10.5px;
}

.haisa-order-view__body {
    min-height: 0;
    padding: 16px 14px 24px;
    flex: 1 1 auto;
    overflow-y: auto;
}

.haisa-secure-note {
    padding: 11px 12px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
}

.haisa-secure-note svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 2px;
}

.haisa-secure-note p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.75;
}

.haisa-order-form {
    margin-top: 15px;
    display: grid;
    gap: 12px;
}

.haisa-order-form label {
    display: grid;
    gap: 5px;
    color: var(--haisa-text);
    font-size: 11.5px;
    font-weight: 700;
}

.haisa-order-form input {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    direction: rtl;
    color: var(--haisa-text);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 11px;
    outline: 0;
}

.haisa-order-form input:focus {
    border-color: var(--haisa-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--haisa-accent) 10%, transparent);
}

.haisa-order-form input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}

.haisa-order-submit {
    min-height: 45px;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: var(--haisa-accent);
    border: 0;
    border-radius: 11px;
    font-weight: 800;
    cursor: pointer;
}

.haisa-order-submit svg {
    width: 18px;
    height: 18px;
}

.haisa-order-submit:disabled {
    cursor: wait;
    opacity: .72;
}

.haisa-order-result {
    margin-top: 14px;
}

.haisa-order-error {
    padding: 10px 11px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 11.5px;
}

.haisa-order-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--haisa-border);
    border-radius: 14px;
}

.haisa-order-card__status {
    padding: 13px;
    background: var(--haisa-surface);
    border-bottom: 1px solid var(--haisa-border);
}

.haisa-order-card__status > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.haisa-order-card__status strong {
    font-size: 13px;
}

.haisa-order-card__status p {
    margin: 7px 0 0;
    color: var(--haisa-muted);
    font-size: 11px;
}

.haisa-order-badge {
    padding: 3px 7px;
    color: #065f46;
    background: #d1fae5;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
}

.haisa-order-card__details {
    padding: 4px 13px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0 14px;
}

.haisa-order-detail {
    min-width: 0;
    padding: 9px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid var(--haisa-border);
}

.haisa-order-detail span {
    color: var(--haisa-muted);
    font-size: 9.5px;
}

.haisa-order-detail b {
    min-width: 0;
    color: var(--haisa-text);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.haisa-order-items,
.haisa-order-tracking {
    padding: 12px 13px;
    border-top: 1px solid var(--haisa-border);
}

.haisa-order-items h4,
.haisa-order-tracking h4 {
    margin: 0 0 8px;
    font-size: 12px;
}

.haisa-order-item {
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--haisa-muted);
    font-size: 10.5px;
    border-bottom: 1px dashed var(--haisa-border);
}

.haisa-order-item:last-child {
    border-bottom: 0;
}

.haisa-order-item span:first-child {
    min-width: 0;
    color: var(--haisa-text);
    overflow-wrap: anywhere;
}

.haisa-tracking-row {
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--haisa-muted);
    background: var(--haisa-surface);
    border-radius: 9px;
    font-size: 10.5px;
}

.haisa-tracking-row + .haisa-tracking-row {
    margin-top: 7px;
}

.haisa-tracking-row a,
.haisa-order-card__links a {
    color: var(--haisa-accent);
    font-weight: 750;
    text-decoration: none;
}

.haisa-order-card__links {
    padding: 11px 13px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--haisa-border);
}


/* Elementor and other narrow parent containers must respond to the panel width,
   not only the browser viewport. */
@container (max-width: 380px) {
    .haisa-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .haisa-chip {
        min-height: 40px;
        font-size: 10px;
    }

    .haisa-product__content {
        padding: 7px;
        gap: 6px;
    }

    .haisa-product__title {
        min-height: 41px;
        font-size: 11px;
    }

    .haisa-product__price {
        font-size: 10.5px;
    }

    .haisa-product__button {
        min-height: 34px;
        padding: 6px;
        font-size: 9.8px;
    }
}

@container (max-width: 280px) {
    .haisa-products--multiple,
    .haisa-quick-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Mobile and narrow containers */
@media (max-width: 680px) {
    html.haisa-chat-open,
    html.haisa-chat-open body {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    .haisa-root--floating {
        bottom: calc(17px + env(safe-area-inset-bottom, 0px));
    }

    .haisa-root--floating.haisa-root--right {
        right: calc(16px + env(safe-area-inset-right, 0px));
    }

    .haisa-root--floating.haisa-root--left {
        left: calc(16px + env(safe-area-inset-left, 0px));
    }

    .haisa-root--floating .haisa-panel {
        position: fixed;
        top: var(--haisa-viewport-top);
        right: 0;
        bottom: auto;
        left: 0;
        width: 100vw;
        max-width: none;
        height: var(--haisa-viewport-height);
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: translateY(20px);
        transform-origin: bottom center;
    }

    .haisa-root--floating.is-open .haisa-panel {
        transform: translateY(0);
    }

    .haisa-header {
        min-height: calc(67px + env(safe-area-inset-top, 0px));
        padding-top: calc(9px + env(safe-area-inset-top, 0px));
    }

    .haisa-messages {
        padding: 15px 11px 10px;
    }

    .haisa-quick-actions {
        padding: 9px 10px 10px;
    }

    .haisa-composer-wrap {
        padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px));
    }

    .haisa-order-view > header {
        min-height: calc(67px + env(safe-area-inset-top, 0px));
        padding-top: calc(9px + env(safe-area-inset-top, 0px));
    }

    .haisa-launcher__label {
        display: none;
    }

    .haisa-launcher-invite {
        width: min(306px, calc(100vw - 24px));
    }
}

@media (max-width: 380px) {
    .haisa-root {
        font-size: 13.5px;
    }

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

    .haisa-chip {
        min-height: 40px;
        font-size: 10px;
    }

    .haisa-product__content {
        padding: 7px;
        gap: 6px;
    }

    .haisa-product__title {
        min-height: 41px;
        font-size: 11px;
    }

    .haisa-product__price {
        font-size: 10.5px;
    }

    .haisa-product__button {
        min-height: 34px;
        padding: 6px;
        font-size: 9.8px;
    }

    .haisa-order-card__details {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (max-width: 300px) {
    .haisa-products--multiple,
    .haisa-quick-actions {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (hover: none) {
    .haisa-product:hover,
    .haisa-chip:hover,
    .haisa-launcher:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .haisa-root--respect-reduced-motion *,
    .haisa-root--respect-reduced-motion *::before,
    .haisa-root--respect-reduced-motion *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@keyframes haisa-message-in {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes haisa-typing {
    0%, 65%, 100% { opacity: .35; transform: translateY(0); }
    32% { opacity: 1; transform: translateY(-4px); }
}

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

@keyframes haisa-avatar-orbit {
    to { transform: rotate(360deg); }
}

@keyframes haisa-star-twinkle {
    0%, 100% { opacity: .78; transform: translate(-50%, -37%) scale(.82); }
    50% { opacity: 1; transform: translate(-50%, -37%) scale(1.14); }
}

@keyframes haisa-pulse-ring {
    0% { opacity: .65; transform: scale(1); }
    75%, 100% { opacity: 0; transform: scale(1.28); }
}

@keyframes haisa-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.16); }
    50% { box-shadow: 0 0 0 7px rgba(220,38,38,0); }
}

/* --------------------------------------------------------------------------
   Version 1.3 — White Pro
   This high-specificity layer intentionally overrides every legacy dark value
   saved by older releases and common WooCommerce/theme global styles.
   -------------------------------------------------------------------------- */
.haisa-root.haisa-theme-white-pro {
    --haisa-bg: #ffffff !important;
    --haisa-surface: #f7f7f8 !important;
    --haisa-text: #171717 !important;
    --haisa-muted: #667085 !important;
    --haisa-border: #e6e8ec !important;
    --haisa-user: #f3f4f6 !important;
    --haisa-glow: 0px !important;
    color: #171717 !important;
    color-scheme: only light !important;
}

.haisa-theme-white-pro .haisa-panel {
    color: #171717 !important;
    background: #ffffff !important;
    background-image: none !important;
    border-color: #e6e8ec !important;
    box-shadow: 0 24px 72px rgba(16, 24, 40, .16), 0 2px 8px rgba(16, 24, 40, .05) !important;
}

.haisa-theme-white-pro .haisa-header,
.haisa-theme-white-pro .haisa-content,
.haisa-theme-white-pro .haisa-messages,
.haisa-theme-white-pro .haisa-quick-actions,
.haisa-theme-white-pro .haisa-composer-wrap,
.haisa-theme-white-pro .haisa-order-view,
.haisa-theme-white-pro .haisa-order-view > header {
    background: #ffffff !important;
    background-image: none !important;
}

.haisa-theme-white-pro .haisa-header {
    min-height: 76px;
    padding: 12px 14px;
    border-bottom: 1px solid #eceef1 !important;
}

.haisa-theme-white-pro .haisa-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    background: #f7f7f8 !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .06);
}

.haisa-theme-white-pro .haisa-avatar > img,
.haisa-theme-white-pro .haisa-message__mini-avatar > img {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: inherit !important;
}

.haisa-theme-white-pro .haisa-avatar > i {
    right: 0;
    bottom: 0;
    background: #12b76a !important;
    border-color: #fff !important;
}

.haisa-theme-white-pro .haisa-identity__copy strong,
.haisa-theme-white-pro .haisa-message__bubble,
.haisa-theme-white-pro .haisa-product,
.haisa-theme-white-pro .haisa-product__title,
.haisa-theme-white-pro .haisa-product__price,
.haisa-theme-white-pro .haisa-chip,
.haisa-theme-white-pro .haisa-suggestion,
.haisa-theme-white-pro .haisa-input,
.haisa-theme-white-pro .haisa-order-view,
.haisa-theme-white-pro .haisa-order-card,
.haisa-theme-white-pro .haisa-order-detail b {
    color: #171717 !important;
}

.haisa-theme-white-pro .haisa-identity__copy small,
.haisa-theme-white-pro .haisa-message__time,
.haisa-theme-white-pro .haisa-composer-meta,
.haisa-theme-white-pro .haisa-order-view > header small {
    color: #667085 !important;
}

.haisa-theme-white-pro .haisa-icon-button,
.haisa-theme-white-pro .haisa-order-back {
    color: #667085 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.haisa-theme-white-pro .haisa-icon-button:hover,
.haisa-theme-white-pro .haisa-order-back:hover {
    color: #171717 !important;
    background: #f3f4f6 !important;
}

.haisa-theme-white-pro .haisa-messages {
    padding: 20px 15px 14px;
    gap: 18px;
    scrollbar-color: #d0d5dd transparent;
}

.haisa-theme-white-pro .haisa-message__mini-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    background: #f7f7f8 !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 50%;
    box-shadow: none !important;
}

/* ChatGPT-like assistant text: clean page surface instead of a dark/bordered box. */
.haisa-theme-white-pro .haisa-message--assistant .haisa-message__bubble {
    padding: 3px 2px 2px !important;
    color: #171717 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.haisa-theme-white-pro .haisa-message--user .haisa-message__bubble {
    padding: 10px 13px !important;
    color: #171717 !important;
    background: #f3f4f6 !important;
    background-image: none !important;
    border: 1px solid #eceef1 !important;
    border-radius: 16px 5px 16px 16px !important;
    box-shadow: none !important;
}

.haisa-theme-white-pro .haisa-typing,
.haisa-theme-white-pro .haisa-streaming--pending {
    color: #667085 !important;
    background: #ffffff !important;
    border-color: #e6e8ec !important;
}

.haisa-theme-white-pro .haisa-typing__label { color: #667085 !important; }
.haisa-theme-white-pro .haisa-typing__dots > i { background: var(--haisa-accent) !important; }

.haisa-theme-white-pro .haisa-message__bubble code {
    color: #067647 !important;
    background: #ecfdf3 !important;
}

.haisa-theme-white-pro .haisa-table-wrap,
.haisa-theme-white-pro .haisa-table-wrap table,
.haisa-theme-white-pro .haisa-table-wrap th,
.haisa-theme-white-pro .haisa-table-wrap td {
    color: #171717 !important;
    background-color: #fff !important;
    border-color: #e6e8ec !important;
}

.haisa-theme-white-pro .haisa-table-wrap th {
    background-color: #f7f7f8 !important;
}

/* Product cards: multiple products always form a readable 2-column grid. */
.haisa-theme-white-pro .haisa-products {
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    overflow: visible !important;
}

.haisa-theme-white-pro .haisa-products--multiple {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.haisa-theme-white-pro .haisa-product {
    min-width: 0 !important;
    color: #171717 !important;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 15px !important;
    box-shadow: 0 3px 12px rgba(16, 24, 40, .05) !important;
}

.haisa-theme-white-pro .haisa-product:hover {
    border-color: color-mix(in srgb, var(--haisa-accent) 34%, #e6e8ec) !important;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .09) !important;
}

.haisa-theme-white-pro .haisa-product__image {
    aspect-ratio: 1 / 1;
    background: #fafafa !important;
    background-image: none !important;
    border-bottom-color: #eceef1 !important;
}

.haisa-theme-white-pro .haisa-product__image img {
    padding: 9px;
    object-fit: contain !important;
}

.haisa-theme-white-pro .haisa-product__content {
    padding: 10px;
    gap: 8px;
    background: #fff !important;
}

.haisa-theme-white-pro .haisa-product__button,
.haisa-theme-white-pro .haisa-action,
.haisa-theme-white-pro .haisa-order-submit,
.haisa-theme-white-pro .haisa-launcher-invite__button {
    color: #fff !important;
    background: var(--haisa-accent) !important;
    background-image: none !important;
    border-color: var(--haisa-accent) !important;
    box-shadow: none !important;
}

.haisa-theme-white-pro .haisa-product__button:hover,
.haisa-theme-white-pro .haisa-action:hover,
.haisa-theme-white-pro .haisa-order-submit:hover,
.haisa-theme-white-pro .haisa-launcher-invite__button:hover {
    color: #fff !important;
    filter: brightness(.95);
}

/* Quick actions stay fully visible instead of becoming a clipped carousel. */
.haisa-theme-white-pro .haisa-quick-actions {
    padding: 10px 12px 12px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    border-top: 1px solid #eceef1 !important;
}

.haisa-theme-white-pro .haisa-chip,
.haisa-theme-white-pro .haisa-suggestion {
    min-width: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    color: #344054 !important;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid #dfe3e8 !important;
    box-shadow: none !important;
}

.haisa-theme-white-pro .haisa-chip {
    min-height: 45px;
    padding: 8px 9px;
    border-radius: 12px;
}

.haisa-theme-white-pro .haisa-chip:hover,
.haisa-theme-white-pro .haisa-suggestion:hover {
    color: var(--haisa-accent) !important;
    background: #f8fffc !important;
    border-color: color-mix(in srgb, var(--haisa-accent) 35%, #dfe3e8) !important;
}

.haisa-theme-white-pro .haisa-composer-wrap {
    padding: 11px 12px 9px;
    border-top: 1px solid #eceef1 !important;
    box-shadow: 0 -6px 20px rgba(16, 24, 40, .025);
}

.haisa-theme-white-pro .haisa-composer {
    min-height: 50px;
    color: #171717 !important;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04) !important;
}

.haisa-theme-white-pro .haisa-composer:focus-within {
    border-color: color-mix(in srgb, var(--haisa-accent) 55%, #d0d5dd) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--haisa-accent) 10%, transparent) !important;
}

.haisa-theme-white-pro .haisa-input {
    color: #171717 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.haisa-theme-white-pro .haisa-input::placeholder { color: #98a2b3 !important; }
.haisa-theme-white-pro .haisa-voice { color: #667085 !important; background: transparent !important; }
.haisa-theme-white-pro .haisa-send:disabled { color: #98a2b3 !important; background: #eef0f2 !important; }

.haisa-theme-white-pro .haisa-order-form,
.haisa-theme-white-pro .haisa-order-card,
.haisa-theme-white-pro .haisa-order-card__status,
.haisa-theme-white-pro .haisa-tracking-row {
    color: #171717 !important;
    background: #fff !important;
    background-image: none !important;
    border-color: #e6e8ec !important;
}

.haisa-theme-white-pro .haisa-order-card__status,
.haisa-theme-white-pro .haisa-tracking-row {
    background: #f7f7f8 !important;
}

.haisa-theme-white-pro .haisa-order-form input {
    color: #171717 !important;
    background: #fff !important;
    border-color: #d0d5dd !important;
    box-shadow: none !important;
}

/* White launcher and invitation, including uploaded staff portraits. */
.haisa-theme-white-pro .haisa-launcher {
    color: var(--haisa-accent) !important;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid color-mix(in srgb, var(--haisa-accent) 27%, #dfe3e8) !important;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .16), inset 0 0 0 5px color-mix(in srgb, var(--haisa-accent) 6%, #fff) !important;
}

.haisa-theme-white-pro .haisa-launcher::after {
    background: #fff !important;
    background-image: none !important;
}

.haisa-theme-white-pro .haisa-launcher__icon.has-custom-image {
    inset: 5px;
    background: #f7f7f8 !important;
    border: 1px solid #eceef1;
}

.haisa-theme-white-pro .haisa-launcher__icon.has-custom-image img {
    object-fit: cover !important;
    object-position: center !important;
}

.haisa-theme-white-pro .haisa-launcher-invite,
.haisa-theme-white-pro .haisa-launcher-invite::after,
.haisa-theme-white-pro .haisa-launcher__label {
    color: #171717 !important;
    background: #fff !important;
    background-image: none !important;
    border-color: #e6e8ec !important;
}

.haisa-theme-white-pro .haisa-launcher-invite {
    box-shadow: 0 18px 50px rgba(16, 24, 40, .15) !important;
}

.haisa-theme-white-pro .haisa-launcher-invite__copy strong { color: #171717 !important; }
.haisa-theme-white-pro .haisa-launcher-invite__copy span { color: #667085 !important; }

@container (max-width: 390px) {
    .haisa-theme-white-pro .haisa-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@container (max-width: 280px) {
    .haisa-theme-white-pro .haisa-products--multiple,
    .haisa-theme-white-pro .haisa-quick-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 680px) {
    .haisa-theme-white-pro .haisa-root--floating .haisa-panel,
    .haisa-root--floating.haisa-theme-white-pro .haisa-panel {
        background: #fff !important;
    }

    .haisa-theme-white-pro .haisa-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 300px) {
    .haisa-theme-white-pro .haisa-products--multiple,
    .haisa-theme-white-pro .haisa-quick-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Compatibility safety net for cached HTML generated by versions before 1.3. */
.haisa-root {
    --haisa-bg: #ffffff !important;
    --haisa-surface: #f7f7f8 !important;
    --haisa-text: #171717 !important;
    --haisa-muted: #667085 !important;
    --haisa-border: #e6e8ec !important;
    --haisa-user: #f3f4f6 !important;
    --haisa-glow: 0px !important;
    color-scheme: only light !important;
}

.haisa-root .haisa-panel,
.haisa-root .haisa-header,
.haisa-root .haisa-content,
.haisa-root .haisa-messages,
.haisa-root .haisa-quick-actions,
.haisa-root .haisa-composer-wrap,
.haisa-root .haisa-order-view {
    background-color: #ffffff !important;
    background-image: none !important;
}


/* Custom order-tracking page link (v1.10.3). */
.haisa-root .haisa-order-external {
    display: grid;
    gap: 9px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--haisa-border);
    border-radius: 16px;
    background: #f8fafb;
    text-align: center;
}

.haisa-root .haisa-order-external span {
    color: var(--haisa-muted);
    font-size: 12px;
    line-height: 1.8;
}

.haisa-root .haisa-order-external a,
.haisa-root .haisa-order-fallback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid color-mix(in srgb, var(--haisa-accent) 26%, #dfe5e7);
    border-radius: 13px;
    background: #fff;
    color: var(--haisa-accent);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
    text-decoration: none !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.haisa-root .haisa-order-external a:hover,
.haisa-root .haisa-order-fallback-link:hover {
    border-color: var(--haisa-accent);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--haisa-accent) 12%, transparent);
    transform: translateY(-1px);
}

.haisa-root .haisa-order-fallback-link {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .haisa-root .haisa-order-external {
        padding: 12px;
        border-radius: 14px;
    }

    .haisa-root .haisa-order-external a,
    .haisa-root .haisa-order-fallback-link {
        width: 100%;
        min-height: 46px;
    }
}
