/* =========================================================
   Z Chatbot CSS  (v2.0)
   ========================================================= */

/* ---------- Panel size ---------- */
#zChatPanel {
    height: calc(100vh - 110px) !important;
    max-height: 820px !important;
    bottom: 90px !important;
    width: 420px !important;
    max-width: calc(100vw - 32px) !important;
}

#zChatMessages {
    padding: 16px 16px 4px 16px !important;
    margin: 0 !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
}

.z-bubble-wrap.bot {
    justify-content: flex-start;
}

.z-bubble {
    line-height: 1.5;
}

.z-bubble.z-block {
    max-width: 100%;
    width: 100%;
    padding: 0;
    background: transparent !important;
}

#zChatQuickReplies:empty {
    display: none !important;
}

#zChatQuickReplies {
    padding: 4px 16px 0px !important;
    margin: 0 !important;
    min-height: unset !important;
}

#zChatQuickReplies::-webkit-scrollbar {
    display: none;
}

#zChatQuickReplies button {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

#zChatQuickReplies button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.z-block-title {
    font-size: 17px;
    font-weight: 600;
    color: #111;
    margin-bottom: 14px;
}

.z-cat-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.z-cat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
}

.z-cat-row:last-child {
    border-bottom: none;
}

.z-cat-row:hover {
    background: #fdf8f4;
}

.z-cat-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.z-cat-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #67391b;
    background: #fdf1e7;
}

.z-cat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.z-cat-name {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.z-cat-count {
    font-size: 12px;
    color: #6b7280;
}

.z-cat-arrow {
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.rufus-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rufus-card-img-wrap {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #f3f4f6;
}

.rufus-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rufus-no-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    gap: 6px;
}

.rufus-no-img svg {
    width: 32px;
    height: 32px;
}

.rufus-no-img span {
    font-size: 12px;
    font-weight: 500;
}

.rufus-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #007185;
    line-height: 1.4;
    cursor: pointer;
}

.rufus-card-title:hover {
    color: #c45500;
    text-decoration: underline;
}

.rufus-card-discount {
    background: #cc0c39;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.rufus-card-price {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.rufus-card-mrp {
    font-size: 13px;
    color: #565959;
    text-decoration: line-through;
    margin-left: 8px;
}

.rufus-card-desc {
    font-size: 14px;
    color: #565959;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rufus-more-details {
    font-size: 14px;
    color: #007185;
    text-decoration: none;
    font-weight: 500;
}

.rufus-card-add-btn {
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 24px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    margin-top: 6px;
    transition: background 0.2s;
    color: #111;
    font-family: inherit;
}

.rufus-card-add-btn:hover {
    background: #f7ca00;
}

/* ---------- Products in one horizontal row ---------- */
.z-carousel-wrap {
    position: relative;
}

.z-carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
}

.z-carousel::-webkit-scrollbar {
    height: 6px;
}

.z-carousel::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.z-carousel .rufus-card {
    flex: 0 0 215px;
    width: 215px;
    margin-bottom: 0;
    padding: 12px;
    gap: 6px;
    scroll-snap-align: start;
}

.z-carousel .rufus-card-img-wrap {
    height: 130px;
}

.z-carousel .rufus-no-img span {
    font-size: 11px;
}

.z-carousel .rufus-card-title {
    font-size: 14px;
    color: #111;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.z-carousel .rufus-card-title:hover {
    color: #67391b;
}

.z-card-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
}

.z-carousel .rufus-card-price {
    font-size: 19px;
}

.z-carousel .rufus-card-mrp {
    margin-left: 0;
    font-size: 12px;
}

.z-carousel .rufus-card-discount {
    align-self: flex-start;
    margin-bottom: 0;
    font-size: 11px;
    padding: 2px 6px;
}

.z-carousel .rufus-card-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
    min-height: 34px;
}

.z-carousel .rufus-more-details {
    font-size: 12px;
}

.z-carousel .rufus-card-add-btn {
    margin-top: auto;
    padding: 10px;
    font-size: 14px;
}

.z-more-card {
    flex: 0 0 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #67391b;
    border-radius: 12px;
    background: #fdf8f4;
    color: #67391b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    scroll-snap-align: start;
}

.z-more-card:hover {
    background: #fbeee2;
}



.z-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 23px;
    height: 30px;
    border-radius: 35%;
    background: #fff;
    border: 1px solid #d1d5db;
    color: #67391b;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
}

.z-nav:hover {
    background: #fdf8f4;
}

.z-nav.prev {
    left: -28px;
}

.z-nav.next {
    right: -28px;
}

/* ---------- Cart icon button ---------- */
.z-cartbtn {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #67391b;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.z-cartbtn:hover {
    background: #fdf8f4;
    border-color: #67391b;
}

.z-cart-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #cc0c39;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ---------- Cart drawer ---------- */
.z-drawer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    z-index: 10;
}

.z-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 18px;
    color: #111;
}

.z-drawer-head button {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
}

.z-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px;
}

.z-drawer.busy .z-drawer-body {
    opacity: 0.6;
    pointer-events: none;
}

.z-ci {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.z-ci-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.z-ci-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.z-ci-name {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.z-ci-price {
    font-size: 13px;
    color: #565959;
}

.z-ci-price s {
    margin-left: 6px;
    color: #9ca3af;
}

.z-ci-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.z-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
}

.z-qty button {
    width: 32px;
    height: 32px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #111;
    font-family: inherit;
}

.z-qty button:hover:not(:disabled) {
    background: #f3f4f6;
}

.z-qty button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.z-qty span {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.z-ci-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.z-ci-total {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.z-ci-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #cc0c39;
    padding: 4px;
    display: flex;
}

.z-ci-remove:hover {
    color: #8f0825;
}

.z-drawer-foot {
    padding: 14px 20px 20px;
    border-top: 1px solid #f3f4f6;
}

.z-drawer-total {
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 12px;
    color: #111;
}

.z-drawer-total b {
    font-size: 16px;
}

.z-drawer-checkout {
    width: 100%;
    padding: 14px;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #111;
    font-family: inherit;
}

.z-drawer-checkout:hover:not(:disabled) {
    background: #f7ca00;
}

.z-drawer-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.z-cart-note {
    font-size: 13px;
    color: #b45309;
    min-height: 0;
    margin-bottom: 8px;
}

.z-cart-note:empty {
    display: none;
}

.z-cart-empty {
    text-align: center;
    color: #6b7280;
    padding: 40px 0;
}

/* ---------- Typing dots ---------- */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
}

.typing-indicator span {
    display: block;
    width: 7px;
    height: 7px;
    background-color: #9ca3af;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.z-addr-carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    max-width: 100%;
}

.z-addr-carousel::-webkit-scrollbar {
    height: 6px;
}

.z-addr-carousel::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.z-addr-card {
    flex: 0 0 240px;
    width: 240px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
    position: relative;
}

.z-addr-card.selected {
    border-color: #67391b;
    box-shadow: 0 0 0 2px rgba(103, 57, 27, 0.15);
}

.z-addr-card .z-addr-name {
    font-weight: 700;
    color: #111;
    font-size: 14px;
}

.z-addr-card .z-addr-phone {
    color: #4b5563;
    font-size: 12px;
}

.z-addr-card .z-addr-body {
    color: #374151;
}

.z-addr-card .z-addr-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.z-addr-card .z-addr-actions button {
    flex: 1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111;
    font-family: inherit;
}

.z-addr-card .z-addr-actions button.primary {
    background: #67391b;
    border-color: #67391b;
    color: #fff;
}

.z-addr-card .z-addr-actions button.primary:hover:not(:disabled) {
    background: #7a4b2c;
}

.z-addr-card .z-addr-actions button.primary:disabled {
    opacity: 0.6;
    cursor: default;
}

.z-addr-card .z-addr-actions button:hover:not(.primary):not(:disabled) {
    background: #f3f4f6;
}

.z-addr-chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
    margin-bottom: 2px;
    align-self: flex-start;
}

.z-addr-del-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.z-addr-del-btn:hover {
    background: #fca5a5;
    color: #fff;
}

.z-addr-add {
    flex: 0 0 200px;
    width: 200px;
    scroll-snap-align: start;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}

.z-addr-add:hover {
    background: #f3f4f6;
    color: #67391b;
    border-color: #67391b;
}

.z-addr-add span {
    font-size: 22px;
    line-height: 1;
}

