.logos-ai-chat {
    --logos-ai-chat-ink: #203243;
    --logos-ai-chat-muted: #607386;
    --logos-ai-chat-border: rgba(28, 59, 87, 0.12);
    --logos-ai-chat-surface: linear-gradient(180deg, #f8fbfe 0%, #eef4f8 100%);
    --logos-ai-chat-panel: #ffffff;
    --logos-ai-chat-panel-alt: #f2f8fc;
    --logos-ai-chat-accent: #0073aa;
    --logos-ai-chat-accent-strong: #005a87;
    --logos-ai-chat-success: #2e7d32;
    --logos-ai-chat-shadow: 0 16px 38px rgba(16, 46, 72, 0.12);
    --logos-ai-chat-shell-height: calc(100vh - 48px);
    color: var(--logos-ai-chat-ink);
    margin: 24px 0;
}

.logos-ai-chat[data-layout="floating"] {
    bottom: 30px;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    position: fixed;
    pointer-events: none;
    right: 20px;
    width: auto;
    z-index: 10020;
}

.logos-ai-chat[data-layout="floating"] > * {
    pointer-events: auto;
}

.logos-ai-chat[data-layout="floating"].is-floating-open {
    width: min(390px, calc(100vw - 28px));
}

html.logos-ai-chat-has-floating-widget #scroll-to-top,
body.logos-ai-chat-has-floating-widget #scroll-to-top {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@supports (-webkit-overflow-scrolling: touch) {
    .logos-ai-chat[data-layout="floating"] {
        bottom: 74px;
    }
}

html.logos-ai-chat-standalone-page,
body.logos-ai-chat-standalone-page {
    height: 100%;
    overflow: hidden;
}

.logos-ai-chat[data-layout="standalone"] {
    background: linear-gradient(180deg, #f8fbfe 0%, #edf4f9 100%);
    height: 100vh;
    height: 100dvh;
    inset: 0;
    margin: 0;
    min-height: 0;
    overflow: hidden;
    position: fixed;
    width: auto;
    z-index: 9998;
}

.logos-ai-chat-shell {
    background: var(--logos-ai-chat-surface);
    border: 1px solid var(--logos-ai-chat-border);
    border-radius: 20px;
    box-shadow: var(--logos-ai-chat-shadow);
    display: flex;
    flex-direction: column;
    min-height: clamp(680px, var(--logos-ai-chat-shell-height), 1080px);
    overflow: hidden;
}

.logos-ai-chat[data-layout="floating"] .logos-ai-chat-shell {
    max-height: min(760px, calc(100vh - 110px));
    min-height: min(680px, calc(100vh - 110px));
}

.logos-ai-chat[data-layout="standalone"] .logos-ai-chat-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100%;
    min-height: 0;
}

.logos-ai-chat-header {
    background:
        radial-gradient(circle at top left, rgba(0, 115, 170, 0.18), transparent 42%),
        radial-gradient(circle at bottom right, rgba(46, 125, 50, 0.12), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f2f8fc 100%);
    border-bottom: 1px solid rgba(28, 59, 87, 0.08);
    padding: 18px 20px 16px;
}

.logos-ai-chat-header-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.logos-ai-chat-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.logos-ai-chat-logo {
    border-radius: 14px;
    display: block;
    flex: 0 0 auto;
    height: 44px;
    object-fit: contain;
    width: 44px;
}

.logos-ai-chat-brand-copy {
    min-width: 0;
}

