.tara-assistant .tara-report { margin: 20px 0; padding: 16px 0; border-top: 1px solid #d5d8dc; min-width: 0; }
.tara-assistant .tara-report h3 { font-size: 15px; font-weight: 650; margin: 0 0 14px; line-height: 1.4; color: inherit; }
.tara-assistant .tara-report__note { font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.tara-assistant .tara-report__table-scroll { overflow-x: auto; max-width: 100%; }
.tara-assistant .tara-report table { width: 100%; border-collapse: collapse; font-size: 12px; background: transparent; color: inherit; }
.tara-assistant .tara-report th, .tara-assistant .tara-report td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #d5d8dc; line-height: 1.5; min-width: 80px; background: transparent; color: inherit; }
.tara-assistant .tara-report th { font-weight: 650; }
.tara-assistant .tara-report a { color: #a71e27; text-decoration: underline; text-underline-offset: 3px; }
.tara-assistant .tara-report__chart { display: grid; gap: 9px; margin: 0 0 18px; }
.tara-assistant .tara-report__bar-row { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(60px, 2fr) 35px; gap: 10px; align-items: center; font-size: 12px; }
.tara-assistant .tara-report__bar-row > span:first-child { overflow-wrap: anywhere; }
.tara-assistant .tara-report__track { display: block; height: 9px; background: #e3e6e9; }
.tara-assistant .tara-report__fill { display: block; height: 100%; background: #bd2635; }
.tara-assistant { color: #292c31; }
body:has(.tara-assistant.is-open) .hs-actions-intro { display: none; }
[data-hs-theme="dark"] .tara-assistant .tara-assistant__panel,
[data-hs-theme="dark"] .tara-assistant .tara-assistant__form,
[data-hs-theme="dark"] .tara-assistant .tara-assistant__controls { background: var(--hs-surface, #2b2f36); border-color: var(--hs-border, #454a53); color: var(--hs-text, #f1f3f5); }
[data-hs-theme="dark"] .tara-assistant .tara-assistant__messages { background: var(--hs-bg, #202329); color: var(--hs-text, #f1f3f5); }
[data-hs-theme="dark"] .tara-assistant .tara-report a { color: #ffb2b9; }
[data-hs-theme="dark"] .tara-assistant .tara-assistance { border-color: var(--hs-border, #454a53); }
[data-hs-theme="dark"] .tara-assistant .tara-assistance > span { color: var(--hs-muted-text, #b8bec7); }
[data-hs-theme="dark"] .tara-assistant .tara-assistance a { color: var(--hs-text, #f1f3f5); }
[data-hs-theme="dark"] .tara-assistant .tara-report th,
[data-hs-theme="dark"] .tara-assistant .tara-report td,
[data-hs-theme="dark"] .tara-assistant .tara-report { border-color: var(--hs-border, #454a53); }
[data-hs-theme="dark"] .tara-assistant .tara-report__track { background: var(--hs-muted-surface, #353a43); }
[data-hs-theme="dark"] .tara-assistant .tara-assistant__form textarea { background: var(--hs-muted-surface, #353a43); color: var(--hs-text, #f1f3f5); border-color: var(--hs-border, #454a53); }
[data-hs-theme="dark"] .tara-assistant .tara-assistant__form textarea::placeholder { color: var(--hs-muted-text, #b8bec7); }
.tara-nav-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.header .navbar-nav .tara-nav-button {
    align-items: center;
    display: flex;
    gap: 7px;
    padding: 20px 14px;
}

.header .navbar-nav .tara-nav-button i {
    color: #c8232c;
    font-size: 19px;
}

.header .main-menu-search .search-btn {
    display: flex;
    flex: 0 0 auto;
}

.header .main-menu-search .search-btn button:first-child {
    border-radius: 0;
}

.header .main-menu-search .search-btn .tara-search-button {
    background: #fff;
    border: 1px solid #d4d8dc;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    color: #a71e27;
    margin-left: 0;
}

.header .main-menu-search .search-btn .tara-search-button:hover,
.header .main-menu-search .search-btn .tara-search-button:focus-visible {
    background: #fff2f3;
    border-color: #a71e27;
    outline: 0;
}

.header .main-menu-search .search-btn .tara-search-button img {
    display: block;
    height: 23px;
    margin: 0 auto;
    width: 23px;
}

.tara-ai-mark {
    background: #a71e27;
    display: inline-block;
    flex: 0 0 auto;
    height: 22px;
    -webkit-mask: url("../../icons/svg/filled/sparkles.svg") center / contain no-repeat;
    mask: url("../../icons/svg/filled/sparkles.svg") center / contain no-repeat;
    width: 22px;
}

.tara-search-button .tara-ai-mark {
    display: block;
    margin: 0 auto;
}

.tara-secure-open {
    flex: 0 0 auto;
}

.tara-assistant {
    position: relative;
    z-index: 1090;
}

.tara-pet {
    bottom: 16px;
    height: 164px;
    opacity: 1;
    pointer-events: none;
    position: fixed;
    right: 20px;
    transition: opacity 150ms ease, transform 150ms ease;
    width: 102px;
    z-index: 1088;
}

.tara-assistant.is-open .tara-pet,
.tara-assistant.is-pet-hidden .tara-pet {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.tara-pet__button {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    height: 100%;
    padding: 0;
    pointer-events: auto;
    position: relative;
    width: 100%;
}

.tara-pet__figure {
    animation: tara-pet-idle 4.4s ease-in-out infinite;
    display: block;
    height: 100%;
    position: relative;
    transform-origin: 50% 88%;
    width: 100%;
    z-index: 2;
}

.tara-pet__figure img {
    display: block;
    filter: drop-shadow(0 11px 10px rgba(24, 20, 14, 0.22));
    height: 100%;
    object-fit: contain;
    user-select: none;
    width: 100%;
}

.tara-pet__shadow {
    animation: tara-pet-shadow 4.4s ease-in-out infinite;
    background: radial-gradient(ellipse at center, rgba(31, 26, 17, 0.28), rgba(31, 26, 17, 0.07) 58%, transparent 70%);
    border-radius: 50%;
    bottom: -2px;
    height: 12px;
    left: 17px;
    position: absolute;
    right: 17px;
    z-index: 1;
}

.tara-pet__bubble {
    align-items: center;
    background: #fff;
    border: 1px solid #d6dade;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(24, 27, 31, 0.14);
    display: flex;
    gap: 3px;
    left: -10px;
    padding: 7px 8px;
    position: absolute;
    top: 18px;
    z-index: 4;
}

.tara-pet__bubble span {
    animation: tara-dot-hop 1.15s ease-in-out infinite;
    background: #a71e27;
    border-radius: 50%;
    display: block;
    height: 4px;
    width: 4px;
}

.tara-pet__bubble span:nth-child(2) { animation-delay: 130ms; background: #555b62; }
.tara-pet__bubble span:nth-child(3) { animation-delay: 260ms; background: #d28a2f; }

.tara-pet__hide {
    align-items: center;
    background: #fff;
    border: 1px solid #d6dade;
    border-radius: 50%;
    color: #555b62;
    cursor: pointer;
    display: flex;
    height: 25px;
    justify-content: center;
    pointer-events: auto;
    position: absolute;
    right: -5px;
    top: 2px;
    width: 25px;
    z-index: 5;
}

.tara-pet__hide:hover,
.tara-pet__hide:focus-visible {
    border-color: #a71e27;
    color: #a71e27;
    outline: 0;
}

.tara-pet__blink {
    animation: tara-pet-blink 5.6s infinite;
    background: linear-gradient(#17150f 0 10%, #f8e9c7 18% 72%, #17150f 84% 100%);
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: rotate(var(--tara-blink-rotate, 0deg)) scaleY(0);
    z-index: 3;
}

.tara-pet__blink--left { --tara-blink-rotate: -9deg; height: 7.4%; left: 35.9%; top: 13.7%; width: 9.7%; }
.tara-pet__blink--right { --tara-blink-rotate: 8deg; animation-delay: 40ms; height: 7.1%; left: 54.2%; top: 12.6%; width: 9.3%; }

.tara-pet__spark {
    animation: tara-pet-spark 2.3s ease-in-out infinite;
    background: #e1a33a;
    border: 1px solid rgba(32, 34, 31, 0.22);
    display: block;
    height: 6px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: rotate(45deg) scale(0.4);
    width: 6px;
    z-index: 4;
}

.tara-pet__spark--one { left: 81%; top: 28%; }
.tara-pet__spark--two { animation-delay: 700ms; left: 68%; top: 37%; }

.tara-assistant__overlay {
    background: rgba(17, 20, 24, 0.42);
    border: 0;
    inset: 0;
    position: fixed;
    width: 100%;
    z-index: 1090;
}

.tara-assistant__panel {
    background: #fff;
    border: 1px solid #d8dce1;
    border-radius: 8px;
    bottom: 20px;
    box-shadow: 0 18px 48px rgba(17, 20, 24, 0.2);
    display: flex;
    flex-direction: column;
    height: min(720px, calc(100vh - 40px));
    max-width: calc(100vw - 32px);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    right: 20px;
    transform: translateY(18px);
    transition: opacity 160ms ease, transform 160ms ease;
    visibility: hidden;
    width: 560px;
    z-index: 1091;
}

.tara-assistant.is-open .tara-assistant__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.tara-assistant__header {
    align-items: center;
    background: #17191d;
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 78px;
    padding: 16px 18px;
}

.tara-assistant__header span {
    color: #c8ccd2;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.tara-assistant__header h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin: 4px 0 0;
}

.tara-assistant__identity,
.tara-assistant__actions,
.tara-assistant__controls {
    align-items: center;
    display: flex;
}

.tara-assistant__identity { gap: 11px; min-width: 0; }
.tara-assistant__actions { gap: 8px; }

.tara-assistant__avatar {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    display: flex !important;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    overflow: hidden;
    width: 46px;
}

.tara-assistant__avatar img {
    height: 58px;
    object-fit: contain;
    object-position: center top;
    transform: translateY(8px);
    width: 36px;
}

.tara-size,
.tara-response-mode {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
    display: inline-flex;
    overflow: hidden;
}

.tara-size button,
.tara-response-mode button,
.tara-pet-toggle,
.tara-assistant__stop {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.tara-size button {
    background: transparent;
    color: #d4d7dc;
    font-size: 10px;
    font-weight: 700;
    height: 28px;
    padding: 0;
    width: 28px;
}

.tara-size button[aria-pressed="true"] {
    background: #fff;
    color: #202328;
}

.tara-pet-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    height: 30px;
    padding: 0 9px;
}

.tara-button-glyph {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.tabler-icon-ready + .tara-button-glyph {
    display: none;
}

.tara-assistant__controls {
    background: #fff;
    border-top: 1px solid #dfe2e5;
    justify-content: space-between;
    min-height: 41px;
    padding: 7px 13px 0;
}

.tara-response-mode {
    background: #f0f2f4;
    border-color: #d9dde1;
}

.tara-response-mode button {
    background: transparent;
    color: #5d646c;
    font-size: 10px;
    font-weight: 700;
    min-height: 27px;
    padding: 0 10px;
}

.tara-response-mode button[aria-pressed="true"] {
    background: #25282d;
    color: #fff;
}

.tara-assistant__stop {
    background: transparent;
    color: #9f1c24;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 0;
}

.tara-captcha {
    background: #fff;
    border-top: 1px solid #dfe2e5;
    padding: 11px 13px 5px;
}

.tara-captcha p { color: #555b62; font-size: 11px; margin: 0 0 8px; }

.tara-assistant[data-tara-size="small"] .tara-assistant__panel { height: min(560px, calc(100vh - 40px)); width: 420px; }
.tara-assistant[data-tara-size="large"] .tara-assistant__panel { height: min(840px, calc(100vh - 40px)); width: 760px; }
.tara-assistant[data-tara-size="large"] .tara-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tara-icon-button,
.tara-assistant__send {
    align-items: center;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.tara-icon-button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tara-assistant__messages {
    background: #f5f6f7;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px;
}

.tara-message {
    clear: both;
    margin-bottom: 14px;
    max-width: 92%;
}

.tara-message p {
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.tara-message--assistant {
    background: #fff;
    border: 1px solid #dde0e4;
    border-radius: 7px;
    color: #292c31;
    padding: 12px 14px;
}

.tara-message--user {
    background: #24272c;
    border-radius: 7px;
    color: #fff;
    float: right;
    padding: 10px 13px;
}

.tara-message--error {
    border-color: #d9979b;
    color: #8f1e26;
}

.tara-message--typing p::after {
    animation: tara-caret 720ms steps(1, end) infinite;
    background: currentColor;
    content: "";
    display: inline-block;
    height: 1em;
    margin-left: 3px;
    opacity: 0.72;
    vertical-align: -0.12em;
    width: 1px;
}

.tara-starters,
.tara-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 18px;
}

.tara-starters button,
.tara-suggestions button {
    background: #fff;
    border: 1px solid #cfd3d8;
    border-radius: 6px;
    color: #30343a;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.35;
    padding: 8px 10px;
    text-align: left;
}

.tara-starters button:hover,
.tara-suggestions button:hover {
    border-color: #c8232c;
    color: #9f1c24;
}

.tara-result-section {
    clear: both;
    margin: 18px 0 8px;
}

.tara-result-section h3 {
    color: #26292e;
    font-size: 13px;
    font-weight: 750;
    margin: 0 0 9px;
}

.tara-assistance {
    align-items: center;
    border-top: 1px solid #d9dde1;
    clear: both;
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 5px 10px;
    justify-content: space-between;
    margin-top: 16px;
    padding: 11px 2px 2px;
}

.tara-assistance > span {
    color: #6b7078;
}

.tara-assistance a {
    align-items: center;
    color: #34383e;
    display: inline-flex;
    font-weight: 700;
    gap: 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tara-assistance a:hover,
.tara-assistance a:focus-visible {
    color: #9f1c24;
}

.tara-products {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tara-product {
    background: #fff;
    border: 1px solid #d9dde1;
    border-radius: 7px;
    color: #25282d;
    display: grid;
    gap: 10px;
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 94px;
    padding: 10px;
    text-decoration: none;
}

.tara-product:hover {
    border-color: #b71f28;
    color: #17191d;
}

.tara-product__image {
    align-items: center;
    background: #fff;
    border: 1px solid #eceef0;
    border-radius: 5px;
    display: flex;
    height: 72px;
    justify-content: center;
    overflow: hidden;
    width: 72px;
}

.tara-product__image img {
    display: block;
    max-height: 64px;
    max-width: 64px;
    object-fit: contain;
}

.tara-product__body {
    min-width: 0;
}

.tara-product__body strong,
.tara-product__body span,
.tara-product__body small {
    display: block;
    overflow-wrap: anywhere;
}

.tara-product__body strong {
    font-size: 12px;
    line-height: 1.3;
}

.tara-product__body span {
    color: #4b5057;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 3px;
}

.tara-product__body .tara-product__relation {
    color: #9f1c24;
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}

.tara-product__body .tara-product__reason {
    border-top: 1px solid #eceef0;
    color: #42474e;
    font-size: 10px;
    line-height: 1.45;
    margin-top: 7px;
    padding-top: 7px;
}

.tara-product__body small {
    color: #737981;
    font-size: 10px;
    margin-top: 4px;
}

.tara-product__body small.is-stocked {
    color: #267241;
}

.tara-sources {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tara-sources a,
.tara-sources span {
    color: #3b4047;
    font-size: 11px;
    line-height: 1.35;
}

.tara-sources a {
    align-items: center;
    background: #fff;
    border: 1px solid #d5d9de;
    border-radius: 5px;
    display: grid;
    gap: 8px;
    grid-template-columns: 16px minmax(0, 1fr) 14px;
    padding: 9px 10px;
    text-decoration: underline;
    text-decoration-color: #b4b8bd;
    text-underline-offset: 2px;
}

.tara-sources a i:first-child {
    color: #a71e27;
    font-size: 15px;
}

.tara-sources a i:last-child {
    font-size: 12px;
}

.tara-sources a:hover,
.tara-sources a:focus-visible {
    background: #fff7f7;
    border-color: #a71e27;
    color: #9f1c24;
    outline: 0;
}

.tara-discovery {
    display: grid;
    gap: 7px;
}

.tara-discovery p {
    align-items: flex-start;
    background: #f7f8f9;
    border-left: 3px solid #a71e27;
    border-radius: 3px;
    color: #3d4248;
    display: grid;
    font-size: 11px;
    gap: 8px;
    grid-template-columns: 16px minmax(0, 1fr);
    line-height: 1.45;
    margin: 0;
    padding: 9px 10px;
}

.tara-discovery i {
    color: #a71e27;
    font-size: 14px;
    margin-top: 1px;
}

/* Local Acumatica catalog search */
.taral-search-page {
    background: #f6f7f8;
    padding: 34px 0 64px;
}

.taral-search-sidebar {
    margin-bottom: 24px;
}

.taral-search-filter,
.taral-search-sidebar .single-widget {
    background: #fff;
    border: 1px solid #e0e3e6;
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 18px;
}

.taral-search-filter h2,
.taral-search-sidebar .single-widget h3 {
    color: #22262b;
    font-size: 14px;
    margin: 0 0 15px;
}

.taral-search-filter label {
    color: #4d535a;
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin: 13px 0 6px;
}

.taral-search-filter input,
.taral-search-filter select {
    background: #fff;
    border: 1px solid #cfd4d9;
    border-radius: 4px;
    font-size: 13px;
    height: 42px;
    padding: 0 11px;
    width: 100%;
}

.taral-search-filter__query {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
}

.taral-search-filter__query input {
    border-radius: 4px 0 0 4px;
}

.taral-search-filter__query button,
.taral-search-filter__submit,
.taral-search-empty button {
    align-items: center;
    background: #22262b;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
}

.taral-search-filter__query button {
    border-radius: 0 4px 4px 0;
}

.taral-search-filter__submit {
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 13px;
    min-height: 40px;
    width: 100%;
}

.taral-search-tara {
    align-items: center;
    background: #25282d;
    border-radius: 6px;
    color: #fff;
    display: grid;
    gap: 14px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    margin-bottom: 18px;
    padding: 16px 18px;
}

.taral-search-tara__icon {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    color: #a71e27;
    display: inline-flex;
    font-size: 20px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.taral-search-tara__icon img {
    display: block;
    height: 22px;
    width: 22px;
}

.taral-search-tara h2 {
    color: #fff;
    font-size: 14px;
    margin: 0 0 3px;
}

.taral-search-tara p {
    color: #d7d9dc;
    font-size: 11px;
    line-height: 1.45;
    margin: 0;
}

.taral-search-tara button {
    background: #fff;
    border: 0;
    border-radius: 4px;
    color: #22262b;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
    min-height: 38px;
    padding: 0 14px;
}

.taral-search-results-head {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.taral-search-results-head div {
    align-items: baseline;
    display: flex;
    gap: 7px;
}

.taral-search-results-head strong {
    color: #22262b;
    font-size: 20px;
}

.taral-search-results-head span,
.taral-search-results-head p {
    color: #656b73;
    font-size: 11px;
    margin: 0;
}

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

.taral-search-result {
    background: #fff;
    border: 1px solid #dce0e4;
    border-radius: 6px;
    min-width: 0;
    position: relative;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.taral-search-result:hover {
    border-color: #aeb4bb;
    box-shadow: 0 6px 18px rgba(24, 28, 33, 0.07);
}

.taral-search-result__main {
    color: #25292e;
    display: block;
    padding: 14px;
    text-decoration: none;
}

.taral-search-result__image {
    align-items: center;
    background: #fff;
    display: flex;
    height: 112px;
    justify-content: center;
    margin-bottom: 11px;
}

.taral-search-result__image img {
    display: block;
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.taral-search-result__body,
.taral-search-result__body strong,
.taral-search-result__body span,
.taral-search-result__body small {
    display: block;
    overflow-wrap: anywhere;
}

.taral-search-result__body strong {
    font-size: 13px;
    line-height: 1.35;
    padding-right: 28px;
}

.taral-search-result__body span {
    color: #50565d;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 3px;
}

.taral-search-result__body small {
    color: #777d84;
    font-size: 10px;
    margin-top: 4px;
}

.taral-search-result__body small.is-stocked {
    color: #267241;
    font-weight: 700;
}

.taral-search-result__tara {
    align-items: center;
    background: #f4f5f6;
    border: 1px solid #d8dce0;
    border-radius: 50%;
    color: #a71e27;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    height: 30px;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 132px;
    width: 30px;
}

.taral-search-result__tara:hover,
.taral-search-result__tara:focus-visible {
    background: #a71e27;
    border-color: #a71e27;
    color: #fff;
    outline: 0;
}

.taral-search-result__tara img {
    display: block;
    height: 17px;
    width: 17px;
}

.taral-search-empty {
    background: #fff;
    border: 1px solid #dce0e4;
    border-radius: 6px;
    padding: 34px;
    text-align: center;
}

.taral-search-empty h2 {
    font-size: 17px;
    margin: 0 0 8px;
}

.taral-search-empty p {
    color: #616870;
    font-size: 12px;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 580px;
}

.taral-search-empty button {
    border-radius: 4px;
    gap: 7px;
    margin-top: 16px;
    min-height: 40px;
    padding: 0 15px;
}

.taral-search-empty button img {
    filter: invert(1);
    height: 18px;
    width: 18px;
}

.tara-assistant__form {
    align-items: flex-end;
    background: #fff;
    border-top: 1px solid #dfe2e5;
    display: flex;
    gap: 10px;
    padding: 13px;
}

.tara-assistant__form textarea {
    background: #fff;
    color: #292c31;
    border: 1px solid #cfd3d8;
    border-radius: 6px;
    flex: 1 1 auto;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    max-height: 120px;
    min-height: 44px;
    padding: 10px 12px;
    resize: vertical;
}

.tara-assistant__form textarea:focus {
    border-color: #9f1c24;
    box-shadow: 0 0 0 3px rgba(159, 28, 36, 0.1);
    outline: 0;
}

.tara-assistant__send {
    background: #b71f28;
    color: #fff;
}

.tara-assistant__send:disabled {
    cursor: wait;
    opacity: 0.58;
}

.tara-loading {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.tara-loading::before {
    animation: tara-spin 800ms linear infinite;
    border: 2px solid #c8ccd1;
    border-radius: 50%;
    border-top-color: #b71f28;
    content: "";
    height: 14px;
    width: 14px;
}

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

@keyframes tara-caret { 50% { opacity: 0; } }

@keyframes tara-pet-idle {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-5px) rotate(0.35deg) scale(1.004); }
}

@keyframes tara-pet-shadow {
    0%, 100% { opacity: 0.78; transform: scaleX(1); }
    50% { opacity: 0.58; transform: scaleX(0.9); }
}

@keyframes tara-pet-blink {
    0%, 86%, 100% { opacity: 0; transform: rotate(var(--tara-blink-rotate)) scaleY(0); }
    88%, 92% { opacity: 1; transform: rotate(var(--tara-blink-rotate)) scaleY(1); }
}

@keyframes tara-pet-spark {
    0%, 100% { opacity: 0; transform: translateY(6px) rotate(45deg) scale(0.35); }
    38% { opacity: 1; transform: translateY(0) rotate(45deg) scale(1); }
    62% { opacity: 0; transform: translateY(-8px) rotate(45deg) scale(0.55); }
}

@keyframes tara-dot-hop {
    0%, 100% { transform: translateY(0); }
    44% { transform: translateY(-3px); }
}

@media (max-width: 767px) {
    .header .navbar-nav .tara-nav-button {
        justify-content: flex-start;
        padding: 12px 16px;
        width: 100%;
    }

    .tara-assistant__panel {
        border-bottom: 0;
        border-radius: 8px 8px 0 0;
        bottom: 0;
        height: min(86vh, 760px);
        max-width: none;
        right: 0;
        width: 100%;
    }

    .tara-assistant[data-tara-size="small"] .tara-assistant__panel,
    .tara-assistant[data-tara-size="large"] .tara-assistant__panel {
        height: min(86vh, 760px);
        width: 100%;
    }

    .tara-pet {
        bottom: 8px;
        height: 104px;
        right: 8px;
        width: 64px;
    }

    .tara-pet__bubble {
        left: -8px;
        padding: 5px 6px;
        top: 13px;
    }

    .tara-pet__hide {
        height: 23px;
        right: -3px;
        top: 0;
        width: 23px;
    }

    .tara-assistant__header {
        min-height: 70px;
        padding: 12px;
    }

    .tara-assistant__avatar,
    .tara-pet-toggle {
        display: none !important;
    }

    .tara-assistant__header h2 { font-size: 17px; }
    .tara-size button { height: 27px; width: 27px; }

    .tara-assistant__messages {
        padding: 14px;
    }

    .tara-products {
        grid-template-columns: 1fr;
    }

    .tara-message {
        max-width: 96%;
    }

    .taral-search-page {
        padding: 22px 0 44px;
    }

    .taral-search-tara {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 14px;
    }

    .taral-search-tara__icon {
        height: 38px;
        width: 38px;
    }

    .taral-search-tara button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .taral-search-results {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .taral-search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .tara-assistant__panel { transition: none; }
    .tara-loading::before,
    .tara-message--typing p::after,
    .tara-pet__figure,
    .tara-pet__shadow,
    .tara-pet__blink,
    .tara-pet__spark,
    .tara-pet__bubble span { animation: none; }
}