/* ================= INLINE FORM ================= */
.z-form-wrap {
    margin-bottom: 12px;
}

.z-form-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.z-field-row {
    margin-bottom: 10px;
}

.z-form-row-double {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.z-form-row-double>input {
    flex: 1;
    min-width: 0;
}

.z-form-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.z-form-wrap input:focus {
    border-color: #67391b;
    box-shadow: 0 0 0 1px #67391b;
}

.z-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.z-form-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background 0.2s;
}

.z-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.z-btn-cancel:hover {
    background: #e5e7eb;
}

.z-btn-save {
    background: #67391b;
    color: #fff;
}

.z-btn-save:hover {
    background: #7a4b2c;
}

@media (max-width: 480px) {
    #zChatPanel {
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        bottom: 84px !important;
        height: calc(100vh - 100px) !important;
        max-height: none !important;
    }

    .z-carousel .rufus-card {
        flex-basis: 190px;
        width: 190px;
    }

    .z-addr-card {
        flex-basis: 220px;
        width: 220px;
    }

    .z-addr-add {
        flex-basis: 160px;
        width: 160px;
    }
}

/* APPEND this to the end of your existing chatbot.css */
.z-pay-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px
}

.z-pay-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all .2s
}

.z-pay-card:hover:not(:disabled) {
    border-color: #67391b;
    background: #fdf8f4
}

.z-pay-card.selected {
    border-color: #67391b;
    background: #fdf8f4;
    opacity: 1
}

.z-pay-card:disabled {
    opacity: .6;
    cursor: default
}

.z-pay-card.selected:disabled {
    opacity: 1
}

.z-pay-name {
    font-weight: 600;
    font-size: 14px;
    color: #111
}

.z-pay-note {
    font-size: 12px;
    color: #6b7280
}

/* Billing + order summary */
.z-sum {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 8px;
    font-size: 13px;
    color: #111;
    background: #fff
}

.z-sum-sec {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
    line-height: 1.45
}

.z-sum-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0
}

.z-sum-total {
    font-weight: 700;
    font-size: 14px;
    border-top: 1px solid #e5e7eb;
    margin-top: 6px;
    padding-top: 8px
}

.z-sum-muted {
    color: #6b7280;
    font-size: 12px
}

.z-order-card {
    padding: 13px;
    margin: 10px 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.z-order-id {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 7px;
}

.z-order-meta {
    color: #6b7280;
    font-size: 12px;
    margin: 5px 0;
    overflow-wrap: anywhere;
}

.z-order-status {
    display: inline-block;
    padding: 5px 9px;
    margin: 7px 0;
    border-radius: 20px;
    background: #eaf7ed;
    color: #24733b;
    font-size: 12px;
    font-weight: 600;
}

.z-order-total,
.z-order-grand-total {
    font-weight: 700;
    margin: 9px 0;
    font-size: 14px;
}

.z-order-view {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--z-primary, #4b8f3f);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.z-order-items-heading {
    font-weight: 700;
    margin: 15px 0 8px;
}

.z-order-product {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
}

.z-order-product-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.z-order-product-info {
    min-width: 0;
    flex: 1;
}

.z-order-product-name {
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.z-order-product-price {
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

/* WhatsApp-style chat wallpaper */
#zChatPanel .z-chat-layout {
    background-color: #efeae2 !important;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(180, 160, 130, 0.10) 2px, transparent 3px),
        radial-gradient(circle at 75% 65%, rgba(180, 160, 130, 0.08) 2px, transparent 3px);
    background-size: 40px 40px, 55px 55px;
    background-repeat: repeat;
}

/* Powered by Ztorespot - Chatbot Footer */
#zChatPanel .z-chat-powered {
    flex: 0 0 auto !important;
    /* min-height: 30px !important;
    padding: 6px 12px !important; */
    margin: 0 !important;
}

/* Force the input area to be compact */
.z-input-area {
    padding: 8px 16px 10px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

#zChatPanel .z-chat-powered strong {
    margin-left: 3px;
    color: #67391b;
    font-size: 11px;
    font-weight: 700;
}


/* =====================================
   SIMPLE COMPACT CHATBOT PRODUCT CARD
===================================== */

.z-carousel {
    gap: 8px !important;
    padding: 2px 0 5px !important;
}

.z-carousel .rufus-card {
    flex: 0 0 190px !important;
    width: 190px !important;
    padding: 8px !important;
    margin: 0 !important;
    gap: 5px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* Product image */
.z-carousel .rufus-card-img-wrap {
    width: 100% !important;
    height: 155px !important;
    min-height: 155px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.z-carousel .rufus-card-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Product title */
.z-carousel .rufus-card-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    min-height: 0 !important;
    margin: 0 !important;
    color: #222 !important;
}

/* Price */
.z-carousel .z-card-price {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin: 0 !important;
}

.z-carousel .rufus-card-price {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

.z-carousel .rufus-card-mrp {
    font-size: 11px !important;
    margin: 0 !important;
}

/* Discount */
.z-carousel .rufus-card-discount {
    font-size: 10px !important;
    padding: 2px 5px !important;
    margin: 0 !important;
}

/* Remove unnecessary content spacing */
.z-carousel .rufus-card-desc,
.z-carousel .rufus-more-details {
    display: none !important;
}

/* Add to cart */
.z-carousel .rufus-card-add-btn {
    width: 100% !important;
    padding: 8px 5px !important;
    margin: 3px 0 0 !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Mobile */
@media (max-width: 480px) {
    .z-carousel .rufus-card {
        flex-basis: 165px !important;
        width: 165px !important;
    }

    .z-carousel .rufus-card-img-wrap {
        height: 140px !important;
        min-height: 140px !important;
    }
}

#zChatQuickReplies .z-checkout-primary {
    background: #226219 !important;
    color: #fff !important;
    border: 1px solid #67391b !important;
    font-weight: 600 !important;
    padding: 11px 20px !important;
    border-radius: 6px !important;
    cursor: pointer;
}

#zChatQuickReplies .z-checkout-primary:hover {
    background: #4d2914 !important;
}

.z-delivery-title {
    display: inline-block;
    width: fit-content;
    background: #f3f4f6;
    padding: 7px 9px;
    border-radius: 6px;
    margin-bottom: 14px;
    color: #111;
    font-size: 15px;
    font-weight: 600;
}

.z-block-title.z-delivery-title {
    display: inline-block !important;
    width: fit-content !important;
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    padding: 7px 10px !important;
    border-radius: 6px !important;
    margin-bottom: 14px !important;
    font-weight: 600 !important;
}

#zChatMessages .z-block-title.z-delivery-title {
    display: inline-block !important;
    width: fit-content !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
    padding: 7px 10px !important;
    border-radius: 6px !important;
    margin: 0 0 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.z-use-address-btn {
    display: block !important;
    width: 100% !important;
    padding: 11px 16px !important;
    margin-top: 10px !important;
    background: #198754 !important;
    color: #ffffff !important;
    border: 1px solid #198754 !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.z-use-address-btn:hover {
    background: #146c43 !important;
    border-color: #146c43 !important;
    color: #ffffff !important;
}

.z-payment-method-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.z-payment-logo {
    width: 76px;
    min-width: 76px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fff;
    font-weight: 800;
    font-size: 17px;
}

.z-logo-razorpay {
    color: #0c2451;
    font-size: 14px;
}

.z-logo-payu {
    color: #a51c30;
    font-size: 20px;
}

.z-logo-upi {
    color: #4b35a8;
    font-size: 20px;
    font-style: italic;
}

.z-logo-cod {
    color: #198754;
    font-size: 15px;
}

.z-logo-ippopay {
    color: #3445a5;
    font-size: 13px;
}

.z-logo-default {
    color: #198754;
}

.z-payment-method-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}


/* =========================================
   MOBILE CHATBOT - FULL SCREEN
   ========================================= */

@media (max-width: 480px) {

    #zChatPanel {
        position: fixed !important;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100vw !important;
        max-width: 100vw !important;

        height: 100vh !important;
        height: 100dvh !important;

        max-height: 100vh !important;
        max-height: 100dvh !important;

        margin: 0 !important;
        padding: 0 !important;

        border: none !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        display: none;
        flex-direction: column !important;

        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #zChatMessages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box !important;
    }

    #zChatQuickReplies {
        flex: 0 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #zChatInput {
        font-size: 16px !important;
    }

    #zChatToggle {
        z-index: 99998 !important;
    }
}

