﻿.agent-search,
.agent-search-toggle { font-family: Arial, sans-serif; }
.agent-search[hidden],
.agent-search-toggle[hidden] { display: none !important; }
.agent-search { position: fixed; right: 20px; bottom: 86px; z-index: 1030; display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 110px)); background: #fff; border: 1px solid #e9e3ed; border-radius: 18px; box-shadow: 0 18px 55px #28133f30; overflow: hidden; color: #2d2137; }
.agent-search-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: #28133f; color: #fff; }
.agent-search-kicker { display: block; margin-bottom: 3px; color: #ff79aa; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.agent-search-header h2 { margin: 0; color: #fff; font-size: 19px; font-weight: 700; line-height: 1.25; }
.agent-search-header button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #ffffff24; color: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.agent-search-body { min-height: 180px; padding: 17px; overflow-y: auto; overscroll-behavior: contain; font-size: 14px; line-height: 1.5; }
.agent-search-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.agent-search-intro { color: #756b7d; }
.agent-search-query { width: fit-content; max-width: 90%; margin-left: auto !important; padding: 9px 12px; border-radius: 12px 12px 2px 12px; background: var(--site-primary-soft); color: #5b2540; overflow-wrap: anywhere; }
.agent-search-status { padding-top: 4px; color: #675b70; font-weight: 700; }
.agent-search-product { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; padding: 9px; border: 1px solid #eee9f0; border-radius: 10px; color: #2d2137 !important; text-decoration: none !important; }
.agent-search-product:hover, .agent-search-product:focus-visible { border-color: var(--site-primary); background: var(--site-primary-soft); }
.agent-search-product img { width: 56px; height: 56px; flex: none; border-radius: 7px; object-fit: cover; background: #f7f5f8; }
.agent-search-product span { min-width: 0; }
.agent-search-product strong, .agent-search-product small { display: block; overflow-wrap: anywhere; }
.agent-search-product strong { font-size: 13px; line-height: 1.35; }
.agent-search-product small { margin-top: 4px; color: var(--site-primary); font-size: 12px; font-weight: 700; }
.agent-search-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eee9f0; background: #fff; }
.agent-search-form input { min-width: 0; flex: 1; height: 42px; padding: 0 12px; border: 1px solid #ded6e3; border-radius: 9px; background: #fff; color: #28133f; font-size: 14px; }
.agent-search-form input:focus { outline: 2px solid rgba(var(--site-primary-rgb), .27); border-color: var(--site-primary); }
.agent-search-form button { flex: none; padding: 0 14px; border: 0; border-radius: 9px; background: var(--site-primary); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.agent-search-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 1030; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 17px; border: 0; border-radius: 999px; background: #28133f; color: #fff; box-shadow: 0 8px 25px #28133f40; font-size: 13px; font-weight: 700; cursor: pointer; }
.agent-search-toggle i { font-size: 17px; }
@media (max-width: 767px) {
    .agent-search { right: 12px; bottom: calc(190px + env(safe-area-inset-bottom)) !important; max-height: calc(100dvh - 215px); }
    .agent-search-toggle { right: 12px; bottom: calc(137px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 380px) {
    .agent-search { left: 8px; right: 8px; width: auto; }
    .agent-search-header { padding: 14px 16px; }
    .agent-search-body { padding: 12px; }
}
