:root {
    --chatbot-left: auto;
    --chatbot-right: 20px;
    --chatbot-bottom: 24px;
    --chatbot-toggle-open-size: 48px;
    --chatbot-popup-gap: 6px;
    --chatbot-window-top: 12px;
    --chatbot-window-left-gap: 14px;
    --chatbot-window-expanded-top: 12px;
    --chatbot-window-expanded-width: 760px;
    --chatbot-size: 80px;
    --chatbot-gap: 4px;
    --chatbot-green: #29468A;
    --chatbot-green-dark: #050038;
    --chatbot-green-soft: #6197e9;
    --chatbot-green-light: #84abe2;
    --chatbot-green-lighter: #bad5ee;
    --chatbot-green-lightest: #d3def7;
    --chatbot-text: #3c3c3c;
}

.chatbot-container {
    position: fixed;
    bottom: 82px;
    left: auto;
    right: 5px;
    z-index: 100;
    font-family: Nunito, sans-serif;
}

@media print {
    .chatbot-container,
    .chatbot-window,
    .chatbot-toggle {
        display: none !important;
        visibility: hidden !important;
    }
}

.chatbot-toggle {
    width: var(--chatbot-size);
    height: var(--chatbot-size);
    border-radius: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: transform 0.3s ease;
    animation: chatbotJump 4s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 32px;
    background: #ffffff;
    border-radius: 26px 26px 12px 12px;
    transform: translate(-50%, -56%);
    z-index: 0;
}

.chatbot-toggle.is-open {
    animation: none;
    transform: scale(1.02);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #ffffff;
}

.chatbot-toggle.is-open::before {
    content: none;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

@keyframes chatbotJump {
    0%, 85%, 100% {
        transform: translateY(0);
    }
    4% {
        transform: translateY(-14px);
    }
    8% {
        transform: translateY(0);
    }
    12% {
        transform: translateY(-8px);
    }
    16% {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chatbot-toggle {
        animation: none;
    }
}

.chatbot-toggle__launcher,
.chatbot-toggle__close {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: 1;
}

.chatbot-toggle__launcher {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.chatbot-toggle__close {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55) rotate(-90deg);
    inset: auto;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: none;
}

.chatbot-toggle.is-open .chatbot-toggle__launcher {
    opacity: 0;
    transform: scale(0.55) rotate(90deg);
}

.chatbot-toggle.is-open .chatbot-toggle__close {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.chatbot-toggle img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
    position: relative;
    z-index: 1;
}

.chatbot-toggle__close svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: #c01826;
    stroke-width: 2.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    filter: drop-shadow(0 4px 10px rgba(241, 31, 48, 0.18));
}

.widget-beta-note {
    padding: 6px 16px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--chatbot-green-soft);
    background: var(--chatbot-green-lighter);
    border-bottom: 1px solid var(--chatbot-green-light);
}

.chatbot-window {
    display: flex;
    position: fixed;
    bottom: calc(var(--chatbot-bottom) + var(--chatbot-toggle-open-size) + var(--chatbot-popup-gap));
    top: max(var(--chatbot-window-top), calc(env(safe-area-inset-top, 0px) + 8px));
    left: auto;
    right: var(--chatbot-right);
    width: min(430px, calc(100vw - var(--chatbot-right) - var(--chatbot-window-left-gap)));
    max-width: calc(100vw - var(--chatbot-window-left-gap) - var(--chatbot-right));
    height: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(241, 31, 48, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 22px, 0) scale(0.96);
    transform-origin: bottom right;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition:
        width 0.22s ease,
        max-width 0.22s ease,
        top 0.22s ease,
        left 0.22s ease,
        right 0.22s ease,
        bottom 0.22s ease,
        border-radius 0.22s ease,
        opacity 0.24s ease,
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.3s;
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0s;
}