@media (max-width: 480px) {

    #zChatPanel {
        display: flex;
        flex-direction: column;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }

    /* Chat header stays at the top */
    #zChatPanel>div:first-child {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        background: #fff !important;
    }

    /* Only messages scroll */
    #zChatMessages {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    /* Keep quick replies and input at bottom */
    #zChatQuickReplies,
    #zChatForm {
        flex-shrink: 0 !important;
    }

    #zChatPanel input {
        font-size: 16px !important;
    }
}

#zChatMessages .z-block-title.z-delivery-title {
    display: inline-block !important;
    width: fit-content !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
    padding: 7px 10px !important;
    border-radius: 6px !important;
    margin-bottom: 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Apply Delivery Address heading background to all chatbot sections */
#zChatMessages .z-block-title {
    display: inline-block !important;
    width: fit-content !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
    padding: 7px 10px !important;
    border-radius: 6px !important;
    margin: 0 0 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

@media (max-width: 767px) {
    #zChatPanel .z-chat-suggestions {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        padding: 6px 12px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
    }

    #zChatPanel .z-chat-suggestions::-webkit-scrollbar {
        display: none !important;
    }

    #zChatPanel .z-chat-suggestions button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        white-space: nowrap !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 767px) {

    #zChatQuickReplies {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;

        width: 100% !important;
        padding: 8px 12px !important;
        box-sizing: border-box !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;

        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
        flex-shrink: 0 !important;
    }

    #zChatQuickReplies::-webkit-scrollbar {
        display: none !important;
    }

    #zChatQuickReplies button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        min-height: 44px !important;

        padding: 10px 16px !important;
        white-space: nowrap !important;

        font-size: 13px !important;
        border: 1px solid #d1d5db !important;
        border-radius: 9px !important;
        background: #fff !important;
        box-sizing: border-box !important;
    }
}

.z-card-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rufus-card-discount {
    display: inline-flex;
    align-items: center;
    background: #e60033;
    color: #fff;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.z-variant-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding-top: 0;
    box-sizing: border-box;
}

.z-variant-action-row .z-variant-select {
    flex: 1;
    min-width: 0;
    height: 46px !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.z-variant-plus {
    width: 46px;
    min-width: 46px;
    height: 46px !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: #ffcc00;
    color: #222;
    cursor: pointer;
}

.z-variant-plus svg {
    width: 21px;
    height: 21px;
}

.z-variant-plus:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Match normal Add to Cart button height */
.rufus-card-add-btn {
    height: 46px !important;
    min-height: 46px;
    box-sizing: border-box;
    border-radius: 8px;
}

.z-variant-plus:not(:disabled):hover {
    background: #f0bd00;
}

.rufus-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.rufus-card .rufus-more-details {
    margin-top: auto;
}

.rufus-card-add-btn,
.z-variant-action-row {
    flex-shrink: 0;
}

/* Keep all product cards equal height */
.z-carousel {
    align-items: stretch !important;
}

.rufus-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* Product image consistency */
.rufus-card-img-wrap {
    height: 190px;
    flex-shrink: 0;
}

/* Details should not push buttons differently */
.rufus-card .rufus-more-details {
    margin-top: 0 !important;
}

/* Normal Add to Cart button */
.rufus-card .rufus-card-add-btn {
    width: 100% !important;
    height: 34px !important;
    min-height: 30px !important;
    flex-shrink: 0;
    margin-top: auto !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
}

/* Variant dropdown + cart icon */
.rufus-card .z-variant-action-row {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    flex-shrink: 0;
    margin-top: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Dropdown */
.rufus-card .z-variant-select {
    flex: 1 !important;
    width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Cart icon button */
.rufus-card .z-variant-plus {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Product image container */
.rufus-card-img-wrap {
    position: relative !important;
    width: 100% !important;
    height: 190px !important;
    overflow: hidden !important;
    display: block !important;
    background: #f8fafc;
    box-sizing: border-box;
}

/* Normal product image */
.rufus-card-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
}

/* No image placeholder */
.rufus-no-img {
    display: none;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: #f8fafc;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    box-sizing: border-box;
}

.rufus-no-img svg {
    width: 36px;
    height: 36px;
}

/* Show placeholder when image fails */
.rufus-card-img-wrap.no-image-active .rufus-no-img {
    display: flex !important;
}

.rufus-card-img-wrap.no-image-active .rufus-card-img {
    display: none !important;
}

/* Professional add-to-cart success message */
.z-cart-success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.z-cart-success-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
}

.z-cart-success-content {
    flex: 1;
    min-width: 0;
}

.z-cart-success-title {
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.z-cart-success-product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.z-cart-success-img {
    width: 54px;
    height: 54px;
    min-width: 54px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
}

.z-cart-success-info {
    min-width: 0;
}

.z-cart-success-name {
    color: #222;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.z-cart-success-variant {
    color: #64748b;
    font-size: 11px;
    margin-top: 4px;
}



/* Keep product image and success text on one line */


#zChatPanel .z-cart-success-inline .z-cart-success-img {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    object-fit: cover !important;
    margin: 0 !important;
}

#zChatPanel .z-cart-success-text {
    display: inline-block !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: inherit !important;
    font-weight: normal !important;
    color: #000 !important;
    line-height: 1.4 !important;
}

.z-cart-success-img {
    width: 36px;
    height: 36px;
    min-width: 36px;
    object-fit: cover;
    border-radius: 5px;
    background: #fff;
}

.z-cart-success-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.z-cart-success-text strong {
    font-size: 12px;
    color: #166534;
}

.z-cart-success-text span {
    font-size: 10px;
    color: #64748b;
}

.z-cart-success-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}


/* =========================================
   FIX: VARIANT DROPDOWN + CART ICON
========================================= */

#zChatPanel .rufus-card .z-variant-action-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 33px !important;
    min-height: 30px !important;
    box-sizing: border-box !important;
}

#zChatPanel .rufus-card .z-variant-action-row .z-variant-select {
    display: block !important;
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 35px !important;
    min-height: 34px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
}

#zChatPanel .rufus-card .z-variant-action-row .z-variant-plus {
    display: flex !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 35px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

#zChatPanel .rufus-card .z-variant-plus svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

/* =========================================
   MOBILE VARIANT ROW
========================================= */

@media (max-width: 767px) {

    #zChatPanel .rufus-card .z-variant-action-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 6px !important;
    }

    #zChatPanel .rufus-card .z-variant-select {
        flex: 1 1 0% !important;
        width: 0 !important;
        min-width: 0 !important;
    }

    #zChatPanel .rufus-card .z-variant-plus {
        flex: 0 0 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 42px !important;
    }
}

#zChatPanel #zChatMessages .z-cart-success-inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#zChatPanel #zChatMessages .z-cart-success-inline img.z-cart-success-img {
    display: block !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    object-fit: contain !important;
    border-radius: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#zChatPanel #zChatMessages .z-cart-success-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

#zChatPanel #zChatMessages .z-cart-success-text strong {
    font-size: 12px !important;
    overflow-wrap: anywhere !important;
}

#zChatPanel #zChatMessages .z-cart-success-check {
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
}

/* MOBILE: VARIANT + CART IN SAME ROW */
@media (max-width: 767px) {

    #zChatPanel .rufus-card .z-variant-action-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 5px !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
    }

    #zChatPanel .rufus-card .z-variant-action-row .z-variant-select {
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 40px !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 0 4px !important;
        font-size: 11px !important;
    }

    #zChatPanel .rufus-card .z-variant-action-row .z-variant-plus {
        display: flex !important;
        flex: 0 0 34px !important;
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 40px !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #zChatPanel .rufus-card .z-variant-plus svg {
        width: 18px !important;
        height: 18px !important;
    }
}

#zChatPanel .z-cart-success-inline .z-cart-success-img {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    object-fit: cover !important;
    border-radius: 5px !important;
    margin: 0 !important;
}

#zChatPanel .z-cart-success-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: inherit !important;
    font-weight: normal !important;
    color: #000000 !important;
    line-height: 1.4 !important;
}

/* Reduce spacing between product success messages */
#zChatMessages:has(.z-cart-success-inline) {
    row-gap: 8px !important;
}

/* Compact success message wrapper */
#zChatMessages .z-bubble-wrap:has(.z-cart-success-inline) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Product thumbnail */
.z-cart-success-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Success text */
.z-cart-success-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}


