.hadassah-ai-product-search {
    display: flex;
    gap: 10px;
    margin: 20px 0 28px;
}

.hadassah-ai-product-search input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8d1b6;
    border-radius: 12px;
    font-size: 16px;
}

.hadassah-ai-product-search button {
    padding: 14px 24px;
    border: 1px solid #CFB446;
    border-radius: 12px;
    background: #CFB446;
    color: #252531;
    font-weight: 600;
    cursor: pointer;
}

.hadassah-ai-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.hadassah-ai-result-card {
    border: 1px solid #eee3b8;
    border-radius: 18px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(37, 37, 49, 0.08);
}

.hadassah-ai-result-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #252531;
}

.hadassah-ai-result-card p {
    color: #4d4d4d;
    line-height: 1.55;
}

.hadassah-ai-result-card a {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #252531;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 900px) {
    .hadassah-ai-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .hadassah-ai-product-search {
        flex-direction: column;
    }

    .hadassah-ai-results {
        grid-template-columns: 1fr;
    }
}

.hadassah-ai-result-image {
    display: block;
    margin: -6px -6px 16px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8f5ea;
}

.hadassah-ai-result-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    padding: 12px;
}

.hadassah-ai-result-card {
    display: flex;
    flex-direction: column;
}

.hadassah-ai-result-card h3 {
    min-height: 52px;
}

.hadassah-ai-result-card p {
    margin-bottom: 14px;
}

.hadassah-ai-result-card a:not(.hadassah-ai-result-image) {
    margin-top: auto;
    width: fit-content;
}

.hadassah-ai-result-image img {
    max-height: 250px;
}

.hadassah-ai-chat-product {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eee3b8;
}

.hadassah-ai-chat-product-image {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 12px;
    background: #f8f5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hadassah-ai-chat-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hadassah-ai-chat-product-content {
    flex: 1;
}

.hadassah-ai-chat-product-content strong {
    display: block;
    margin-bottom: 4px;
    color: #252531;
}

.hadassah-ai-chat-product-content small {
    display: inline-block;
    margin-top: 4px;
}

.hadassah-ai-chat-product-content a {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
}

.hadassah-ai-floating-wrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
}

.hadassah-ai-floating-button {
    background: #CFB446;
    color: #252531;
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.hadassah-ai-floating-panel {
    display: none;
}

.hadassah-ai-bar-wrap {
    position: fixed !important;
    left: 50% !important;
    bottom: 24px !important;
    transform: translateX(-50%) !important;
    width: min(760px, calc(100vw - 32px)) !important;
    z-index: 999999 !important;
    font-family: inherit !important;
}

.hadassah-ai-bar-panel {
    display: none !important;
    margin-bottom: 10px !important;
    background: #fff !important;
    border: 1px solid rgba(207, 180, 70, 0.35) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 50px rgba(37, 37, 49, 0.18) !important;
    padding: 18px !important;
    max-height: 420px !important;
    overflow-y: auto !important;
}

.hadassah-ai-bar-wrap.hadassah-ai-has-messages .hadassah-ai-bar-panel {
    display: block !important;
}

.hadassah-ai-bar-form {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #fff !important;
    border: 1px solid rgba(37, 37, 49, 0.12) !important;
    border-radius: 999px !important;
    padding: 10px 12px 10px 18px !important;
    box-shadow: 0 16px 45px rgba(37, 37, 49, 0.18) !important;
}

.hadassah-ai-bar-plus {
    font-size: 24px !important;
    line-height: 1 !important;
    color: #252531 !important;
}

.hadassah-ai-bar-form input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 16px !important;
    min-height: 34px !important;
    color: #252531 !important;
}

.hadassah-ai-bar-form button {
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    border: none !important;
    background: #252531 !important;
    color: #fff !important;
    font-size: 22px !important;
    cursor: pointer !important;
}

.hadassah-ai-message {
    margin-bottom: 12px !important;
}

.hadassah-ai-message-user {
    text-align: right !important;
    font-weight: 600 !important;
}

.hadassah-ai-message-bot {
    text-align: left !important;
}

body {
    padding-bottom: 110px !important;
}

.hadassah-ai-page-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(20, 20, 30, 0.38) !important;
    z-index: 999990 !important;
}

body.hadassah-ai-active .hadassah-ai-page-overlay {
    display: block !important;
}

body.hadassah-ai-active .hadassah-ai-bar-wrap {
    z-index: 999999 !important;
}

body.hadassah-ai-active {
    overflow: hidden !important;
}
.hadassah-ai-close {
    position: absolute !important;
    top: 12px !important;
    right: 14px !important;
    width: 30px !important;
    height: 30px !important;
    border: none !important;
    border-radius: 999px !important;
    background: #f4f0df !important;
    color: #252531 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.hadassah-ai-bar-panel {
    position: relative !important;
    max-height: min(78vh, 720px) !important;
    padding-top: 48px !important;
}

.hadassah-ai-bar-panel {
    max-height: min(78vh, 720px) !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.hadassah-ai-bar-panel::-webkit-scrollbar {
    display: none !important;
}

.hadassah-ai-bar-panel::after {
    content: "⌄";
    position: sticky;
    bottom: 0;
    left: 50%;
    display: block;
    width: 34px;
    height: 34px;
    margin: 10px auto -8px;
    border-radius: 999px;
    background: rgba(207, 180, 70, 0.18);
    color: #252531;
    text-align: center;
    line-height: 30px;
    font-size: 24px;
    pointer-events: none;
}

.hadassah-ai-close {
    top: 16px !important;
    right: 16px !important;
    transform: none !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.hadassah-ai-bar-panel::after {
    content: "↓" !important;
    font-family: Arial, sans-serif !important;
    font-size: 20px !important;
    line-height: 34px !important;
}

.hadassah-ai-message-user {
    display: flex !important;
    justify-content: flex-end !important;
    margin: 22px 0 18px !important;
    text-align: right !important;
}

.hadassah-ai-message-user::before {
    content: "" !important;
}

.hadassah-ai-message-user {
    font-weight: 500 !important;
}

.hadassah-ai-message-user:not(:empty) {
    background: #f1f1f1 !important;
    color: #252531 !important;
    padding: 12px 16px !important;
    border-radius: 18px !important;
    max-width: 72% !important;
    margin-left: auto !important;
    width: fit-content !important;
}

.hadassah-ai-bar-panel,
.hadassah-ai-bar-panel p,
.hadassah-ai-bar-panel span,
.hadassah-ai-bar-panel small,
.hadassah-ai-bar-panel a,
.hadassah-ai-message {
    font-size: 14px !important;
}

.hadassah-ai-chat-product-content strong {
    font-size: 14px !important;
}

.hadassah-ai-bar-form input {
    font-size: 15px !important;
}

.hadassah-ai-bar-form button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.hadassah-ai-action-link {
    display: inline-block !important;
    margin: 8px 6px 0 0 !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: #f4f0df !important;
    color: #252531 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.hadassah-ai-action-link:hover {
    background: #CFB446 !important;
    color: #252531 !important;
}