.chatbot-window.active .chatbot-header {
    animation: chatbotSectionSlideDown 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.chatbot-window.active .chatbot-messages {
    animation: chatbotSectionFadeIn 0.38s ease-out;
}

.chatbot-window.active .chatbot-input-area {
    animation: chatbotSectionSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.chatbot-window.expanded {
    bottom: calc(var(--chatbot-bottom) + var(--chatbot-toggle-open-size) + var(--chatbot-popup-gap));
    top: max(var(--chatbot-window-expanded-top), calc(env(safe-area-inset-top, 0px) + 6px));
    left: auto;
    right: var(--chatbot-right);
    width: min(var(--chatbot-window-expanded-width), calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    border-radius: 20px;
}

.chatbot-header {
    background:-webkit-linear-gradient(35deg, #29468A, #f11f30 265%);
    color: white;
    padding: 16px 16px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgb(241 31 48 / 16%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.chatbot-header::before {
    content: '';
    position: absolute;
    right: -34px;
    top: -42px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.chatbot-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0) 72%);
    transform: translateX(-100%);
    animation: chatbotHeaderShimmer 4.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes chatbotHeaderShimmer {
    0%, 68%, 100% {
        transform: translateX(-100%);
    }
    82% {
        transform: translateX(100%);
    }
}

@keyframes chatbotSectionSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chatbotSectionSlideUp {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chatbotSectionFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.chatbot-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: 0.02em;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.chatbot-header-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    opacity: 0.92;
}

.chatbot-header-subtitle::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #fde8ea;
    box-shadow: 0 0 0 4px rgba(253, 232, 234, 0.14);
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.chatbot-expand {
    background: rgba(255, 255, 255, 0.22);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: white;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 1;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.chatbot-expand svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.3));
}

.chatbot-expand:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

/* icon toggle based on expanded state */
.chatbot-expand .icon-minimize { display: none; }
.chatbot-expand .icon-expand   { display: block; }
.chatbot-window.expanded .chatbot-expand .icon-expand   { display: none; }
.chatbot-window.expanded .chatbot-expand .icon-minimize { display: block; }

.chatbot-close {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.chatbot-close:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
    flex: 1;
    padding: 10px 14px 10px;
    overflow-y: auto;
    background:
    radial-gradient(circle at top right,rgba(241, 31, 48, 0.06) 0,transparent 30%),
    radial-gradient(circle at bottom left,rgba(5, 0, 56, 0.05) 0,transparent 35%),
    linear-gradient(180deg, #faf8fc 0%, #f5f1f8 100%)
}

.chatbot-message {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    animation: chatbotMessageRise 0.22s ease-out;
}

@keyframes chatbotMessageRise {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-message.bot {
    align-items: flex-start;
}

.chatbot-message.user {
    align-items: flex-end;
}

.message-bubble {
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
    text-align: left;
}

.typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 56px;
    min-height: 20px;
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--chatbot-green);
    opacity: 0.35;
    animation: typingDotBounce 1.1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.16s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.32s;
}

.chatbot-brand {
    font-weight: 600;
    color: var(--chatbot-green-dark);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@keyframes typingDotBounce {
    0%, 80%, 100% {
        transform: translateY(0) scale(0.9);
        opacity: 0.3;
    }
    40% {
        transform: translateY(-4px) scale(1.08);
        opacity: 1;
    }
}

/* Force left alignment inside bubbles (override theme center styles) */
.chatbot-container .chatbot-messages,
.chatbot-container .chatbot-message,
.chatbot-container .message-bubble,
.chatbot-container .message-bubble * {
    text-align: left !important;
}

.chatbot-message.bot .message-bubble {
    background: linear-gradient(135deg, rgba(255, 251, 253, 0.95), rgba(248, 242, 248, 0.95));
    color: #4b5563;
    border: 1px solid #6d8bd2;
    border-bottom-left-radius: 4px;
}

.chatbot-message.user .message-bubble {
    background: -webkit-linear-gradient(35deg, #29468A, #f11f30 265%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-message.bot .message-bubble a {
    color: var(--chatbot-green);
    text-decoration: underline;
}

.chatbot-message.bot .message-bubble a:hover {
    color: var(--chatbot-green-dark);
}

/* Product section bubble should span full width */
.product-bubble {
    max-width: 100%;
    width: 100%;
    border-radius: 14px;
}

.chatbot-message.typing-indicator .message-bubble {
    background: var(--chatbot-green-lighter);
    color: var(--chatbot-green-soft);
    box-shadow: 0 4px 14px rgba(241, 31, 48, 0.12);
}

.chatbot-input-area {
    padding: 12px;
    background: radial-gradient(circle at top right, rgba(241, 31, 48, 0.06) 0, transparent 30%), 
    radial-gradient(circle at bottom left, rgba(5, 0, 56, 0.05) 0, transparent 35%), 
    linear-gradient(180deg, #faf8fc 0%, #f5f1f8 100%);
    display: flex;
    gap: 8px;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgb(241 31 48 / 16%);
    position: relative;
}

.chatbot-input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #6d8bd2;
    border-radius: 999px;
    font-size: 13px;
    outline: none;
    background: linear-gradient(135deg, rgba(255, 251, 253, 0.95), rgba(248, 242, 248, 0.95));
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    position: relative;
    z-index: 1;
}

.chatbot-input:focus {
    border-color: #6d8bd2;
    background: #ffffff;
    box-shadow: 0 0 0 3px #bad5ee, inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.chatbot-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.chatbot-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: -webkit-linear-gradient(35deg, #29468A, #f11f30 265%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    position: relative;
    z-index: 1;
}

.chatbot-send:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.03);
}

.chatbot-send:disabled {
    background: var(--chatbot-green-light);
    cursor: not-allowed;
}

.chatbot-send svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Voice Assistant Button */
.chatbot-voice {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, #bac8e8 0%, #84abe2 100%);
    border: 1px solid #6d8bd2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.chatbot-voice:hover:not(:disabled) {
    background:#6d8bd2;
    transform: translateY(-1px) scale(1.03);
}

.chatbot-voice:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chatbot-voice svg {
    width: 20px;
    height: 20px;
    fill:#29468A;
}

.chatbot-voice.listening {
    background: var(--chatbot-green-lightest);
    border-color: var(--chatbot-green);
    animation: voicePulse 1.5s infinite;
}

.chatbot-voice.listening svg {
    fill: var(--chatbot-green-dark);
}

@keyframes voicePulse {
    0%   { box-shadow: 0 0 0 0 rgba(241, 31, 48, 0.34); }
    70%  { box-shadow: 0 0 0 10px rgba(241, 31, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(241, 31, 48, 0); }
}

/* Product cards */
.product-list {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-top: 6px;
    width: 100%;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.product-slider {
    position: relative;
}

.product-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 1px solid #6d8bd2;
    border-radius: 999px;
    background: linear-gradient(180deg, #bac8e8 0%, #84abe2 100%);
    color: #29468A;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    opacity: 0;
    pointer-events: none;
}

.product-slider-arrow--prev {
    left: 8px;
}

.product-slider-arrow--next {
    right: 8px;
}

.product-slider.has-overflow .product-slider-arrow {
    opacity: 1;
    pointer-events: auto;
}

.product-slider-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.product-slider-arrow:hover:not(:disabled) {
    transform: translateY(calc(-50% - 1px));
}

.product-slider-arrow:disabled {
    color: #6197e9;
    border-color: #6d8bd2;
    background: linear-gradient(180deg, #bac8e8 0%, #84abe2 100%);
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    height: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e8edf3;
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    scroll-snap-align: start;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    border-color: #d7dee8;
}

.product-image-link {
    display: block;
    width: 100%;
    background: #f8fafc;
    text-decoration: none;
}

.product-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 150px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.product-category-badge {
    position: absolute;
    top: 0;
    right: 0;
    max-width: calc(100% - 20px);
    padding: 4px 10px;
    border-radius: 10px 0 0 10px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 16px;
}

.product-faqs-wrap {
    width: 100%;
}

.product-category-line {
    font-size: 11px;
    line-height: 1.35;
    color: #64748b;
}

.product-name-link {
    display: -webkit-box;
    overflow: hidden;
    min-height: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a !important;
    text-decoration: none !important;
    line-height: 1.3;
}

.product-name-link:hover {
    color: #111827 !important;
    text-decoration: underline !important;
}

.product-description-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-description-wrap .product-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.chatbot-window .product-description-readmore {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--chatbot-green-dark) !important;
    text-decoration: none !important;
}

.chatbot-window .product-description-readmore:hover {
    color: var(--chatbot-green) !important;
    text-decoration: underline !important;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card-footer {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
}

.chatbot-window .product-price-row {
    margin-top: 4px;
}

.chatbot-window .product-price-value {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.2;
}

.chatbot-window .product-price-special {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-right: 2px;
}

.chatbot-window .product-price-regular {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 2px;
}

.chatbot-window .product-price-discount {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    background: #d7f0b5;
    color: #2b4905;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.chatbot-window .product-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.chatbot-window .product-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

.chatbot-window .product-rating-star {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    color: #e2e8f0;
}

.chatbot-window .product-rating-star.is-filled {
    color: #f59e0b;
}

.chatbot-window .product-rating-star.is-empty {
    color: #e2e8f0;
}

.chatbot-window .product-rating-star.is-partial {
    background: linear-gradient(
        90deg,
        #f59e0b var(--star-fill, 50%),
        #e2e8f0 var(--star-fill, 50%)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.chatbot-window .product-rating-meta {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.chatbot-window .product-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.chatbot-container .product-edition-heading,
.chatbot-window .product-edition-heading {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.chatbot-container .product-edition-radios,
.chatbot-window .product-edition-radios {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
}

.chatbot-container button.product-edition-pill,
.chatbot-window .product-edition-pill {
    flex: 1 1 0;
    min-height: 30px;
    padding: 5px 6px;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.chatbot-container button.product-edition-pill:hover,
.chatbot-window .product-edition-pill:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.chatbot-container button.product-edition-pill.is-selected,
.chatbot-window .product-edition-pill.is-selected {
    border-color: #1e40af;
    background: #1e40af;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.28);
}

.chatbot-container .product-price-value,
.chatbot-window .product-price-value {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.2;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.chatbot-container .product-price-special,
.chatbot-window .product-price-special {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.chatbot-container .product-price-regular,
.chatbot-window .product-price-regular {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

.chatbot-container .product-price-discount,
.chatbot-window .product-price-discount {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    white-space: nowrap;
}


.chatbot-container .product-sku-wrap,
.chatbot-window .product-sku-wrap {
    margin-top: 2px;
}

.chatbot-window .product-sku-toggle,
.chatbot-window .product-faqs-summary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.chatbot-window .product-sku-toggle:hover,
.chatbot-window .product-faqs-summary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.chatbot-window .product-sku-toggle-icon,
.chatbot-window .product-faqs-summary-icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
    margin-top: -2px;
}

.chatbot-window .product-sku-wrap.is-open .product-sku-toggle-icon,
.chatbot-window .product-faqs-accordion.is-open .product-faqs-summary-icon {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.chatbot-window .product-sku-panel {
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    font-size: 11px;
    line-height: 1.4;
    color: #475569;
    word-break: break-word;
}

.chatbot-window .product-faqs-accordion {
    border: none;
    background: transparent;
    overflow: visible;
    width: 100%;
}

.chatbot-window .product-faqs-list {
    display: none !important;
    flex-direction: column;
    gap: 6px;
    height: auto;
    max-height: none;
    overflow: visible;
    margin-top: 6px;
    padding: 0;
}

.chatbot-window .product-faqs-accordion.is-open .product-faqs-list {
    display: flex !important;
}

.chatbot-window .product-faq-item {
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.chatbot-window .product-faq-question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    margin: 0;
    border: none;
    background: transparent;
    color: #1e293b !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.chatbot-window .product-faq-question:hover {
    background: #f8fafc;
}

.chatbot-window .product-faq-question-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    color: #1e293b;
}

.chatbot-window .product-faq-question-icon {
    width: 7px;
    height: 7px;
    margin-top: 3px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.chatbot-window .product-faq-item.is-open .product-faq-question-icon {
    transform: rotate(-135deg);
    margin-top: 5px;
}

.chatbot-window .product-faq-answer {
    display: none !important;
    padding: 0 10px 10px;
    font-size: 11px;
    line-height: 1.5;
    color: #64748b;
    word-break: break-word;
    white-space: normal;
    height: auto;
    max-height: none;
    overflow: visible;
}

.chatbot-window .product-faq-item.is-open .product-faq-answer {
    display: block !important;
}

.product-addtocart {
    width: auto;
    min-width: 44px;
    min-height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.product-addtocart:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
}

.product-addtocart:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #94a3b8;
}

.product-option-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-option-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-option-swatch {
    min-width: 38px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(241, 31, 48, 0.28);
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.product-option-swatch:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--chatbot-green);
}

.product-option-swatch.is-selected {
    background: linear-gradient(135deg, var(--chatbot-green-dark) 0%, var(--chatbot-green) 100%);
    border-color: var(--chatbot-green-dark);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(241, 31, 48, 0.22);
}

.product-option-swatch.is-disabled,
.product-option-swatch:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.product-addtocart.is-loading:disabled {
    opacity: 0.7;
    cursor: wait;
}

.product-addtocart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-addtocart-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

/* Suggestions */
.suggestions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
}

.suggestion-chip {
    border-radius: 14px;
    padding: 7px 12px;
    font-size: 12px;
    cursor: pointer;
    background: transparent;
    color: var(--chatbot-green);
    border: 1px solid var(--chatbot-green-light);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    width: calc(50% - 3px);
    max-width: 100%;
    text-align: center;
    flex: 0 0 calc(50% - 3px);
    overflow: hidden;
}
.suggestion-chip span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    line-height: 1.4;
}

.suggestion-chip:hover {
    background: var(--chatbot-green-lightest);
    border-color: var(--chatbot-green);
    color: var(--chatbot-green-dark);
}

@media (max-width: 768px) {
    :root {
        --chatbot-left: 16px;
        --chatbot-window-top: 8px;
        --chatbot-window-left-gap: 16px;
        --chatbot-window-expanded-top: 8px;
        --chatbot-window-expanded-width: calc(100vw - 16px);
        --chatbot-bottom: 16px;
        --chatbot-popup-gap: 4px;
        --chatbot-size: 80px;
    }

    .chatbot-container {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    .chatbot-window {
        width: auto;
        max-width: none;
        bottom: calc(var(--chatbot-bottom) + var(--chatbot-toggle-open-size) + var(--chatbot-popup-gap));
        left: auto;
        right: 16px;
        transform: none;
        will-change: auto;
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
    }

    .chatbot-window.active {
        transform: none;
    }

    .chatbot-header h3 {
        text-shadow: none;
        font-weight: 700;
    }

    .chatbot-header-subtitle,
    .message-bubble,
    .chatbot-input,
    .suggestion-chip,
    .product-name-link,
    .product-brand,
    .product-price-value {
        font-weight: 500;
    }

    .chatbot-header::after {
        animation: none;
        display: none;
    }

    .chatbot-window.active .chatbot-header,
    .chatbot-window.active .chatbot-messages,
    .chatbot-window.active .chatbot-input-area,
    .chatbot-message,
    .typing-dot {
        animation: none;
    }

    .chatbot-input-area {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }

    .chatbot-input-area::after {
        filter: none;
        opacity: 0.45;
    }

    .message-bubble,
    .product-card,
    .suggestion-chip {
        box-shadow: none;
    }

    .chatbot-window,
    .chatbot-messages,
    .message-bubble,
    .chatbot-input,
    .chatbot-header h3,
    .chatbot-header-subtitle,
    .suggestion-chip,
    .product-name-link,
    .product-brand,
    .product-price-value {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        -webkit-text-size-adjust: 100%;
    }
}

@media (max-height: 900px) {
    :root {
        --chatbot-window-top: 10px;
        --chatbot-window-expanded-top: 10px;
    }
}

@media (max-height: 760px) {
    :root {
        --chatbot-window-top: 8px;
        --chatbot-window-expanded-top: 8px;
    }
}

@media (max-width: 768px) and (hover: hover) and (pointer: fine) {
    .chatbot-window,
    .chatbot-window.active {
        position: absolute;
        top: auto;
        bottom: calc(var(--chatbot-toggle-open-size) + var(--chatbot-popup-gap));
        right: 0;
        left: auto;
        height: min(620px, calc(100vh - 96px));
        max-height: min(620px, calc(100vh - 96px));
        transform: none !important;
        transition:
            width 0.22s ease,
            max-width 0.22s ease,
            opacity 0.18s ease,
            visibility 0s linear 0.18s;
    }

    .chatbot-window.expanded,
    .chatbot-window.active.expanded {
        height: min(680px, calc(100vh - 40px));
        max-height: min(680px, calc(100vh - 40px));
    }

}

@media (max-width: 767px){
    .chatbot-container{
        display: none;
    }
}