/* Reduce padding ONLY for add-to-cart success messages */
#zChatMessages .z-bubble:has(.z-cart-success-inline) {
    padding: 5px 7px !important;
    max-width: 90% !important;
    border-radius: 8px !important;
}

/* Product image */
#zChatMessages .z-cart-success-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

/* Success text */
#zChatMessages .z-cart-success-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}


/* Product card quantity selector */

.z-card-qty-host {
    width: 100%;
    margin-top: 8px;
}

.z-card-qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 35px;
    overflow: hidden;
    border: 1px solid #79b982;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
}

.z-card-qty-control button {
    width: 42px;
    height: 100%;
    flex-shrink: 0;
    border: none;
    border-radius: 0;
    background: #79b982;
    color: #ffffff;
    font-size: 23px;
    font-weight: 600;
    cursor: pointer;
}

.z-card-qty-control span {
    flex: 1;
    text-align: center;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.z-card-qty-control button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Variant product action row */

.z-variant-action-row .z-card-qty-host {
    flex: 1;
    min-width: 115px;
    margin-top: 0;
}
/* Variant dropdown + cart button */
.z-variant-action-row {
    display: flex !important;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
}

.z-variant-action-row .z-variant-select {
    display: block;
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px;
    margin: 0 !important;
    box-sizing: border-box;
}

.z-variant-action-row .z-variant-plus {
    flex: 0 0 48px;
    width: 48px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 9px;
}

.z-variant-action-row .z-variant-plus svg {
    width: 21px;
    height: 21px;
}

/* FINAL FIX: Variant dropdown + cart icon */
#zChatPanel #zChatMessages .rufus-card .z-variant-action-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin-top: 8px !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-select {
    display: block !important;
    flex: 1 1 0% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-plus {
    display: flex !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-plus svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    flex-shrink: 0 !important;
}

#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-plus:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* FINAL OVERRIDE - PRODUCT VARIANT ROW */
#zChatPanel #zChatMessages .rufus-card .z-variant-action-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    align-self: stretch !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    gap: 8px !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-select {
    display: block !important;
    flex: 1 1 0px !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-plus {
    display: flex !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-plus svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
}

/* Professional 2-column payment layout */
.z-pay-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
}

.z-pay-card {
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 7px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.z-pay-card:hover {
    border-color: #b8b8b8;
    background: #fafafa;
}

.z-pay-card.selected {
    border-color: #16a34a;
    background: #f0fdf4;
}

.z-payment-logo {
    width: 42px;
    height: 32px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.z-payment-logo img {
    max-width: 40px;
    max-height: 27px;
    object-fit: contain;
}

.z-payment-method-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.z-pay-name {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    line-height: 16px;
    white-space: nowrap;
}

.z-pay-note,
.z-pay-arrow {
    display: none !important;
}

.z-upi-confirm-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: var(--z-primary, #67391b);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.z-upi-confirm-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* UPI payment layout */


.z-upi-content {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.z-upi-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 2px 0 12px;
}

.z-upi-qr {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px !important;
    margin: 0 auto 10px;
    background: #fff;
}

.z-upi-qr img,
.z-upi-qr canvas {
    display: block;
    width: 180px !important;
    height: 180px !important;
    max-width: 100%;
}

.z-upi-amount {
    font-size: 15px;
    font-weight: 700;
    margin: 8px 0 12px;
}

.z-upi-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin: 9px 0;
    font-size: 14px;
}

.z-upi-detail span {
    color: #666;
}

.z-upi-detail strong {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    max-width: 100%;
}

.z-upi-id {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.z-upi-content small {
    display: block;
    font-size: 12px;
    color: #666;
    margin: 10px 0 0;
}

.z-upi-confirm-btn {
    width: 100%;
    margin-top: 12px;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: var(--z-primary, #67391b);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}



/* Compact UPI payment details */
.z-upi-info {
    width: 100%;
    max-width: 340px;
    margin: 8px auto 10px;
    padding: 0 5px;
    box-sizing: border-box;
}

.z-upi-info-row {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
}

.z-upi-info-row:last-child {
    border-bottom: none;
}

.z-upi-info-row span {
    color: #555;
    font-weight: 500;
}

.z-upi-info-row strong {
    color: #222;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Payment instruction */
.z-upi-instruction {
    margin: 8px 0 4px;
    padding: 9px 10px;
    background: #f8f5f1;
    border: 1px solid #eee2d8;
    border-radius: 7px;
    color: #555;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}

.z-upi-instruction strong {
    color: #67391b;
}
.z-whatsapp-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #25D366;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.z-wa-inline {
    display: inline-flex;
    width: 23px;
    height: 23px;
    margin-left: 5px;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    color: #25D366;
    text-decoration: none;
    cursor: pointer;
}

.z-wa-inline svg {
    width: 22px;
    height: 22px;
    display: block;
}

.z-wa-inline:hover {
    color: #128C7E;
}

.z-wa-inline {
    display: inline-flex;
    width: 24px;
    height: 24px;
    margin-left: 5px;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    color: #25D366;
    text-decoration: none;
    cursor: pointer;
}

.z-wa-inline svg {
    display: block;
    width: 23px;
    height: 23px;
}

.z-wa-inline:hover {
    color: #128C7E;
}

.z-wa-inline {
    display: inline-flex;
    width: 21px;
    height: 21px;
    margin-left: 5px;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    color: #25D366;
    text-decoration: none;
}

.z-wa-inline svg {
    width: 21px;
    height: 21px;
    display: block;
}

.z-wa-inline:hover {
    color: #128C7E;
}


.z-order-details {
    width: 100%;
    min-width: 0;
}

.z-order-info,
.z-order-summary,
.z-order-address {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0 14px;
    background: #fff;
}

.z-order-info-row,
.z-order-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.z-order-info-row:last-child,
.z-order-summary-row:last-child {
    border-bottom: 0;
}

.z-order-info-row strong,
.z-order-summary-row strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.z-order-payment-note {
    background: #fff8e6;
    border: 1px solid #f3d58a;
    border-radius: 7px;
    padding: 10px;
    margin: 10px 0;
    font-size: 12px;
    color: #76530b;
}

.z-order-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 8px 0 14px;
}

.z-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 440px;
}

.z-order-table th,
.z-order-table td {
    padding: 9px 7px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.z-order-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.z-order-summary-row.grand-total {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.z-order-address-line {
    padding: 4px 0;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.z-address-form .za-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
    margin-bottom: 12px;
}

.z-address-form .za-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0;
    white-space: nowrap;
}

.z-address-form .za-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    height: 32px;
    padding: 0 9px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid #ead7c9;
    border-radius: 6px;
    background: #fffaf6;
    color: #75401f;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.z-address-form .za-location:hover {
    background: #75401f;
    color: #fff;
}

/* WhatsApp-style slim chatbot scrollbar */
#zChatPanel,
#zChatMessages,
#zCartDrawer,
#zCartItems {
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 120, 120, 0.45) transparent;
}

/* Chrome, Edge, Safari */
#zChatPanel::-webkit-scrollbar,
#zChatMessages::-webkit-scrollbar,
#zCartDrawer::-webkit-scrollbar,
#zCartItems::-webkit-scrollbar {
    width: 3px !important;
    height: 3px !important;
}

#zChatPanel::-webkit-scrollbar-track,
#zChatMessages::-webkit-scrollbar-track,
#zCartDrawer::-webkit-scrollbar-track,
#zCartItems::-webkit-scrollbar-track {
    background: transparent !important;
}

#zChatPanel::-webkit-scrollbar-thumb,
#zChatMessages::-webkit-scrollbar-thumb,
#zCartDrawer::-webkit-scrollbar-thumb,
#zCartItems::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.45) !important;
    border-radius: 10px !important;
}

#zChatPanel::-webkit-scrollbar-thumb:hover,
#zChatMessages::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 100, 0.65) !important;
}

/* =========================================
   DYNAMIC CHATBOT APPEARANCE COLORS
   ========================================= */

