:root {
    --chatbot-primary: #F39200;
    --chatbot-primary-soft: rgba(243, 146, 0, 0.19);
    --chatbot-black: #111111;
    --chatbot-bg: #fafafa;
    --chatbot-card: #ffffff;
    --chatbot-border: #eeeeee;
    --chatbot-text: #111111;
    --chatbot-muted: #666666;
}

.chatbot-toggle {
    position: fixed;
    right: 170px;
    bottom: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
    color: #fff;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.14),
        0 0 0 4px rgba(243, 146, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    animation: chatbot-toggle-float 3.8s ease-in-out infinite;
}

.chatbot-toggle::before,
.chatbot-toggle::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(243, 146, 0, 0.22);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.96);
    animation: chatbot-toggle-glow 3.2s ease-out infinite;
}

.chatbot-toggle::after {
    animation-delay: 1.6s;
}

.chatbot-toggle.is-open {
    box-shadow:
        0 9px 22px rgba(0, 0, 0, 0.14),
        0 0 0 4px rgba(243, 146, 0, 0.08);
    animation: chatbot-toggle-open-float 3.6s ease-in-out infinite;
}

.chatbot-toggle.is-open::before,
.chatbot-toggle.is-open::after {
    border-color: rgba(17, 17, 17, 0.14);
    animation: none;
}

.chatbot-toggle-speech {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 24px;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--chatbot-primary);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.14);
    font-size: 0;
    font-weight: 800;
    line-height: 1;
    z-index: 3;
    letter-spacing: 0;
    animation: chatbot-badge-pop 3.6s ease-in-out infinite;
}

.chatbot-toggle-speech::before {
    content: attr(data-label);
    font-size: 10px;
}

.chatbot-toggle.is-open .chatbot-toggle-speech {
    min-width: 58px;
    color: #fff;
    background: var(--chatbot-black);
    border-color: rgba(17, 17, 17, 0.1);
    animation: chatbot-speech-open 3s ease-in-out infinite;
}

.chatbot-toggle.is-open .chatbot-toggle-speech::before {
    content: "Watching";
}

.chatbot-toggle.is-open .chatbot-toggle-speech {
    font-size: 0;
}

.chatbot-toggle.is-open .chatbot-toggle-speech::before {
    font-size: 11px;
}

.chatbot-toggle.is-user-typing .chatbot-toggle-speech::before {
    content: "Reading";
}

.chatbot-toggle.is-preparing .chatbot-toggle-speech {
    background: var(--chatbot-primary);
    animation: chatbot-speech-working 1.3s ease-in-out infinite;
}

.chatbot-toggle.is-open .chatbot-toggle-speech {
    display: none;
}

.chatbot-toggle.is-preparing .chatbot-toggle-speech::before {
    content: "Working";
}

.chatbot-toggle-character {
    position: relative;
    width: 38px;
    height: 43px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
    animation: chatbot-character-idle 3.8s ease-in-out infinite;
}

.chatbot-toggle.is-open .chatbot-toggle-character {
    animation: chatbot-character-open 3.6s ease-in-out infinite;
}

.chatbot-toggle.is-preparing .chatbot-toggle-character {
    animation: chatbot-character-working 1.2s ease-in-out infinite;
}

.chatbot-toggle-head {
    position: relative;
    width: 31px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: chatbot-head-look 5.2s ease-in-out infinite;
}

.chatbot-toggle-antenna {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 2px;
    height: 7px;
    background: rgba(255, 255, 255, 0.86);
    transform: translateX(-50%);
    border-radius: 999px;
}

.chatbot-toggle-antenna::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #ffe1aa;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.chatbot-toggle-face {
    position: relative;
    width: 31px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 2px solid rgba(255, 255, 255, 0.94);
    border-radius: 12px 12px 10px 10px;
    background: linear-gradient(145deg, #ffc15f, var(--chatbot-primary));
    box-shadow:
        inset 0 -4px 0 rgba(17, 17, 17, 0.1),
        0 4px 10px rgba(243, 146, 0, 0.2);
}

.chatbot-toggle-face::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 12px;
    height: 6px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 0 0 999px 999px;
    transform: translateX(-50%);
}

.chatbot-toggle-face::before {
    content: "";
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 15px 0 0 rgba(255, 255, 255, 0.58);
}

