/**
 * TSWQ AI Shopping Assistant - Stylesheet
 * Brand: Tasawwq (#dd3333, Woodmart Integration, Responsive, RTL & LTR)
 */

:root {
    --tswq-primary: var(--wd-primary-color, #dd3333);
    --tswq-primary-hover: #bb2222;
    --tswq-accent: #f6caca;
    --tswq-accent-light: #fff2f2;
    --tswq-secondary: #222222;
    --tswq-text: #333333;
    --tswq-text-muted: #777777;
    --tswq-bg-light: #fff9f9;
    --tswq-card-bg: #ffffff;
    --tswq-border-color: #f0f0f0;
    --tswq-font-family: var(--wd-text-font, 'Cairo', 'Tajawal', 'Almarai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    --tswq-radius: 14px;
    --tswq-radius-sm: 8px;
    --tswq-radius-lg: 20px;
    --tswq-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --tswq-shadow-md: 0 8px 24px rgba(221, 51, 51, 0.12);
    --tswq-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
    --tswq-glass-bg: rgba(255, 255, 255, 0.92);
    --tswq-glass-border: rgba(255, 255, 255, 0.5);
    --tswq-gold: #f59e0b;
    --tswq-green: #10b981;
    --tswq-red-alert: #ef4444;
}

/* ==========================================================================
   1. FLOATING LAUNCHER BUTTON
   ========================================================================== */
.tswq-launcher-wrap {
    position: fixed;
    bottom: 24px;
    z-index: 99998;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--tswq-font-family);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tswq-pos-bottom-right {
    right: 24px;
}

.tswq-pos-bottom-left {
    left: 24px;
}

.tswq-launcher-wrap:hover {
    transform: translateY(-4px) scale(1.03);
}

.tswq-launcher-wrap:active {
    transform: translateY(0) scale(0.98);
}

.tswq-launcher-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #dd3333 0%, #bb1c1c 100%);
    color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(221, 51, 51, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.tswq-launcher-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50px;
    background: radial-gradient(circle, rgba(221, 51, 51, 0.4) 0%, rgba(221, 51, 51, 0) 70%);
    animation: tswq-aura-pulse 2.4s infinite;
    z-index: -1;
}

@keyframes tswq-aura-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.2; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.tswq-launcher-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    animation: tswq-sparkle-spin 4s linear infinite;
}

@keyframes tswq-sparkle-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tswq-launcher-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.2;
}

.tswq-launcher-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.tswq-launcher-badge {
    font-size: 10px;
    opacity: 0.9;
    color: #ffe4e4;
}

/* ==========================================================================
   2. BACKDROP & DRAWER CONTAINER
   ========================================================================== */
.tswq-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 20, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tswq-backdrop.tswq-show {
    opacity: 1;
}

.tswq-panel {
    position: fixed;
    bottom: 24px;
    z-index: 100000;
    width: 440px;
    max-width: calc(100vw - 32px);
    height: 690px;
    max-height: calc(100vh - 48px);
    background: var(--tswq-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--tswq-glass-border);
    border-radius: var(--tswq-radius-lg);
    box-shadow: var(--tswq-shadow-lg);
    display: flex;
    flex-direction: column;
    font-family: var(--tswq-font-family);
    direction: rtl;
    text-align: right;
    overflow: hidden;
    transform: translateY(40px) scale(0.96);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.tswq-panel.tswq-panel-bottom-right {
    right: 24px;
}

.tswq-panel.tswq-panel-bottom-left {
    left: 24px;
    direction: ltr;
    text-align: left;
}

.tswq-panel.tswq-show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ==========================================================================
   3. PANEL HEADER
   ========================================================================== */
.tswq-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(221, 51, 51, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-bottom: 1px solid var(--tswq-border-color);
}

.tswq-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tswq-ai-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dd3333 0%, #991111 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(221, 51, 51, 0.3);
}

.tswq-header-titles .tswq-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--tswq-secondary);
    line-height: 1.2;
}

.tswq-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--tswq-text-muted);
    margin-top: 2px;
}

.tswq-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tswq-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.tswq-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tswq-icon-btn {
    background: transparent;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tswq-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--tswq-primary);
}

/* ==========================================================================
   4. QUICK ACTION CHIPS
   ========================================================================== */
.tswq-quick-chips-wrapper {
    background: #ffffff;
    padding: 10px 14px;
    border-bottom: 1px solid var(--tswq-border-color);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.tswq-quick-chips-wrapper::-webkit-scrollbar {
    display: none;
}

.tswq-quick-chips {
    display: inline-flex;
    gap: 8px;
}

.tswq-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tswq-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    user-select: none;
}