/* Product Add to Cart */
#zChatPanel .rufus-card-add-btn,
#zChatPanel .z-bundle-add {
    background: var(--z-bot-button-bg, #67391b) !important;
    color: var(--z-bot-button-text, #ffffff) !important;
    border-color: var(--z-bot-button-bg, #67391b) !important;
}

#zChatPanel .rufus-card-add-btn:hover,
#zChatPanel .z-bundle-add:hover {
    background: var(--z-bot-button-bg, #67391b) !important;
    color: var(--z-bot-button-text, #ffffff) !important;
    opacity: 0.9;
}

/* Login / Logout account button */
#zChatPanel .z-dd-btn {
    background: var(--z-bot-button-bg, #67391b) !important;
    color: var(--z-bot-button-text, #ffffff) !important;
    border-color: var(--z-bot-button-bg, #67391b) !important;
}

/* Authentication form buttons */
#zChatPanel #zChatMessages .z-auth-form button,
#zChatPanel #zChatMessages [class*="auth"] button,
#zChatPanel #zChatMessages [class*="login"] button,
#zChatPanel #zChatMessages [class*="register"] button,
#zChatPanel #zChatMessages [class*="forgot"] button {
    background: var(--z-bot-button-bg, #67391b) !important;
    color: var(--z-bot-button-text, #ffffff) !important;
    border-color: var(--z-bot-button-bg, #67391b) !important;
}

/* Header background and text */
#zChatPanel > div:first-child {
    background: var(--z-bot-header-bg, #ffffff) !important;
    color: var(--z-bot-header-text, #1f2937) !important;
}

#zChatPanel .z-store-title {
    color: var(--z-bot-header-text, #1f2937) !important;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    width: fit-content;
    margin: 8px 0;
}

.typing-dots {
    display: inline-flex;
}

.typing-dots span {
    font-size: 20px;
    line-height: 12px;
    animation: typingDots 1.2s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDots {
    0%, 20% {
        opacity: 0.2;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
    100% {
        opacity: 0.2;
        transform: translateY(0);
    }
}


/* =========================================
   ANIMATED ROBOT TYPING INDICATOR
========================================= */

/* =====================================
   ROBOT + TYPING ANIMATION
===================================== */

.z-typing-wrap {
    display: flex !important;
    justify-content: flex-start !important;
    width: 100%;
    margin: 8px 0 !important;
}

.z-typing-indicator {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: fit-content !important;
    max-width: 220px;
    min-height: 75px;
    padding: 5px 12px 5px 5px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    box-sizing: border-box;
}

.z-typing-robot {
    display: flex !important;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    animation: zRobotFloat 1.6s ease-in-out infinite;
}

.z-typing-robot svg {
    display: block;
    width: 76px !important;
    height: 82px !important;
}

.z-typing-content {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    color: #555;
}

.z-typing-label {
    animation: zTypingFade 1.5s ease-in-out infinite;
}

.z-typing-dots {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
}

.z-typing-dots span {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    font-size: 17px;
    line-height: 1;
    animation: zTypingDot 1.2s infinite;
}

.z-typing-dots span:nth-child(2) {
    animation-delay: .2s;
}

.z-typing-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes zRobotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes zTypingFade {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}

@keyframes zTypingDot {
    0%, 20% {
        opacity: .2;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
    100% {
        opacity: .2;
        transform: translateY(0);
    }
}

@keyframes zRobotBlink {
    0%, 44%, 48%, 100% { transform: scaleY(1); }
    46% { transform: scaleY(.1); }
}

.z-robot-eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: zRobotBlink 3s infinite;
}

.z-robot-antenna {
    animation: zTypingFade 1s infinite;
}


/* WhatsApp-style store typing indicator */

.z-store-typing {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin: 7px 0;
}
.z-store-typing-content {
    color: #16a34a !important;
    font-size: 12px;
}

.z-store-typing-name,
.z-store-typing-label,
.z-store-typing-dots {
    color: #16a34a !important;
}

.z-store-typing-name {
    font-weight: 600;
}

.z-store-typing-content {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 12px;
    color: #6b7280;
    font-size: 12px;
    line-height: 18px;
    max-width: 100%;
}

.z-store-typing-name {
    color: #222;
    font-weight: 600;
}

.z-store-typing-label {
    font-weight: 400;
}

.z-store-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin-left: 1px;
}

.z-store-typing-dots span {
    font-size: 17px;
    font-weight: 700;
    animation: zStoreTyping 1.2s infinite;
}

.z-store-typing-dots span:nth-child(2) {
    animation-delay: .2s;
}

.z-store-typing-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes zStoreTyping {
    0%, 20%, 100% {
        opacity: .2;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* FORCE GREEN COLOR FOR STORE TYPING INDICATOR */
#zChatPanel #zChatMessages .z-store-typing,
#zChatPanel #zChatMessages .z-store-typing-content,
#zChatPanel #zChatMessages .z-store-typing-content *,
#zChatPanel #zChatMessages .z-store-typing-name,
#zChatPanel #zChatMessages .z-store-typing-label,
#zChatPanel #zChatMessages .z-store-typing-dots,
#zChatPanel #zChatMessages .z-store-typing-dots span {
    color: #16a34a !important;
    -webkit-text-fill-color: #16a34a !important;
}

#zChatPanel #zChatMessages .z-store-typing-name {
    font-weight: 700 !important;
}
/* Store typing indicator - only store name green */
#zChatMessages .z-store-typing-content {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}

#zChatMessages .z-store-typing-name {
    color: #16a34a !important;
    -webkit-text-fill-color: #16a34a !important;
    font-weight: 600 !important;
}

#zChatMessages .z-store-typing-label,
#zChatMessages .z-store-typing-dots,
#zChatMessages .z-store-typing-dots span {
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
}

.z-customer-sender-name {
    color: #168b52;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 18px;
}

.z-customer-message-text {
    color: #222;
    font-size: inherit;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#zChatMessages .z-message-sender {
    color: #168b52;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 18px;
}

#zChatMessages .z-message-text {
    color: #222222;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

#zChatPanel {
    background-color: #efeae2 !important;
}

#zChatPanel #zChatQuickReplies {
    background-color: #efeae2 !important;
}

/* #zChatPanel .z-chat-powered {
    background-color: #efeae2 !important;
} */

/* #zChatPanel #zChatInput {
    background-color: #ffffff !important;
} */
#zChatMessages .z-bubble-wrap.user .z-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    left: auto;
    width: 0;
    height: 0;
    border-top: 12px solid #d9fdd3;
    border-right: 12px solid transparent;
    border-left: 0;
}
/* WhatsApp-style single input bar */
/* #zChatPanel .z-input-area {
    display: flex !important;
    width: 100% !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    background: #efeae2 !important;
} */

#zChatPanel #zChatForm {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    padding: 0 8px 0 14px !important;
    margin: 0 !important;

    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 28px !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatInput {
    order: 1 !important;
    flex: 1 1 auto !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

#zChatPanel #zSendBtn {
    order: 2 !important;
    position: static !important;
    transform: none !important;
    display: none;
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
}

#zChatPanel #zSendBtn.visible {
    display: flex !important;
}

#zChatPanel #zTrackBtn,
#zChatPanel #zCartBtn {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    background: #f3f4f6 !important;
    border: none !important;
    color: #475569 !important;
}

#zChatPanel #zTrackBtn {
    order: 3 !important;
}

#zChatPanel #zCartBtn {
    order: 4 !important;
}

#zChatPanel #zTrackBtn svg,
#zChatPanel #zCartBtn svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

#zChatPanel #zCartBtn .z-cart-badge {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    z-index: 5 !important;
}

#zChatPanel #zCartBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    color: #475569 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    overflow: visible !important;
}

#zChatPanel #zCartBtn svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 23px !important;
    height: 23px !important;
    stroke: #475569 !important;
    fill: none !important;
}

#zChatPanel #zCartBtn svg path,
#zChatPanel #zCartBtn svg circle,
#zChatPanel #zCartBtn svg line,
#zChatPanel #zCartBtn svg polyline {
    stroke: #475569 !important;
    fill: none !important;
}

#zChatMessages .z-message-sender {
    display: block;
    color: #168b52 !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    margin-bottom: 4px;
    text-align: left;
}

#zChatMessages .z-message-text {
    display: block;
    color: #222 !important;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    overflow-wrap: anywhere;
}

#zChatPanel .z-login-heading {
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 12px !important;
    text-align: left;
}

#zChatPanel .z-login-phone-field {
    margin: 0 !important;
}

#zChatPanel .z-input-area {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#zChatPanel #zChatForm {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 50px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    gap: 0 !important;
}

