/* =========================================================
   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;
}

/* ---------- Chat bubbles ---------- */
.z-bubble-wrap {
    display: flex;
    flex-shrink: 0;
}

.z-bubble-wrap.user {
    justify-content: flex-end;
}

.z-bubble-wrap.bot {
    justify-content: flex-start;
}

.z-bubble {
    max-width: 80%;
    padding: 7px 9px;
    border-radius: 6px;
    line-height: 1.5;
    font-size: 15px;
    color: #111;
}

.z-bubble-wrap.bot .z-bubble {
    background: #f3f4f6;
    border-bottom-left-radius: 4px;
}

.z-bubble-wrap.user .z-bubble {
    background: #d6f3cf;
    color: #000000;
    border-bottom-right-radius: 4px;
}

.z-bubble.z-block {
    max-width: 100%;
    width: 100%;
    padding: 0;
    background: transparent !important;
}

/* ---------- Quick reply chips ---------- */
#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;
}

/* ---------- Titles ---------- */
.z-block-title {
    font-size: 17px;
    font-weight: 600;
    color: #111;
    margin-bottom: 14px;
}

/* ---------- Category list ---------- */
.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;
}

/* ---------- Product card (base) ---------- */
.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: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d1d5db;
    color: #67391b;
    font-size: 20px;
    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: -6px;
}

.z-nav.next {
    right: -6px;
}

/* ---------- 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;
    box-sizing: content-box;
}

/* ---------- 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: 20px;
    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 {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 12px;
    color: #111;
}

.z-drawer-total b {
    font-size: 20px;
}

.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);
    }
}

/* =========================================================
   ADDRESS CAROUSEL & INLINE FORM
   ========================================================= */

.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 {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    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;
}


/* 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;
    border-top: 1px solid #f3f4f6 !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;
}