.logos-ai-chat-header-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.logos-ai-chat-header-btn {
    appearance: none;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(28, 59, 87, 0.12);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(16, 46, 72, 0.06);
    color: var(--logos-ai-chat-accent-strong);
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 7px 10px;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.logos-ai-chat-header-btn:hover,
.logos-ai-chat-header-btn:focus {
    background: #ffffff;
    border-color: rgba(0, 115, 170, 0.34);
    outline: none;
    transform: translateY(-1px);
}

.logos-ai-chat-launcher {
    appearance: none;
    align-items: center;
    background: linear-gradient(180deg, #0073aa 0%, #005a87 100%);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(16, 46, 72, 0.22);
    color: #f6fbff;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    margin-left: auto;
    min-height: 46px;
    min-width: 132px;
    padding: 10px 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.logos-ai-chat-launcher::before {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 10px;
    width: 10px;
}

.logos-ai-chat-launcher:hover,
.logos-ai-chat-launcher:focus {
    box-shadow: 0 22px 44px rgba(16, 46, 72, 0.28);
    outline: none;
    transform: translateY(-1px);
}

.logos-ai-chat-floating-panel[hidden] {
    display: none !important;
}

.logos-ai-chat-floating-panel {
    transform-origin: bottom right;
}

.logos-ai-chat-eyebrow {
    color: var(--logos-ai-chat-accent-strong);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.logos-ai-chat-header h3 {
    font-family: inherit;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logos-ai-chat-subtitle {
    color: var(--logos-ai-chat-muted);
    font-size: 14px;
    margin: 12px 0 0;
    max-width: 720px;
}

.logos-ai-chat-disclosure {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(28, 59, 87, 0.09);
    border-radius: 14px;
    margin-top: 16px;
    padding: 12px 14px;
}

.logos-ai-chat-disclosure p {
    color: #496174;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.logos-ai-chat-disclosure p + p {
    margin-top: 6px;
}

.logos-ai-chat-messages {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
    padding: 22px 20px 18px;
    scroll-behavior: smooth;
}

.logos-ai-chat-message {
    display: flex;
}

.logos-ai-chat-message.is-user {
    justify-content: flex-end;
}

.logos-ai-chat-message.is-assistant {
    justify-content: flex-start;
}

.logos-ai-chat-compare-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.logos-ai-chat-compare-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.logos-ai-chat-compare-heading {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 2px;
}

.logos-ai-chat-compare-title {
    color: var(--logos-ai-chat-accent-strong);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logos-ai-chat-compare-meta {
    color: var(--logos-ai-chat-muted);
    font-size: 11px;
    line-height: 1.4;
}

.logos-ai-chat-compare-column .logos-ai-chat-message {
    display: block;
}

.logos-ai-chat-compare-column .logos-ai-chat-bubble {
    max-width: none;
    width: 100%;
}

.logos-ai-chat-bubble {
    background: var(--logos-ai-chat-panel);
    border: 1px solid rgba(28, 59, 87, 0.1);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(16, 46, 72, 0.06);
    max-width: min(760px, 88%);
    padding: 15px 16px;
    position: relative;
}

.logos-ai-chat-message.is-user .logos-ai-chat-bubble {
    background: linear-gradient(180deg, #0073aa 0%, #005a87 100%);
    border-color: rgba(0, 90, 135, 0.45);
    color: #f6fbff;
}

.logos-ai-chat-message.is-assistant .logos-ai-chat-bubble {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.logos-ai-chat-message.has-cards .logos-ai-chat-bubble {
    max-width: min(1120px, 100%);
    width: min(1120px, 100%);
}

.logos-ai-chat-message.is-welcome .logos-ai-chat-bubble {
    background: linear-gradient(180deg, #f3f9fd 0%, #ffffff 100%);
}

.logos-ai-chat-message.is-thinking .logos-ai-chat-bubble {
    background: transparent;
    border: 0;
    box-shadow: none;
    max-width: none;
    padding: 0;
}

.logos-ai-chat-message.is-thinking .logos-ai-chat-content,
.logos-ai-chat-message.is-thinking .logos-ai-chat-extras {
    display: none;
}

.logos-ai-chat-message.is-thinking .logos-ai-chat-status {
    margin-bottom: 0;
}

.logos-ai-chat-activity:empty {
    display: none;
}

.logos-ai-chat-activity {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.logos-ai-chat-status {
    align-items: center;
    background: rgba(0, 115, 170, 0.08);
    border: 1px solid rgba(0, 115, 170, 0.16);
    border-radius: 999px;
    color: var(--logos-ai-chat-accent-strong);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.01em;
    margin-bottom: 10px;
    padding: 6px 10px;
    text-transform: none;
}

.logos-ai-chat-status::before {
    animation: logos-ai-chat-pulse 1.8s ease-in-out infinite;
    background: var(--logos-ai-chat-accent);
    border-radius: 999px;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 8px;
    width: 8px;
}

.logos-ai-chat-content {
    color: inherit;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

.logos-ai-chat-extras:empty {
    display: none;
}

.logos-ai-chat-extras {
    margin-top: 16px;
}

.logos-ai-chat-rich > :first-child {
    margin-top: 0;
}

.logos-ai-chat-rich > :last-child {
    margin-bottom: 0;
}

.logos-ai-chat-rich h1,
.logos-ai-chat-rich h2,
.logos-ai-chat-rich h3,
.logos-ai-chat-rich h4,
.logos-ai-chat-rich h5,
.logos-ai-chat-rich h6 {
    color: var(--logos-ai-chat-ink);
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0 0 10px;
}

.logos-ai-chat-rich h1 {
    font-size: 24px;
}

.logos-ai-chat-rich h2 {
    font-size: 21px;
}

.logos-ai-chat-rich h3 {
    font-size: 18px;
}

.logos-ai-chat-rich h4 {
    font-size: 16px;
}

.logos-ai-chat-rich h5,
.logos-ai-chat-rich h6 {
    font-size: 15px;
}

.logos-ai-chat-rich p,
.logos-ai-chat-rich ul,
.logos-ai-chat-rich ol {
    margin: 0 0 12px;
}

.logos-ai-chat-intro-compact {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 12px;
}

.logos-ai-chat-intro-note {
    background: rgba(242, 248, 252, 0.9);
    border: 1px solid rgba(28, 59, 87, 0.09);
    border-radius: 14px;
    margin-top: 12px;
    padding: 12px 14px;
}

.logos-ai-chat-intro-note p {
    color: #446073;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.logos-ai-chat-intro-note p + p {
    margin-top: 7px;
}

.logos-ai-chat-intro-stat {
    color: #446073;
    font-size: 12px;
    line-height: 1.4;
}

.logos-ai-chat-intro-tools {
    display: inline-flex;
    gap: 6px;
}

.logos-ai-chat-tooltip-wrap {
    position: relative;
    display: inline-flex;
}

.logos-ai-chat-info-btn,
.logos-ai-chat-meta-btn {
    appearance: none;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(28, 59, 87, 0.14);
    border-radius: 999px;
    color: var(--logos-ai-chat-accent-strong);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 6px 10px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.logos-ai-chat-info-btn {
    min-width: 30px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.logos-ai-chat-info-btn:hover,
.logos-ai-chat-info-btn:focus,
.logos-ai-chat-meta-btn:hover,
.logos-ai-chat-meta-btn:focus {
    background: #ffffff;
    border-color: rgba(0, 115, 170, 0.34);
    outline: none;
    transform: translateY(-1px);
}

.logos-ai-chat-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 8;
    width: min(320px, 70vw);
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(17, 32, 48, 0.96);
    color: #f7fbff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 20px 48px rgba(10, 25, 41, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.logos-ai-chat-tooltip::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 100%;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(17, 32, 48, 0.96) transparent transparent transparent;
}

.logos-ai-chat-tooltip-wrap:hover .logos-ai-chat-tooltip,
.logos-ai-chat-tooltip-wrap:focus-within .logos-ai-chat-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.logos-ai-chat[data-layout="standalone"] .logos-ai-chat-tooltip {
    left: 0;
    right: auto;
}

.logos-ai-chat[data-layout="standalone"] .logos-ai-chat-tooltip::after {
    left: 12px;
    right: auto;
}

.logos-ai-chat-rich ul,
.logos-ai-chat-rich ol {
    padding-left: 20px;
}

.logos-ai-chat-rich li + li {
    margin-top: 6px;
}

.logos-ai-chat-content a {
    color: var(--logos-ai-chat-accent-strong);
    text-decoration: underline;
}

.logos-ai-chat-message.is-user .logos-ai-chat-content a {
    color: #fff7f3;
}

@media (max-width: 960px) {
    .logos-ai-chat-compare-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.logos-ai-chat-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 4px;
}

.logos-ai-chat-action {
    flex: 0 0 auto;
    min-width: 160px;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.logos-ai-chat-action:hover,
.logos-ai-chat-action:focus {
    outline: none;
    transform: translateY(-1px);
}

.logos-ai-chat-action.dps-view-btn,
.logos-ai-chat-action.dps-logos-btn {
    align-items: center;
    color: #fff;
    display: flex;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.15;
    min-height: 46px;
    padding: 8px 14px;
    text-align: center;
}

.logos-ai-chat-action.dps-view-btn {
    background: #4caf50;
}

.logos-ai-chat-action.dps-view-btn:hover,
.logos-ai-chat-action.dps-view-btn:focus {
    background: #388e3c;
}

.logos-ai-chat-action.dps-logos-btn {
    background: #0073aa;
    flex-direction: column;
    gap: 2px;
}

.logos-ai-chat-action.dps-logos-btn:hover,
.logos-ai-chat-action.dps-logos-btn:focus {
    background: #005a87;
}

.logos-ai-chat-action .logos-affiliate-button-note {
    font-size: 0.58rem;
}

.logos-ai-chat-action.logos-ai-chat-search-action {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid rgba(0, 115, 170, 0.18);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(16, 46, 72, 0.05);
    color: var(--logos-ai-chat-accent-strong);
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
    min-width: 0;
    padding: 10px 16px;
}

.logos-ai-chat-action.logos-ai-chat-search-action:hover,
.logos-ai-chat-action.logos-ai-chat-search-action:focus {
    background: #f7fbff;
    border-color: rgba(0, 115, 170, 0.34);
    box-shadow: 0 8px 18px rgba(16, 46, 72, 0.08);
}

.logos-ai-chat-action-main {
    display: block;
}

.logos-ai-chat-search-log {
    display: grid;
    gap: 10px;
}

.logos-ai-chat-search-item {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
    border: 1px solid rgba(28, 59, 87, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(16, 46, 72, 0.05);
    padding: 10px 12px;
}

.logos-ai-chat-search-item.is-complete {
    border-color: rgba(0, 115, 170, 0.18);
}

.logos-ai-chat-search-item-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.logos-ai-chat-search-item-main {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
}

.logos-ai-chat-search-item-side {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.logos-ai-chat-search-item-title {
    color: var(--logos-ai-chat-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.logos-ai-chat-search-item-badge {
    background: rgba(0, 115, 170, 0.08);
    border: 1px solid rgba(0, 115, 170, 0.16);
    border-radius: 999px;
    color: var(--logos-ai-chat-accent-strong);
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
}

.logos-ai-chat-search-item-desc,
.logos-ai-chat-search-item-meta {
    color: #607386;
    font-size: 11px;
    line-height: 1.35;
}

.logos-ai-chat-search-item-desc {
    margin-top: 6px;
}

.logos-ai-chat-search-item-actions {
    display: flex;
}

.logos-ai-chat-search-open {
    appearance: none;
    background: #fff;
    border: 1px solid rgba(0, 115, 170, 0.18);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(16, 46, 72, 0.05);
    color: var(--logos-ai-chat-accent-strong);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.logos-ai-chat-search-open:hover,
.logos-ai-chat-search-open:focus {
    border-color: rgba(0, 115, 170, 0.34);
    box-shadow: 0 8px 18px rgba(16, 46, 72, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.logos-ai-chat-card-section {
    background: linear-gradient(180deg, #f7fbfe 0%, #f1f7fb 100%);
    border: 1px solid rgba(28, 59, 87, 0.08);
    border-radius: 16px;
    margin-top: 10px;
    padding: 16px;
}

.logos-ai-chat-card-section-title {
    color: var(--logos-ai-chat-accent-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.logos-ai-chat-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.logos-ai-chat-shortcode-cards,
.logos-ai-chat-shortcode-cards .logos-product-shortcode-wrapper {
    width: 100%;
}

.logos-ai-chat-shortcode-cards .product-card[hidden] {
    display: none !important;
}

.logos-ai-chat-shortcode-cards .logos-product-grid {
    gap: 16px;
}

.logos-ai-chat-shortcode-cards .shortcode-card-actions {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.logos-ai-chat-shortcode-cards .shortcode-card-actions > *,
.logos-ai-chat-shortcode-cards .shortcode-card-actions form {
    flex: 0 0 auto;
}

.logos-ai-chat-shortcode-cards .shortcode-card-actions form {
    display: inline-flex;
    margin: 0;
    min-width: 0;
}

.logos-ai-chat-shortcode-cards .shortcode-card-actions .shortcode-open-deal-btn,
.logos-ai-chat-shortcode-cards .shortcode-card-actions .shortcode-logos-btn {
    min-width: 158px;
    width: auto;
}

.logos-ai-chat-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.logos-ai-chat-load-more,
.logos-ai-chat-retry-btn {
    appearance: none;
    background: #fff;
    border: 1px solid rgba(0, 115, 170, 0.2);
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(16, 46, 72, 0.06);
    color: var(--logos-ai-chat-accent-strong);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    min-width: 120px;
    padding: 10px 16px;
}

.logos-ai-chat-load-more:hover,
.logos-ai-chat-load-more:focus,
.logos-ai-chat-retry-btn:hover,
.logos-ai-chat-retry-btn:focus {
    background: #f7fbff;
    border-color: rgba(0, 115, 170, 0.34);
    outline: none;
}

.logos-ai-chat-retry-host {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
}

.logos-ai-chat-product-card {
    background: #fff;
    border: 1px solid #d8e1e7;
    border-width: 1px;
    box-shadow: 0 8px 20px rgba(19, 48, 74, 0.08);
    margin: 0;
    min-height: auto !important;
    padding: 0;
}

.logos-ai-chat-product-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 14px 15px 15px;
}

.logos-ai-chat-product-card .report-card-compact-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 12px;
}

.logos-ai-chat-product-card .title-container {
    min-width: 0;
}

.logos-ai-chat-product-card .text-link-btn {
    color: #213549;
    display: inline-block;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.logos-ai-chat-product-card .text-link-btn:hover,
.logos-ai-chat-product-card .text-link-btn:focus {
    color: var(--logos-ai-chat-accent-strong);
    outline: none;
}

.logos-ai-chat-product-card .author {
    color: var(--logos-ai-chat-muted);
    font-size: 12px;
    margin: 6px 0 0;
}

.logos-ai-chat-product-card .report-card-compact-dps-inline {
    align-items: center;
    background: #f3f8fb;
    border: 1px solid #d8e2ea;
    border-radius: 999px;
    color: #2b475a;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    line-height: 1;
    padding: 6px 9px;
    white-space: nowrap;
}

.logos-ai-chat-product-card .strength-label {
    color: var(--logos-ai-chat-accent-strong);
    font-size: 11px;
    font-weight: 700;
}

.logos-ai-chat-product-card .report-card-compact-row {
    align-items: stretch;
    display: flex;
    gap: 12px;
}

.logos-ai-chat-product-card .report-card-compact-meta {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.logos-ai-chat-product-card .report-card-compact-price {
    align-items: center;
    background: #f5f7fa;
    border: 1px solid #d8e2ea;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 11px;
}

.logos-ai-chat-product-card .report-card-compact-price .price-current {
    color: #d32f2f;
    font-size: 18px;
    font-weight: 700;
}

.logos-ai-chat-product-card .report-card-compact-price .price-strike {
    color: #738495;
    font-size: 12px;
    text-decoration: line-through;
}

.logos-ai-chat-product-card .report-card-compact-price .price-off {
    color: var(--logos-ai-chat-success);
    font-size: 12px;
    font-weight: 700;
}

.logos-ai-chat-product-card .cta-btn {
    background: linear-gradient(180deg, #0073aa 0%, #005a87 100%);
    border: 0;
    border-radius: 8px;
    color: #f6fbff;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.logos-ai-chat-product-card .cta-btn:hover,
.logos-ai-chat-product-card .cta-btn:focus {
    box-shadow: 0 8px 18px rgba(0, 90, 135, 0.18);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.logos-ai-chat-product-card .report-card-compact-cta {
    align-items: center;
    display: inline-flex !important;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    margin: 0 !important;
    min-height: 44px !important;
    min-width: 170px;
    padding: 10px 14px !important;
    width: auto !important;
}

.logos-ai-chat-product-card .report-card-compact-cta .logos-affiliate-button-note {
    font-size: 0.55rem;
}

.logos-ai-chat-memory-note,
.logos-ai-chat-consent {
    border: 1px solid #d7dee7;
    border-radius: 14px;
    margin: 12px 0 4px;
    padding: 12px 14px;
}

.logos-ai-chat-memory-note {
    background: #f8fafc;
    color: #355068;
    font-size: 13px;
    line-height: 1.5;
}

.logos-ai-chat-memory-note.is-applied {
    background: #eef8f1;
    border-color: #bfdcc5;
    color: #1f5d2d;
}

.logos-ai-chat-consent {
    background: #fffdf8;
}

.logos-ai-chat-consent-initial {
    background: linear-gradient(180deg, #f7fbff 0%, #fffdf8 100%);
}

.logos-ai-chat-consent-transcript {
    background: #f7fbff;
}

.logos-ai-chat-consent p {
    margin: 0;
}

.logos-ai-chat-consent-detail {
    color: var(--logos-ai-chat-muted);
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px !important;
}

.logos-ai-chat-consent.is-resolved,
.logos-ai-chat-consent .is-resolved {
    opacity: 0.7;
}

.logos-ai-chat-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.logos-ai-chat-consent-btn {
    appearance: none;
    background: #fff;
    border: 1px solid #cfd8e2;
    border-radius: 999px;
    color: var(--logos-ai-chat-ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.logos-ai-chat-consent-btn:hover,
.logos-ai-chat-consent-btn:focus {
    background: #f8fafc;
    border-color: #9db3c6;
    outline: none;
    transform: translateY(-1px);
}

.logos-ai-chat-consent-btn.is-primary {
    background: linear-gradient(180deg, #0073aa 0%, #005a87 100%);
    border-color: rgba(0, 90, 135, 0.45);
    color: #fff;
}

.logos-ai-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 16px;
}

.logos-ai-chat-actions-copy {
    display: grid;
    gap: 6px;
}

.logos-ai-chat-meta-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.logos-ai-chat-suggestion {
    appearance: none;
    background: #fff;
    border: 1px solid rgba(0, 115, 170, 0.18);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(16, 46, 72, 0.05);
    color: var(--logos-ai-chat-accent-strong);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    padding: 10px 14px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.logos-ai-chat-suggestion:hover,
.logos-ai-chat-suggestion:focus {
    background: #f7fbff;
    border-color: rgba(0, 115, 170, 0.34);
    box-shadow: 0 8px 18px rgba(16, 46, 72, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.logos-ai-chat-suggestion.is-readonly {
    cursor: default;
    opacity: 0.92;
}

.logos-ai-chat-suggestions-readonly {
    padding-left: 0;
    padding-right: 0;
}

.logos-ai-chat-feedback-host {
    margin-top: 14px;
}

.logos-ai-chat-feedback {
    align-items: center;
    background: #f8fbfe;
    border: 1px solid rgba(28, 59, 87, 0.1);
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 14px;
}

.logos-ai-chat-feedback-label {
    color: #355068;
    font-size: 13px;
    font-weight: 700;
}

.logos-ai-chat-feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.logos-ai-chat-feedback-btn {
    appearance: none;
    background: #fff;
    border: 1px solid #cfd8e2;
    border-radius: 999px;
    color: var(--logos-ai-chat-ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
}

.logos-ai-chat-feedback-btn:hover,
.logos-ai-chat-feedback-btn:focus {
    background: #f7fbff;
    border-color: rgba(0, 115, 170, 0.34);
    outline: none;
}

.logos-ai-chat-feedback-btn:disabled {
    cursor: default;
    opacity: 0.72;
}

.logos-ai-chat-feedback-note {
    color: var(--logos-ai-chat-muted);
    font-size: 12px;
    line-height: 1.4;
}

.logos-ai-chat-form {
    background: rgba(255, 255, 255, 0.86);
    border-top: 1px solid rgba(28, 59, 87, 0.08);
    padding: 14px 20px 18px;
}

.logos-ai-chat-input {
    background: #fff;
    border: 1px solid rgba(24, 34, 44, 0.14);
    border-radius: 16px;
    box-sizing: border-box;
    color: var(--logos-ai-chat-ink);
    display: block;
    font: inherit;
    line-height: 1.5;
    min-height: 66px;
    padding: 12px 14px;
    resize: vertical;
    width: 100%;
}

.logos-ai-chat-input:focus {
    border-color: rgba(181, 82, 47, 0.5);
    box-shadow: 0 0 0 4px rgba(181, 82, 47, 0.1);
    outline: none;
}

.logos-ai-chat-actions {
    align-items: flex-end;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 10px;
}

.logos-ai-chat-action-controls {
    align-items: flex-end;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
}

.logos-ai-chat-action-buttons {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-left: auto;
}

.logos-ai-chat-action-note {
    color: var(--logos-ai-chat-muted);
    font-size: 12px;
    line-height: 1.4;
    max-width: 360px;
    text-align: right;
}

.logos-ai-chat-action-note.is-error {
    color: #b33a2f;
}

.logos-ai-chat-action-note.is-success {
    color: var(--logos-ai-chat-success);
}

.logos-ai-chat-turn-count {
    color: var(--logos-ai-chat-accent-strong);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.logos-ai-chat-honeypot-input {
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: auto;
}

.logos-ai-chat-submit {
    appearance: none;
    background: linear-gradient(180deg, #0073aa 0%, #005a87 100%);
    border: 0;
    border-radius: 999px;
    color: #f6fbff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    min-width: 110px;
    padding: 12px 18px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.logos-ai-chat-share-btn {
    appearance: none;
    background: #fff;
    border: 1px solid rgba(0, 115, 170, 0.2);
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(16, 46, 72, 0.06);
    color: var(--logos-ai-chat-accent-strong);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    min-width: 120px;
    order: 2;
    padding: 11px 16px;
    transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.logos-ai-chat-submit {
    order: 1;
}

.logos-ai-chat-share-btn:hover,
.logos-ai-chat-share-btn:focus {
    background: #f7fbff;
    border-color: rgba(0, 115, 170, 0.34);
    outline: none;
    transform: translateY(-1px);
}

.logos-ai-chat-submit:hover,
.logos-ai-chat-submit:focus {
    outline: none;
    transform: translateY(-1px);
}

.logos-ai-chat-standalone-footer {
    align-items: center;
    border-top: 1px solid rgba(28, 59, 87, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
    padding: 14px 22px 18px;
}

.logos-ai-chat[data-layout="floating"] .logos-ai-chat-standalone-footer {
    display: none;
}

.logos-ai-chat[data-layout="floating"] .logos-ai-chat-shell {
    max-height: min(720px, calc(100vh - 64px));
    min-height: min(620px, calc(100vh - 64px));
}

.logos-ai-chat[data-layout="floating"] .logos-ai-chat-messages {
    padding-top: 16px;
}

.logos-ai-chat[data-layout="floating"] .logos-ai-chat-launcher {
    margin-right: 0;
}

.logos-ai-chat[data-layout="floating"].is-near-page-end:not(.is-floating-open) .logos-ai-chat-launcher {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.logos-ai-chat[data-layout="floating"].is-floating-open .logos-ai-chat-launcher {
    display: none;
}

.logos-ai-chat[data-layout="floating"] .logos-ai-chat-header h3 {
    font-size: 18px;
}

.logos-ai-chat-shared-searches {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.logos-ai-chat-shared-searches-title {
    color: var(--logos-ai-chat-accent-strong);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logos-ai-chat-shared-turn-details {
    margin-top: 14px;
}

.logos-ai-chat-shared-turn-details summary {
    color: var(--logos-ai-chat-accent-strong);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.logos-ai-chat-shared-turn-meta {
    margin-top: 10px;
}

.logos-ai-chat-shared-turn-meta strong {
    color: var(--logos-ai-chat-ink);
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
}

.logos-ai-chat-shared-turn-meta pre {
    background: rgba(245, 248, 251, 0.96);
    border: 1px solid rgba(28, 59, 87, 0.08);
    border-radius: 12px;
    color: #30495d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    overflow-x: auto;
    padding: 12px;
    white-space: pre-wrap;
}

.logos-ai-chat[data-layout="standalone"] .logos-ai-chat-header {
    flex: 0 0 auto;
    padding-bottom: 16px;
    padding-top: 18px;
}

.logos-ai-chat[data-layout="standalone"] .logos-ai-chat-messages {
    padding-bottom: 14px;
    padding-top: 18px;
}

.logos-ai-chat[data-layout="standalone"] .logos-ai-chat-form {
    flex: 0 0 auto;
    padding-bottom: 16px;
    padding-top: 14px;
}

.logos-ai-chat[data-layout="standalone"] .logos-ai-chat-standalone-footer {
    flex: 0 0 auto;
    padding-bottom: 14px;
    padding-top: 12px;
}

.logos-ai-chat-standalone-footer a {
    color: var(--logos-ai-chat-muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.logos-ai-chat-standalone-footer a:hover,
.logos-ai-chat-standalone-footer a:focus {
    color: var(--logos-ai-chat-accent-strong);
    text-decoration: underline;
}

.logos-ai-chat.is-busy .logos-ai-chat-submit,
.logos-ai-chat.is-busy .logos-ai-chat-suggestion,
.logos-ai-chat.is-busy .logos-ai-chat-share-btn {
    cursor: wait;
    opacity: 0.72;
}

@keyframes logos-ai-chat-pulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 720px) {
    .logos-ai-chat[data-layout="floating"] {
        bottom: 30px;
        right: 10px;
        top: auto;
        transform: none;
        width: auto;
    }

    .logos-ai-chat[data-layout="floating"].is-floating-open {
        width: calc(100vw - 20px);
    }

    @supports (-webkit-overflow-scrolling: touch) {
        .logos-ai-chat[data-layout="floating"] {
            bottom: 74px;
        }
    }

    .logos-ai-chat[data-layout="floating"] .logos-ai-chat-shell {
        max-height: calc(100vh - 84px);
        min-height: min(620px, calc(100vh - 84px));
    }

    .logos-ai-chat-floating-panel {
        margin-right: 0;
    }

    .logos-ai-chat-shell {
        min-height: clamp(560px, var(--logos-ai-chat-shell-height), 920px);
    }

    .logos-ai-chat-header,
    .logos-ai-chat-messages,
    .logos-ai-chat-form,
    .logos-ai-chat-suggestions,
    .logos-ai-chat-standalone-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logos-ai-chat-bubble {
        max-width: 100%;
    }

    .logos-ai-chat-message.has-cards .logos-ai-chat-bubble {
        width: 100%;
    }

    .logos-ai-chat-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .logos-ai-chat-action-controls,
    .logos-ai-chat-action-buttons {
        align-items: stretch;
        width: 100%;
    }

    .logos-ai-chat-action-note {
        max-width: none;
        text-align: left;
    }

    .logos-ai-chat-feedback {
        align-items: stretch;
        flex-direction: column;
    }

    .logos-ai-chat-card-grid {
        grid-template-columns: 1fr;
    }

    .logos-ai-chat-product-card .report-card-compact-row {
        flex-direction: column;
    }

    .logos-ai-chat-product-card .report-card-compact-cta {
        width: 100% !important;
    }

    .logos-ai-chat-submit,
    .logos-ai-chat-share-btn {
        width: 100%;
    }

    .logos-ai-chat-brand {
        align-items: flex-start;
    }

    .logos-ai-chat-header-row {
        flex-direction: column;
    }

    .logos-ai-chat-header-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .logos-ai-chat-logo {
        height: 46px;
        width: 46px;
    }

    .logos-ai-chat-launcher {
        border-radius: 999px;
        min-height: 52px;
        width: 100%;
    }
}