#zChatPanel #zChatInput {
    width: 100% !important;
    height: 50px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 0 52px 0 12px !important;
    /* border: 1px solid #d1d5db !important; */
    border-radius: 10px !important;
    background: #fff !important;
    line-height: normal !important;
    font-size: 14px !important;
}

#zChatPanel #zSendBtn {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    z-index: 2 !important;
}

#zChatPanel #zSendBtn.visible {
    display: flex !important;
}

#zChatPanel #zSendBtn svg {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

#zChatPanel #zTrackBtn,
#zChatPanel #zCartBtn {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 50px !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatClose {
    display: none !important;
}

#zChatPanel #zChatClose {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 10 !important;
    color: inherit;
}

/* #zChatPanel,
#zChatPanel #zChatMessages {
    background-color: #efeae2 !important;
} */

/* #zChatMessages .z-bubble-wrap {
    display: flex !important;
    width: 100%;
    margin-bottom: 8px;
    flex-shrink: 0;
} */

#zChatMessages .z-bubble-wrap.bot {
    justify-content: flex-start !important;
}

/* #zChatMessages .z-bubble-wrap.user {
    justify-content: flex-end !important;
} */

#zChatMessages .z-message-sender {
    display: block !important;
    color: #168b52 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    margin: 0 0 2px !important;
}

#zChatMessages .z-message-text {
    display: block !important;
    color: #222222 !important;
    font-size: 15px !important;
    line-height: 21px !important;
    overflow-wrap: anywhere;
}

#zChatMessages .z-message-time {
    display: inline-block !important;
    float: right;
    margin-left: 9px;
    margin-top: 5px;
    color: #667781 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 14px !important;
    white-space: nowrap;
    vertical-align: bottom;
}

#zChatMessages .z-message-text::after {
    content: "";
    display: block;
    clear: both;
}

#zChatMessages .z-bubble-wrap {
    width: 100% !important;
    flex-shrink: 0 !important;
    margin: 5px 0 !important;
    box-sizing: border-box !important;
}

#zChatMessages .z-bubble-wrap.bot {
    justify-content: flex-start !important;
}

#zChatMessages .z-bubble-wrap .z-bubble {
    padding: 9px 12px 6px !important;
    border-radius: 3px 11px 11px !important;
    box-shadow: 0 1px 1px rgba(0,0,0,.10) !important;
}

#zChatMessages .z-bubble-wrap.bot .z-bubble {
    border-bottom-left-radius: 9px !important;
}

#zChatMessages .z-message-sender {
    display: block !important;
    color: #168b52 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    line-height: 18px !important;
}

#zChatMessages .z-bubble-wrap.user .z-message-sender {
    color: #e53935 !important;
}

#zChatMessages .z-message-text {
    display: block !important;
    color: #222 !important;
    font-size: 14px !important;
    line-height: 21px !important;
    overflow-wrap: anywhere !important;
}

#zChatMessages .z-message-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin-top: 3px !important;
    min-height: 14px !important;
}

#zChatMessages .z-message-time {
    color: #777 !important;
    font-size: 11px !important;
    line-height: 14px !important;
}

#zChatMessages .z-message-ticks {
    color: #1685d9 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: -3px !important;
    padding-right: 3px !important;
}

#zChatMessages .z-bubble-wrap {
    width: 100% !important;
    /* margin: 7px 0 !important; */
    flex-shrink: 0 !important;
}

#zChatMessages .z-bubble-wrap.bot {
    justify-content: flex-start !important;
}

#zChatMessages .z-bubble {
    position: relative !important;
    display: block !important;
}

#zChatMessages .z-bubble-wrap.bot .z-bubble {
    background: #ffffff !important;
    color: #111 !important;
}

#zChatMessages .z-bubble-wrap.bot .z-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 12px solid #ffffff;
    border-left: 12px solid transparent;
}

#zChatMessages .z-bubble-wrap.user .z-bubble {
    background: #d9fdd3 !important;
    color: #111 !important;
    border-radius: 12px 2px 12px 12px !important;
}

#zChatMessages .z-bubble-wrap.user .z-message-sender {
    display: block !important;
    text-align: right !important;
    color: #e53935 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}

#zChatMessages .z-message-content {
    display: block !important;
    width: 100%;
    min-width: 0;
}

#zChatMessages .z-message-text {
    display: inline !important;
    width: auto !important;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

#zChatMessages .z-message-time {
    display: inline !important;
    float: right;
    margin-left: 8px;
    margin-top: 3px;
    color: #8696a0 !important;
    font-size: 10px !important;
    line-height: 14px;
    white-space: nowrap;
}

#zChatMessages .z-message-content {
    display: block !important;
    width: 100%;
    min-width: 0;
    line-height: 1.45 !important;
}

#zChatMessages .z-message-text {
    display: inline !important;
    width: auto !important;
    font-size: 13px !important;
    color: #222 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
}

#zChatMessages .z-message-time {
    display: inline-block !important;
    float: right !important;
    margin-left: 8px !important;
    margin-top: 3px !important;
    font-size: 11px !important;
    line-height: 14px !important;
    color: #667781 !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
}
#zChatMessages .z-message-time {
    position: relative !important;
    top: 3px !important;
    color: #667781 !important;
    font-size: 11px !important;
}
#zChatMessages .z-message-text::after {
    content: none !important;
}

#zChatMessages {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

#zChatMessages .z-bubble-wrap.bot {
    width: 100% !important;
    justify-content: flex-start !important;
}

#zChatMessages .z-bubble-wrap.bot > .z-bubble {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

#zChatMessages .z-bubble-wrap.bot > .z-bubble.z-block {
    width: 96% !important;
    max-width: 96% !important;
}

#zChatMessages .z-bubble-wrap.user {
    justify-content: flex-end !important;
}

#zChatMessages .z-bubble-wrap.user > .z-bubble {
    width: fit-content !important;
    max-width: 85% !important;
}

#zChatPanel #zChatMessages #z-chat-layout {
    background-color: #efeae2 !important;
    background-image: url('../assets/image/chat-wallpaper.png') !important;
    background-repeat: repeat !important;
    background-position: center top !important;
    background-size: 400px auto !important;
    background-attachment: local !important;
}

/* Keep chatbot message bubbles readable */
#zChatMessages .z-bubble-wrap.bot .z-bubble {
    background: #ffffff !important;
}

#zChatMessages .z-bubble-wrap.user .z-bubble {
    background: #d9fdd3 !important;
}

#zChatPanel .z-input-area {
    display: flex !important;
    width: 100% !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    gap: 0 !important;
    background: #efeae2 !important;
}

#zChatPanel #zChatForm {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;

    width: 100% !important;
    height: 48px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;

    padding: 0 7px 0 13px !important;
    margin: 0 !important;
    position: relative !important;

    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 28px !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatInput {
    position: static !important;
    order: 1 !important;
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

/* Rocket send button */
#zChatPanel #zSendBtn {
    order: 2 !important;
    position: static !important;
    transform: none !important;

    display: inline-flex !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;

    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 50% !important;
    background: #67391b !important;
    color: #ffffff !important;
    cursor: pointer !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#zChatPanel #zSendBtn svg {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
}

#zChatPanel #zTrackBtn,
#zChatPanel #zCartBtn {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;

    position: relative !important;
    border: none !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    color: #475569 !important;
    cursor: pointer !important;
}

#zChatPanel #zTrackBtn {
    order: 3 !important;
}

#zChatPanel #zCartBtn {
    order: 4 !important;
}

#zChatPanel #zTrackBtn svg,
#zChatPanel #zCartBtn svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
}

#zChatPanel #zCartCount {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    min-width: 17px !important;
    height: 17px !important;
    font-size: 10px !important;
}
#zChatPanel #zChatMessages {
    background-color: #efeae2 !important;
    background-image: url('../assets/image/chat-wallpaper.png') !important;
    background-repeat: repeat !important;
    background-position: center top !important;
    background-size: 400px auto !important;
    background-attachment: scroll !important;
}

#zChatPanel .z-input-area,
#zChatPanel .z-chat-powered {
    background: #efeae2 !important;
}
#zChatPanel #zChatMessages {
    background-color: #efeae2 !important;
    background-image: url('../assets/image/chat-wallpaper.png') !important;
    background-repeat: repeat !important;
    background-position: center top !important;
    background-size: 400px auto !important;
    background-attachment: scroll !important;
}

