/**
 * M4C Live Commerce Module Styles
 * Version: 2026-04-18-MOBILE-FIX
 * Modern Spacious Layout - Reuses system CSS variables
 * Minimal custom CSS - leverages Bootstrap utilities
 * YouTube-Style Responsive Design
 */

/* ====== MODERN SPACIOUS LAYOUT ====== */
.live-commerce-container {
    background: #f8f9fa;
    background: linear-gradient(180deg, rgba(var(--mds-color-main-rgb), 0.07) 0%, #f8f9fa 180px);
    transition: all 0.3s ease;
}

.live-commerce-shell {
    position: relative;
}

.live-stage-card,
.live-products-panel,
.live-chat-panel {
    border-radius: 18px !important;
    overflow: hidden;
}

/* Video container immersive feel */
.live-stage-card {
    background: #101215;
    box-shadow: 0 18px 35px rgba(0,0,0,0.16);
}

/* Center the desktop stage + chat group and keep a balanced width.
   At the max width, the video stays near 960px so its 16:9 height matches the 540px chat panel. */
.live-commerce-desktop {
    --bs-gutter-x: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    align-items: start;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    max-width: 1344px;
    margin-left: auto;
    margin-right: auto;
}

.live-commerce-desktop > .col-lg-8,
.live-commerce-desktop > .col-lg-4 {
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.live-commerce-desktop .live-stage-card {
    width: 100%;
    max-width: 960px;
    margin: 0;
}

.live-commerce-desktop .live-chat-panel {
    width: 100%;
}

@media (max-width: 991.98px) {
    .live-commerce-desktop {
        display: none !important;
    }
}

.live-video-container {
    overflow: hidden;
}

.live-video-container iframe {
    width: 100%;
    height: 100%;
}

.live-youtube-stage-slot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

#liveVideoContainer,
#liveYouTubePlayer,
#liveVideoContainer iframe,
#globalYouTubePlayerMini,
#globalYouTubePlayerMini iframe {
    width: 100%;
    height: 100%;
    display: block;
}

#liveVideoContainer {
    position: relative;
    max-height: none;
    background: #000;
}

.live-youtube-player-host {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.live-youtube-player-host .live-video-player {
    width: 100%;
    height: 100%;
    display: block;
}

.global-live-mini-player {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 99998;
    width: 320px;
    height: 180px;
    max-width: calc(100vw - 24px);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 0, 0, 0.3);
}

.global-live-mini-player[hidden] {
    display: none !important;
}

.global-live-mini-player__host {
    width: 100%;
    height: 100%;
}

.global-live-mini-player .live-video-player {
    width: 100%;
    height: 100%;
    display: block;
}

.global-live-mini-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

#floatingShell,
#globalMiniPlayerShell {
    border-radius: 12px;
    overflow: hidden;
}

#floatingShell {
    right: 20px !important;
    bottom: 80px !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 320px;
    height: 180px;
    aspect-ratio: 16 / 9;
    z-index: 99998 !important;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: #000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

#floatingShell #liveVideoContainer,
#floatingShell #liveYouTubePlayer,
#floatingShell iframe {
    width: 100%;
    height: 100%;
    display: block;
}

#globalMiniPlayerShell {
    right: 20px !important;
    bottom: 80px !important;
    left: auto !important;
    transform: none !important;
    width: 320px;
    height: 180px;
    z-index: 99999 !important;
    background: #000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.global-live-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 100001;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.global-live-close-btn:hover,
.global-live-close-btn:focus-visible {
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
}

.global-live-close-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.82);
    outline-offset: 2px;
}

#floatingShell.d-none,
#globalMiniPlayerShell.d-none {
    display: none !important;
}

body.has-floating-live {
    padding-bottom: 220px;
}

.live-video-status-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    pointer-events: none;
}

.live-video-status-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.live-video-status-overlay .live-chat-badge {
    pointer-events: auto;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.live-chat-panel .youtube-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.live-chat-panel {
    height: 540px;
    display: flex;
    flex-direction: column;
}

.live-chat-panel .card-body {
    overflow-y: auto !important;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
}

.live-chat-panel-mobile {
    height: 430px;
    display: flex;
    flex-direction: column;
}

.live-chat-panel-mobile .card-body {
    overflow-y: auto !important;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
}

.live-products-panel .card-header,
.live-chat-panel .card-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
}

/* ====== YOUTUBE-STYLE CHAT CONTAINER ====== */
.youtube-chat-container {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.youtube-chat-messages {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Hide scrollbar for cleaner look (optional) */
.youtube-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.youtube-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.youtube-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.youtube-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

/* ====== BADGE STYLING ====== */
/* Ensure badges have proper spacing in header */
.card-header .badge {
    white-space: nowrap;
}

.live-chat-header-meta {
    row-gap: 0.5rem;
}

.live-chat-header-title {
    letter-spacing: 0.01em;
}

.live-chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid transparent;
    font-size: 0.73rem;
    font-weight: 600;
}

.live-chat-badge-sm {
    padding: 0.38rem 0.68rem;
    font-size: 0.68rem;
}

.live-chat-badge-live {
    background: #dc3545 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(220, 53, 69, 0.26);
}

.live-video-status-overlay .live-chat-badge-live {
    pointer-events: none;
    gap: 0.35rem;
    padding: 0.36rem 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.42rem !important;
    background: rgba(17, 24, 39, 0.94) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    backdrop-filter: none;
}

.live-badge-broadcast-icon {
    width: 0.98rem;
    height: 0.98rem;
    display: inline-flex;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

.live-badge-broadcast-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.live-chat-badge-viewers {
    background: rgba(255,255,255,0.92) !important;
    color: #18212f !important;
    border-color: rgba(255,255,255,0.6);
}

.live-video-status-overlay .live-chat-badge-viewers {
    pointer-events: none;
    gap: 0.38rem;
    padding: 0.38rem 0.68rem;
    border-radius: 999px !important;
    background: rgba(17, 24, 39, 0.82) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
}

.live-chat-badge-viewers i {
    color: inherit;
    opacity: 0.88;
}

.live-chat-badge-value {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.live-chat-badge-label {
    line-height: 1;
    opacity: 0.88;
}

/* ====== LIVE DOT ANIMATION ====== */
.live-chat-indicator {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.live-chat-indicator-badge {
    background-color: var(--mds-color-main) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(var(--mds-color-main-rgb), 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-chat-indicator-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(var(--mds-color-main-rgb), 0.28);
}

.live-chat-state {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.live-chat-state-compact {
    padding: 1.2rem 0.75rem;
    gap: 0.7rem;
}

.live-chat-state-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--mds-color-main-rgb), 0.1);
    color: var(--mds-color-main);
    font-size: 1.05rem;
}

.live-chat-state-error .live-chat-state-icon {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.live-chat-state-host .live-chat-state-icon {
    background: rgba(var(--mds-color-main-rgb), 0.14);
    color: var(--mds-color-main);
}

.live-chat-state-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 270px;
}

.live-chat-state-content strong {
    color: #1f2937;
    font-size: 0.92rem;
    font-weight: 700;
}

.live-chat-state-content span {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.45;
}

.live-chat-loader {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--mds-color-main-rgb), 0.06), rgba(var(--mds-color-main-rgb), 0.16));
}

.live-chat-loader i {
    position: relative;
    z-index: 2;
    color: var(--mds-color-main);
    font-size: 1rem;
}

.live-chat-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(var(--mds-color-main-rgb), 0.18);
    border-top-color: var(--mds-color-main);
    animation: liveChatSpin 1s linear infinite;
}

.live-chat-loader-ring-delayed {
    inset: 6px;
    border-top-color: rgba(var(--mds-color-main-rgb), 0.5);
    animation-duration: 1.35s;
    animation-direction: reverse;
}

@keyframes liveChatSpin {
    100% {
        transform: rotate(360deg);
    }
}

.live-chat-feedback {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.live-chat-feedback.is-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #8a6d1d;
}

.live-chat-feedback.is-danger {
    background: rgba(220, 53, 69, 0.11);
    color: #b02a37;
}

.live-chat-feedback.is-success {
    background: rgba(25, 135, 84, 0.12);
    color: #146c43;
}

.live-chat-message {
    position: relative;
}

.live-chat-message-bubble {
    flex: 1;
    min-width: 0;
    padding: 0.58rem 0.78rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.live-chat-message.is-own .live-chat-message-bubble {
    background: rgba(var(--mds-color-main-rgb), 0.08);
    border-color: rgba(var(--mds-color-main-rgb), 0.18);
}

.live-chat-message-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.55rem;
    margin-bottom: 0.18rem;
}

.live-chat-message-author {
    color: #111827;
    font-size: 0.76rem;
    font-weight: 700;
}

.live-chat-message-time {
    color: #6b7280;
    font-size: 0.68rem;
}

.live-chat-message-text {
    color: #1f2937;
    font-size: 0.84rem;
    line-height: 1.45;
    word-break: break-word;
}

.live-chat-message.is-mobile .live-chat-message-text {
    font-size: 0.8rem;
}

.live-chat-message.is-mobile .live-chat-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
}

.live-chat-message.is-mobile .live-chat-message-bubble {
    padding: 0.52rem 0.7rem;
}

.live-chat-system-message {
    margin-bottom: 0.5rem;
}

.live-chat-system-bubble {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    border: 1px dashed rgba(var(--mds-color-main-rgb), 0.22);
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.45;
}

/* ====== PRODUCT CAROUSEL BUTTONS ====== */
/* Override system styles to ensure buttons are always visible in live commerce */
.live-products-carousel {
    --live-products-gap: 8px;
    --live-products-slide-width: calc(48.75% - 4px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.live-products-carousel.swiper-ready {
    opacity: 1;
}

.live-product-slide {
    height: auto !important;
}

.live-product-card {
    height: 100%;
    border-radius: 6px;
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.live-product-card:hover {
    transform: none;
    box-shadow: 0 0 18px 3px rgba(0, 0, 0, 0.05);
}

.live-product-card-mode {
    border-color: rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.live-product-image-wrap {
    background: #ffffff;
}

.live-product-card .product-image-container a {
    min-height: 100%;
}

.live-product-actions {
    top: 10px;
    right: 10px;
    gap: 8px;
    z-index: 6;
    pointer-events: none;
}

.live-product-card-mode .action-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.live-product-card .live-product-actions .action-btn {
    pointer-events: auto;
    touch-action: manipulation;
}

.live-product-card .live-product-actions .action-btn[data-live-cart-state="added"],
.live-product-card .live-product-actions .action-btn.is-in-cart {
    background-color: #31ae6a;
    border-color: #31ae6a;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(49, 174, 106, 0.22);
}

.live-product-body {
    padding: 0.72rem 0.72rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.live-product-title {
    min-height: 2.45rem;
    margin: 0;
}

.live-product-title a {
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-product-footer {
    margin-top: 0.18rem;
}

.live-product-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
}

.live-product-original-price {
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
    color: #6b7280;
}

.live-product-current-price {
    font-size: 1.04rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.live-product-badge {
    left: 0.65rem;
    top: 0.65rem;
    right:auto;
    min-height: 1.45rem;
    padding: 0 0.6rem;
    border-radius: 999px !important;
}

.live-empty-products-card {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.live-products-carousel .btn-item-add-to-cart[data-in-cart="1"] {
    opacity: 0.72;
    pointer-events: none;
}

/* ====== CHAT INPUT ENHANCEMENTS ====== */
#chatInputArea button[type="submit"]:hover,
#chatInputAreaMobile button[type="submit"]:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#chatInputArea button[type="submit"]:active,
#chatInputAreaMobile button[type="submit"]:active {
    transform: scale(0.95);
}

#chatInputArea input[name="message"]:focus,
#chatInputAreaMobile input[name="message"]:focus {
    border-color: var(--mds-color-main) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--mds-color-main-rgb), 0.25) !important;
}

#chatInputArea .live-chat-input-row,
#chatInputAreaMobile .live-chat-input-row {
    flex-wrap: nowrap;
}

#chatInputArea .live-chat-send-btn,
#chatInputAreaMobile .live-chat-send-btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

#chatInputArea .live-chat-send-btn .chat-submit-icon,
#chatInputAreaMobile .live-chat-send-btn .chat-submit-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
    transition: opacity 0.2s ease;
}

#chatInputArea .live-chat-send-btn.is-loading,
#chatInputAreaMobile .live-chat-send-btn.is-loading {
    color: transparent !important;
    pointer-events: none;
}

