﻿body {
    /* Was "robot, lato" (typo for Roboto, no fallback): phones and tablets showed a serif font. */
    font-family: 'Segoe UI', Roboto, Lato, Arial, sans-serif !important;
    font-size: large;
}

/* ========================================================================== */
/* VodShop 2026 — agent queue and customer session layout                     */
/* These rules are intentionally scoped to the WebRTC meeting shells.         */
/* ========================================================================== */

.vodshop-meeting-shell {
    --vs-blue: #075fbd;
    --vs-blue-dark: #064a94;
    --vs-blue-soft: #eaf3ff;
    --vs-ink: #102a43;
    --vs-muted: #62748a;
    --vs-border: #dce7f3;
    --vs-surface: #ffffff;
    --vs-canvas: #f4f8fc;
    --vs-success: #16a34a;
    --vs-warning: #f59e0b;
    min-height: 100vh;
    color: var(--vs-ink);
    background: var(--vs-canvas);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.vodshop-app-header {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
    align-items: center;
    gap: 20px;
    padding: 10px 22px;
    color: #fff;
    background: linear-gradient(105deg, var(--vs-blue-dark), var(--vs-blue));
    box-shadow: 0 8px 24px rgba(6, 74, 148, .18);
    z-index: 20;
}

.vodshop-brand-lockup,
.vodshop-header-presence {
    display: flex;
    align-items: center;
    gap: 9px;
}

    .vodshop-brand-lockup .material-icons {
        font-size: 28px;
    }

    .vodshop-brand-lockup strong {
        font-size: 21px;
        letter-spacing: -.3px;
    }

.vodshop-session-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

    .vodshop-session-title strong {
        font-size: 15px;
        letter-spacing: .08em;
    }

    .vodshop-session-title span {
        margin-top: 3px;
        font-size: 12px;
        color: rgba(255, 255, 255, .78);
    }

.vodshop-header-presence {
    justify-self: end;
    font-size: 13px;
    font-weight: 700;
}

    .vodshop-header-presence > span,
    .vodshop-status-dot {
        width: 9px;
        height: 9px;
        flex: 0 0 9px;
        border-radius: 50%;
        background: #35d26f;
        box-shadow: 0 0 0 4px rgba(53, 210, 111, .15);
    }

.vodshop-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

    .vodshop-panel-heading h1 {
        margin: 2px 0 0;
        color: var(--vs-ink);
        font-size: 22px;
        font-weight: 800;
        letter-spacing: -.4px;
    }

.vodshop-eyebrow {
    color: var(--vs-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vodshop-live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    color: #166534;
    background: #effcf4;
    border: 1px solid #bbf0ce;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

    .vodshop-live-status strong {
        display: inline-grid;
        place-items: center;
        min-width: 24px;
        height: 24px;
        padding: 0 6px;
        color: #fff;
        background: var(--vs-blue);
        border-radius: 999px;
    }

.vodshop-active-customer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 10px 12px;
    color: var(--vs-ink);
    background: var(--vs-blue-soft);
    border: 1px solid #cfe3fb;
    border-radius: 12px;
}

    .vodshop-active-customer > div:first-child {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

.vodshop-active-label {
    color: var(--vs-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

#activeCustomerName {
    overflow: hidden;
    margin-top: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vodshop-active-status {
    flex: 0 0 auto;
    padding: 5px 9px;
    color: #925d00;
    background: #fff7e6;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

    .vodshop-active-status.is-active {
        color: #166534;
        background: #dcfce7;
    }

body:has(#meetingContainer.serverVodShopLayout) .top-remote-video-show-wrap {
    display: grid !important;
    grid-template-columns: minmax(420px, 3fr) minmax(420px, 2fr) !important;
    gap: 16px !important;
    height: calc(100vh - 142px) !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

body:has(#meetingContainer.serverVodShopLayout) #meetingContainer,
body:has(#meetingContainer.serverVodShopLayout) .g-right-details-wrap {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid var(--vs-border) !important;
    border-radius: 18px !important;
    background: var(--vs-surface) !important;
    box-shadow: 0 10px 30px rgba(31, 67, 107, .08) !important;
}

body:has(#meetingContainer.serverVodShopLayout) #meetingContainer {
    display: block;
    padding: 16px !important;
    overflow: hidden !important;
}

body:has(#meetingContainer.serverVodShopLayout) .g-right-details-wrap {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.vodshop-call-surface {
    min-height: 0;
    height: calc(100% - 116px);
    padding: 0;
    background: transparent !important;
}

body:has(#meetingContainer.serverVodShopLayout) #divUsers.vodshop-customer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: start;
    gap: 10px !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    padding: 2px 5px 12px 2px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #a9c6e8 transparent;
}

body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card {
    position: relative !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #fff;
    background: #102a43 !important;
    border: 2px solid transparent;
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(16, 42, 67, .12) !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card:hover {
        transform: translateY(-1px);
        border-color: #8bbced;
    }

    body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card.selected-video-holder {
        grid-column: 1 / -1;
        border-color: #22c55e !important;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, .14), 0 10px 24px rgba(16, 42, 67, .16) !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card .video-card-holder {
        position: relative !important;
        width: 100% !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card video {
        display: block;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 118px;
        aspect-ratio: 16 / 9 !important;
        margin: 0 !important;
        object-fit: cover !important;
        background: #102a43;
        border-radius: 0 !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card.selected-video-holder video {
        min-height: 240px;
    }

.vodshop-video-name,
.vodshop-video-role {
    position: absolute;
    left: 9px;
    bottom: 8px;
    z-index: 8;
    max-width: calc(100% - 18px);
    min-height: 25px;
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 4px 8px;
    overflow: hidden;
    color: #fff !important;
    background: rgba(6, 25, 46, .78);
    border-radius: 7px;
    font-size: 11px !important;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vodshop-video-role {
    top: 8px;
    bottom: auto;
}

body:has(#meetingContainer.serverVodShopLayout) .vodshop-agent-card {
    order: 999;
}

body:has(#meetingContainer.serverVodShopLayout) .video-participant-number-badge {
    top: 8px !important;
    left: 8px !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-grid !important;
    place-items: center;
    color: #fff;
    background: var(--vs-blue) !important;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

body:has(#meetingContainer.serverVodShopLayout) .vodshop-agent-card .video-participant-number-badge {
    display: none !important;
}

body:has(#meetingContainer.serverVodShopLayout) .people-chat-wrap {
    flex: 0 0 58px;
    min-height: 58px;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 14px !important;
    border-bottom: 1px solid var(--vs-border);
}

body:has(#meetingContainer.serverVodShopLayout) .in-call-chat-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    margin: 0 !important;
    padding: 14px !important;
    overflow-y: auto !important;
}

body:has(#meetingContainer.serverVodShopLayout) .in-call-wrap-up {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

body:has(#meetingContainer.serverVodShopLayout) .in-call-wrap {
    min-height: 48px;
    margin: 0 !important;
    padding: 7px 9px;
    color: var(--vs-ink);
    background: #f8fbff;
    border: 1px solid var(--vs-border);
    border-radius: 10px;
}

    body:has(#meetingContainer.serverVodShopLayout) .in-call-wrap.selected {
        color: #0b4d2a;
        background: #eafaf0;
        border: 1px solid #57d487;
        box-shadow: inset 4px 0 0 #22c55e;
    }

body:has(#meetingContainer.serverVodShopLayout) #serverProceedToCheckout {
    min-height: 38px;
    padding: 0 13px;
    color: #fff;
    background: var(--vs-blue);
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

/* Customer: large agent feed with a clean picture-in-picture self view. */
body:has(#meetingContainer.nonVodShopLayout) .top-remote-video-show-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(340px, 3fr) !important;
    gap: 16px !important;
    height: calc(100vh - 142px) !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

body:has(#meetingContainer.nonVodShopLayout) #meetingContainer,
body:has(#meetingContainer.nonVodShopLayout) .g-right-details-wrap {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid var(--vs-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(31, 67, 107, .08) !important;
}

body:has(#meetingContainer.nonVodShopLayout) #meetingContainer {
    display: block;
    padding: 16px !important;
    overflow: hidden !important;
}

body:has(#meetingContainer.nonVodShopLayout) .g-right-details-wrap {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.vodshop-client-stage {
    position: relative !important;
    height: calc(100% - 58px) !important;
    min-height: 360px;
    margin: 0 !important;
    overflow: hidden;
    background: #102a43;
    border-radius: 14px;
}

body:has(#meetingContainer.nonVodShopLayout) .vodshop-client-stage > video {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
    background: #102a43;
}

.vodshop-agent-label,
.vodshop-self-label {
    position: absolute;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    color: #fff;
    background: rgba(6, 25, 46, .78);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.vodshop-agent-label {
    top: 10px;
    left: 10px;
}

.vodshop-self-label {
    top: 7px;
    left: 7px;
}

.vodshop-client-agent-name {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 10;
    margin: 0 !important;
    padding: 5px 9px;
    color: #fff;
    background: rgba(6, 25, 46, .72);
    border-radius: 8px;
    font-size: 12px !important;
}

body:has(#meetingContainer.nonVodShopLayout) #me.vodshop-self-view {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 15;
    width: clamp(130px, 24%, 220px) !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    margin: 0 !important;
    overflow: hidden;
    background: #102a43;
    border: 2px solid #fff;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

    body:has(#meetingContainer.nonVodShopLayout) #me.vodshop-self-view video {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        object-fit: cover !important;
    }

body:has(#meetingContainer.nonVodShopLayout) .people-chat-wrap {
    flex: 0 0 58px;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 14px !important;
    border-bottom: 1px solid var(--vs-border);
}

body:has(#meetingContainer.nonVodShopLayout) .in-call-chat-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    margin: 0 !important;
    padding: 14px !important;
    overflow-y: auto !important;
}

body:has(.vodshop-meeting-shell) .g-bottom {
    min-height: 62px !important;
    height: 62px !important;
    color: var(--vs-ink);
    background: rgba(255, 255, 255, .97) !important;
    border-top: 1px solid var(--vs-border);
    box-shadow: 0 -7px 24px rgba(31, 67, 107, .09);
}

@media (max-width: 1096px) {
    .vodshop-app-header {
        grid-template-columns: 1fr auto;
    }

    .vodshop-session-title {
        display: none;
    }

    body:has(#meetingContainer.serverVodShopLayout) .top-remote-video-show-wrap,
    body:has(#meetingContainer.nonVodShopLayout) .top-remote-video-show-wrap {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: calc(100vh - 126px);
    }

    body:has(#meetingContainer.serverVodShopLayout) #meetingContainer,
    body:has(#meetingContainer.nonVodShopLayout) #meetingContainer {
        min-height: 480px;
    }

    body:has(#meetingContainer.serverVodShopLayout) .g-right-details-wrap,
    body:has(#meetingContainer.nonVodShopLayout) .g-right-details-wrap {
        min-height: 560px;
    }
}

@media (max-width: 640px) {
    .vodshop-app-header {
        min-height: 56px;
        padding: 8px 12px;
    }

    .vodshop-brand-lockup strong {
        font-size: 18px;
    }

    .vodshop-header-presence {
        font-size: 11px;
    }

    body:has(.vodshop-meeting-shell) .top-remote-video-show-wrap {
        gap: 10px !important;
        padding: 10px !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) #meetingContainer,
    body:has(#meetingContainer.nonVodShopLayout) #meetingContainer {
        padding: 11px !important;
        border-radius: 14px !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) #divUsers.vodshop-customer-grid {
        grid-template-columns: 1fr !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card.selected-video-holder {
        grid-column: auto;
    }

        body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card.selected-video-holder video {
            min-height: 190px;
        }

    .vodshop-client-stage {
        min-height: 320px;
    }

    body:has(#meetingContainer.nonVodShopLayout) #me.vodshop-self-view {
        width: 125px !important;
    }
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.logo {
    height: 43px;
}

.navbar-brand {
    font-size: 27px;
    padding-left: 10px;
    font-family: 'Lato';
}

.nav-item a {
    color: white !important;
    font-size: 16px;
    padding: 0 10px;
    font-weight: 600;
}

.display-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

li.nav-item {
    padding: 0 10px;
}

.signin-image {
    height: 390px;
    border: 25px solid white;
    border-radius: 5px;
    box-shadow: 1px 1px 5px grey;
}

textarea:focus, input:focus {
    outline: none !important;
}

.cursor-pointer {
    cursor: pointer;
}

.jumbotron {
    background-color: white;
}

/*.......... index page........... */
.home-wrap {
    background-color: #fff;
}

.g-top {
    height: 89vh;
    position: relative;
}

.video-wrap {
    height: 600px;
}

    .video-wrap > * {
        flex: 1 1 250px;
    }

.g-top-left {
    position: absolute;
    right: 0;
    height: 8vh;
    top: 0;
    border-bottom-left-radius: 10px;
}

.top-left-participant-wrap {
    position: relative;
}

.cursor-pointer {
    cursor: pointer;
    padding: 5px;
}

    .cursor-pointer:hover {
        cursor: pointer;
        padding: 5px;
        background-color: rgb(226,225,225);
        border-radius: 5px;
    }

.top-left-participant-count {
    position: absolute;
    top: -2px;
    right: -3px;
    font-size: 15px;
}

.g-bottom {
    /* margin: 0 -10px !important; */
    position: absolute;
    z-index: 2;
    height: 7%;
    width: 28%;
}

.pl-2, .px-2 {
    padding-left: 10% !important;
}

.bottom-left {
    position: relative;
    padding: 5px;
}

.action-icon-style {
    font-size: 8px !important;
    height: 40px;
    width: 40px;
    border: 1px solid lightgray;
    border-radius: 50%;
}

    .action-icon-style span.material-icons {
        /* font-size: 18px; */
    }

.end-call-wrap {
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
}

.top-remote-video-show-wrap {
    /* display: flex; */
    /* justify-content: center;
     align-items: center;*/
    height: 100%;
    /* background-image: url(../images/bg.png) !important; */
}

video {
    border: 0 solid gray;
    width: 300px;
    background-color: #133260;
}

.active {
    background-color: #00808047;
    border-radius: 5px;
}

.top-box {
    background-color: rgb(14 6 6);
    position: fixed;
    width: 30%;
    height: 30%;
    top: 20.5%;
    left: 35.5%;
    display: block;
    box-shadow: 0 0 5px white;
    border-radius: 10px;
    z-index: 999;
    columns: white;
    border: 2px solid white;
}

.bottom-left {
    position: relative;
    padding: 5px;
}

.g-details {
    position: absolute;
    width: 30vw;
    background-color: white;
    margin-top: -135px;
    counter-reset: black;
    border-radius: 5px;
    padding: 5px;
}

.g-details-heading-show {
    font-size: 14px;
    padding-left: 10px;
}

.recording-show {
    position: absolute;
    margin-bottom: 132px;
    display: none;
}



/* General styles */
.video-wrap {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.userbox {
    /*    position: relative;
    width: 100%;
    padding: 1px;*/
    margin-top: 10%;
    /*    outline: rgb(201 208 202) solid 5px;
    outline-offset: 4px;
    box-shadow: rgb(126 133 128 / 90%) 0px 0px 22px;
    border-radius: 12px;
    background-color: #eee;*/
    padding-bottom: 10%;
}


/* Styles for non-VodShop layout */
.nonVodShopLayout .mainUser {
    width: 75%;
    height: calc(100vh - 20px);
}

.nonVodShopLayout .currentUser {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25%;
    height: 25%;
}

.video-container video {
    margin-top: 8.8%;
    position: relative;
    background-color: #fff;
    width: 100%;
    /*padding: 5%;*/
    box-shadow: rgb(40 117 167 / 90%) 0px 0px 22px;
    background-color: rgb(89 40 167 / 12%);
}

.other {
    color: black;
}

.video-container {
    flex-grow: 1;
    background-color: #fff; /* Shows video area clearly */
}

.remote-video, .local-video {
    position: absolute;
}

.remote-video {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container without losing aspect ratio */
}


.hand-raise-icon {
    position: absolute;
    top: 20px;
    right: 20px;
}

.controls {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
}

button {
    padding: 10px;
    cursor: pointer;
}

.local-video {
    position: absolute; /* Ensure the video is positioned relative to its nearest positioned ancestor or the viewport */
    /*  right: 21.5%;  Adjust according to your need, smaller on mobile screens */
    bottom: 3%; /* Adjust so it's above the video container's bottom, might be higher on mobile */
    width: 20vw; /* Use viewport width for relative size to viewport, adjusts automatically */
    aspect-ratio: 4 / 3; /* Maintains aspect ratio */
    max-width: 200px; /* Prevents the video from being too large on bigger screens */
    min-width: 100px; /* Ensures visibility on smaller screens */
}

#meetingContainer {
    display: none;
    flex-basis: 72%;
    padding: 1%;
    margin-top: 5%;
}

/* CART FIX - 5 cards per row */
.cart-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

#cart {
    width: 100%;
    max-width: 100%;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    padding: 10px;
    /*    border: 1px solid #ddd;*/
    box-sizing: border-box;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

    #cart .product {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
        box-sizing: border-box;
        margin-bottom: 0;
    }

        #cart .product img {
            width: 100%;
            height: 120px;
            object-fit: contain;
        }


#cart-summary {
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    margin-left: auto;
    padding: 16px 18px;
    padding-left: 48%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    color: #1f2937;
}

    #cart-summary .cart-summary-title {
        font-size: 1rem;
        font-weight: 700;
        color: #111827;
        margin-bottom: 12px;
    }

    #cart-summary .cart-summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.95rem;
    }

        #cart-summary .cart-summary-row:last-child {
            border-bottom: none;
        }

    #cart-summary .cart-summary-label {
        color: #6b7280;
        font-weight: 500;
    }

    #cart-summary .cart-summary-value {
        color: #111827;
        font-weight: 600;
        text-align: right;
    }

    #cart-summary .cart-summary-total {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 2px solid #e5e7eb;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1rem;
        font-weight: 700;
        color: #059669;
    }




.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Aligns items to start and end of the flex container */
    /*border: 1px solid #ccc;*/ /* Adds a border around each product */
    padding: 10px; /* Adds some padding inside the product box */
    margin-bottom: 10px; /* Adds space between product boxes */
}

    .product img {
        max-width: 100%; /* Makes the image responsive */
        height: auto; /* Maintains aspect ratio */
    }

.details {
    margin-top: 10px; /* Adds space between the image and details section */
}

.delete-btn {
    margin-top: auto; /* Pushes the button to the bottom */
    width: 100%; /* Makes the button full width */
    padding: 10px 0; /* Adds padding to the button for better appearance */
    background-color: #f44336; /* Red background for the delete button */
    color: white; /* White text color */
    border: none; /* Removes the border */
    cursor: pointer; /* Changes cursor to pointer on hover */
}

    /* Additional styling for the delete button on hover */
    .delete-btn:hover {
        background-color: #d32f2f;
    }


.input-error {
    background-color: red; /* Or any other style */
    border: 1px solid red; /* Example for border change */
}

.input-no-error {
    background-color: white; /* Or any other style */
    border: 1px solid none; /* Example for border change */
}

#serverProceedToCheckout {
    padding: 10px 20px; /* Adds space inside the button */
    background-color: #FFC107; /* Sets a yellow background color */
    color: black; /* Text color is set to black for better contrast */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Changes the cursor to a pointer to indicate it's clickable */
    font-size: 12px; /* Sets the font size */
    transition: background-color 0.3s; /* Smooth transition for the background color */
}

    #serverProceedToCheckout:hover {
        background-color: #FFB300; /* A slightly darker yellow background on hover */
    }

    #serverProceedToCheckout:focus {
        outline: none; /* Removes the outline to keep the styling clean */
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px #FFC107; /* Adds a focus effect matching the button color */
    }


#customerProceedToCheckout {
    padding: 10px 20px; /* Adds space inside the button */
    background-color: #FFC107; /* Sets a yellow background color */
    color: black; /* Text color is set to black for better contrast */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Changes the cursor to a pointer to indicate it's clickable */
    font-size: 12px; /* Sets the font size */
    transition: background-color 0.3s; /* Smooth transition for the background color */
}

    #customerProceedToCheckout:hover {
        background-color: #FFB300; /* A slightly darker yellow background on hover */
    }

    #customerProceedToCheckout:focus {
        outline: none; /* Removes the outline to keep the styling clean */
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px #FFC107; /* Adds a focus effect matching the button color */
    }







#paypal-checkout-section {
    display: none;
    width: 100%;
    margin-top: 16px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.paypal-checkout-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.paypal-checkout-subtitle {
    font-size: 0.92rem;
    color: #6b7280;
    margin-bottom: 14px;
}

#paypal-button-container {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 0 !important;
}






/* ===== OLD VERSION - INPUTS AREA LOOK ===== */
.g-right-details-wrap .chat-show-wrap {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;
    padding: 18px !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

/* category + product rows */
.g-right-details-wrap .search-box,
.g-right-details-wrap .product-selection {
    width: 100% !important;
    margin: 0 0 14px 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px !important;
    gap: 10px !important;
    align-items: center !important;
}

/* summary + quantity area */
.g-right-details-wrap #sendpart {
    display: grid !important;
    gap: 14px !important;
    margin-top: 14px !important;
}

    /* wrapper that currently has width:85% inline */
    .g-right-details-wrap #sendpart > .d-flex {
        width: 100% !important;
        margin-inline: 0 !important;
        margin-top: 0 !important;
        align-items: center !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 12px !important;
    }

        /* quantity + unit row */
        .g-right-details-wrap #sendpart > .d-flex > .d-flex,
        .g-right-details-wrap .d-flex.align-items-center.gap-2 {
            display: grid !important;
            grid-template-columns: 140px 46px minmax(180px, 220px) 46px auto !important;
            gap: 10px !important;
            align-items: center !important;
            width: 100% !important;
        }

/* all inputs */
.g-right-details-wrap #msgbox,
.g-right-details-wrap .form-control,
.g-right-details-wrap .form-select,
.g-right-details-wrap .select-unit,
.g-right-details-wrap #quantityInput {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    /* focus */
    .g-right-details-wrap #msgbox:focus,
    .g-right-details-wrap .form-control:focus,
    .g-right-details-wrap .form-select:focus,
    .g-right-details-wrap .select-unit:focus,
    .g-right-details-wrap #quantityInput:focus {
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
        outline: none !important;
    }

/* order summary */
.g-right-details-wrap #msgbox {
    background: #f8fafc !important;
    font-weight: 500 !important;
    border: 1px solid #e5e7eb !important;
}

/* quantity box */
.g-right-details-wrap #quantityInput {
    max-width: none !important;
    text-align: center !important;
    font-weight: 600 !important;
}

/* mic buttons */
.g-right-details-wrap .btn-outline-secondary {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18) !important;
}

    .g-right-details-wrap .btn-outline-secondary:hover {
        background: #1d4ed8 !important;
        border-color: #1d4ed8 !important;
    }

/* full speech button */
.g-right-details-wrap .btn-primary {
    min-height: 48px !important;
    border-radius: 12px !important;
    padding: 0 18px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18) !important;
}