.chatbot-toggle-eye {
    width: 5px;
    height: 6px;
    background: #fff;
    border-radius: 999px;
    animation: chatbot-eye-blink 4.4s ease-in-out infinite;
}

.chatbot-toggle.is-open .chatbot-toggle-eye {
    height: 5px;
    border-radius: 999px;
    animation: chatbot-eye-open-scan 1.8s ease-in-out infinite;
}

.chatbot-toggle.is-user-typing .chatbot-toggle-head {
    animation: chatbot-head-reading 1.8s ease-in-out infinite;
}

.chatbot-toggle.is-user-typing .chatbot-toggle-eye {
    height: 4px;
    animation: chatbot-eye-reading 1.2s ease-in-out infinite;
}

.chatbot-toggle.is-preparing .chatbot-toggle-eye {
    height: 7px;
    animation: chatbot-eye-working 0.65s ease-in-out infinite;
}

.chatbot-toggle-body {
    position: relative;
    width: 26px;
    height: 20px;
    margin-top: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px 9px 14px 14px;
    background: #ffffff;
    border: 2px solid rgba(243, 146, 0, 0.85);
    box-shadow: inset 0 -5px 0 rgba(243, 146, 0, 0.12);
    z-index: 1;
}

.chatbot-toggle.is-open .chatbot-toggle-body {
    transform: translateY(4px);
}

.chatbot-toggle.is-preparing .chatbot-toggle-body {
    transform: translateY(1px);
}

.chatbot-toggle-chest {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--chatbot-primary);
    box-shadow: 0 0 0 4px var(--chatbot-primary-soft);
}

.chatbot-toggle.is-preparing .chatbot-toggle-chest {
    animation: chatbot-chest-working 0.8s ease-in-out infinite;
}

.chatbot-toggle-arm {
    position: absolute;
    top: 3px;
    width: 7px;
    height: 16px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--chatbot-primary);
    transform-origin: top center;
}

.chatbot-toggle-arm-left {
    left: -6px;
    transform: rotate(16deg);
}

.chatbot-toggle-arm-right {
    right: -6px;
    transform: rotate(-16deg);
}

.chatbot-toggle.is-open .chatbot-toggle-arm-left {
    animation: chatbot-open-arm-left 2.4s ease-in-out infinite;
}

.chatbot-toggle.is-open .chatbot-toggle-arm-right {
    animation: chatbot-open-arm-right 2.4s ease-in-out infinite;
}

.chatbot-toggle.is-user-typing .chatbot-toggle-arm-left {
    animation: chatbot-reading-arm-left 1.8s ease-in-out infinite;
}

.chatbot-toggle.is-user-typing .chatbot-toggle-arm-right {
    animation: chatbot-reading-arm-right 1.8s ease-in-out infinite;
}

.chatbot-toggle.is-preparing .chatbot-toggle-arm-left {
    animation: chatbot-working-arm-left 0.9s ease-in-out infinite;
}

.chatbot-toggle.is-preparing .chatbot-toggle-arm-right {
    animation: chatbot-working-arm-right 0.9s ease-in-out infinite;
}

.chatbot-toggle-legs {
    display: flex;
    gap: 5px;
    margin-top: -2px;
}

.chatbot-toggle-leg {
    width: 7px;
    height: 8px;
    border-radius: 0 0 999px 999px;
    background: var(--chatbot-primary);
    transform-origin: top center;
}

.chatbot-toggle-leg:first-child {
    animation: none;
}

.chatbot-toggle-leg:last-child {
    animation: none;
}

.chatbot-toggle.is-open .chatbot-toggle-leg:first-child,
.chatbot-toggle.is-open .chatbot-toggle-leg:last-child {
    animation: chatbot-open-leg-idle 2.4s ease-in-out infinite;
}

.chatbot-toggle.is-open .chatbot-toggle-legs {
    gap: 4px;
    margin-top: -3px;
}

.chatbot-toggle.is-open .chatbot-toggle-leg {
    height: 9px;
}

.chatbot-toggle.is-preparing .chatbot-toggle-leg {
    height: 10px;
}

.chatbot-toggle:hover {
    animation-play-state: paused;
    transform: translateY(-2px);
    box-shadow:
        0 13px 28px rgba(0, 0, 0, 0.16),
        0 0 0 5px rgba(243, 146, 0, 0.12);
}