#chatInputArea .live-chat-send-btn.is-loading .chat-submit-icon,
#chatInputAreaMobile .live-chat-send-btn.is-loading .chat-submit-icon {
    opacity: 0;
}

#chatInputArea .live-chat-send-btn.is-loading::after,
#chatInputAreaMobile .live-chat-send-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: liveChatSpin 0.8s linear infinite;
}

/* Maintain stable dimensions during Swiper updates */
#live-products-container,
#live-products-container-mobile {
    min-height: 200px;  /* Increased from 160px for better initial display */
    transition: min-height 0.2s ease;
}

/* Prevent layout shift during Swiper reinitialization */
.live-products-carousel .swiper-wrapper {
    transition-timing-function: linear !important;
}

.live-products-carousel .swiper-slide {
    height: auto !important;
}

/* M4C FIX: Hide scrollbars completely - both fallback and Swiper states */
.live-products-carousel,
.live-products-carousel .swiper-wrapper {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    overflow-x: hidden !important;
}

.live-products-carousel::-webkit-scrollbar,
.live-products-carousel .swiper-wrapper::-webkit-scrollbar {
    display: none !important;  /* Chrome, Safari, Opera */
}

/* Fallback flex layout (before Swiper initializes) */
.live-products-carousel:not(.swiper-ready) .swiper-wrapper {
    display: flex;
    gap: var(--live-products-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    padding-bottom: 0.25rem;
}

.live-products-carousel:not(.swiper-ready) .swiper-slide {
    width: var(--live-products-slide-width) !important;
    flex: 0 0 var(--live-products-slide-width);
    scroll-snap-align: start;
    display: flex;
}


/* ====== CHAT MESSAGE AVATARS ====== */
/* Uses dynamic colors generated by JavaScript */
.live-chat-avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
    box-shadow: 0 6px 14px rgba(15,23,42,0.14);
    overflow: hidden;
    background: #94a3b8;
}

.live-chat-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.live-chat-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.live-chat-avatar.has-image {
    background: transparent;
}

/* ====== SCROLLBAR STYLING (optional enhancement) ====== */
#liveChatMessages::-webkit-scrollbar {
    width: 6px;
}

#liveChatMessages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#liveChatMessages::-webkit-scrollbar-thumb {
    background: var(--mds-color-main);
    border-radius: 3px;
}

#liveChatMessages::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--mds-color-main) 80%, black);
}

/* ====== RESPONSIVE ADJUSTMENTS ====== */
@media (max-width: 991.98px) {
    /* Mobile: Always show cart button with prominent styling */
    .live-product-actions {
        top: auto;
        right: 0.55rem;
        bottom: 0.55rem;
        pointer-events: auto;
    }

    .live-product-card-mode .action-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background-color: var(--mds-color-main);
        border-color: var(--mds-color-main);
        color: #ffffff;
        box-shadow: 0 6px 16px rgba(var(--mds-color-main-rgb), 0.35);
        transition: all 0.2s ease;
    }

    .live-product-card-mode .action-btn:hover,
    .live-product-card-mode .action-btn:active {
        transform: scale(1.08) !important;
        box-shadow: 0 8px 20px rgba(var(--mds-color-main-rgb), 0.45);
    }

    .live-product-card-mode .action-btn i {
        margin-right: 0;
        color: inherit;
    }
    
}

@media (max-width: 768px) {
    .live-stage-card,
    .live-products-panel,
    .live-chat-panel {
        border-radius: 16px !important;
    }

    .live-video-status-overlay {
        top: 0.75rem;
        left: 0.75rem;
        right: auto;
    }

    .live-products-carousel {
        --live-products-gap: 8px;
        --live-products-slide-width: calc(48.75% - 4px);
    }

    .live-product-card:hover {
        transform: none;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    }

    .live-products-carousel:not(.swiper-ready) .swiper-wrapper {
        gap: 8px;
    }
    
    /* Smaller chat on mobile */
    #liveChatMessages {
        max-height: 300px !important;
    }
    
    /* Ensure chat input doesn't overflow on small screens */
    #chatInputArea .live-chat-input-row,
    #chatInputAreaMobile .live-chat-input-row {
        flex-wrap: nowrap !important;
    }
    
    #chatInputArea input[name="message"],
    #chatInputAreaMobile input[name="message"] {
        font-size: 14px !important;
        min-width: 0 !important; /* Prevents input from overflowing */
    }
    
    #chatInputArea button[type="submit"],
    #chatInputAreaMobile button[type="submit"] {
        width: 36px !important;
        height: 36px !important;
    }
    
    /* Mobile product card refinements */
    .live-product-body {
        padding: 0.65rem 0.65rem 0.75rem;
    }
    
    .live-product-title {
        min-height: 2.3rem;
        font-size: 0.82rem;
    }
    
    .live-product-current-price {
        font-size: 0.98rem;
        font-weight: 700;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .live-commerce-container {
        background: linear-gradient(180deg, rgba(var(--mds-color-main-rgb), 0.06) 0%, #f8f9fa 120px);
    }

    .live-products-carousel {
        --live-products-gap: 8px;
        --live-products-slide-width: calc(48.75% - 4px);
    }

    #liveChatMessages {
        max-height: 250px !important;
    }
    
    /* Reduce padding in chat messages for mobile */
    #liveChatMessages > div {
        margin-bottom: 8px !important;
    }
    
    /* Optimize product cards for very small screens */
    .live-product-card-mode .action-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        bottom: 0.45rem;
        right: 0.45rem;
    }
    
    .live-product-body {
        padding: 0.55rem 0.55rem 0.65rem;
    }
    
    .live-product-title {
        min-height: 2.1rem;
        font-size: 0.78rem;
        line-height: 1.35;
    }
    
    .live-product-current-price {
        font-size: 0.92rem;
    }
    
    .live-product-original-price {
        font-size: 0.68rem;
    }

}

@media (min-width: 480px) {
    .live-products-carousel {
        --live-products-gap: 10px;
        --live-products-slide-width: calc(42.55% - 4px);
    }
}

@media (min-width: 576px) {
    .live-products-carousel {
        --live-products-gap: 10px;
        --live-products-slide-width: calc(38.46% - 5px);
    }
}

@media (min-width: 768px) {
    .live-products-carousel {
        --live-products-gap: 12px;
        --live-products-slide-width: calc(32.26% - 8px);
    }
}

@media (min-width: 992px) {
    .live-products-carousel {
        --live-products-gap: 12px;
        --live-products-slide-width: calc(25% - 9px);
    }

    .live-product-body {
        padding: 0.82rem 0.85rem 0.92rem;
    }

    .live-product-title {
        min-height: 2.6rem;
    }

    .live-product-title a {
        font-size: 0.88rem;
    }

    .live-product-current-price {
        font-size: 1.08rem;
    }

}

@media (min-width: 1200px) {
    .live-products-carousel {
        --live-products-gap: 12px;
        --live-products-slide-width: calc(20% - 10px);
    }
}

@media (min-width: 1400px) {
    .live-products-carousel {
        --live-products-gap: 12px;
        --live-products-slide-width: calc(16.66% - 10px);
    }
}

/* ====== FLOATING VIDEO CLONE ====== */
#floatingVideoShell {
    transition: all 0.3s ease-in-out;
}

#floatingVideoShell:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 3px var(--mds-color-main) !important;
}

@media (max-width: 991.98px) {
    .global-live-mini-player {
        right: 12px;
        bottom: 72px;
        width: 220px;
        height: 124px;
    }

    #floatingShell {
        width: 250px !important;
        height: 150px !important;
        right: 12px !important;
        bottom: 72px !important;
    }

    #globalMiniPlayerShell {
        width: min(320px, calc(100vw - 24px)) !important;
        height: min(180px, calc((100vw - 24px) * 0.5625)) !important;
        right: 12px !important;
        bottom: 72px !important;
    }

    .global-live-close-btn {
        top: 6px;
        right: 6px;
        width: 40px;
        height: 40px;
    }

    #floatingVideoShell {
        pointer-events: auto !important;
        opacity: 0.96;
    }
}

/* ====== LIVE UI EVOLUTION: DESKTOP RAIL + MOBILE SHEET ====== */
.live-commerce-container {
    background:
        radial-gradient(circle at top, rgba(var(--mds-color-main-rgb), 0.16) 0%, rgba(var(--mds-color-main-rgb), 0.04) 26%, rgba(255, 255, 255, 0) 54%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}

.live-commerce-shell {
    max-width: 1480px;
    margin: 0 auto;
}

.live-stage-card,
.live-products-panel,
.live-chat-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(16px);
}

.live-stage-card {
    position: relative;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at top right, rgba(var(--mds-color-main-rgb), 0.22), rgba(15, 23, 42, 0) 38%),
        linear-gradient(180deg, #05070a 0%, #0f1720 100%);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.3);
}

.live-stage-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.live-video-container {
    position: relative;
    border-radius: 26px 26px 0 0;
}

.live-video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 10, 14, 0.16) 0%, rgba(6, 10, 14, 0) 28%, rgba(6, 10, 14, 0.1) 62%, rgba(6, 10, 14, 0.5) 100%),
        radial-gradient(circle at top left, rgba(var(--mds-color-main-rgb), 0.22), rgba(255, 255, 255, 0) 34%);
    pointer-events: none;
}

.live-stage-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(10, 14, 19, 0.62) 0%, rgba(10, 14, 19, 0.88) 100%);
}

.live-stage-copy {
    min-width: 0;
}

.live-stage-host {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.live-stage-host-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    background: #ffffff;
}

.live-stage-title {
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.live-stage-subtitle {
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.88rem;
}

.live-stage-chips {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.live-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.live-panel-header-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.live-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(var(--mds-color-main-rgb), 0.9);
}

.live-panel-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.live-panel-icon {
    color: var(--mds-color-main);
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.live-panel-subtitle {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.4;
    max-width: 24rem;
}

.live-panel-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    background: rgba(var(--mds-color-main-rgb), 0.1);
    border: 1px solid rgba(var(--mds-color-main-rgb), 0.14);
    color: #0f172a;
    font-size: 0.73rem;
    font-weight: 700;
    white-space: nowrap;
}

.live-panel-chip-soft {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(148, 163, 184, 0.18);
    color: #334155;
}

.live-commerce-desktop {
    --bs-gutter-x: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1.62fr) minmax(320px, 390px);
    gap: 1.2rem;
    align-items: stretch;
    max-width: 1460px;
}