/* send button */
.g-right-details-wrap .send-btn,
.g-right-details-wrap #sendButton,
.g-right-details-wrap button.send,
.g-right-details-wrap input[type="submit"],
.g-right-details-wrap #sendpart > .d-flex > a:last-child,
.g-right-details-wrap #sendpart > .d-flex > button:last-child,
.g-right-details-wrap #sendpart > .d-flex > .d-flex > a:last-child,
.g-right-details-wrap #sendpart > .d-flex > .d-flex > button:last-child,
.g-right-details-wrap .d-flex.align-items-center.gap-2 > a:last-child,
.g-right-details-wrap .d-flex.align-items-center.gap-2 > button:last-child {
    min-width: 96px !important;
    height: 46px !important;
    padding: 0 16px !important;
    border: none !important;
    border-radius: 12px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 6px 14px rgba(14, 165, 164, 0.18) !important;
    white-space: nowrap !important;
}

    .g-right-details-wrap .send-btn:hover,
    .g-right-details-wrap #sendButton:hover,
    .g-right-details-wrap button.send:hover,
    .g-right-details-wrap input[type="submit"]:hover,
    .g-right-details-wrap #sendpart > .d-flex > a:last-child:hover,
    .g-right-details-wrap #sendpart > .d-flex > button:last-child:hover,
    .g-right-details-wrap #sendpart > .d-flex > .d-flex > a:last-child:hover,
    .g-right-details-wrap #sendpart > .d-flex > .d-flex > button:last-child:hover,
    .g-right-details-wrap .d-flex.align-items-center.gap-2 > a:last-child:hover,
    .g-right-details-wrap .d-flex.align-items-center.gap-2 > button:last-child:hover {
        background: #0f8b8d !important;
        color: #ffffff !important;
    }