#zChatPanel #zChatQuickReplies {
    background-color: #efeae2 !important;
    background-image: none !important;
}

#zChatPanel .z-chat-layout {
    background-color: #efeae2 !important;
}

#zChatPanel #zChatMessages {
    background-color: #efeae2 !important;
    background-image: url('../assets/image/chat-wallpaper.png') !important;
    background-repeat: repeat !important;
    background-position: top left !important;
    background-size: 280px 280px !important;
    background-attachment: scroll !important;
    background-blend-mode: normal !important;
}

#zChatPanel #zChatMessages .z-bubble {
    position: relative;
}

#zChatPanel .z-chat-layout {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

#zChatPanel #zChatMessages {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

#zChatPanel #zChatMessages,
#zChatPanel #zChatQuickReplies,
#zChatPanel .z-input-area,
#zChatPanel .z-chat-powered.z-footer-area {

    background-color: #efeae2 !important;
    background-image: url('../assets/image/chat-wallpaper.png') !important;
    background-repeat: repeat !important;
    background-position: center top !important;
    background-size: 280px 280px !important;
    background-attachment: scroll !important;
    background-blend-mode: normal !important;
}

/* Keep message bubbles readable */
#zChatPanel #zChatMessages .z-bubble-wrap {
    background: transparent !important;
}

#zChatPanel #zChatMessages .z-bubble-wrap.bot .z-bubble {
    background: #ffffff !important;
}

#zChatPanel #zChatMessages .z-bubble-wrap.user .z-bubble {
    background: #d9fdd3 !important;
}

#zChatPanel #zChatForm {
    background: #ffffff !important;
}

#zChatPanel #zChatInput {
    background: transparent !important;
}
/* Rocket hidden by default */
#zChatPanel #zSendBtn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translateY(14px) !important;

    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease !important;
}

/* Rocket slides upward when typing */
#zChatPanel #zSendBtn.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    transform: translateY(0) !important;
}
/* Full-width chatbot message containing attached products */
#zChatPanel #zChatMessages .z-has-attached-products {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

#zChatPanel #zChatMessages .z-full-product-bubble {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

#zChatPanel .z-full-product-bubble .z-message-content {
    width: 100% !important;
    min-width: 0 !important;
}

#zChatPanel .z-full-product-bubble .z-carousel-wrap,
#zChatPanel .z-full-product-bubble .z-carousel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Keep attached product cards responsive */
#zChatPanel .z-full-product-bubble .rufus-card {
    flex-shrink: 0 !important;
}
/* =========================================
   FULL WIDTH ONLY FOR ATTACHED PRODUCTS
========================================= */

/* Expand only the attached product message */
#zChatPanel #zChatMessages
.z-bubble-wrap.bot.z-has-attached-products {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    justify-content: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Product message bubble fills available space */
#zChatPanel #zChatMessages
.z-has-attached-products > .z-bubble,
#zChatPanel #zChatMessages
.z-full-product-bubble {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Product content */
#zChatPanel .z-has-attached-products .z-message-content {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Full-width carousel */
#zChatPanel .z-has-attached-products .z-carousel-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Keep products in one horizontal row */
#zChatPanel .z-has-attached-products .z-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 2px 10px !important;
    box-sizing: border-box !important;
    scroll-snap-type: x mandatory !important;
}

/* Keep individual product card size */
#zChatPanel .z-has-attached-products .rufus-card {
    flex: 0 0 215px !important;
    width: 215px !important;
    min-width: 215px !important;
    max-width: 215px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Keep navigation arrows */
#zChatPanel .z-has-attached-products .z-nav {
    display: flex !important;
}

/* FULL WIDTH: recommended products message only */
#zChatPanel #zChatMessages
.z-bubble-wrap.bot.z-has-attached-products {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    align-items: stretch !important;
}

#zChatPanel #zChatMessages
.z-bubble-wrap.bot.z-has-attached-products > .z-bubble {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatMessages
.z-has-attached-products .z-message-content,
#zChatPanel #zChatMessages
.z-has-attached-products .z-carousel-wrap,
#zChatPanel #zChatMessages
.z-has-attached-products .z-carousel {
    display: flex;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatMessages
.z-has-attached-products .z-message-content {
    display: block !important;
}

#zChatPanel #zChatMessages
.z-has-attached-products .z-carousel {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
}

#zChatPanel #zChatMessages
.z-has-attached-products .rufus-card {
    flex: 0 0 190px !important;
    width: 190px !important;
    min-width: 190px !important;
}

/* Grid Layout for Categories */
.z-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 10px;
    width: 100%;
}

/* Individual Category Card */
.z-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.z-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #67391b; /* Matches your theme */
}

/* Category Image */
.z-cat-card .z-cat-thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.z-cat-card .z-cat-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 24px;
    font-weight: bold;
}

/* Category Text */
.z-cat-card .z-cat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 6px;
}

.z-cat-card .z-cat-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.z-cat-card .z-cat-count {
    font-size: 11px;
    color: #6b7280;
}

/* Clickable Arrow Icon */
.z-cat-card .z-cat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #67391b;
    background: #fdf1e7;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-top: auto; /* Pushes the icon to the bottom */
}

.z-cat-card:hover .z-cat-icon-wrap {
    background: #67391b;
    color: #ffffff;
}

/* 1. Force the bubble containing the categories to stretch wide */
.z-bubble-wrap.bot .z-bubble {
    max-width: 100% !important;
    width: 100%;
}

.z-message-content {
    width: 100%;
}

/* 2. Ensure the grid container takes full width and stacks nicely */
.z-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

/* 3. Make sure the cards fill their grid space */
.z-cat-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    box-sizing: border-box;
}

/* 4. Optimize images so they don't overflow the card */
.z-cat-card .z-cat-thumb {
    width: 100%;
    height: 80px; /* Slightly taller for full width */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* 5. Optional: Make the title span full width cleanly */
.z-block-title {
    width: 100%;
    margin-bottom: 6px;
}
/* Force user messages to the right side */
.z-bubble-wrap.user {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    margin-left: auto !important;
}

/* Optional: Ensure the bot messages stay on the left */
.z-bubble-wrap.bot {
    justify-content: flex-start !important;
    width: 100% !important;
    margin-right: auto !important;
}

/* =========================================================
   FINAL OVERRIDE — WHATSAPP-STYLE CHAT LAYOUT
   (append this at the VERY END of chatbot.css)
   ========================================================= */

/* ---------- Message rows ---------- */
#zChatMessages .z-bubble-wrap {
    display: flex !important;
    width: 100% !important;
    margin: 6px 0 !important;
    flex-shrink: 0 !important;
}
#zChatMessages .z-bubble-wrap.bot  { justify-content: flex-start !important; }
#zChatMessages .z-bubble-wrap.user { justify-content: flex-end   !important; }

/* ---------- Bubbles must not clip their tails ---------- */
#zChatMessages .z-bubble {
    position: relative !important;
    overflow: visible !important;
}

/* ---------- STORE (bot) bubble : white, left, tail top-left ---------- */
#zChatMessages .z-bubble-wrap.bot > .z-bubble {
    background: #ffffff !important;
    color: #111 !important;
    width: fit-content !important;
    max-width: 82% !important;
    padding: 8px 12px 5px !important;
    border-radius: 0 12px 12px 12px !important;   /* sharp top-left corner */
    box-shadow: 0 1px 1px rgba(0,0,0,.12) !important;
}
#zChatMessages .z-bubble-wrap.bot > .z-bubble::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -10px !important;
    right: auto !important;
    width: 0 !important;
    border-right: 10px solid transparent !important;
}

/* ---------- CUSTOMER (user) bubble : green, right, tail top-right ---------- */
#zChatMessages .z-bubble-wrap.user > .z-bubble {
    background: #d9fdd3 !important;
    color: #111 !important;
    width: fit-content !important;
    max-width: 82% !important;
    padding: 8px 12px 5px !important;
    border-radius: 12px 0 12px 12px !important;   /* sharp top-right corner */
    box-shadow: 0 1px 1px rgba(0,0,0,.12) !important;
}
#zChatMessages .z-bubble-wrap.user > .z-bubble::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: -10px !important;
    left: auto !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 10px solid #d9fdd3 !important;
    border-left: 10px solid transparent !important;
}