.live-commerce-desktop > .col-lg-8,
.live-commerce-desktop > .col-lg-4 {
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.live-main-column,
.live-chat-column {
    display: flex;
    flex-direction: column;
}

.live-commerce-main {
    display: grid;
    gap: 0.95rem;
    align-content: start;
}

.live-commerce-desktop .live-stage-card,
.live-commerce-desktop .live-chat-panel {
    width: 100%;
    max-width: none;
}

.live-products-panel-below .card-body,
.live-products-panel-mobile .card-body {
    padding-top: 0.55rem !important;
}

.live-inline-profile-page-top {
    margin-bottom: 0;
}

.live-inline-profile-page-top .profile-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.live-inline-profile-page-top .profile-details .left {
    display: block;
    width: auto;
    padding-right: 0;
}

.live-inline-profile-page-top .profile-details .right {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.live-inline-profile-page-top .profile-details .img-profile {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    object-fit: cover;
}

.live-inline-profile-page-top .profile-details .description {
    margin-bottom: 0.45rem;
}

.live-inline-profile-page-top #products {
    display: none;
}

.live-products-panel-below {
    min-height: 224px;
    border-radius: 22px !important;
}

.live-products-panel-below .card-header {
    padding-bottom: 0.85rem !important;
}

.live-chat-column {
    display: flex;
    flex-direction: column;
    height: 1070px;
}

.live-chat-panel-desktop {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
}

.live-chat-panel-desktop .card-body {
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    flex: 1 1 auto;
}

.live-stage-card.live-stage-card-clean .live-video-container {
    border-radius: inherit;
}

.live-stage-card.live-stage-card-clean .live-video-container::after {
    border-radius: inherit;
}

.live-products-panel.live-products-panel-plain .card-body,
.live-chat-panel.live-chat-panel-plain .card-body {
    padding-top: 0.9rem !important;
}

.live-chat-header-minimal {
    display: flex;
    align-items: center;
    min-height: 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}

.live-chat-header-minimal h6 {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.live-products-panel .card-header,
.live-chat-panel .card-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}

.live-products-carousel {
    --live-products-gap: 12px;
    --live-products-slide-width: calc(50% - 6px);  /* Better default for desktop */
}

.live-products-panel-below .live-products-carousel {
    --live-products-gap: 16px;  /* Increased spacing */
    --live-products-slide-width: 240px;  /* Larger fixed size for below-video layout */
}

.live-product-card {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.16);
    border-color: rgba(var(--mds-color-main-rgb), 0.28);
}

.live-product-image-wrap {
    background:
        radial-gradient(circle at top right, rgba(var(--mds-color-main-rgb), 0.13), rgba(255, 255, 255, 0) 35%),
        linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.live-product-card .product-image-container a {
    display: block;
    min-height: 100%;
}

.live-product-card .product-image {
    transition: transform 0.45s ease;
}

.live-product-card:hover .product-image {
    transform: scale(1.03);
}

.live-product-actions {
    top: 0.85rem;
    right: 0.85rem;
    gap: 0.65rem;
}

.live-product-card .live-product-actions .action-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-product-card .live-product-actions .action-btn svg,
.live-product-card .live-product-actions .action-btn i {
    display: flex;
    margin: 10px auto;
    line-height: 1rem;
    font-size: 1.25rem;
    width: 1em;
    height: 1em;
}

.live-product-card .live-product-actions .action-btn:hover,
.live-product-card .live-product-actions .action-btn:focus-visible {
    background: var(--mds-color-main);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 20px 36px rgba(var(--mds-color-main-rgb), 0.35);
}

.live-product-body {
    padding: 0.95rem 0.95rem 1rem;
    gap: 0.3rem;
}

.live-product-title {
    min-height: 2.7rem;
}

.live-product-title a {
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 700;
    color: #0f172a;
}

.live-product-footer {
    margin-top: auto;
    padding-top: 0.15rem;
}

.live-product-price-stack {
    gap: 0.3rem;
}

.live-product-current-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.live-product-original-price {
    font-size: 0.78rem;
    text-decoration: line-through;
    color: #64748b;
    opacity: 0.85;
}

.live-product-badge {
    left: 0.85rem;
    top: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px !important;
    box-shadow: 0 12px 24px rgba(0, 59, 0, 0.18);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.live-empty-products-card {
    min-height: 252px;
    border-radius: 22px;
    border: 1px dashed rgba(var(--mds-color-main-rgb), 0.24);
    background:
        radial-gradient(circle at top, rgba(var(--mds-color-main-rgb), 0.08), rgba(255, 255, 255, 0) 48%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.live-chat-panel .card-body,
.live-chat-panel .card-footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.live-chat-panel .card-body {
    padding: 0.75rem !important;
}

.live-chat-state,
.live-chat-state.live-chat-state-compact {
    border-radius: 20px;
    border: 1px dashed rgba(var(--mds-color-main-rgb), 0.2);
    background:
        radial-gradient(circle at top, rgba(var(--mds-color-main-rgb), 0.08), rgba(255, 255, 255, 0) 46%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: 100%;
}

.live-mobile-sheet {
    position: sticky;
    bottom: 0.75rem;
    z-index: 18;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.live-mobile-stack {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.live-commerce-mobile-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.live-commerce-mobile-stacked .live-stage-card-mobile {
    position: relative;
    top: auto;
    z-index: auto;
    margin-bottom: 0;
}

.live-commerce-mobile-stacked .live-mobile-stack {
    gap: 1rem;
}

.live-commerce-mobile-stacked .live-mobile-stack .live-chat-panel-mobile,
.live-commerce-mobile-stacked .live-mobile-stack .live-products-panel-mobile {
    width: 100%;
}

.live-mobile-stack-section {
    width: 100%;
}

.live-mobile-stack .live-chat-panel-mobile {
    height: min(45vh, 360px);
    min-height: 320px;
}

.live-mobile-stack .live-products-panel-mobile {
    min-height: 0;
}

.live-mobile-stack .live-products-panel-mobile .card-body {
    padding-top: 0.9rem !important;
}

.live-mobile-sheet.is-docked {
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.18);
}

.live-mobile-sheet-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.live-mobile-sheet-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.live-mobile-sheet-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.live-mobile-sheet-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.live-mobile-sheet-grip {
    width: 2.7rem;
    height: 0.32rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--mds-color-main-rgb), 0.24), rgba(148, 163, 184, 0.26));
}

.live-mobile-sheet-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-mobile-sheet-toggle:hover,
.live-mobile-sheet-toggle:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

.live-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.2rem;
    border-radius: 18px;
    background: rgba(148, 163, 184, 0.12);
}

.live-mobile-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    will-change: background-color, transform;
    -webkit-tap-highlight-color: transparent;
}

.live-mobile-tab.is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.live-mobile-panels {
    position: relative;
    min-height: min(58vh, 540px);
    transition: min-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    will-change: min-height, opacity;
}

.live-mobile-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(12px);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.live-mobile-panel.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.live-mobile-sheet.is-collapsed .live-mobile-panels {
    min-height: 0;
    opacity: 0;
    transform: translateY(0.8rem);
    overflow: hidden;
}

.live-mobile-sheet.is-collapsed .live-mobile-panel {
    pointer-events: none;
}

.live-products-panel-mobile,
.live-chat-panel-mobile {
    width: 100%;
    min-height: min(58vh, 540px);
    margin: 0;
}

.live-products-panel-mobile .live-products-carousel {
    --live-products-gap: 14px;
    --live-products-slide-width: 75%;  /* Reduced from 86% for better sizing */
}

.live-chat-panel-mobile {
    height: min(58vh, 540px);
}

#chatInputArea {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

#chatInputAreaMobile {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

@media (max-width: 991.98px) {
    .live-commerce-mobile {
        padding-bottom: 1rem;
    }

    .live-commerce-mobile-stacked {
        padding-bottom: 0;
    }

    .live-stage-card-mobile {
        border-radius: 24px !important;
        overflow: hidden;
        position: sticky;
        top: 0.5rem;
        z-index: 8;
    }

    .live-commerce-mobile-stacked .live-stage-card-mobile {
        position: relative;
        top: auto;
        z-index: auto;
    }

    .live-stage-card-mobile .live-stage-meta {
        padding: 0.95rem 1rem 1rem;
    }

    .live-stage-host-mobile {
        gap: 0.75rem;
    }

    .live-stage-host-mobile .live-stage-host-avatar {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .live-stage-card-mobile .live-stage-title {
        font-size: 1.08rem;
    }

    .live-product-card {
        border-radius: 22px;
    }

    .live-product-card .live-product-actions .action-btn {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .live-product-body {
        padding: 0.85rem 0.85rem 0.92rem;
    }

    .live-product-title a {
        font-size: 0.88rem;
    }

    .live-product-current-price {
        font-size: 1.03rem;
    }

    .live-mobile-stack {
        position: relative;
        z-index: 1;
    }
}

@media (min-width: 992px) {
    .live-stage-card {
        border-radius: 28px !important;
    }

    .live-video-container {
        border-radius: 28px 28px 0 0;
    }

    .live-stage-meta {
        padding: 0.9rem 1rem 1rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }

    .live-stage-title {
        color: #0f172a;
        font-size: 1.08rem;
    }

    .live-stage-subtitle {
        color: #64748b;
        font-size: 0.8rem;
    }

    .live-stage-chips .live-panel-chip {
        padding: 0.38rem 0.62rem;
        font-size: 0.69rem;
    }

    .live-stage-host-avatar {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .live-products-panel-below .live-panel-title,
    .live-chat-panel-desktop .live-panel-title {
        font-size: 0.94rem;
    }

    .live-products-panel-below .live-panel-subtitle,
    .live-chat-panel-desktop .live-panel-subtitle {
        font-size: 0.75rem;
    }

    .live-products-panel-below .live-products-carousel:not(.swiper-ready) .swiper-wrapper {
        gap: 10px;
    }

    .live-products-panel-below .live-product-slide {
        min-width: 0;
    }

    .live-products-panel-below .live-product-card {
        border-radius: 18px;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    }

    .live-products-panel-below .live-product-card .product-image-container {
        min-height: 152px;
    }

    .live-products-panel-below .live-product-body {
        padding: 0.72rem 0.72rem 0.8rem;
        gap: 0.18rem;
    }

    .live-products-panel-below .live-product-title {
        min-height: 2.35rem;
    }

    .live-products-panel-below .live-product-title a {
        font-size: 0.8rem;
    }

    .live-products-panel-below .live-product-current-price {
        font-size: 0.9rem;
    }

    .live-products-panel-below .live-product-original-price {
        font-size: 0.67rem;
    }

    .live-products-panel-below .live-product-badge {
        top: 0.55rem;
        left: 0.55rem;
        font-size: 0.64rem;
        min-height: 1.3rem;
        padding: 0 0.48rem;
    }

    .live-products-panel-below .live-product-actions {
        top: 0.55rem;
        right: 0.55rem;
        gap: 0.4rem;
    }

    .live-products-panel-below .live-product-card .live-product-actions .action-btn {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }
}

@media (max-width: 575.98px) {
    .live-mobile-sheet {
        left: 0;
        right: 0;
        bottom: 0.4rem;
        padding: 0.75rem;
        border-radius: 24px;
    }

    .live-mobile-sheet-topbar {
        gap: 0.6rem;
    }

    .live-mobile-sheet-title {
        font-size: 0.95rem;
    }

    .live-mobile-tab {
        font-size: 0.8rem;
    }

    .live-products-panel-mobile .live-products-carousel {
        --live-products-slide-width: 88%;
    }

    .live-mobile-stack .live-chat-panel-mobile {
        height: min(42vh, 340px);
        min-height: 290px;
    }

    .live-commerce-mobile-stacked .live-mobile-stack .live-chat-panel-mobile {
        height: min(46vh, 360px);
        min-height: 300px;
    }
}

@media (max-width: 991.98px) {
    .live-commerce-desktop {
        display: none !important;
    }

    .live-commerce-mobile {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .live-commerce-mobile {
        display: none !important;
    }
}

/* ====== LIVE UX HOTFIXES ====== */
@keyframes liveChatFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes liveChatMessageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.youtube-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 0;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
}

.youtube-chat-messages.has-live-chat-state {
    justify-content: center;
}

.live-chat-state,
.live-chat-feedback {
    animation: liveChatFadeIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.live-chat-message,
.live-chat-system-message {
    opacity: 1;
    transform: translateY(0);
}

.live-chat-message.is-entering,
.live-chat-system-message.is-entering {
    opacity: 0;
    transform: translateY(12px);
}

.live-chat-message.is-entering.is-visible,
.live-chat-system-message.is-entering.is-visible {
    animation: liveChatMessageIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.live-chat-message.is-own {
    justify-content: flex-end;
}

.live-chat-message.is-own .live-chat-avatar {
    order: 2;
}

.live-chat-message.is-own .live-chat-message-bubble {
    order: 1;
    background: linear-gradient(180deg, rgba(var(--mds-color-main-rgb), 0.12) 0%, rgba(var(--mds-color-main-rgb), 0.07) 100%);
    border-color: rgba(var(--mds-color-main-rgb), 0.2);
}

.live-chat-message-bubble {
    border-radius: 18px;
}

.live-chat-message-text {
    white-space: normal;
}

.live-chat-indicator {
    top: 0;
    bottom: auto;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.live-chat-indicator-badge {
    pointer-events: auto;
}

#liveChatMessages,
#liveChatMessagesMobile {
    padding-bottom: 0.35rem;
}

#chatInputArea,
#chatInputAreaMobile {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 -14px 28px rgba(15, 23, 42, 0.06);
}

#chatInputArea .live-chat-input-row,
#chatInputAreaMobile .live-chat-input-row {
    align-items: flex-end;
    gap: 0.65rem;
}

#chatInputArea input[name="message"],
#chatInputAreaMobile input[name="message"] {
    min-height: 44px;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.96);
}

#chatInputArea .live-chat-send-btn,
#chatInputAreaMobile .live-chat-send-btn {
    width: 44px !important;
    height: 44px !important;
    box-shadow: 0 12px 24px rgba(var(--mds-color-main-rgb), 0.24);
}

.live-products-carousel {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.live-products-carousel .swiper-wrapper {
    align-items: stretch;
}

.live-products-carousel .swiper-slide {
    display: flex;
}

.live-products-carousel.swiper-ready,
.live-products-carousel.swiper-ready .swiper-wrapper {
    overflow: hidden !important;
}

.live-products-carousel.is-live-ticker .swiper-wrapper {
    transition-timing-function: linear !important;
}

.live-products-carousel:not(.swiper-ready) {
    overflow: visible !important;
}

.live-products-carousel:not(.swiper-ready) .swiper-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 0.35rem;
}

.live-products-panel-below .live-products-carousel {
    --live-products-gap: 18px;
}

.live-products-panel-mobile .live-products-carousel {
    --live-products-gap: 14px;
    --live-products-slide-width: min(82vw, 292px);
}

.live-product-card {
    will-change: transform;
}

.live-product-card .product-image-container {
    min-height: 170px;
}

.live-product-card .live-product-actions .action-btn {
    backdrop-filter: blur(12px);
}

.live-product-badge {
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.live-commerce-mobile {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.live-mobile-sheet {
    bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
    margin-top: -0.6rem;
}

.live-mobile-panels {
    min-height: 0;
    display: grid;
    overflow: hidden;
}

.live-mobile-panel {
    position: relative;
    inset: auto;
    display: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    min-height: clamp(320px, 56vh, 520px);
}

.live-mobile-panel.is-active {
    display: flex;
    animation: liveChatFadeIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.live-mobile-sheet.is-collapsed .live-mobile-panels,
.live-mobile-sheet.is-collapsed .live-mobile-panel {
    display: none;
}

.live-products-panel-mobile,
.live-chat-panel-mobile {
    min-height: clamp(320px, 56vh, 520px);
}

.live-chat-panel-mobile {
    height: auto;
}

#chatInputAreaMobile {
    padding: 0.75rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 0px)) !important;
}

.live-mobile-tab.has-unread {
    background: rgba(var(--mds-color-main-rgb), 0.14);
    color: var(--mds-color-main);
}

.live-mobile-tab.has-unread::after {
    content: '';
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--mds-color-main);
    box-shadow: 0 0 0 4px rgba(var(--mds-color-main-rgb), 0.12);
}