/* recognized text */
.g-right-details-wrap .chat-show-wrap > :not(.search-box):not(.product-selection):not(#sendpart):not(#cart):not(#cart-summary):not(.chat-message-show):not(.product-image-container) {
    color: #475467;
}

/* product image */
.g-right-details-wrap .product-image-container {
    margin: 6px 0 10px 0 !important;
    padding: 10px !important;
    border: 1px dashed #d0d5dd !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
}

/* mobile */
@media (max-width: 991px) {
    .g-right-details-wrap #sendpart > .d-flex {
        grid-template-columns: 1fr !important;
    }

        .g-right-details-wrap #sendpart > .d-flex > .d-flex,
        .g-right-details-wrap .d-flex.align-items-center.gap-2 {
            grid-template-columns: 1fr 46px 1fr 46px !important;
        }

            .g-right-details-wrap .send-btn,
            .g-right-details-wrap #sendButton,
            .g-right-details-wrap button.send,
            .g-right-details-wrap input[type="submit"],
            .g-right-details-wrap #sendpart > .d-flex > a:last-child,
            .g-right-details-wrap #sendpart > .d-flex > button:last-child,
            .g-right-details-wrap #sendpart > .d-flex > .d-flex > a:last-child,
            .g-right-details-wrap #sendpart > .d-flex > .d-flex > button:last-child,
            .g-right-details-wrap .d-flex.align-items-center.gap-2 > a:last-child,
            .g-right-details-wrap .d-flex.align-items-center.gap-2 > button:last-child {
                width: 100% !important;
                min-width: 0 !important;
            }
}