.tswq-chip:hover {
    background: var(--tswq-accent-light);
    border-color: var(--tswq-accent);
    color: var(--tswq-primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   5. PANEL BODY & MESSAGES
   ========================================================================== */
.tswq-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fcfcfc;
    scroll-behavior: smooth;
}

.tswq-messages-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tswq-message {
    display: flex;
    flex-direction: column;
    max-width: 92%;
    animation: tswq-fade-up 0.3s ease forwards;
}

@keyframes tswq-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tswq-message-ai {
    align-self: flex-start;
}

.tswq-message-user {
    align-self: flex-end;
}

.tswq-message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.6;
}

.tswq-message-ai .tswq-message-bubble {
    background: #ffffff;
    color: var(--tswq-text);
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border-top-right-radius: 4px;
}

.tswq-message-user .tswq-message-bubble {
    background: linear-gradient(135deg, #dd3333 0%, #bb1c1c 100%);
    color: #ffffff;
    border-top-left-radius: 4px;
    box-shadow: 0 4px 14px rgba(221, 51, 51, 0.25);
}

.tswq-message-bubble p {
    margin: 0;
}

/* ==========================================================================
   6. PRODUCT CARDS & CAROUSEL
   ========================================================================== */
.tswq-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}

.tswq-prod-card {
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.tswq-prod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #f1bfbf;
}

.tswq-prod-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
    margin-bottom: 8px;
}

.tswq-prod-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tswq-prod-card:hover .tswq-prod-thumb {
    transform: scale(1.05);
}

.tswq-badge-discount {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 2;
}

.tswq-badge-stock {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.tswq-prod-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tswq-prod-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tswq-secondary);
    line-height: 1.35;
    margin: 0 0 6px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tswq-prod-name:hover {
    color: var(--tswq-primary);
}

.tswq-prod-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.tswq-price-current {
    font-size: 14px;
    font-weight: 800;
    color: var(--tswq-primary);
}

.tswq-price-regular {
    font-size: 11.5px;
    color: #999999;
    text-decoration: line-through;
}