@media (max-width: 991.98px) and (max-height: 780px) {
    .live-stage-card-mobile {
        position: relative;
        top: auto;
    }

    .live-mobile-sheet {
        position: relative;
        bottom: auto;
        margin-top: 0;
    }
}

@media (max-width: 575.98px) {
    .live-mobile-sheet {
        padding: 0.72rem;
        border-radius: 22px;
        margin-top: -0.35rem;
    }

    .live-products-panel-mobile .live-products-carousel {
        --live-products-slide-width: min(86vw, 280px);
    }

    .live-chat-panel-mobile,
    .live-mobile-panel {
        min-height: clamp(300px, 52vh, 430px);
    }

    #chatInputAreaMobile input[name="message"] {
        font-size: 16px !important;
    }
}

.live-commerce-shell {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.live-vendor-footer-shell {
    width: min(100%, 1344px);
    margin: 0 auto;
}

.live-vendor-footer {
    border-radius: 28px !important;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at top right, rgba(var(--mds-color-main-rgb), 0.12), rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.live-vendor-footer-main {
    gap: 1.35rem;
    padding: 1.25rem;
}

.live-vendor-footer-identity {
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
}

.live-vendor-footer-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.live-vendor-footer-avatar {
    width: 96px;
    height: 96px;
    display: block;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.live-vendor-footer-live-pill {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    padding: 0.2rem 0.58rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4d4f 0%, #d90429 100%);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(217, 4, 41, 0.2);
}

.live-vendor-footer-copy {
    min-width: 0;
    width: 100%;
    max-width: none;
}

.live-vendor-footer-heading {
    max-width: 100%;
}

.live-vendor-footer-name {
    margin: 0;
    max-width: min(100%, 44ch);
    color: #0f172a;
    font-size: 1.34rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.live-vendor-footer-location {
    max-width: 100%;
    color: #64748b;
    line-height: 1.5;
}

.live-vendor-footer-location i {
    color: var(--mds-color-main);
    flex-shrink: 0;
}

.live-vendor-footer-rating {
    color: #475569;
    flex-wrap: wrap;
}

.live-vendor-footer-description {
    display: block !important;
    width: 100%;
    max-width: 820px;
    margin-left: 0;
    margin-right: auto;
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.55;
    text-align: left;
    white-space: normal;
    overflow: visible !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

.live-vendor-footer-side {
    min-width: 0;
    width: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
}

.live-vendor-footer-side.is-share-only {
    justify-content: center;
}

.live-vendor-footer-buttons {
    width: auto;
    gap: 0.7rem;
}

.live-vendor-footer-follow-form {
    display: flex;
    width: auto;
    justify-content: flex-start;
}

.live-vendor-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: auto;
    min-height: 48px;
    border-radius: 18px;
    font-weight: 800;
    padding-inline: 1rem;
}

.live-vendor-footer-cta i {
    line-height: 1;
    font-size: 1rem;
}

.live-vendor-footer-follow-form .live-vendor-footer-cta {
    width: auto;
}

.live-vendor-footer-share {
    width: auto;
    min-width: 0;
    padding: 0.1rem 0;
    color: #475569;
    font-size: 0.92rem;
}

.live-vendor-footer-share strong {
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
}

.live-vendor-footer-share-links {
    min-width: 0;
    width: auto;
    max-width: 100%;
}

.live-vendor-footer-share-links .product-share {
    width: auto;
    float: none;
    text-align: left;
}

.live-vendor-footer-share-links .product-share ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    float: none;
}

.live-vendor-footer-share-links .product-share li {
    margin: 0;
}

.live-vendor-footer-share-links .product-share a,
.live-vendor-footer-share-links .product-share button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07) !important;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.live-vendor-footer-share-links .product-share a:visited,
.live-vendor-footer-share-links .product-share a:active,
.live-vendor-footer-share-links .product-share button:active,
.live-vendor-footer-share-links .product-share a:focus:not(:focus-visible) {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07) !important;
    transform: none;
}

.live-vendor-footer-share-links .product-share a:hover,
.live-vendor-footer-share-links .product-share button:hover,
.live-vendor-footer-share-links .product-share a:focus-visible,
.live-vendor-footer-share-links .product-share button:focus-visible {
    color: #ffffff !important;
    background: var(--mds-color-main) !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(var(--mds-color-main-rgb), 0.25) !important;
}

.live-vendor-footer-share-links .product-share i,
.live-vendor-footer-share-links .product-share i:before,
.live-vendor-footer-share-links .product-share .icon-whatsapp,
.live-vendor-footer-share-links .product-share .icon-whatsapp:before {
    color: inherit !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 1;
}

@media (min-width: 992px) {
    .live-vendor-footer {
        border-radius: 0 !important;
        background: rgba(255, 255, 255, 0.98);
        border-color: transparent;
        box-shadow: none !important;
    }

    .live-vendor-footer-main {
        justify-content: flex-start;
        padding: 1.55rem 1.75rem;
    }

    .live-vendor-footer-identity {
        max-width: none;
        justify-content: flex-start;
        text-align: left;
        column-gap: 2rem;
    }

    .live-vendor-footer-avatar-wrap {
        margin-right: 0;
        padding-top: 0;
    }

    .live-vendor-footer-avatar {
        width: 180px;
        height: 180px;
        border-radius: 4px;
        box-shadow: none;
    }

    .live-vendor-footer-copy {
        max-width: none;
        padding-top: 0;
        gap: 0.55rem !important;
    }

    .live-vendor-footer-heading {
        gap: 0.5rem 0.65rem !important;
        margin-bottom: 0 !important;
    }

    .live-vendor-footer-name {
        font-size: 1.62rem;
        line-height: 1.1;
        font-weight: 600;
        max-width: min(100%, 52ch);
    }

    .live-vendor-footer-share {
        gap: 0.45rem !important;
        padding: 0;
        margin-bottom: 0.25rem !important;
    }

    .live-vendor-footer-share strong {
        font-size: 0.88rem;
        letter-spacing: 0;
        text-transform: none;
        color: #222;
    }

    .live-vendor-footer-share-links .product-share ul {
        gap: 0.85rem;
    }

    .live-vendor-footer-share-links .product-share a,
    .live-vendor-footer-share-links .product-share button {
        width: auto;
        height: auto;
        border: 0 !important;
        border-radius: 0;
        background: transparent !important;
        color: #7b808a !important;
        box-shadow: none !important;
        font-size: 0.95rem;
    }

    .live-vendor-footer-share-links .product-share a:visited,
    .live-vendor-footer-share-links .product-share a:active,
    .live-vendor-footer-share-links .product-share button:active,
    .live-vendor-footer-share-links .product-share a:focus:not(:focus-visible) {
        color: #7b808a !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .live-vendor-footer-share-links .product-share a:hover,
    .live-vendor-footer-share-links .product-share button:hover,
    .live-vendor-footer-share-links .product-share a:focus-visible,
    .live-vendor-footer-share-links .product-share button:focus-visible {
        color: var(--mds-color-main) !important;
        background: transparent !important;
        transform: none;
        box-shadow: none !important;
    }

    .live-vendor-footer-description {
        max-width: none;
        margin-top: 0.35rem !important;
        margin-bottom: 0.35rem !important;
        color: #333;
        line-height: 1.7;
    }

    .live-vendor-footer-location {
        max-width: none;
        line-height: 1.5;
    }

    .live-vendor-footer-side {
        flex: 0 0 auto;
        margin-inline: 0;
        align-items: flex-start;
        margin-top: 0.35rem;
    }
}

@media (max-width: 991.98px) {
    .live-vendor-footer {
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.98);
        border-color: transparent;
        box-shadow: none !important;
    }

    .live-vendor-footer-main {
        padding: 1.15rem;
    }

    .live-vendor-footer-identity {
        gap: 1rem;
    }

    .live-vendor-footer-avatar {
        width: 120px;
        height: 120px;
        border-radius: 4px;
        box-shadow: none;
    }

    .live-vendor-footer-name {
        font-size: 1.38rem;
        line-height: 1.15;
        font-weight: 600;
    }

    .live-vendor-footer-copy {
        gap: 0.55rem !important;
    }

    .live-vendor-footer-side {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .live-vendor-footer-follow-form,
    .live-vendor-footer-cta {
        width: auto;
    }

    .live-vendor-footer-share {
        gap: 0.45rem !important;
        padding: 0;
        align-items: center;
    }

    .live-vendor-footer-share strong {
        font-size: 0.84rem;
        letter-spacing: 0;
        text-transform: none;
        color: #222;
    }

    .live-vendor-footer-share-links .product-share ul {
        gap: 0.75rem;
    }

    .live-vendor-footer-share-links .product-share a,
    .live-vendor-footer-share-links .product-share button {
        width: auto;
        height: auto;
        border: 0 !important;
        border-radius: 0;
        background: transparent !important;
        color: #7b808a !important;
        box-shadow: none !important;
        font-size: 0.94rem;
    }

    .live-vendor-footer-share-links .product-share a:visited,
    .live-vendor-footer-share-links .product-share a:active,
    .live-vendor-footer-share-links .product-share button:active,
    .live-vendor-footer-share-links .product-share a:focus:not(:focus-visible) {
        color: #7b808a !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .live-vendor-footer-share-links .product-share a:hover,
    .live-vendor-footer-share-links .product-share button:hover,
    .live-vendor-footer-share-links .product-share a:focus-visible,
    .live-vendor-footer-share-links .product-share button:focus-visible {
        color: var(--mds-color-main) !important;
        background: transparent !important;
        transform: none;
        box-shadow: none !important;
    }

    .live-vendor-footer-description {
        max-width: 680px;
        margin-top: 0.35rem !important;
        line-height: 1.65;
    }
}

@media (max-width: 575.98px) {
    .live-vendor-footer-main {
        gap: 1rem;
        padding: 1rem;
    }

    .live-vendor-footer-identity {
        gap: 0.9rem;
    }

    .live-vendor-footer-avatar-wrap {
        margin-bottom: 0.15rem;
    }

    .live-vendor-footer-avatar {
        width: 112px;
        height: 112px;
    }

    .live-vendor-footer-share {
        padding: 0;
        align-items: center;
        text-align: center;
    }

    .live-vendor-footer-description {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        text-align: center;
    }

    .live-vendor-footer-share-links .product-share {
        text-align: center;
    }

    .live-vendor-footer-share-links .product-share ul {
        justify-content: center;
    }

    .live-vendor-footer-share strong {
        font-size: 0.82rem;
    }

    .live-vendor-footer-share-links .product-share ul {
        gap: 0.7rem;
    }

    .live-vendor-footer-share-links .product-share a,
    .live-vendor-footer-share-links .product-share button {
        width: auto;
        height: auto;
        border-radius: 0;
        font-size: 0.84rem;
    }

    .live-vendor-footer-location {
        font-size: 0.84rem;
    }

    .live-vendor-footer-description {
        font-size: 0.92rem;
    }

    .live-vendor-footer-cta {
        min-height: 44px;
        padding-inline: 0.85rem;
        font-size: 0.92rem;
    }

    .live-vendor-footer-cta i {
        font-size: 0.92rem;
    }
}

/* ====== LIVE MOBILE + PRODUCT STABILITY OVERRIDES ====== */
.live-products-panel-below,
.live-products-panel-mobile {
    overflow: hidden;
}

.live-products-panel-mobile {
    min-height: 0 !important;
    border-radius: 24px !important;
}

.live-products-panel-mobile .card-body {
    padding: 0.95rem !important;
}

.live-products-panel-below .live-products-carousel,
.live-products-panel-mobile .live-products-carousel {
    overflow: hidden;
    padding: 0.08rem 0.08rem 0.18rem;
}

.live-products-panel-below .swiper-wrapper,
.live-products-panel-mobile .swiper-wrapper {
    align-items: stretch !important;
}

.live-products-panel-below .swiper-slide,
.live-products-panel-mobile .swiper-slide {
    height: auto !important;
    display: flex !important;
}

.live-products-panel-below .live-product-card,
.live-products-panel-mobile .live-product-card {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: grid;
    grid-template-rows: minmax(0, auto) 1fr;
}

.live-products-panel-below .live-product-image-wrap,
.live-products-panel-mobile .live-product-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 0 !important;
}

.live-products-panel-below .live-product-card .product-image-container a,
.live-products-panel-mobile .live-product-card .product-image-container a {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.live-products-panel-below .live-product-card .product-image,
.live-products-panel-mobile .live-product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.live-products-panel-below .live-product-body,
.live-products-panel-mobile .live-product-body {
    min-height: 122px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.live-products-panel-below .live-product-title,
.live-products-panel-mobile .live-product-title {
    min-height: 2.5rem;
}

.live-products-panel-below .live-product-footer,
.live-products-panel-mobile .live-product-footer {
    margin-top: auto;
}

.live-products-panel-mobile .live-products-carousel {
    --live-products-gap: 12px;
    --live-products-slide-width: min(70vw, 228px);
}

.live-products-panel-mobile .live-product-card {
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.live-products-panel-mobile .live-product-body {
    padding: 0.82rem 0.82rem 0.9rem;
}

.live-products-panel-mobile .live-product-title a {
    font-size: 0.86rem;
    line-height: 1.38;
}

.live-products-panel-mobile .live-product-current-price {
    font-size: 1rem;
}

.live-products-panel-mobile .live-product-original-price {
    font-size: 0.72rem;
}

.live-products-panel-mobile .live-product-actions {
    top: 0.65rem;
    right: 0.65rem;
    gap: 0.45rem;
}

.live-products-panel-mobile .live-product-card .live-product-actions .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 13px;
}

.live-commerce-mobile,
.live-commerce-mobile-stacked {
    gap: 0.85rem;
}

.live-mobile-stack {
    gap: 0.85rem;
}

.live-mobile-sheet {
    margin-top: 0.25rem !important;
}

.live-mobile-panels {
    min-height: min(42vh, 360px);
}

.live-chat-panel-mobile {
    min-height: clamp(240px, 34vh, 320px);
}

.live-vendor-footer-live-pill {
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    transform: none;
    min-height: 1.42rem;
    padding: 0 0.52rem;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 18px rgba(217, 4, 41, 0.22);
}

.live-vendor-footer-cta {
    gap: 0.35rem;
}

.live-vendor-footer-follow-form .live-vendor-footer-cta,
.live-vendor-footer-buttons > .live-vendor-footer-cta:last-child {
    min-width: 138px;
}

@media (max-width: 991.98px) {
    .live-stage-card-mobile {
        position: relative !important;
        top: auto !important;
        margin-bottom: 0 !important;
    }

    .live-products-panel-mobile .card-body {
        padding: 0.72rem !important;
    }

    .live-mobile-sheet {
        margin-top: 0.15rem !important;
        border-radius: 24px;
        padding: 0.72rem;
    }

    .live-mobile-stack .live-chat-panel-mobile,
    .live-commerce-mobile-stacked .live-mobile-stack .live-chat-panel-mobile {
        height: min(34vh, 280px);
        min-height: 240px;
    }

    .live-video-status-overlay {
        top: 0.72rem;
        left: 0.72rem;
        right: 0.72rem;
        gap: 0.5rem;
    }

    .live-vendor-footer-live-pill {
        top: auto;
        right: auto;
    }
}

@media (max-width: 575.98px) {
    .live-products-panel-mobile .live-products-carousel {
        --live-products-slide-width: min(68vw, 214px);
    }

    .live-products-panel-mobile .live-product-card {
        border-radius: 18px;
    }

    .live-products-panel-mobile .live-product-body {
        min-height: 114px;
        padding: 0.78rem 0.78rem 0.85rem;
    }

    .live-mobile-sheet {
        margin-top: 0.12rem !important;
        padding: 0.72rem;
    }

    .live-mobile-panels {
        min-height: min(38vh, 320px);
    }

    .live-chat-panel-mobile {
        min-height: clamp(220px, 31vh, 280px);
    }

    .live-vendor-footer-live-pill {
        min-height: 1.32rem;
        padding: 0 0.46rem;
        font-size: 0.56rem;
    }
}

/* ====== LIVE COMMERCE REFATORACAO DE RAIL E MOBILE ====== */
.live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below,
.live-commerce-shell.live-commerce-shell-refactor .live-products-panel-mobile {
    --live-product-slot-width: clamp(214px, 23vw, 252px);
    overflow: hidden;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-panel-mobile {
    --live-product-slot-width: clamp(176px, 62vw, 208px);
    min-height: 0 !important;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .card-body,
.live-commerce-shell.live-commerce-shell-refactor .live-products-panel-mobile .card-body {
    padding: 0.9rem !important;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-rail-shell {
    display: grid;
    gap: 0.7rem;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-rail-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 40px;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(15, 23, 42, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18), 0 3px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    padding: 0;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
    fill: none;
    pointer-events: none;
    flex-shrink: 0;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn:hover,
.live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn:focus-visible {
    transform: translateY(-2px) scale(1.05);
    color: #ffffff;
    background: var(--mds-color-main);
    border-color: var(--mds-color-main);
    box-shadow: 0 14px 28px rgba(var(--mds-color-main-rgb), 0.35), 0 6px 12px rgba(var(--mds-color-main-rgb), 0.25);
    outline: none;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 8px rgba(var(--mds-color-main-rgb), 0.25);
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn[disabled] {
    opacity: 0.45;
    box-shadow: none;
    transform: none;
    pointer-events: none;
    cursor: not-allowed;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -0.12rem;
    padding: 0.1rem 0.12rem 0.35rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.12rem;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-viewport::-webkit-scrollbar {
    display: none;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-track {
    display: flex;
    align-items: stretch;
    gap: 0.9rem;
    width: max-content;
    min-width: 100%;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-viewport.is-empty .live-products-track {
    width: 100%;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-slot {
    width: var(--live-product-slot-width);
    min-width: var(--live-product-slot-width);
    flex: 0 0 var(--live-product-slot-width);
    display: flex;
    min-height: 0;
    scroll-snap-align: start;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-viewport.is-single .live-products-track {
    width: 100%;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-viewport.is-single .live-product-slot {
    width: min(100%, 320px);
    min-width: min(100%, 320px);
    flex-basis: min(100%, 320px);
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-slot-empty {
    width: 100%;
    min-width: 100%;
    flex-basis: 100%;
}

.live-commerce-shell.live-commerce-shell-refactor .live-empty-products-card {
    width: 100%;
    min-height: 216px;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-card {
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 0 !important;
    overflow: hidden;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-card .product-image-container {
    min-height: 0;
    height: auto;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-card .product-image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-card .product-image-container .live-product-media {
    display: block;
    width: 100%;
    height: 100%;
    cursor: default;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-actions {
    top: 0.7rem;
    right: 0.7rem;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-cart-feedback {
    position: absolute;
    top: calc(100% + 0.48rem);
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.7rem;
    max-width: 10.75rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    z-index: 2;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-cart-feedback.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-card .live-product-actions .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 13px;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-card .live-product-actions .live-product-view-options-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.72;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-body {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.82rem 0.82rem 0.88rem;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-title {
    min-height: 2.45rem;
    margin-bottom: 0.38rem;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.38;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-title .live-product-title-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.38;
    color: inherit;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-footer {
    margin-top: auto;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-current-price {
    font-size: 1rem;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-original-price {
    font-size: 0.72rem;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-viewport .btn-item-add-to-cart[data-in-cart="1"] {
    background: var(--mds-color-main);
    color: #ffffff;
}

.live-commerce-shell.live-commerce-shell-refactor .live-commerce-mobile,
.live-commerce-shell.live-commerce-shell-refactor .live-commerce-mobile-stacked,
.live-commerce-shell.live-commerce-shell-refactor .live-mobile-stack {
    gap: 0.75rem;
}

.live-commerce-shell.live-commerce-shell-refactor .live-stage-card-mobile {
    position: relative !important;
    top: auto !important;
    margin-bottom: 0 !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.live-commerce-shell.live-commerce-shell-refactor .live-mobile-sheet {
    position: relative !important;
    bottom: auto !important;
    margin-top: 0 !important;
    padding: 0.75rem !important;
    border-radius: 22px !important;
}

.live-commerce-shell.live-commerce-shell-refactor .live-mobile-sheet.is-docked {
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.live-commerce-shell.live-commerce-shell-refactor .live-mobile-tabs {
    gap: 0.4rem;
}

.live-commerce-shell.live-commerce-shell-refactor .live-mobile-tab {
    min-height: 40px;
    font-size: 0.8rem;
}

.live-commerce-shell.live-commerce-shell-refactor .live-mobile-panels,
.live-commerce-shell.live-commerce-shell-refactor .live-mobile-panel {
    min-height: 0 !important;
    height: auto !important;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-panel-mobile,
.live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-mobile {
    min-height: 0 !important;
    height: auto !important;
}

.live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-mobile .youtube-chat-messages,
.live-commerce-shell.live-commerce-shell-refactor .live-mobile-stack .live-chat-panel-mobile .youtube-chat-messages {
    min-height: 180px;
    max-height: min(34vh, 250px);
}

.live-commerce-shell.live-commerce-shell-refactor .live-mobile-stack .live-chat-panel-mobile,
.live-commerce-shell.live-commerce-shell-refactor .live-commerce-mobile-stacked .live-mobile-stack .live-chat-panel-mobile {
    min-height: 0 !important;
    height: auto !important;
}

.live-commerce-shell.live-commerce-shell-refactor #chatInputAreaMobile {
    padding: 0.7rem 0.72rem calc(0.82rem + env(safe-area-inset-bottom, 0px)) !important;
}

.live-commerce-shell.live-commerce-shell-refactor .live-video-status-overlay {
    top: 0.7rem;
    left: 0.7rem;
    right: 0.7rem;
}

.live-commerce-shell.live-commerce-shell-refactor .live-vendor-footer-live-pill {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    min-height: 1.36rem;
    padding: 0 0.52rem;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
}

@media (max-width: 991.98px) {
    .live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        border-width: 2px;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn i,
    .live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn svg {
        font-size: 1.2rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-product-cart-feedback {
        top: calc(100% + 0.4rem);
        max-width: 9.25rem;
        min-height: 1.55rem;
        padding: 0.24rem 0.54rem;
        font-size: 0.63rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-mobile .card-body {
        padding: 0.78rem !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-track {
        gap: 0.75rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-mobile .youtube-chat-messages {
        min-height: 168px;
        max-height: min(32vh, 228px);
    }
}

@media (max-width: 575.98px) {
    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-mobile {
        --live-product-slot-width: clamp(162px, 70vw, 196px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-mobile .card-body,
    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-sheet {
        padding: 0.68rem !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-track {
        gap: 0.68rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-product-card {
        border-radius: 18px;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-product-body {
        min-height: 110px;
        padding: 0.76rem 0.76rem 0.82rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-mobile .youtube-chat-messages {
        min-height: 154px;
        max-height: min(30vh, 210px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-tab {
        min-height: 38px;
        font-size: 0.78rem;
    }
}

/* ====== CITY LIVE LISTING ====== */
.live-city-page {
    margin-top: 30px;
    margin-bottom: 50px;
}

.live-city-section {
    --live-city-surface: #ffffff;
    --live-city-surface-soft: #f8fafc;
    --live-city-text: #0f172a;
    --live-city-text-muted: #5f6c80;
    --live-city-border: rgba(15, 23, 42, 0.08);
    --live-city-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    --live-city-shadow-hover: 0 28px 70px rgba(15, 23, 42, 0.14);
    --live-city-accent: #ff4d4f;
    position: relative;
    padding: clamp(1.15rem, 2vw, 2rem);
    border: 1px solid rgba(var(--mds-color-main-rgb, 15, 23, 42), 0.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(var(--mds-color-main-rgb, 15, 23, 42), 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--live-city-shadow);
}

.live-city-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.live-city-section__heading {
    min-width: 0;
}

.live-city-section__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 77, 79, 0.1);
    color: var(--live-city-accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.live-city-section__title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.8rem 0 0;
    color: var(--live-city-text);
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 800;
    line-height: 1.1;
}

.live-city-section__title i {
    color: var(--live-city-accent);
}

.live-city-section__summary {
    max-width: 680px;
    margin: 0.7rem 0 0;
    color: var(--live-city-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.live-city-section__count {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.05rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--live-city-text);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.live-city-section__count strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0.3rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--live-city-accent), #ff7a59);
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
}

.live-city-section__count span {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.live-city-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.live-city-grid__item {
    min-width: 0;
}

.live-city-grid__item--featured .live-city-card {
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
}

.live-city-section[data-live-city-collapsed="true"] [data-live-city-extra="true"] {
    display: none;
}

.live-city-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--live-city-border);
    border-radius: 24px;
    background: var(--live-city-surface);
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.live-city-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--mds-color-main-rgb, 15, 23, 42), 0.18);
    box-shadow: var(--live-city-shadow-hover);
}

.live-city-card__media-link,
.live-city-card__title a,
.live-city-card__action {
    text-decoration: none !important;
}

.live-city-card__media-link:focus-visible,
.live-city-card__title a:focus-visible,
.live-city-card__action:focus-visible,
.live-city-load-more:focus-visible {
    outline: 3px solid rgba(var(--mds-color-main-rgb, 15, 23, 42), 0.18);
    outline-offset: 3px;
}

.live-city-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.live-city-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.66) 100%);
    pointer-events: none;
}

.live-city-thumbnail__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.live-city-card:hover .live-city-thumbnail__image {
    transform: scale(1.04);
}

.live-city-thumbnail__fallback {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.25rem;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
}

.live-city-thumbnail__fallback::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(8px);
}

.live-city-card[data-live-platform="youtube"] .live-city-thumbnail__fallback {
    background: linear-gradient(135deg, #111827 0%, #dc2626 62%, #fb923c 100%);
}

.live-city-card[data-live-platform="facebook"] .live-city-thumbnail__fallback {
    background: linear-gradient(135deg, #102042 0%, #1877f2 65%, #6eb6ff 100%);
}

.live-city-card[data-live-platform="instagram"] .live-city-thumbnail__fallback {
    background: linear-gradient(135deg, #4c1d95 0%, #c026d3 45%, #f97316 100%);
}

.live-city-thumbnail__avatar,
.live-city-thumbnail__fallback-name,
.live-city-thumbnail__fallback-platform {
    position: relative;
    z-index: 1;
}

.live-city-thumbnail__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.live-city-thumbnail__fallback-name {
    max-width: 90%;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.25;
}

.live-city-thumbnail__fallback-platform {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.28);
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.live-city-badge,
.live-city-thumbnail__cta {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
}

.live-city-badge {
    top: 1rem;
    left: 1rem;
    padding: 0.52rem 0.82rem;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.live-city-badge .fa-circle {
    color: var(--live-city-accent);
    font-size: 0.62rem;
    animation: liveCityPulse 1.5s ease-in-out infinite;
}

.live-city-thumbnail__cta {
    left: 1rem;
    bottom: 1rem;
    padding: 0.62rem 0.9rem;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 0.8rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
}

.live-city-card__body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.2rem 1.25rem;
}

.live-city-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
}

.live-city-card__avatar-wrap {
    flex-shrink: 0;
}

.live-city-card__avatar {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--mds-color-main-rgb, 15, 23, 42), 0.12);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.live-city-card__content {
    min-width: 0;
}

.live-city-card__title {
    margin: 0;
    color: var(--live-city-text);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-city-card__title a {
    color: inherit;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-city-card__title a:hover {
    color: var(--mds-color-main, #0f766e);
}

.live-city-card__description {
    margin: 0.22rem 0 0.62rem;
    overflow: hidden;
    color: var(--live-city-text-muted);
    font-size: 0.76rem;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.live-city-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.live-city-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 999px;
    background: var(--live-city-surface-soft);
    color: #46556b;
    font-size: 0.76rem;
    font-weight: 600;
}

.live-city-card__actions {
    flex-shrink: 0;
    align-self: center;
}

.live-city-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 132px;
    padding: 0.84rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--mds-color-main, #0f766e), #0f766e);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(var(--mds-color-main-rgb, 15, 23, 42), 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.live-city-card__action:hover {
    transform: translateY(-1px);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(var(--mds-color-main-rgb, 15, 23, 42), 0.28);
}

.live-city-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.8rem;
}

.live-city-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-width: min(100%, 360px);
    padding: 0.92rem 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--live-city-text);
    font-size: 0.96rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.live-city-load-more:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--mds-color-main-rgb, 15, 23, 42), 0.18);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.live-city-load-more__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    min-height: 2.1rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(var(--mds-color-main-rgb, 15, 23, 42), 0.1);
    color: var(--mds-color-main, #0f766e);
    font-size: 0.78rem;
    font-weight: 800;
}

.live-city-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 320px;
    padding: 1.5rem;
    text-align: center;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
}

.live-city-empty-state__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--mds-color-main-rgb, 15, 23, 42), 0.1);
    color: var(--mds-color-main, #0f766e);
    font-size: 1.5rem;
}

.live-city-empty-state h2 {
    margin: 0;
    color: var(--live-city-text);
    font-size: 1.4rem;
    font-weight: 800;
}

.live-city-empty-state p {
    max-width: 520px;
    margin: 0;
    color: var(--live-city-text-muted);
    font-size: 0.97rem;
    line-height: 1.65;
}

@keyframes liveCityPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.28);
        opacity: 0.72;
    }
}

@media (min-width: 768px) {
    .live-city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .live-city-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .live-city-section__header {
        align-items: flex-start;
        flex-direction: column;
    }


    .live-city-card__body {
        flex-direction: column;
        align-items: stretch;
    }

    .live-city-card__actions {
        align-self: stretch;
    }

    .live-city-card__action {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .live-city-section {
        padding: 1rem;
        border-radius: 22px;
    }

    .live-city-section__title {
        gap: 0.55rem;
        font-size: 1.5rem;
    }

    .live-city-section__summary {
        font-size: 0.94rem;
    }

    .live-city-thumbnail__fallback-name {
        font-size: 1.02rem;
    }

    .live-city-card__body {
        padding: 1rem;
    }

    .live-city-load-more {
        width: 100%;
    }
}

@media (max-width: 399.98px) {
    .live-city-badge,
    .live-city-thumbnail__cta {
        font-size: 0.68rem;
    }

    .live-city-badge {
        top: 0.75rem;
    }

    .live-city-badge {
        left: 0.75rem;
        padding: 0.45rem 0.68rem;
    }

    .live-city-thumbnail__cta {
        left: 0.75rem;
        bottom: 0.75rem;
        padding: 0.56rem 0.74rem;
    }

    .live-city-card__identity {
        gap: 0.75rem;
    }
}

/* Live commerce layout: stable video, products, and chat areas. */
.live-commerce-shell.live-commerce-shell-refactor {
    --live-layout-gap: clamp(16px, 2vw, 24px);
    --live-panel-radius: 18px;
    --live-panel-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    --live-products-area-height: clamp(360px, 34vh, 420px);
    --live-mobile-products-area-height: clamp(208px, 32vh, 300px);
    --live-mobile-chat-area-height: clamp(236px, 36vh, 340px);
}

.live-commerce-shell.live-commerce-shell-refactor .live-stage-card,
.live-commerce-shell.live-commerce-shell-refactor .live-products-panel,
.live-commerce-shell.live-commerce-shell-refactor .live-chat-panel {
    border-radius: var(--live-panel-radius);
    box-shadow: var(--live-panel-shadow);
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-panel .card-body,
.live-commerce-shell.live-commerce-shell-refactor .live-chat-panel .card-body {
    min-height: 0;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-rail-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-viewport {
    height: 100%;
    min-height: 0;
}

.live-commerce-shell.live-commerce-shell-refactor .live-products-viewport.is-empty .live-products-track,
.live-commerce-shell.live-commerce-shell-refactor .live-product-slot-empty,
.live-commerce-shell.live-commerce-shell-refactor .live-empty-products-card {
    width: 100%;
    min-width: 100%;
    min-height: 100%;
}

.live-commerce-shell.live-commerce-shell-refactor .live-empty-products-card {
    display: flex;
    border: 1px dashed rgba(15, 23, 42, 0.1);
    border-radius: calc(var(--live-panel-radius) - 6px);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: none;
}

.live-commerce-shell.live-commerce-shell-refactor .live-empty-products-card .card-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.live-commerce-shell.live-commerce-shell-refactor .live-product-featured-label {
    display: none;
}

@media (min-width: 992px) {
    .live-commerce-shell.live-commerce-shell-refactor {
        width: min(100%, 1220px);
        margin-right: auto;
        margin-left: auto;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-commerce-desktop {
        display: grid !important;
        grid-template-columns: minmax(0, 76%) minmax(260px, 24%);
        grid-template-areas:
            "video chat"
            "products products";
        align-items: stretch;
        gap: var(--live-layout-gap);
        margin-right: 0;
        margin-left: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-commerce-desktop > .col-lg-8,
    .live-commerce-shell.live-commerce-shell-refactor .live-commerce-desktop > .col-lg-4 {
        width: 100%;
        max-width: none;
        flex: none;
        padding-right: 0;
        padding-left: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-main-column {
        display: contents;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-commerce-main {
        display: contents;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-column {
        grid-area: chat;
        min-width: 0;
        display: flex;
        height: auto !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-stage-card {
        grid-area: video;
        overflow: hidden;
        height: auto !important;
        justify-self: end;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-video-container {
        aspect-ratio: 16 / 9;
        width: 100%;
        height: auto !important;
        min-height: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below,
    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop {
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below {
        --live-product-slot-width: clamp(220px, 20vw, 282px);
        grid-area: products;
        min-height: var(--live-products-area-height);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .card-body {
        flex: 1 1 auto;
        display: flex;
        padding: 0.85rem !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-products-track {
        align-items: stretch;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card {
        height: 100%;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-slot {
        position: relative;
        padding-top: 0.15rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-slot-featured .live-product-card {
        border: 2px solid #facc15;
        box-shadow: 0 20px 38px rgba(250, 204, 21, 0.24), 0 14px 30px rgba(15, 23, 42, 0.1);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-featured-label {
        position: absolute;
        top: 0.85rem;
        left: 0.85rem;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        min-height: 1.65rem;
        max-width: calc(100% - 1.7rem);
        padding: 0.22rem 0.62rem;
        border-radius: 999px;
        background: #facc15;
        color: #111827;
        font-size: 0.7rem;
        font-weight: 800;
        line-height: 1.1;
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop {
        width: 100%;
        align-self: stretch;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop .card-body {
        flex: 1 1 auto;
        overflow-y: auto;
    }
}

@media (max-width: 991.98px) {
    .live-commerce-shell.live-commerce-shell-refactor {
        width: min(100%, 560px);
        margin-right: auto;
        margin-left: auto;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-commerce-mobile,
    .live-commerce-shell.live-commerce-shell-refactor .live-commerce-mobile-stacked,
    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-stack {
        display: grid;
        gap: var(--live-layout-gap);
        align-items: stretch;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-stage-card-mobile {
        width: 100%;
        margin-bottom: 0 !important;
        overflow: hidden;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-stage-card-mobile .live-video-container {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-mobile,
    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-mobile {
        width: 100%;
        height: auto !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-mobile {
        min-height: var(--live-mobile-products-area-height) !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-mobile .card-body {
        flex: 1 1 auto;
        display: flex;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-mobile {
        min-height: var(--live-mobile-chat-area-height) !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-mobile .youtube-chat-messages,
    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-stack .live-chat-panel-mobile .youtube-chat-messages {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-sheet {
        width: 100%;
        margin-top: 0 !important;
        padding: 0 !important;
        border: 0;
        background: transparent;
        box-shadow: none !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-sheet-topbar,
    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-tabs {
        display: none !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-panels {
        display: grid;
        gap: var(--live-layout-gap);
        overflow: visible;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-panel,
    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-panel.is-active,
    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-panel.is-active > .card {
        min-height: var(--live-mobile-products-area-height);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-panel,
    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-panel.is-active,
    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-sheet.is-collapsed .live-mobile-panel {
        position: relative;
        inset: auto;
        display: flex !important;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        animation: none;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-mobile-sheet.is-collapsed .live-mobile-panels {
        display: grid !important;
        min-height: var(--live-mobile-products-area-height);
        opacity: 1;
        transform: none;
        overflow: visible;
    }
}

@media (max-width: 399.98px) {
    .live-commerce-shell.live-commerce-shell-refactor {
        --live-layout-gap: 12px;
        --live-panel-radius: 14px;
        --live-mobile-products-area-height: 188px;
        --live-mobile-chat-area-height: 220px;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-mobile .card-body {
        padding: 0.65rem !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-rail-toolbar {
        min-height: 34px;
    }
}

@media (min-width: 1024px) {
    .live-commerce-container.py-4 {
        padding-top: clamp(10px, 1.6vh, 16px) !important;
        padding-bottom: clamp(10px, 1.6vh, 16px) !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor {
        --live-layout-gap: clamp(12px, 1.6vw, 18px);
        --live-stage-height: clamp(292px, 40vh, 400px);
        --live-products-area-height: clamp(198px, 25vh, 258px);
        width: min(100%, 1180px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-commerce-desktop {
        gap: var(--live-layout-gap);
        align-items: start;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-stage-card,
    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop {
        height: var(--live-stage-height) !important;
        max-height: var(--live-stage-height);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-stage-card {
        width: min(100%, calc(var(--live-stage-height) * 1.7778));
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-video-container {
        height: var(--live-stage-height) !important;
        max-height: var(--live-stage-height);
        aspect-ratio: 16 / 9;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-video-container::before {
        display: none;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-video-container iframe,
    .live-commerce-shell.live-commerce-shell-refactor .live-video-container video,
    .live-commerce-shell.live-commerce-shell-refactor .live-video-player,
    .live-commerce-shell.live-commerce-shell-refactor .live-youtube-stage-slot,
    .live-commerce-shell.live-commerce-shell-refactor #liveVideoContainer,
    .live-commerce-shell.live-commerce-shell-refactor #liveYouTubePlayer,
    .live-commerce-shell.live-commerce-shell-refactor #liveYouTubePlayer iframe {
        width: 100%;
        height: 100%;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-video-container video,
    .live-commerce-shell.live-commerce-shell-refactor .live-video-player {
        object-fit: cover !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop {
        min-height: var(--live-stage-height);
        overflow: hidden;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop .card-header {
        min-height: 46px;
        padding-top: 0.72rem !important;
        padding-bottom: 0.72rem !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop .card-body {
        padding: 0.72rem !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop .live-chat-state {
        min-height: 0;
        padding: clamp(1rem, 2.2vh, 1.35rem) 0.8rem;
        gap: 0.7rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop .live-chat-loader,
    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop .live-chat-state-icon {
        width: 48px;
        height: 48px;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below {
        --live-product-slot-width: clamp(248px, 21vw, 302px);
        min-height: var(--live-products-area-height);
        max-height: var(--live-products-area-height);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .card-body {
        padding: clamp(0.5rem, 0.8vw, 0.68rem) !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-rail-shell {
        position: relative;
        gap: 0;
        grid-template-rows: minmax(0, 1fr);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-rail-toolbar {
        position: absolute;
        inset: 0;
        z-index: 6;
        min-height: 0;
        pointer-events: none;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-nav {
        position: absolute;
        inset: 0;
        display: block;
        pointer-events: none;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn {
        position: absolute;
        top: 50%;
        width: clamp(34px, 4.5vh, 40px);
        height: clamp(34px, 4.5vh, 40px);
        border-radius: 12px;
        border-color: rgba(15, 23, 42, 0.18);
        background: rgba(255, 255, 255, 0.76);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
        backdrop-filter: blur(12px);
        transform: translateY(-50%);
        pointer-events: auto;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn:hover,
    .live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn:focus-visible {
        transform: translateY(-50%) scale(1.04);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn[data-live-products-scroll="prev"] {
        left: 0.48rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-nav-btn[data-live-products-scroll="next"] {
        right: 0.48rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-viewport {
        padding: 0.12rem 0.18rem 0.32rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card {
        display: grid;
        grid-template-columns: minmax(128px, 43%) minmax(0, 1fr);
        grid-template-rows: none;
        min-height: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-image-wrap {
        height: 100%;
        min-height: 0 !important;
        aspect-ratio: auto;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-body {
        min-height: 0;
        padding: clamp(0.56rem, 0.9vw, 0.72rem);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-title {
        min-height: 0;
        margin-bottom: 0.4rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-title a,
    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-title .live-product-title-text {
        font-size: clamp(0.76rem, 0.86vw, 0.86rem);
        line-height: 1.3;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-current-price {
        font-size: clamp(0.9rem, 1vw, 1.02rem);
    }
}

@media (min-width: 1024px) and (max-height: 820px) {
    .live-commerce-shell.live-commerce-shell-refactor {
        --live-stage-height: clamp(276px, 38vh, 318px);
        --live-products-area-height: clamp(188px, 24vh, 220px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below {
        --live-product-slot-width: clamp(236px, 20vw, 276px);
    }
}

@media (min-width: 1024px) {
    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below {
        background:
            linear-gradient(135deg, rgba(15, 23, 42, 0.035), rgba(var(--mds-color-main-rgb), 0.055)),
            rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(15, 23, 42, 0.06);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-products-track {
        gap: clamp(0.62rem, 1vw, 0.9rem);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-slot {
        padding-top: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 16px;
        background: #ffffff;
        overflow: hidden;
        box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card:hover {
        transform: translateY(-2px);
        border-color: rgba(var(--mds-color-main-rgb), 0.28);
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-slot-featured .live-product-card {
        border-color: #facc15;
        box-shadow: 0 18px 34px rgba(250, 204, 21, 0.24), 0 14px 28px rgba(15, 23, 42, 0.12);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-image-wrap {
        background: #0f172a;
        overflow: hidden;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card .product-image {
        object-fit: cover;
        transform: scale(1.01);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-actions {
        top: 0.48rem;
        right: 0.48rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card .live-product-actions .action-btn {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.86);
        backdrop-filter: blur(10px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-body {
        justify-content: stretch;
        gap: 0.48rem;
        background:
            radial-gradient(circle at top right, rgba(var(--mds-color-main-rgb), 0.08), transparent 42%),
            #ffffff;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-title {
        flex: 0 0 auto;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-title .live-product-title-text {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        color: #111827;
        font-weight: 800;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-footer {
        display: grid;
        gap: 0.5rem;
        margin-top: auto;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-price-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.08rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-current-price {
        color: var(--mds-color-main);
        font-size: clamp(1.02rem, 1.28vw, 1.2rem);
        font-weight: 900;
        line-height: 1.1;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-original-price {
        color: #94a3b8;
        font-size: 0.68rem;
        line-height: 1;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta {
        width: 100%;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.42rem 0.62rem;
        border: 0;
        border-radius: 999px;
        background: var(--mds-color-main);
        color: #ffffff;
        font-size: clamp(0.72rem, 0.82vw, 0.8rem);
        font-weight: 900;
        line-height: 1;
        box-shadow: 0 12px 22px rgba(var(--mds-color-main-rgb), 0.28);
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta:hover,
    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 16px 28px rgba(var(--mds-color-main-rgb), 0.34);
        outline: none;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta[disabled],
    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta-passive {
        background: #111827;
        color: #ffffff;
        cursor: default;
        opacity: 0.88;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-featured-label {
        top: 0.58rem;
        left: 0.58rem;
        min-height: 1.5rem;
        padding: 0.2rem 0.58rem;
        background: #facc15;
        color: #111827;
        font-size: 0.66rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
}

@media (min-width: 1024px) {
    .live-commerce-shell.live-commerce-shell-refactor {
        --live-products-area-height: clamp(304px, 35vh, 348px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below {
        --live-product-slot-width: clamp(188px, 17vw, 228px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card {
        display: grid;
        grid-template-columns: none;
        grid-template-rows: minmax(0, 52%) minmax(132px, 48%);
        min-height: 0;
        border-radius: 18px;
        background: #ffffff;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-image-wrap {
        width: 100%;
        height: 100%;
        min-height: 0 !important;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.02);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-body {
        min-height: 0;
        display: grid;
        grid-template-areas:
            "price"
            "cta"
            "title";
        grid-template-rows: auto auto minmax(2.2rem, 1fr);
        gap: 0.24rem;
        padding: clamp(0.42rem, 0.68vw, 0.58rem) clamp(0.48rem, 0.76vw, 0.66rem) clamp(0.52rem, 0.82vw, 0.68rem);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-title {
        grid-area: title;
        min-height: 2.15rem;
        margin: 0;
        overflow: hidden;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-title .live-product-title-text {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        color: #475569;
        font-size: clamp(0.68rem, 0.76vw, 0.78rem);
        font-weight: 700;
        line-height: 1.34;
        max-height: 2.68em;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-footer {
        display: contents;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-price-stack {
        grid-area: price;
        min-width: 0;
        gap: 0.02rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-current-price {
        color: var(--mds-color-main);
        font-size: clamp(1.04rem, 1.28vw, 1.24rem);
        font-weight: 950;
        letter-spacing: 0;
        line-height: 1.02;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-original-price {
        color: #94a3b8;
        font-size: 0.64rem;
        font-weight: 700;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-cta-row {
        grid-area: cta;
        min-width: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta {
        min-height: 34px;
        border-radius: 12px;
        background: #2563eb;
        color: #ffffff;
        font-size: clamp(0.72rem, 0.82vw, 0.82rem);
        font-weight: 950;
        box-shadow: 0 12px 22px rgba(37, 99, 235, 0.32);
        flex-shrink: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta:hover,
    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta:focus-visible {
        background: #1d4ed8;
        box-shadow: 0 16px 28px rgba(37, 99, 235, 0.42);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta[disabled] {
        background: #64748b;
        box-shadow: none;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta-passive {
        background: #111827;
        box-shadow: 0 12px 22px rgba(17, 24, 39, 0.22);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-actions {
        top: 0.5rem;
        right: 0.5rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card .live-product-actions .action-btn {
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, 0.34);
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.84);
        color: #ffffff;
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
        opacity: 1;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card .live-product-actions .action-btn:hover,
    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card .live-product-actions .action-btn:focus-visible {
        background: #2563eb;
        color: #ffffff;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-featured-label {
        top: 0.54rem;
        left: 0.54rem;
        background: #ef4444;
        color: #ffffff;
        box-shadow: 0 10px 18px rgba(239, 68, 68, 0.24);
    }
}

@media (min-width: 1024px) and (max-height: 820px) {
    .live-commerce-shell.live-commerce-shell-refactor {
        --live-products-area-height: clamp(292px, 34vh, 316px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below {
        --live-product-slot-width: clamp(178px, 16vw, 210px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card {
        grid-template-rows: minmax(0, 50%) minmax(132px, 50%);
    }
}

@media (min-width: 1024px) {
    .live-commerce-shell.live-commerce-shell-refactor {
        --live-products-area-height: clamp(352px, 40vh, 398px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below {
        --live-product-slot-width: clamp(206px, 18vw, 246px);
        background:
            linear-gradient(135deg, rgba(15, 23, 42, 0.055), rgba(var(--mds-color-main-rgb), 0.07)),
            rgba(255, 255, 255, 0.94);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .card-body {
        padding: clamp(0.56rem, 0.9vw, 0.78rem) !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-viewport {
        height: 100%;
        min-height: 0;
        padding: 0.16rem 0.22rem 0.48rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-products-track {
        height: 100%;
        min-height: 0;
        gap: clamp(0.72rem, 1.1vw, 1rem);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-slot {
        height: 100%;
        min-height: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card {
        display: grid;
        grid-template-columns: none;
        grid-template-rows: minmax(0, 1fr) minmax(140px, auto);
        height: 100%;
        min-height: 100%;
        max-height: none;
        border-radius: 20px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: #ffffff;
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
        overflow: hidden;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-slot-featured .live-product-card {
        border-color: #facc15;
        box-shadow: 0 20px 38px rgba(250, 204, 21, 0.25), 0 16px 32px rgba(15, 23, 42, 0.12);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-image-wrap {
        width: 100%;
        height: 100%;
        min-height: 0 !important;
        aspect-ratio: auto;
        background: #0f172a;
        overflow: hidden;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.015);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-actions {
        display: none;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-body {
        min-height: 140px;
        display: grid;
        grid-template-areas:
            "price"
            "cta"
            "title";
        grid-template-rows: auto auto minmax(2.42rem, 1fr);
        gap: 0.34rem;
        padding: 0.58rem 0.68rem 0.72rem;
        background:
            radial-gradient(circle at top right, rgba(var(--mds-color-main-rgb), 0.09), transparent 46%),
            #ffffff;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-price-stack {
        grid-area: price;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.04rem;
        min-width: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-current-price {
        color: #2563eb;
        font-size: clamp(1.12rem, 1.36vw, 1.32rem);
        font-weight: 950;
        line-height: 1.02;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-original-price {
        color: #94a3b8;
        font-size: 0.66rem;
        font-weight: 800;
        line-height: 1;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-cta-row {
        grid-area: cta;
        min-width: 0;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta {
        width: 100%;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.48rem 0.7rem;
        border: 0;
        border-radius: 14px;
        background: #2563eb;
        color: #ffffff;
        font-size: 0;
        font-weight: 950;
        line-height: 1;
        box-shadow: 0 14px 26px rgba(37, 99, 235, 0.34);
        cursor: pointer;
        transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta > *,
    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta svg,
    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta i {
        display: none !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta::after {
        content: attr(data-live-cta-label);
        font-size: clamp(0.76rem, 0.88vw, 0.86rem);
        white-space: nowrap;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta-passive {
        font-size: clamp(0.76rem, 0.88vw, 0.86rem);
        background: #111827;
        box-shadow: 0 12px 22px rgba(17, 24, 39, 0.22);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta-passive::after {
        content: none;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta:hover,
    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta:focus-visible {
        background: #1d4ed8;
        transform: translateY(-1px);
        box-shadow: 0 18px 30px rgba(37, 99, 235, 0.42);
        outline: none;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta[disabled] {
        background: #64748b;
        box-shadow: none;
        cursor: default;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-title {
        grid-area: title;
        min-height: 2.4rem;
        margin: 0;
        overflow: hidden;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-title .live-product-title-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: 2.72em;
        overflow: hidden;
        color: #475569;
        font-size: clamp(0.72rem, 0.78vw, 0.82rem);
        font-weight: 750;
        line-height: 1.36;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-footer {
        display: contents;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-badge {
        border-radius: 999px;
        font-size: 0.62rem;
        font-weight: 900;
        box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-featured-label {
        top: 0.62rem;
        left: 0.62rem;
        min-height: 1.55rem;
        padding: 0.22rem 0.62rem;
        border-radius: 999px;
        background: #ef4444;
        color: #ffffff;
        font-size: 0.64rem;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        box-shadow: 0 12px 22px rgba(239, 68, 68, 0.28);
    }
}

@media (min-width: 1024px) and (max-height: 820px) {
    .live-commerce-shell.live-commerce-shell-refactor {
        --live-products-area-height: clamp(330px, 39vh, 356px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below {
        --live-product-slot-width: clamp(196px, 17vw, 230px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card {
        grid-template-rows: minmax(0, 1fr) minmax(134px, auto);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-body {
        min-height: 134px;
        gap: 0.26rem;
        padding: 0.5rem 0.62rem 0.64rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta {
        min-height: 36px;
    }
}

@media (min-width: 1024px) {
    .live-commerce-shell.live-commerce-shell-refactor {
        --live-layout-gap: clamp(10px, 1.25vw, 16px);
        --live-stage-height: clamp(300px, 38vh, 372px);
        --live-products-area-height: clamp(342px, 38vh, 380px);
        width: min(100%, 1240px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-commerce-desktop {
        grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 288px);
        gap: var(--live-layout-gap);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-stage-card {
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-video-container,
    .live-commerce-shell.live-commerce-shell-refactor .live-video-container iframe,
    .live-commerce-shell.live-commerce-shell-refactor .live-video-container video,
    .live-commerce-shell.live-commerce-shell-refactor .live-video-player,
    .live-commerce-shell.live-commerce-shell-refactor .live-youtube-stage-slot,
    .live-commerce-shell.live-commerce-shell-refactor #liveVideoContainer,
    .live-commerce-shell.live-commerce-shell-refactor #liveYouTubePlayer,
    .live-commerce-shell.live-commerce-shell-refactor #liveYouTubePlayer iframe {
        width: 100% !important;
        max-width: none !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-video-container {
        display: flex;
        align-items: center;
        justify-content: center;
        background:
            radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34%),
            linear-gradient(135deg, #111827 0%, #020617 100%);
        overflow: hidden;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-video-container video,
    .live-commerce-shell.live-commerce-shell-refactor .live-video-player {
        object-fit: contain !important;
        object-position: center;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-video-container iframe,
    .live-commerce-shell.live-commerce-shell-refactor #liveYouTubePlayer iframe {
        display: block;
        border: 0;
        background: #020617;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop {
        width: 100%;
        max-width: 288px;
        justify-self: stretch;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop .card-header {
        min-height: 42px;
        padding: 0.62rem 0.78rem !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop .card-body {
        padding: 0.62rem !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-chat-panel-desktop .live-chat-state {
        padding: clamp(0.78rem, 1.8vh, 1.08rem) 0.62rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below {
        --live-product-slot-width: clamp(214px, 17.5vw, 252px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .card-body {
        padding: clamp(0.54rem, 0.8vw, 0.7rem) !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-viewport {
        padding: 0.2rem 0.24rem 0.58rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card {
        grid-template-rows: minmax(0, 1fr) minmax(148px, auto);
        min-height: 100%;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-body {
        min-height: 148px;
        grid-template-rows: auto auto minmax(2.58rem, 1fr);
        gap: 0.34rem;
        padding: 0.58rem 0.68rem 0.76rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-title {
        min-height: 2.54rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-title .live-product-title-text {
        max-height: none;
        font-size: clamp(0.72rem, 0.76vw, 0.82rem);
        line-height: 1.34;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta {
        min-height: 38px;
        padding: 0.5rem 0.72rem;
        color: #ffffff !important;
        text-indent: 0 !important;
        overflow: visible;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta .live-product-cta-label {
        display: none !important;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta::after {
        content: "Comprar Agora";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: clamp(0.78rem, 0.86vw, 0.88rem);
        font-weight: 950;
        line-height: 1;
        opacity: 1;
        visibility: visible;
        white-space: nowrap;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta-passive {
        font-size: clamp(0.76rem, 0.88vw, 0.86rem);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta-passive::after {
        content: none;
    }
}

@media (min-width: 1024px) and (max-height: 820px) {
    .live-commerce-shell.live-commerce-shell-refactor {
        --live-stage-height: clamp(286px, 37vh, 324px);
        --live-products-area-height: clamp(322px, 38vh, 348px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below {
        --live-product-slot-width: clamp(204px, 16.5vw, 238px);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-card {
        grid-template-rows: minmax(0, 1fr) minmax(142px, auto);
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-body {
        min-height: 142px;
        gap: 0.28rem;
        padding: 0.52rem 0.62rem 0.68rem;
    }

    .live-commerce-shell.live-commerce-shell-refactor .live-products-panel-below .live-product-live-cta {
        min-height: 36px;
    }
}

/* Footer logo: keep it centered and proportional without affecting the header logo. */
#footer .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    text-align: center;
}

#footer .footer-logo a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

#footer .footer-logo img {
    display: block;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    #footer .footer-logo img {
        max-width: 150px;
    }
}