/* ---------- Sender name + text + time ---------- */
#zChatMessages .z-message-sender {
    display: block !important;
    color: #168b52 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    margin: 0 0 2px !important;
}
/* Optional: hide sender name to look exactly like WhatsApp screenshot
#zChatMessages .z-message-sender { display: none !important; }
*/
#zChatMessages .z-message-text {
    display: inline !important;
    color: #222 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
}
#zChatMessages .z-message-time {
    display: inline-block !important;
    float: right !important;
    clear: both !important;
    margin: 6px 0 0 8px !important;
    color: #667781 !important;
    font-size: 11px !important;
    line-height: 12px !important;
    white-space: nowrap !important;
    vertical-align: bottom !important;
}

/* ---------- Full-width bubbles for rich blocks ----------
   (products, categories, checkout, address picker, etc.) */
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-carousel-wrap),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-cat-grid),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-cat-list),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-addr-carousel),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-pay-list),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-sum),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-form-wrap),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-home-menu),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-recent-orders),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-order-details),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-bundles),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-upi-qr-wrap),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-edit-name-wrap),
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-address-form) {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    border-radius: 12px !important;
}

/* ---------- FIX: carousel arrows were hidden (negative offsets) ---------- */
#zChatPanel .z-carousel-wrap {
    position: relative !important;
    overflow: visible !important;
}
#zChatPanel .z-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 26px !important;
    height: 34px !important;
    font-size: 22px !important;
    line-height: 1 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,.95) !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    color: #67391b !important;
    box-shadow: 0 1px 5px rgba(0,0,0,.22) !important;
    z-index: 6 !important;
    cursor: pointer !important;
}
#zChatPanel .z-nav.prev {
    left: 4px !important;      /* was -28px → outside the panel, invisible */
    right: auto !important;
}
#zChatPanel .z-nav.next {
    right: 4px !important;     /* was -28px → outside the panel, invisible */
    left: auto !important;
}
#zChatPanel .z-nav:hover {
    background: #fff !important;
    border-color: #67391b !important;
}

/* ---------- Keep wallpaper / panel background as WhatsApp ---------- */
#zChatPanel #zChatMessages {
    background-color: #efeae2 !important;
}

/* Product category message: same width as home suggestions */
.z-bubble-wrap.z-category-message {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    align-self: stretch !important;
}

.z-bubble-wrap.z-category-message .z-bubble {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.z-bubble-wrap.z-category-message .z-message-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.z-category-message .z-cat-carousel {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.z-category-message .z-cat-carousel-page {
    width: 100% !important;
    min-width: 100% !important;
    flex: 0 0 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

.z-category-message .z-cat-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Arrows overlay the carousel; they never create a third row */
.z-category-message .z-cat-carousel-controls {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    pointer-events: none !important;
    padding: 0 3px !important;
    z-index: 10 !important;
}

.z-category-message .z-cat-carousel-arrow {
    pointer-events: auto !important;
    flex: 0 0 32px !important;
}

.z-category-message .z-cat-carousel-page-count {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
}
/* =========================================
   VARIANT DROPDOWN + ADD TO CART / QTY UI
   ========================================= */

/* 1. Variant Dropdown with Custom Arrow Mark */
#zChatPanel #zChatMessages .rufus-card .z-variant-select {
    display: block !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 32px 0 12px !important; /* Right padding for arrow */
    margin: 0 !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    
    /* Custom Dropdown Arrow */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2367391b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    cursor: pointer !important;
}

/* 2. Action Row: Stack Dropdown and Button Vertically */
#zChatPanel #zChatMessages .rufus-card .z-variant-action-row {
    display: flex !important;
    flex-direction: column !important; /* Dropdown on top, button below */
    gap: 8px !important;
    width: 100% !important;
    margin-top: 8px !important;
    box-sizing: border-box !important;
}

/* 3. "Add to Cart" Button (Full Width) */
#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-plus {
    display: flex !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    
    background: #ffd814 !important;
    border: 1px solid #fcd200 !important;
    border-radius: 24px !important;
    color: #111 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

/* Add "Add to Cart" text via CSS if needed, or rely on the cart icon */
#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-plus svg {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 6px !important;
}

/* Disabled state for "Add to Cart" */
#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-plus:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
}

/* 4. Quantity Selector (Shows when product is already in cart) */
#zChatPanel #zChatMessages .rufus-card .z-card-qty-control {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 42px !important;
    border: 1px solid #79b982 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    margin-top: 8px !important;
}

#zChatPanel #zChatMessages .rufus-card .z-card-qty-control button {
    width: 42px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #79b982 !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

#zChatPanel #zChatMessages .rufus-card .z-card-qty-control span {
    flex: 1 !important;
    text-align: center !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

#zChatPanel #zChatMessages .rufus-card .z-card-qty-control button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: #e5e7eb !important;
    color: #9ca3af !important;
}

/* =========================================================
   VARIANT CARD FIX — dropdown → price → Add to Cart
   (append at the VERY END of chatbot.css)
========================================================= */

/* 1. Dropdown wrapper */
#zChatPanel #zChatMessages .rufus-card .z-variant-select-wrap {
    width: 100% !important;
    margin: 2px 0 0 !important;
}

/* 2. Dropdown — full width, clearly clickable, custom chevron */
#zChatPanel #zChatMessages .rufus-card .z-variant-select-wrap .z-variant-select {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 34px 0 12px !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    color: #333 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2367391b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.05) !important;
}

#zChatPanel #zChatMessages .rufus-card .z-variant-select-wrap .z-variant-select:focus {
    border-color: var(--z-bot-button-bg, #67391b) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(103,57,27,.12) !important;
}

/* 3. Add to Cart button — full width, same style as normal button */
#zChatPanel #zChatMessages .rufus-card .z-card-qty-host {
    width: 100% !important;
    min-width: 0 !important;
    margin: 6px 0 0 !important;
}

#zChatPanel #zChatMessages .rufus-card .z-card-qty-host .z-variant-plus {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: var(--z-bot-button-bg, #67391b) !important;
    border: 1px solid var(--z-bot-button-bg, #67391b) !important;
    border-radius: 8px !important;
    color: var(--z-bot-button-text, #ffffff) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatMessages .rufus-card .z-card-qty-host .z-variant-plus svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    stroke: var(--z-bot-button-text, #ffffff) !important;
}

#zChatPanel #zChatMessages .rufus-card .z-card-qty-host .z-variant-plus:not(:disabled):hover {
    opacity: .92 !important;
}

#zChatPanel #zChatMessages .rufus-card .z-card-qty-host .z-variant-plus:disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
}

/* 4. Quantity stepper (appears after the product is in cart) */
#zChatPanel #zChatMessages .rufus-card .z-card-qty-host .z-card-qty-control {
    display: flex !important;
    width: 100% !important;
    height: 40px !important;
    margin: 0 !important;
    border: 1px solid #79b982 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#zChatPanel #zChatMessages .rufus-card .z-card-qty-host .z-card-qty-control button {
    width: 44px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #79b982 !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

#zChatPanel #zChatMessages .rufus-card .z-card-qty-host .z-card-qty-control span {
    flex: 1 !important;
    text-align: center !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* 5. Safety net: neutralize leftover old action-row rules */
#zChatPanel #zChatMessages .rufus-card .z-variant-action-row {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    flex-direction: column !important;
}

#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-select {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

#zChatPanel #zChatMessages .rufus-card .z-variant-action-row .z-variant-plus {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    height: 40px !important;
}

/* Categories: same width as "What would you like to explore?" */
#zChatMessages .z-bubble-wrap.bot > .z-bubble:has(.z-cat-carousel) {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    border-radius: 12px !important;
}
/* ===== Product name + variant dropdown on the SAME row ===== */
#zChatPanel #zChatMessages .rufus-card .z-title-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
}

#zChatPanel #zChatMessages .rufus-card .z-title-row .rufus-card-title {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
}

#zChatPanel #zChatMessages .rufus-card .z-title-row .z-variant-select-wrap {
    flex: 0 0 82px !important;
    width: 82px !important;
    margin: 0 !important;
}

#zChatPanel #zChatMessages .rufus-card .z-title-row .z-variant-select-wrap .z-variant-select {
    width: 82px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 22px 0 8px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    background-position: right 6px center !important;
    background-size: 12px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

/* Add to Cart / qty stepper stay at the bottom, so all cards are equal height */
#zChatPanel #zChatMessages .rufus-card .z-card-qty-host {
    margin-top: auto !important;
}