@keyframes chatbot-toggle-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes chatbot-toggle-glow {
    0% {
        opacity: 0.36;
        transform: scale(0.94);
    }

    100% {
        opacity: 0;
        transform: scale(1.22);
    }
}

@keyframes chatbot-toggle-open-float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.01);
    }
}

@keyframes chatbot-badge-pop {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes chatbot-character-idle {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes chatbot-character-open {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-3px) rotate(-1deg);
    }
}

@keyframes chatbot-character-working {
    0%,
    100% {
        transform: translateY(-1px) rotate(-0.5deg);
    }

    50% {
        transform: translateY(-4px) rotate(0.5deg);
    }
}

@keyframes chatbot-head-look {
    0%,
    100% {
        transform: rotate(0deg);
    }

    35% {
        transform: rotate(-3deg);
    }

    65% {
        transform: rotate(3deg);
    }
}

@keyframes chatbot-head-reading {
    0%,
    100% {
        transform: rotate(-10deg) translateY(1px);
    }

    50% {
        transform: rotate(-2deg) translateY(0);
    }
}

@keyframes chatbot-eye-blink {
    0%,
    88%,
    100% {
        transform: scaleY(1);
    }

    92% {
        transform: scaleY(0.18);
    }
}

@keyframes chatbot-eye-open-scan {
    0%,
    100% {
        transform: translateX(0) scaleX(1);
        opacity: 0.95;
    }

    50% {
        transform: translateX(1px) scaleX(1.35);
        opacity: 1;
    }
}

@keyframes chatbot-eye-reading {
    0%,
    100% {
        transform: translateX(-2px) scaleX(1.15);
    }

    50% {
        transform: translateX(2px) scaleX(1.35);
    }
}

@keyframes chatbot-eye-working {
    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.55);
        opacity: 0.72;
    }
}

@keyframes chatbot-wave {
    0%,
    100% {
        transform: rotate(-16deg);
    }

    50% {
        transform: rotate(-34deg) translateY(-1px);
    }
}

@keyframes chatbot-left-arm-swing {
    0%,
    100% {
        transform: rotate(22deg);
    }

    50% {
        transform: rotate(6deg);
    }
}

@keyframes chatbot-leg-left {
    0%,
    100% {
        transform: rotate(-14deg);
    }

    50% {
        transform: rotate(15deg);
    }
}

@keyframes chatbot-leg-right {
    0%,
    100% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(-14deg);
    }
}

@keyframes chatbot-open-arm-left {
    0%,
    100% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

@keyframes chatbot-open-arm-right {
    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(-5deg);
    }
}

@keyframes chatbot-reading-arm-left {
    0%,
    100% {
        transform: rotate(50deg) translateY(2px);
    }

    50% {
        transform: rotate(38deg) translateY(0);
    }
}

@keyframes chatbot-reading-arm-right {
    0%,
    100% {
        transform: rotate(-50deg) translateY(2px);
    }

    50% {
        transform: rotate(-38deg) translateY(0);
    }
}

@keyframes chatbot-working-arm-left {
    0%,
    100% {
        transform: rotate(30deg) translateY(1px);
    }

    50% {
        transform: rotate(10deg) translateY(-2px);
    }
}

@keyframes chatbot-working-arm-right {
    0%,
    100% {
        transform: rotate(-30deg) translateY(1px);
    }

    50% {
        transform: rotate(-10deg) translateY(-2px);
    }
}

@keyframes chatbot-open-leg-idle {
    0%,
    100% {
        transform: rotate(0deg) scaleY(1);
    }

    50% {
        transform: rotate(0deg) scaleY(0.92);
    }
}

@keyframes chatbot-chest-working {
    0%,
    100% {
        transform: scale(0.86);
        box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.16);
    }

    50% {
        transform: scale(1.12);
        box-shadow: 0 0 0 7px rgba(243, 146, 0, 0.24);
    }
}

@keyframes chatbot-speech-pop {
    0%,
    100% {
        opacity: 0;
        transform: translateY(6px) scale(0.92);
    }

    15%,
    78% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes chatbot-speech-open {
    0%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.86;
        transform: translateY(-2px) scale(0.98);
    }
}

@keyframes chatbot-speech-working {
    0%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.92;
        transform: translateY(-3px) scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chatbot-toggle,
    .chatbot-toggle::before,
    .chatbot-toggle::after,
    .chatbot-toggle-character,
    .chatbot-toggle-head,
    .chatbot-toggle-eye,
    .chatbot-toggle-arm,
    .chatbot-toggle-leg,
    .chatbot-toggle-chest,
    .chatbot-toggle-speech {
        animation: none;
    }
}