/* mobile */
@media (max-width: 991px) {
    .g-right-details-wrap #sendpart > .d-flex > .d-flex,
    .g-right-details-wrap .d-flex.align-items-center.gap-2 {
        grid-template-columns: 1fr 46px !important;
    }

    .g-right-details-wrap #select-unit {
        grid-column: 1 / 2;
    }
}


/* Extra large devices (large desktops, 1200px and up) */
/*@media (max-width: 1199px) {
    #meetingContainer {
        display: none;
        flex-basis: auto;
        padding: 1%;
    }


    .local-video {
        right: 20%;
        bottom: 21.1%;
        width: 25vw;*/ /* Increases width for smaller screens to ensure visibility */
/*max-width: 150px;*/ /* Adjusts maximum width for smaller screens */
/*}
}*/
/* Large devices (desktops, 992px and up) */
/*@media (max-width: 991px) {
    #meetingContainer {
        display: none;
        flex-basis: auto;
        padding: 1%;
    }


    .local-video {
        right: 1%;
        bottom: 25%;
        width: 25vw;*/ /* Increases width for smaller screens to ensure visibility */
/*max-width: 150px;*/ /* Adjusts maximum width for smaller screens */
/*}
}*/



/* Smaller screens, such as mobile devices */
/*@media (max-width: 767px) {

    #meetingContainer {
        display: none;
        flex-basis: auto;
        padding: 1%;
    }


    .local-video {
        right: 7.8%;
        bottom: 21.6%;
        width: 25vw;*/ /* Increases width for smaller screens to ensure visibility */
/*max-width: 150px;*/ /* Adjusts maximum width for smaller screens */
/*}
}





@media (max-width: 575px) {
    #meetingContainer {
        display: none;
        flex-basis: auto;
        padding: 1%;
    }


    .local-video {
        right: 0.8%;
        bottom: 27.4%;
        width: 25vw;*/ /* Increases width for smaller screens to ensure visibility */
/*max-width: 150px;*/ /* Adjusts maximum width for smaller screens */
/*}
}*/



/* ==================================================
   PARTICIPANT MOBILE LAYOUT ONLY
   Big screen keeps old look.
   Agent side is not affected.
================================================== */