/* Why I recommend it badge */
.tswq-ai-reason {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    background: #fff8f8;
    border: 1px dashed #f6caca;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 10.5px;
    color: #662222;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tswq-reason-sparkle {
    color: var(--tswq-primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.tswq-prod-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.tswq-btn-cart {
    flex: 1;
    background: var(--tswq-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tswq-btn-cart:hover {
    background: var(--tswq-primary-hover);
}

.tswq-btn-cart:active {
    transform: scale(0.97);
}

.tswq-btn-cart.tswq-btn-added {
    background: var(--tswq-green) !important;
}

.tswq-btn-view {
    background: #f1f3f5;
    color: #333333;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tswq-btn-view:hover {
    background: #e2e6ea;
    color: #000000;
}

/* ==========================================================================
   7. OUTFIT BUILDER BUNDLE CARD
   ========================================================================== */
.tswq-outfit-bundle-card {
    background: #ffffff;
    border: 1.5px solid #f6caca;
    border-radius: 14px;
    padding: 14px;
    margin-top: 10px;
    box-shadow: 0 4px 16px rgba(221, 51, 51, 0.08);
}

.tswq-outfit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.tswq-outfit-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--tswq-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tswq-outfit-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.tswq-outfit-piece {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    background: #fafafa;
    border-radius: 8px;
}

.tswq-outfit-piece-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.tswq-outfit-piece-details {
    flex: 1;
    min-width: 0;
}

.tswq-piece-role {
    font-size: 10px;
    color: var(--tswq-primary);
    font-weight: 700;
}

.tswq-piece-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--tswq-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tswq-piece-price {
    font-size: 12px;
    font-weight: 800;
    color: var(--tswq-secondary);
    flex-shrink: 0;
}

.tswq-outfit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.tswq-outfit-total {
    display: flex;
    flex-direction: column;
}

.tswq-total-label {
    font-size: 11px;
    color: var(--tswq-text-muted);
}

.tswq-total-amount {
    font-size: 16px;
    font-weight: 900;
    color: var(--tswq-primary);
}

.tswq-btn-add-bundle {
    background: linear-gradient(135deg, #dd3333 0%, #bb1c1c 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(221, 51, 51, 0.25);
    font-family: inherit;
}

.tswq-btn-add-bundle:hover {
    box-shadow: 0 6px 18px rgba(221, 51, 51, 0.35);
    transform: translateY(-1px);
}

/* ==========================================================================
   8. GUIDED FLOW WIZARD
   ========================================================================== */
.tswq-flow-wizard {
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.tswq-wizard-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--tswq-secondary);
    margin: 0 0 12px;
}

.tswq-wizard-step {
    margin-bottom: 14px;
}

.tswq-step-prompt {
    font-size: 12px;
    font-weight: 700;
    color: var(--tswq-text-muted);
    margin-bottom: 8px;
}

.tswq-step-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tswq-option-btn {
    padding: 7px 14px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tswq-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tswq-option-btn:hover, .tswq-option-btn.selected {
    background: var(--tswq-primary);
    border-color: var(--tswq-primary);
    color: #ffffff;
}

/* ==========================================================================
   9. PANEL FOOTER & INPUT
   ========================================================================== */
.tswq-panel-footer {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid var(--tswq-border-color);
}

.tswq-input-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f6f8;
    border: 1.5px solid #e5e7eb;
    border-radius: 26px;
    padding: 4px 6px 4px 14px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tswq-input-box:focus-within {
    border-color: var(--tswq-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(221, 51, 51, 0.1);
}

.tswq-input-field {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--tswq-secondary);
    outline: none;
    resize: none;
    max-height: 80px;
    padding: 8px 0;
    direction: inherit;
}

.tswq-input-field::placeholder {
    color: #999999;
}

.tswq-action-btn {
    background: transparent;
    border: none;
    color: #888888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tswq-action-btn:hover {
    color: var(--tswq-primary);
}

.tswq-action-btn.listening {
    color: #ef4444;
    animation: tswq-pulse 1s infinite;
}

@keyframes tswq-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.tswq-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--tswq-primary);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tswq-send-btn:hover {
    background: var(--tswq-primary-hover);
    transform: scale(1.05);
}

.tswq-footer-disclaimer {
    margin-top: 8px;
    text-align: center;
    font-size: 10px;
    color: #999999;
}

/* ==========================================================================
   10. THINKING & SKELETON INDICATOR
   ========================================================================== */
.tswq-thinking {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    width: fit-content;
}

.tswq-thinking-dots {
    display: flex;
    gap: 4px;
}

.tswq-thinking-dots span {
    width: 6px;
    height: 6px;
    background: var(--tswq-primary);
    border-radius: 50%;
    animation: tswq-bounce 1.4s infinite ease-in-out both;
}

.tswq-thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.tswq-thinking-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes tswq-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.tswq-thinking-label {
    font-size: 11.5px;
    color: var(--tswq-text-muted);
}

/* ==========================================================================
   11. COMPARISON MODAL
   ========================================================================== */
.tswq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tswq-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    direction: rtl;
    text-align: right;
    font-family: var(--tswq-font-family);
}

.tswq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eeeeee;
}

.tswq-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.tswq-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.tswq-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.tswq-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tswq-compare-table th, .tswq-compare-table td {
    padding: 10px 14px;
    border: 1px solid #ededed;
    text-align: right;
}

.tswq-compare-table th {
    background: #f9f9f9;
    font-weight: 700;
}

.tswq-compare-highlight {
    background: #fff8f8;
    color: var(--tswq-primary);
    font-weight: 700;
}

.tswq-verdict-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: #166534;
    font-weight: 600;
}

/* ==========================================================================
   12. SINGLE PRODUCT PAGE "FIND SIMILAR" BUTTON
   ========================================================================== */
.tswq-similar-product-wrapper {
    margin: 16px 0;
}

.tswq-btn-similar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1.5px solid var(--tswq-primary);
    color: var(--tswq-primary);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tswq-btn-similar:hover {
    background: var(--tswq-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(221, 51, 51, 0.25);
    transform: translateY(-2px);
}

/* ==========================================================================
   13. MOBILE RESPONSIVE (320px - 767px)
   ========================================================================== */
@media screen and (max-width: 767px) {
    .tswq-panel {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .tswq-launcher-wrap {
        bottom: 74px; /* avoid overlapping mobile sticky toolbar */
        right: 16px;
    }

    .tswq-launcher-text {
        display: none; /* icon only on small screens for sleek mobile look */
    }

    .tswq-launcher-btn {
        padding: 12px;
        border-radius: 50%;
    }

    .tswq-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tswq-prod-card {
        padding: 8px;
    }

    .tswq-modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }
}