.chatbot-box {
    position: fixed;
    right: 25px;
    bottom: 95px;
    width: 360px;
    max-width: calc(100vw - 30px);
    height: 520px;
    border-radius: 18px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 9998;
    background: var(--chatbot-card);
    border: 1px solid var(--chatbot-border);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.chatbot-header {
    position: relative;
    min-height: 76px;
    padding: 14px 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
        linear-gradient(135deg, #111111 0%, #2c2418 42%, var(--chatbot-primary) 100%);
    color: #fff;
}

.chatbot-header::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -70px;
    top: -92px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.chatbot-header::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.chatbot-header-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.chatbot-header-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.chatbot-header-avatar span {
    width: 7px;
    height: 8px;
    border-radius: 999px;
    background: var(--chatbot-primary);
    animation: chatbot-header-eye 2.2s ease-in-out infinite;
}

.chatbot-header-avatar span:nth-child(2) {
    animation-delay: 0.12s;
}

.chatbot-header-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.chatbot-header-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
}

.chatbot-header-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.chatbot-header-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38d977;
    box-shadow: 0 0 0 4px rgba(56, 217, 119, 0.18);
}

.chatbot-header button {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.chatbot-header button::before {
    content: "\00d7";
    font-size: 24px;
    line-height: 1;
}

.chatbot-header button:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: rotate(90deg);
}

@keyframes chatbot-header-eye {
    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.55);
    }
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.bot-message,
.user-message {
    max-width: 80%;
    padding: 10px 13px;
    margin-bottom: 10px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
}

.bot-message {
    background: #fff;
    color: var(--chatbot-text);
    border: 1px solid var(--chatbot-border);
    border-top-left-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.user-message {
    margin-left: auto;
    border-top-right-radius: 4px;
    background: var(--chatbot-primary);
    color: #fff;
}

.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid var(--chatbot-border);
}

.chatbot-form input {
    flex: 1;
    border-radius: 25px;
    padding: 10px 14px;
    outline: none;
    border: 1px solid var(--chatbot-border);
    color: var(--chatbot-text);
}

.chatbot-form input:focus {
    border-color: var(--chatbot-primary);
    box-shadow: 0 0 0 3px var(--chatbot-primary-soft);
}

.chatbot-form button {
    border: none;
    border-radius: 25px;
    padding: 10px 16px;
    cursor: pointer;
    background: var(--chatbot-primary);
    color: #fff;
    font-weight: 600;
}

.chatbot-product {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.chatbot-product a {
    color: var(--chatbot-black);
    font-weight: 600;
    text-decoration: none;
}

.chatbot-products-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 4px 12px 1px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1px;
    -webkit-overflow-scrolling: touch;
}

.chatbot-products-grid::-webkit-scrollbar {
    height: 5px;
}

.chatbot-products-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 999px;
}

.chatbot-products-grid::-webkit-scrollbar-thumb {
    background: var(--chatbot-primary-soft);
    border-radius: 999px;
}

.chatbot-product-card {
    display: flex;
    flex: 0 0 calc((100% - 10px) / 1.25);
    gap: 10px;
    background: #fff;
    border: 1px solid var(--chatbot-border);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
}

.chatbot-product-image-wrap {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f7f7;
}

.chatbot-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chatbot-product-info {
    flex: 1;
    min-width: 0;
}

.chatbot-product-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--chatbot-black);
    text-decoration: none;
    line-height: 1.35;
}

.chatbot-product-price {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--chatbot-primary);
}

.chatbot-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.chatbot-cart-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.chatbot-qty-btn,
.chatbot-cart-delete {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--chatbot-border);
    border-radius: 50%;
    background: #fff;
    color: var(--chatbot-black);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.chatbot-cart-qty {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f7f7f7;
    color: var(--chatbot-black);
    font-size: 12px;
    font-weight: 700;
}

.chatbot-cart-delete {
    margin-left: auto;
    color: #c62828;
}

.chatbot-qty-btn:disabled,
.chatbot-cart-delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.chatbot-action-btn {
    border: none;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: 0.2s ease;
}

.chatbot-add-cart {
    background: var(--chatbot-black);
    color: #fff;
}