@media (max-width: 768px) {

    /*
       Apply only when current user is participant/customer.
       Agent does not have .nonVodShopLayout.
    */
    body:has(#meetingContainer.nonVodShopLayout) {
        overflow-x: hidden !important;
    }

        body:has(#meetingContainer.nonVodShopLayout) .top-remote-video-show-wrap {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            justify-content: flex-start !important;
            width: 100% !important;
            height: auto !important;
            overflow: visible !important;
        }

        body:has(#meetingContainer.nonVodShopLayout) #meetingContainer {
            order: 1 !important;
            width: 100% !important;
            max-width: 100% !important;
            flex-basis: auto !important;
            margin-top: 8px !important;
            padding: 8px !important;
            box-sizing: border-box !important;
            overflow: visible !important;
        }

        /* Main remote video full width */
        body:has(#meetingContainer.nonVodShopLayout) .nonVodShopLayout .mainUser,
        body:has(#meetingContainer.nonVodShopLayout) .video-container {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            box-sizing: border-box !important;
        }

            body:has(#meetingContainer.nonVodShopLayout) .video-container video,
            body:has(#meetingContainer.nonVodShopLayout) #locaVideoPlayer {
                width: 100% !important;
                max-width: 100% !important;
                height: auto !important;
                object-fit: contain !important;
            }

        /* Local video stays as small overlay */
        body:has(#meetingContainer.nonVodShopLayout) .local-video,
        body:has(#meetingContainer.nonVodShopLayout) .nonVodShopLayout .currentUser {
            position: absolute !important;
            right: 10px !important;
            bottom: 10px !important;
            width: 115px !important;
            max-width: 115px !important;
            min-width: 90px !important;
            height: auto !important;
            z-index: 50 !important;
        }

        /*
       Cart/chat area goes under the two videos.
       These selectors cover your current cart wrappers.
    */
        body:has(#meetingContainer.nonVodShopLayout) .in-call-chat-wrap,
        body:has(#meetingContainer.nonVodShopLayout) .people-chat-wrap,
        body:has(#meetingContainer.nonVodShopLayout) .chat-show-wrap,
        body:has(#meetingContainer.nonVodShopLayout) .cart-wrapper {
            order: 2 !important;
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            display: block !important;
            overflow: visible !important;
            box-sizing: border-box !important;
        }

        body:has(#meetingContainer.nonVodShopLayout) #cart {
            width: 100% !important;
            max-width: 100% !important;
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 12px !important;
            padding: 10px !important;
            margin-top: 12px !important;
            overflow: visible !important;
            box-sizing: border-box !important;
        }

            body:has(#meetingContainer.nonVodShopLayout) #cart .product {
                width: 100% !important;
                max-width: 100% !important;
                display: grid !important;
                grid-template-columns: 110px minmax(0, 1fr) !important;
                column-gap: 12px !important;
                align-items: center !important;
                padding: 10px !important;
                margin: 0 !important;
                box-sizing: border-box !important;
                text-align: left !important;
            }

                body:has(#meetingContainer.nonVodShopLayout) #cart .product img {
                    width: 100px !important;
                    max-width: 100px !important;
                    height: 90px !important;
                    object-fit: contain !important;
                    margin: 0 auto !important;
                }

            body:has(#meetingContainer.nonVodShopLayout) #cart .details {
                width: 100% !important;
                margin-top: 0 !important;
            }

            body:has(#meetingContainer.nonVodShopLayout) #cart .delete-btn {
                grid-column: 1 / -1 !important;
                width: 100% !important;
                max-width: 180px !important;
                margin: 10px auto 0 auto !important;
            }

        body:has(#meetingContainer.nonVodShopLayout) #cart-summary {
            width: 100% !important;
            max-width: 100% !important;
            padding: 14px !important;
            margin: 14px 0 0 0 !important;
            text-align: center !important;
            box-sizing: border-box !important;
        }
}


/* ================================
   RESPONSIVE WEBRTC + RECEIPT FIX
================================ */

@media (max-width: 1096.98px) {

    body {
        overflow-x: hidden !important;
    }

    .home-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .g-top {
        height: auto !important;
        min-height: 0 !important;
        position: relative !important;
    }

    .top-remote-video-show-wrap {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    #meetingContainer {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: auto !important;
        margin-top: 58px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    .video-container {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

        .video-container video {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            margin-top: 0 !important;
            object-fit: contain !important;
        }

    .local-video {
        position: absolute !important;
        right: 12px !important;
        bottom: 12px !important;
        width: 115px !important;
        max-width: 115px !important;
        min-width: 90px !important;
        height: auto !important;
        z-index: 20 !important;
    }

    /* Receipt button row */
    .g-top-left {
        /*        position: relative !important;
        top: auto !important;
        right: auto !important;*/
        width: 100% !important;
        height: auto !important;
        min-height: 52px !important;
        padding: 8px 12px !important;
        margin: 0 !important;
        margin-bottom: 48px;
        z-index: 30 !important;
        border-radius: 0 !important;
        display: flex !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    #receipt_region {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 8px 12px !important;
        background: #e8f3f3 !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        z-index: 40 !important;
    }

    /* Video buttons */
    .g-bottom {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 60px !important;
        padding: 8px 10px !important;
        z-index: 25 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .bottom-left,
    .bottom-middle,
    .bottom-right {
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .present-now-wrap {
        margin-right: 8px !important;
        font-size: 12px !important;
    }

    /* Receipt/product/cart panel */
    .g-right-details-wrap {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .people-chat-wrap,
    .in-call-chat-wrap,
    .chat-show-wrap {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }

    .cart-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    #cart {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

        #cart .product {
            width: 100% !important;
            max-width: 100% !important;
            display: grid !important;
            grid-template-columns: 110px minmax(0, 1fr) !important;
            column-gap: 12px !important;
            align-items: center !important;
            text-align: left !important;
            box-sizing: border-box !important;
        }

            #cart .product img {
                width: 100px !important;
                max-width: 100px !important;
                height: 90px !important;
                object-fit: contain !important;
            }

        #cart .delete-btn {
            grid-column: 1 / -1 !important;
            width: 100% !important;
            max-width: 180px !important;
            margin: 10px auto 0 auto !important;
        }

    #cart-summary {
        width: 100% !important;
        max-width: 100% !important;
        margin: 14px 0 0 0 !important;
        padding: 14px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}


/* ==================================================
   SERVER / AGENT RESPONSIVE ONLY
   Client keeps .nonVodShopLayout behavior
================================================== */

/* DESKTOP: 1097px and up */
@media (min-width: 1097px) {
    body:has(#meetingContainer.serverVodShopLayout) .top-remote-video-show-wrap {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        height: 100% !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) #meetingContainer {
        flex-basis: 25% !important;
        width: 25% !important;
        max-width: 25% !important;
        padding: 1% !important;
        margin-top: 5% !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) .g-right-details-wrap {
        flex-basis: 75% !important;
        width: 75% !important;
        max-width: 75% !important;
        height: 100% !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) #cart {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}


/* TABLET: 769px to 1096.98px
   Make it same as mobile: 1 video per row
*/
@media (min-width: 769px) and (max-width: 1096.98px) {
    body:has(#meetingContainer.serverVodShopLayout) {
        overflow-x: hidden !important;
    }

        body:has(#meetingContainer.serverVodShopLayout) .top-remote-video-show-wrap {
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
            height: auto !important;
        }

        body:has(#meetingContainer.serverVodShopLayout) #meetingContainer {
            width: 100% !important;
            max-width: 100% !important;
            flex-basis: auto !important;
            margin-top: 0 !important;
            padding: 8px !important;
            box-sizing: border-box !important;
        }

        /*        body:has(#meetingContainer.serverVodShopLayout) #divUsers {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 12px !important;
            width: 100% !important;
        }*/

        body:has(#meetingContainer.serverVodShopLayout) .userbox {
            width: 100% !important;
            margin-top: 0 !important;
            padding: 8px !important;
            box-sizing: border-box !important;
        }

            body:has(#meetingContainer.serverVodShopLayout) .userbox video,
            body:has(#meetingContainer.serverVodShopLayout) #locaVideoPlayer {
                width: 100% !important;
                height: auto !important;
                object-fit: contain !important;
            }

        body:has(#meetingContainer.serverVodShopLayout) .g-right-details-wrap {
            width: 100% !important;
            max-width: 100% !important;
            flex-basis: auto !important;
            height: auto !important;
            overflow: visible !important;
        }

        body:has(#meetingContainer.serverVodShopLayout) .people-chat-wrap,
        body:has(#meetingContainer.serverVodShopLayout) .in-call-chat-wrap,
        body:has(#meetingContainer.serverVodShopLayout) .chat-show-wrap {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            overflow: visible !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: 10px !important;
            padding-right: 10px !important;
            box-sizing: border-box !important;
        }

        body:has(#meetingContainer.serverVodShopLayout) #cart {
            grid-template-columns: 1fr !important;
            gap: 12px !important;
            padding: 10px !important;
        }

            body:has(#meetingContainer.serverVodShopLayout) #cart .product {
                width: 100% !important;
                display: grid !important;
                grid-template-columns: 100px minmax(0, 1fr) !important;
                gap: 12px !important;
                text-align: left !important;
                box-sizing: border-box !important;
            }

                body:has(#meetingContainer.serverVodShopLayout) #cart .product img {
                    width: 90px !important;
                    max-width: 90px !important;
                    height: 80px !important;
                    object-fit: contain !important;
                }

            body:has(#meetingContainer.serverVodShopLayout) #cart .delete-btn {
                grid-column: 1 / -1 !important;
                width: 100% !important;
                max-width: 180px !important;
                margin: 10px auto 0 auto !important;
            }

        body:has(#meetingContainer.serverVodShopLayout) #cart-summary {
            width: 100% !important;
            max-width: 100% !important;
            padding: 14px !important;
            margin: 14px 0 0 0 !important;
            text-align: center !important;
            box-sizing: border-box !important;
        }


        body:has(#meetingContainer.serverVodShopLayout) #divUsers {
            display: grid !important;
        }
}


/* MOBILE: 768px and down */
@media (max-width: 768px) {
    body:has(#meetingContainer.serverVodShopLayout) {
        overflow-x: hidden !important;
    }

        body:has(#meetingContainer.serverVodShopLayout) .top-remote-video-show-wrap {
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
            height: auto !important;
        }

        body:has(#meetingContainer.serverVodShopLayout) #meetingContainer {
            width: 100% !important;
            max-width: 100% !important;
            flex-basis: auto !important;
            padding: 8px !important;
            box-sizing: border-box !important;
        }

        body:has(#meetingContainer.serverVodShopLayout) #divUsers {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 12px !important;
            width: 100% !important;
        }

        body:has(#meetingContainer.serverVodShopLayout) .userbox {
            width: 100% !important;
            margin-top: 0 !important;
            padding: 8px !important;
            box-sizing: border-box !important;
        }

            body:has(#meetingContainer.serverVodShopLayout) .userbox video,
            body:has(#meetingContainer.serverVodShopLayout) #locaVideoPlayer {
                width: 100% !important;
                height: auto !important;
                object-fit: contain !important;
            }

        body:has(#meetingContainer.serverVodShopLayout) .g-right-details-wrap {
            width: 100% !important;
            max-width: 100% !important;
            flex-basis: auto !important;
            height: auto !important;
            overflow: visible !important;
        }

        body:has(#meetingContainer.serverVodShopLayout) .people-chat-wrap,
        body:has(#meetingContainer.serverVodShopLayout) .in-call-chat-wrap,
        body:has(#meetingContainer.serverVodShopLayout) .chat-show-wrap {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            overflow: visible !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: 10px !important;
            padding-right: 10px !important;
            box-sizing: border-box !important;
        }

        body:has(#meetingContainer.serverVodShopLayout) #cart {
            grid-template-columns: 1fr !important;
            gap: 12px !important;
            padding: 10px !important;
        }

            body:has(#meetingContainer.serverVodShopLayout) #cart .product {
                width: 100% !important;
                display: grid !important;
                grid-template-columns: 100px minmax(0, 1fr) !important;
                gap: 12px !important;
                text-align: left !important;
                box-sizing: border-box !important;
            }

                body:has(#meetingContainer.serverVodShopLayout) #cart .product img {
                    width: 90px !important;
                    max-width: 90px !important;
                    height: 80px !important;
                    object-fit: contain !important;
                }

            body:has(#meetingContainer.serverVodShopLayout) #cart .delete-btn {
                grid-column: 1 / -1 !important;
                width: 100% !important;
                max-width: 180px !important;
                margin: 10px auto 0 auto !important;
            }

        body:has(#meetingContainer.serverVodShopLayout) #cart-summary {
            width: 100% !important;
            max-width: 100% !important;
            padding: 14px !important;
            margin: 14px 0 0 0 !important;
            text-align: center !important;
            box-sizing: border-box !important;
        }
}


/* ==================================================
   SERVER VODSHOP FIX
   Fixed toolbar + badges on video + participant scroll
================================================== */

:root {
    --vodshop-callbar-height: 78px;
}

/* keep page content above fixed toolbar */
body:has(#meetingContainer.serverVodShopLayout) {
    overflow-x: hidden !important;
    padding-bottom: var(--vodshop-callbar-height) !important;
}

    /* fixed video toolbar: mic, phone, camera, hand, present, menu */
    body:has(#meetingContainer.serverVodShopLayout) .g-bottom {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: var(--vodshop-callbar-height) !important;
        min-height: var(--vodshop-callbar-height) !important;
        z-index: 1000005 !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) 12px !important;
        box-sizing: border-box !important;
    }

        /* toolbar children */
        body:has(#meetingContainer.serverVodShopLayout) .g-bottom .bottom-left,
        body:has(#meetingContainer.serverVodShopLayout) .g-bottom .bottom-middle,
        body:has(#meetingContainer.serverVodShopLayout) .g-bottom .bottom-right {
            position: static !important;
            height: auto !important;
            margin: 0 !important;
            padding: 0 4px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

/* allow horizontal scroll only for very small phones */
@media (max-width: 430px) {
    body:has(#meetingContainer.serverVodShopLayout) .g-bottom {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) .present-now-wrap {
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) .action-icon-style {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
}

/* participant area should scroll, not make page very tall */
body:has(#meetingContainer.serverVodShopLayout) #meetingContainer {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    padding-bottom: 12px !important;
}

/* desktop: left participant panel scrolls */
@media (min-width: 1097px) {
    body:has(#meetingContainer.serverVodShopLayout) #meetingContainer {
        max-height: calc(100vh - var(--vodshop-callbar-height) - 80px) !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) #divUsers {
        max-height: calc(100vh - var(--vodshop-callbar-height) - 110px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 6px !important;
    }
}

/* tablet + mobile: participant list has its own vertical scroll */
/*@media (max-width: 1096.98px) {
    body:has(#meetingContainer.serverVodShopLayout) #meetingContainer {
        max-height: calc(100vh - var(--vodshop-callbar-height) - 170px) !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) #divUsers {
        max-height: calc(100vh - var(--vodshop-callbar-height) - 190px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 6px !important;
    }
}*/

/* video cards must be the positioning parent for badges */
body:has(#meetingContainer.serverVodShopLayout) .userbox,
body:has(#meetingContainer.serverVodShopLayout) .selected-video-holder {
    position: relative !important;
    margin-top: 20% !important;
    margin-top: 5% !important;
    /*    overflow: hidden !important;*/
}

    /* video fills card cleanly */
    body:has(#meetingContainer.serverVodShopLayout) .userbox video,
    body:has(#meetingContainer.serverVodShopLayout) .selected-video-holder video {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
        margin-top: 0 !important;
    }

    /* participant number badge must stay on video */
    body:has(#meetingContainer.serverVodShopLayout) .userbox .participant-number-badge,
    body:has(#meetingContainer.serverVodShopLayout) .userbox .video-participant-number-badge,
    body:has(#meetingContainer.serverVodShopLayout) .selected-video-holder .participant-number-badge,
    body:has(#meetingContainer.serverVodShopLayout) .selected-video-holder .video-participant-number-badge {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        z-index: 1000002 !important;
    }

    /* selected check badge must stay on video */
    body:has(#meetingContainer.serverVodShopLayout) .userbox .selected-participant-icon,
    body:has(#meetingContainer.serverVodShopLayout) .selected-video-holder .selected-participant-icon {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        z-index: 1000003 !important;
    }

/* reduce card height on very small screens */
@media (max-width: 480px) {
    body:has(#meetingContainer.serverVodShopLayout) .userbox {
        padding: 6px !important;
        margin-top: 0 !important;
    }

        body:has(#meetingContainer.serverVodShopLayout) .userbox video,
        body:has(#meetingContainer.serverVodShopLayout) .selected-video-holder video {
            max-height: 170px !important;
        }

    body:has(#meetingContainer.serverVodShopLayout) .number-badge {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px !important;
    }

    body:has(#meetingContainer.serverVodShopLayout) .selected-participant-icon {
        font-size: 30px !important;
    }
}

/* CLIENT SIDE ONLY - local video participant number badge */
#meetingContainer.nonVodShopLayout #me.local-video .number-badge.video-participant-number-badge {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: none !important;
    top: 6px !important;
    left: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    padding: 0 !important;
}


/* CLIENT SIDE ONLY - selected badge on local video */
#meetingContainer.nonVodShopLayout #me.local-video .selected-participant-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    border: none !important;
    box-shadow: none !important;
    background-color: #28a745 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    pointer-events: none !important;
    z-index: 999999 !important;
}

/* CLIENT SIDE ONLY - BIG SCREEN: keep badges inside local video rectangle */
@media (min-width: 1097px) {

    /* The small local video rectangle */
    #meetingContainer.nonVodShopLayout #me.local-video {
        position: absolute !important;
        overflow: hidden !important;
        border-radius: 4px !important;
        display: block !important;
    }

        #meetingContainer.nonVodShopLayout #me.local-video video,
        #meetingContainer.nonVodShopLayout #me.local-video #locaVideoPlayer {
            width: 100% !important;
            height: 100% !important;
            display: block !important;
            object-fit: cover !important;
        }

        /* Number badge - inside top-left of video */
        #meetingContainer.nonVodShopLayout #me.local-video .number-badge.video-participant-number-badge {
            position: absolute !important;
            top: 6px !important;
            left: 6px !important;
            right: auto !important;
            width: 22px !important;
            height: 22px !important;
            min-width: 22px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            background-color: #28a745 !important;
            color: #ffffff !important;
            border-radius: 50% !important;
            border: none !important;
            box-shadow: none !important;
            font-size: 11px !important;
            font-weight: 700 !important;
            line-height: 1 !important;
            padding: 0 !important;
            pointer-events: none !important;
            z-index: 999998 !important;
        }

        /* Selected check badge - inside top-right of video */
        #meetingContainer.nonVodShopLayout #me.local-video .selected-participant-icon {
            position: absolute !important;
            top: 6px !important;
            right: 6px !important;
            left: auto !important;
            width: 22px !important;
            height: 22px !important;
            min-width: 22px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            background-color: #28a745 !important;
            color: #ffffff !important;
            border-radius: 50% !important;
            border: none !important;
            box-shadow: none !important;
            font-size: 15px !important;
            line-height: 1 !important;
            padding: 0 !important;
            pointer-events: none !important;
            z-index: 999999 !important;
        }
}

/* Final cascade guard: keep the VodShop 2026 layout above legacy rules. */
html body:has(#meetingContainer.serverVodShopLayout) .top-remote-video-show-wrap {
    display: grid !important;
    grid-template-columns: minmax(420px, 3fr) minmax(420px, 2fr) !important;
    gap: 16px !important;
    height: calc(100vh - 142px) !important;
    padding: 16px !important;
}

html body:has(#meetingContainer.serverVodShopLayout) #meetingContainer.serverVodShopLayout,
html body:has(#meetingContainer.serverVodShopLayout) .g-right-details-wrap {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
}

html body:has(#meetingContainer.serverVodShopLayout) #meetingContainer.serverVodShopLayout {
    padding: 16px !important;
    overflow: hidden !important;
}

html body:has(#meetingContainer.serverVodShopLayout) #divUsers.vodshop-customer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    padding: 2px 5px 12px 2px !important;
    overflow-y: auto !important;
}

html body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

    html body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card.selected-video-holder {
        grid-column: 1 / -1 !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card video {
        width: 100% !important;
        height: auto !important;
        min-height: 118px !important;
        margin: 0 !important;
        object-fit: cover !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card.selected-video-holder video {
        min-height: 240px !important;
    }

html body:has(#meetingContainer.serverVodShopLayout) .g-right-details-wrap {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

html body:has(#meetingContainer.serverVodShopLayout) .in-call-chat-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    overflow-y: auto !important;
}

html body:has(#meetingContainer.nonVodShopLayout) .top-remote-video-show-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(340px, 3fr) !important;
    gap: 16px !important;
    height: calc(100vh - 142px) !important;
    padding: 16px !important;
}

html body:has(#meetingContainer.nonVodShopLayout) #meetingContainer.nonVodShopLayout,
html body:has(#meetingContainer.nonVodShopLayout) .g-right-details-wrap {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
}

html body:has(#meetingContainer.nonVodShopLayout) #meetingContainer.nonVodShopLayout {
    padding: 16px !important;
    overflow: hidden !important;
}

html body:has(#meetingContainer.nonVodShopLayout) .vodshop-client-stage > video {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
}

html body:has(#meetingContainer.nonVodShopLayout) #me.vodshop-self-view {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    width: clamp(130px, 24%, 220px) !important;
    height: auto !important;
    margin: 0 !important;
}

@media (max-width: 1096px) {
    html body:has(#meetingContainer.serverVodShopLayout) .top-remote-video-show-wrap,
    html body:has(#meetingContainer.nonVodShopLayout) .top-remote-video-show-wrap {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }
}

@media (max-width: 640px) {
    html body:has(#meetingContainer.serverVodShopLayout) #divUsers.vodshop-customer-grid {
        grid-template-columns: 1fr !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .vodshop-video-card.selected-video-holder {
        grid-column: auto !important;
    }
}

/* ========================================================================== */
/* Reference-image layout: queue | active call/catalogue | synchronized cart  */
/* ========================================================================== */

@media (min-width: 1097px) {
    html body:has(#meetingContainer.serverVodShopLayout) .g-top {
        min-height: 0 !important;
        height: calc(100vh - 126px) !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .top-remote-video-show-wrap {
        display: grid !important;
        grid-template-columns: 220px minmax(520px, 1fr) 330px !important;
        grid-template-rows: 48px minmax(280px, 1fr) minmax(270px, .8fr) !important;
        gap: 10px !important;
        width: 100% !important;
        height: 100% !important;
        padding: 12px !important;
        overflow: hidden !important;
        background: #f5f9fd;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #meetingContainer.serverVodShopLayout {
        grid-column: 2;
        grid-row: 1 / 3;
        display: flex !important;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        padding: 10px !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #meetingContainer .vodshop-panel-heading {
        display: none;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #meetingContainer .vodshop-active-customer {
        flex: 0 0 42px;
        min-height: 42px;
        margin: 0 0 8px;
        padding: 6px 10px;
        border-radius: 8px;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #meetingContainer .vodshop-call-surface {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #divUsers.vodshop-customer-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 3fr) minmax(150px, 1fr) !important;
        grid-template-rows: minmax(0, 1fr) 62px !important;
        gap: 9px !important;
        height: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #divUsers .vodshop-customer-card {
        display: none !important;
    }

        html body:has(#meetingContainer.serverVodShopLayout) #divUsers .vodshop-customer-card.selected-video-holder {
            grid-column: 1;
            grid-row: 1 / 3;
            display: flex !important;
            min-height: 0;
        }

    html body:has(#meetingContainer.serverVodShopLayout) #divUsers .vodshop-agent-card {
        grid-column: 2;
        grid-row: 1;
        display: flex !important;
        min-height: 0;
        order: initial;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #divUsers .vodshop-video-card video,
    html body:has(#meetingContainer.serverVodShopLayout) #divUsers .vodshop-video-card.selected-video-holder video {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #divUsers .vodshop-video-card .video-card-holder {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #divUsers .vodshop-agent-card::after {
        content: "Connected\A High quality";
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 9px);
        height: 53px;
        display: flex;
        align-items: center;
        padding: 8px 10px 8px 28px;
        color: #15803d;
        white-space: pre;
        background: #effcf4;
        border: 1px solid #bbf0ce;
        border-radius: 9px;
        font-size: 11px;
        font-weight: 800;
        box-sizing: border-box;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #divUsers .vodshop-agent-card::before {
        content: "";
        position: absolute;
        left: 11px;
        top: calc(100% + 29px);
        z-index: 2;
        width: 9px;
        height: 9px;
        background: #22c55e;
        border-radius: 50%;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .g-right-details-wrap,
    html body:has(#meetingContainer.serverVodShopLayout) .in-call-chat-wrap,
    html body:has(#meetingContainer.serverVodShopLayout) .people_chat_container {
        display: contents !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #meetingdetails {
        display: none !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .people-chat-wrap {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        height: 48px !important;
        margin: 0 !important;
        padding: 7px 10px !important;
        color: #102a43;
        background: #fff;
        border: 1px solid #dce7f3;
        border-radius: 10px 10px 0 0;
        box-sizing: border-box;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .people-heading {
        width: 100%;
        justify-content: flex-start;
        font-weight: 800;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #serverProceedToCheckout {
        display: none !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .vodshop-customer-queue {
        grid-column: 1;
        grid-row: 2 / 4;
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
        min-height: 0;
        margin-top: -10px;
        padding: 10px 7px;
        overflow-x: hidden;
        overflow-y: auto;
        color: #102a43;
        background: #fff;
        border: 1px solid #dce7f3;
        border-top: 0;
        border-radius: 0 0 10px 10px;
        box-sizing: border-box;
    }

        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-customer-queue .in-call-wrap {
            flex: 0 0 auto;
            min-height: 55px;
            padding: 7px !important;
            cursor: pointer;
        }

        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-customer-queue .participant-img img {
            width: 36px !important;
            height: 36px !important;
        }

        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-customer-queue .participant-name {
            max-width: 80px;
            overflow: hidden;
            font-size: 11px;
            font-weight: 800;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-customer-queue .participant-action-dot,
        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-customer-queue .participant-action-disconnect {
            display: none !important;
        }

    html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace {
        grid-column: 2;
        grid-row: 3;
        position: relative;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 8px;
        min-width: 0;
        min-height: 0;
        height: 100% !important;
        padding: 42px 12px 12px;
        overflow-y: auto;
        color: #102a43;
        background: #fff;
        border: 1px solid #dce7f3;
        border-radius: 10px;
        box-sizing: border-box;
    }

        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace::before {
            content: "Product Catalogue";
            position: absolute;
            top: 12px;
            left: 12px;
            color: #102a43;
            font-size: 14px;
            font-weight: 900;
        }

        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace > * {
            min-width: 0;
        }

        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace > .search-box,
        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace > .product-selection,
        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace > #sendpart,
        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace > :first-child {
            width: 100% !important;
            margin: 0 !important;
        }

        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace > :first-child,
        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace > #sendpart {
            grid-column: 1 / -1;
        }

    html body:has(#meetingContainer.serverVodShopLayout) .product-image-container {
        display: none !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .vodshop-selected-cart {
        grid-column: 3;
        grid-row: 1 / 4;
        position: relative;
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        padding: 45px 11px 12px;
        overflow: hidden;
        color: #102a43;
        background: #fff;
        border: 1px solid #dce7f3;
        border-radius: 10px;
        box-sizing: border-box;
    }

        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-selected-cart::before {
            content: "Selected customer's cart";
            position: absolute;
            top: 13px;
            left: 12px;
            color: #102a43;
            font-size: 14px;
            font-weight: 900;
        }

        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-selected-cart #cart {
            display: flex !important;
            flex: 1 1 auto;
            flex-direction: column;
            grid-template-columns: none !important;
            gap: 7px !important;
            min-height: 0;
            padding: 0 !important;
            overflow-y: auto;
        }

            html body:has(#meetingContainer.serverVodShopLayout) .vodshop-selected-cart #cart .product {
                width: 100% !important;
                display: grid !important;
                grid-template-columns: 58px minmax(0, 1fr) !important;
                gap: 8px !important;
                padding: 8px !important;
                text-align: left !important;
                box-sizing: border-box;
            }

                html body:has(#meetingContainer.serverVodShopLayout) .vodshop-selected-cart #cart .product img {
                    width: 54px !important;
                    height: 48px !important;
                    object-fit: contain;
                }

        html body:has(#meetingContainer.serverVodShopLayout) .vodshop-selected-cart #cart-summary {
            flex: 0 0 auto;
            width: 100% !important;
            margin: 10px 0 0 !important;
            padding: 10px !important;
            box-sizing: border-box;
        }

    html body:has(#meetingContainer.serverVodShopLayout) #messages {
        display: none !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .g-top-left {
        display: none !important;
    }

    /* Customer reference layout: agent video on the left, cart/checkout on right. */
    html body:has(#meetingContainer.nonVodShopLayout) .g-top {
        min-height: 0 !important;
        height: calc(100vh - 126px) !important;
    }

    html body:has(#meetingContainer.nonVodShopLayout) .top-remote-video-show-wrap {
        display: grid !important;
        grid-template-columns: minmax(560px, 1fr) 330px !important;
        grid-template-rows: minmax(0, 1fr) !important;
        gap: 12px !important;
        height: 100% !important;
        padding: 12px !important;
        background: #f5f9fd;
    }

    html body:has(#meetingContainer.nonVodShopLayout) #meetingContainer.nonVodShopLayout {
        grid-column: 1;
        min-width: 0;
        min-height: 0;
        padding: 10px !important;
    }

    html body:has(#meetingContainer.nonVodShopLayout) .g-right-details-wrap {
        grid-column: 2;
        display: flex !important;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        overflow: hidden !important;
    }

        html body:has(#meetingContainer.nonVodShopLayout) .g-right-details-wrap #meetingdetails,
        html body:has(#meetingContainer.nonVodShopLayout) .g-right-details-wrap .in-call-wrap-up,
        html body:has(#meetingContainer.nonVodShopLayout) .g-right-details-wrap #messages {
            display: none !important;
        }

        html body:has(#meetingContainer.nonVodShopLayout) .g-right-details-wrap .people-chat-wrap {
            flex: 0 0 48px;
            height: 48px !important;
            margin: 0 !important;
            padding: 8px 12px !important;
        }

        html body:has(#meetingContainer.nonVodShopLayout) .g-right-details-wrap .in-call-chat-wrap {
            flex: 1 1 auto;
            min-height: 0;
            height: auto !important;
            margin: 0 !important;
            padding: 10px !important;
            overflow-y: auto !important;
        }

    html body:has(#meetingContainer.nonVodShopLayout) .vodshop-selected-cart {
        position: relative;
        min-height: 100%;
        padding-top: 38px;
    }

        html body:has(#meetingContainer.nonVodShopLayout) .vodshop-selected-cart::before {
            content: "Your Cart";
            position: absolute;
            top: 8px;
            left: 5px;
            color: #102a43;
            font-size: 15px;
            font-weight: 900;
        }

        html body:has(#meetingContainer.nonVodShopLayout) .vodshop-selected-cart #cart {
            display: flex !important;
            flex-direction: column;
            grid-template-columns: none !important;
            gap: 7px !important;
            padding: 0 !important;
        }
}

.vodshop-active-metrics {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    color: #4f6680;
    font-size: 11px;
    white-space: nowrap;
}

    .vodshop-active-metrics > span > strong {
        color: #075fbd;
    }

.participant-queue-copy {
    min-width: 0;
}

.queue-status {
    position: relative;
    margin-top: 2px;
    padding-left: 10px;
    color: #8a6517;
    font-size: 10px;
    font-weight: 700;
}

    .queue-status::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 6px;
        height: 6px;
        transform: translateY(-50%);
        background: #f59e0b;
        border-radius: 50%;
    }

    .queue-status.is-active {
        color: #15803d;
    }

        .queue-status.is-active::before {
            background: #22c55e;
        }

@media (max-width: 700px) {
    .vodshop-active-metrics {
        align-items: flex-end;
        flex-direction: column;
        gap: 3px;
        white-space: normal;
    }
}


/* ========================================================================== */
/* Agent "Add products" card (pilot redesign).                                 */
/* The rules above turn .vodshop-product-workspace into a 2-column grid with   */
/* an injected "Product Catalogue" title. The new card (.vsw) has its own      */
/* heading and a single column, so undo those rules for it.                    */
/* ========================================================================== */

html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace.vsw {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    padding: 16px !important;
    border-radius: 14px;
}

html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace.vsw::before {
    content: none !important;
    display: none !important;
}

html body:has(#meetingContainer.serverVodShopLayout) .vodshop-product-workspace.vsw > * {
    grid-column: auto !important;
    width: 100% !important;
    margin: 0 !important;
}


/* The old ".g-right-details-wrap .send-btn" rule makes every send button small and
   blue. The card's Add to cart button stays big and green. */
.g-right-details-wrap .vsw .send-btn.vsw-add,
.vsw .send-btn.vsw-add {
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    background: #16a34a !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .25) !important;
    gap: 8px;
}

.g-right-details-wrap .vsw .send-btn.vsw-add:hover,
.vsw .send-btn.vsw-add:hover {
    background: #12873d !important;
}

/* Global ".g-right-details-wrap .form-control" sets padding with !important:
   leave room for the search icon. */
.g-right-details-wrap .vsw #productSearchInput,
.vsw #productSearchInput {
    padding-left: 42px !important;
}

/* Inputs and selects in the card: same height and full width. */
.g-right-details-wrap .vsw .form-control,
.g-right-details-wrap .vsw #quantityInput {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 10px !important;
}

/* The review area is a simple block inside the card (old rules made #sendpart a grid). */
.g-right-details-wrap .vsw #sendpart.vsw-send {
    display: block !important;
    gap: 0 !important;
    margin: 0 !important;
}

/* ========================================================================== */
/* Agent room layout fix (2026-11-22)                                          */
/* 1. The agent's own video ("You · Agent") disappeared when a customer was    */
/*    selected: the script calls scrollIntoView() on the customer's video,     */
/*    which was taller than its box, so the box scrolled and the agent tile    */
/*    (pinned at its top) went out of view. The box now cannot scroll and the  */
/*    customer video always fits inside it.                                    */
/* 2. The whole agent page was locked to the screen height, so the "Add        */
/*    products" card got squeezed. The page now grows: fixed-height video,     */
/*    product card as tall as its content.                                     */
/* ========================================================================== */

@media (min-width: 1097px) {

    /* --- 1. agent self-view stays visible --- */

    html body:has(#meetingContainer.serverVodShopLayout) #divUsers.vodshop-customer-grid {
        overflow: clip !important;          /* "clip" also blocks scrollIntoView() */
    }

    html body:has(#meetingContainer.serverVodShopLayout) #divUsers .vodshop-customer-card.selected-video-holder {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #divUsers .vodshop-customer-card.selected-video-holder .video-card-holder,
    html body:has(#meetingContainer.serverVodShopLayout) #divUsers .vodshop-customer-card.selected-video-holder video {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) #divUsers #me.vodshop-agent-card {
        z-index: 60 !important;
    }

    /* --- 2. page grows instead of squeezing --- */

    html body:has(.vodshop-web #meetingContainer.serverVodShopLayout) .vodshop-agent-shell .g-top,
    html body:has(#meetingContainer.serverVodShopLayout) .vodshop-agent-shell .g-top {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .vodshop-agent-shell .top-remote-video-show-wrap {
        height: auto !important;
        overflow: visible !important;
        /* header row · video (fixed, never shrinks) · products (as tall as needed) */
        grid-template-rows: 48px clamp(320px, 42vh, 500px) auto !important;
        align-items: stretch;
        /* room for the fixed call controls bar at the bottom of the screen */
        padding-bottom: 96px !important;
    }

    html body:has(#meetingContainer.serverVodShopLayout) .vodshop-agent-shell .vodshop-product-workspace.vsw {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        align-self: start;
    }
}