.chatbot-view-btn {
    background: var(--chatbot-primary-soft);
    color: var(--chatbot-black);
}

.chatbot-buy-now {
    background: var(--chatbot-primary);
    color: #fff;
}

.chatbot-cart-summary {
    background: #fff;
    border: 1px solid var(--chatbot-border);
    border-radius: 14px;
    padding: 12px;
    margin: 8px 0 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.chatbot-cart-total {
    font-size: 14px;
    font-weight: 700;
    color: var(--chatbot-black);
    margin-bottom: 10px;
}

.chatbot-cart-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--chatbot-primary);
    color: #fff;
    padding: 10px 12px;
    border-radius: 22px;
    font-weight: 700;
}

.chatbot-action-btn:hover,
.chatbot-form button:hover,
.chatbot-toggle:hover,
.chatbot-cart-checkout-btn:hover {
    opacity: 0.9;
}

/* Mobile */
@media screen and (max-width: 767px) {
    .chatbot-toggle {
        right: 70px;
        bottom: 70px;
    }

    .chatbot-box {
        right: 15px;
        bottom: 130px;
        width: calc(100vw - 30px);
    }

}

/* Arabic / RTL Chatbot CSS */
html[dir="rtl"] .chatbot-toggle,
body.rtl .chatbot-toggle {
    right: auto;
    left: 170px;
}

html[dir="rtl"] .chatbot-box,
body.rtl .chatbot-box {
    right: auto;
    left: 25px;
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .chatbot-header,
body.rtl .chatbot-header {
    direction: rtl;
}

html[dir="rtl"] .bot-message,
body.rtl .bot-message {
    border-top-left-radius: 14px;
    border-top-right-radius: 4px;
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

html[dir="rtl"] .user-message,
body.rtl .user-message {
    margin-left: 0;
    margin-right: auto;
    border-top-right-radius: 14px;
    border-top-left-radius: 4px;
    text-align: right;
}

html[dir="rtl"] .chatbot-form,
body.rtl .chatbot-form {
    direction: rtl;
}

html[dir="rtl"] .chatbot-form input,
body.rtl .chatbot-form input {
    text-align: right;
}

html[dir="rtl"] .chatbot-product,
body.rtl .chatbot-product,
html[dir="rtl"] .chatbot-product-card,
body.rtl .chatbot-product-card {
    direction: rtl;
    text-align: right;
}

@media screen and (max-width: 767px) {
    html[dir="rtl"] .chatbot-toggle,
    body.rtl .chatbot-toggle {
        right: auto;
        left: 70px;
    }

    html[dir="rtl"] .chatbot-box,
    body.rtl .chatbot-box {
        right: auto;
        left: 15px;
        bottom: 130px;
    }

}

/* Chatbot Product Options */
.chatbot-option-box {
    background: #fff;
    border: 1px solid var(--chatbot-border);
    border-radius: 14px;
    padding: 12px;
    margin: 10px 0 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.chatbot-option-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--chatbot-black);
    margin-bottom: 8px;
}

.chatbot-option-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--chatbot-text);
    line-height: 1.35;
    margin-bottom: 5px;
}

.chatbot-option-price {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--chatbot-primary);
    background: var(--chatbot-primary-soft);
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.chatbot-option-field {
    margin-bottom: 10px;
}

.chatbot-option-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--chatbot-black);
    margin-bottom: 5px;
}

.chatbot-product-option {
    width: 100%;
    border: 1px solid var(--chatbot-border);
    border-radius: 12px;
    padding: 9px 10px;
    font-size: 13px;
    color: var(--chatbot-text);
    background: #fff;
    outline: none;
}

.chatbot-product-option:focus {
    border-color: var(--chatbot-primary);
    box-shadow: 0 0 0 3px var(--chatbot-primary-soft);
}

textarea.chatbot-product-option {
    min-height: 75px;
    resize: vertical;
}

.chatbot-confirm-add-cart,
.chatbot-confirm-buy-now {
    width: 100%;
    border: none;
    border-radius: 22px;
    padding: 10px 12px;
    background: var(--chatbot-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.chatbot-confirm-add-cart:hover,
.chatbot-confirm-buy-now:hover {
    opacity: 0.9;
}

/* RTL Product Options */
html[dir="rtl"] .chatbot-option-box,
body.rtl .chatbot-option-box {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .chatbot-product-option,
body.rtl .chatbot-product-option {
    text-align: right;
}
