/* Desktop presentation only. Mobile / Flutter views keep their existing styling. */
.desktop-only { display: none; }
@media (min-width: 992px) {
    html:has(.vodshop-web) { font-size: 16px; }
    body:has(.vodshop-web) { margin: 0; background: #f3f7fc; color: #18375d; font-family: 'Segoe UI', Arial, sans-serif; }
    .vodshop-web { min-height: 100vh; }
    .vodshop-web > main { display: flex; flex-direction: column; min-height: 100vh; }
    .vodshop-web .desktop-only { display: block; }
    .vodshop-web h1, .vodshop-web h2, .vodshop-web h3, .vodshop-web p { font-family: inherit; }
    .vodshop-web a:focus-visible, .vodshop-web button:focus-visible, .vodshop-web select:focus-visible { outline: 3px solid #52c5c7; outline-offset: 3px; }
    .vodshop-web > main > article.content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px 40px 40px !important; flex: 1; }
    /* Replace the oversized header and blank account band with two compact rows. */
    .vodshop-web .web-header { background: #155dbc; box-shadow: 0 4px 18px #18375d12; }
    .vodshop-web .web-header .navbar { padding: 16px 40px 10px; background: transparent !important; }
    .vodshop-web .web-header .container { max-width: 1360px; padding: 0; }
    .vodshop-web .web-header .nav-logo { height: 66px; max-width: 150px; }
    .vodshop-web .web-header .navbar-brand { margin-right: 32px; }
    .vodshop-web .web-header .navbar-collapse { display: flex !important; flex-wrap: nowrap; gap: 24px; }
    .vodshop-web .web-header .navbar-nav { flex-direction: row; margin: 0 !important; gap: 4px; flex-shrink: 0; }
    .vodshop-web .web-header .nav-item { padding: 0; font-size: 14px; }
    .vodshop-web .web-header .nav-item a { padding: 10px 12px; height: 42px; color: white; font-weight: 600; line-height: 22px; display: flex; align-items: center; gap: 7px; border-radius: 8px; text-decoration: none; margin: 0 !important; }
    .vodshop-web .web-header .nav-item a:hover { background: #ffffff20; }
    .vodshop-web .web-header .oi { width: auto; font-size: 14px; top: 0; }
    .vodshop-web .web-header .badge { background: #fff; color: #155dbc; border-radius: 20px; }
    .vodshop-web .web-nav-search { flex: 1; min-width: 160px; }
    .vodshop-web .web-nav-search .input-group { flex-wrap: nowrap; }
    .vodshop-web .web-nav-search input { height: 44px; font-size: 14px; background: #fff; padding: 10px 14px; border: 0; border-radius: 9px 0 0 9px; }
    .vodshop-web .web-nav-search button { height: 44px; width: 48px; border: 0; background: #0f4288; border-radius: 0 9px 9px 0; padding: 8px !important; }
    .vodshop-web .web-header .top-row { height: 42px; padding: 0 40px 8px !important; border: 0; background: transparent; display: flex; justify-content: flex-end; align-items: center; max-width: 1440px; margin: auto; }
    .vodshop-web .web-header .grid-container { gap: 8px; float: none; }
    .vodshop-web .web-header .grid-item { padding: 0; }
    .vodshop-web .web-header .user-button { margin: 0; font-size: 13px !important; border: 1px solid #ffffff40; background: #ffffff14; padding: 5px 10px !important; height: 32px; color: #fff; border-radius: 7px; }
    .vodshop-web .web-header .user-button * { padding: 0 !important; }
    .vodshop-web .web-header .dropdown-menu { font-size: 14px; min-width: 190px; z-index: 2000; }
    .vodshop-web .web-header .dropdown-item { color: #18375d; }
    .vodshop-web .web-kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.7px; margin-bottom: 14px; }
    .vodshop-web .web-hero { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 24px; overflow: hidden; background: #153f78; color: #fff; min-height: 365px; }
    .vodshop-web .web-hero-copy { padding: 42px; background: linear-gradient(115deg,#173b6b,#155fbe); }
    .vodshop-web .web-hero h1 { font-size: clamp(32px,3vw,44px); line-height: 1.12; font-weight: 750; letter-spacing: -1.3px; margin: 0 0 18px; color: #fff; max-width: 530px; }
    .vodshop-web .web-hero p { font-size: 16px; color: #dfebfb; line-height: 1.7; max-width: 500px; margin-bottom: 24px; }
    .vodshop-web .web-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
    .vodshop-web .web-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; background: #155fbe; color: #fff; padding: 14px 22px; border-radius: 30px; font-size: 14px; font-weight: 700; text-decoration: none; }
    .vodshop-web .web-button:hover { background: #104d9c; color: #fff; }
    .vodshop-web .web-button-light { background: #fff; color: #18375d; }
    .vodshop-web .web-button-light:hover { background: #e8f2ff; color: #18375d; }
    .vodshop-web .web-text-link { font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 5px; }
    .vodshop-web .web-hero-visual { position: relative; min-width: 0; }
    .vodshop-web .web-hero-visual > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
    .vodshop-web .web-hero-caption { position: absolute; bottom: 24px; left: 24px; right: 24px; background: #ffffffed; color: #18375d; padding: 18px 22px; border-radius: 14px; box-shadow: 0 6px 20px #00162d1a; }
    .vodshop-web .web-hero-caption span { display: block; font-size: 10px; letter-spacing: 1.5px; color: #537090; margin-bottom: 5px; }
    .vodshop-web .web-hero-caption strong { font-size: 20px; }
    .vodshop-web .web-benefits { display: grid; grid-template-columns: repeat(3,1fr); margin: 22px 0 32px; border: 1px solid #dce6f2; border-radius: 16px; background: #fff; }
    .vodshop-web .web-benefits > div { padding: 22px 24px; }
    .vodshop-web .web-benefits > div + div { border-left: 1px solid #e7edf6; }
    .vodshop-web .web-benefits span { float: left; display: grid; place-items: center; margin-right: 14px; width: 36px; height: 36px; border-radius: 12px; color: #155fbe; background: #edf5ff; font-size: 12px; font-weight: 700; }
    .vodshop-web .web-benefits strong { font-size: 15px; }
    .vodshop-web .web-benefits p { font-size: 13px; line-height: 1.5; margin: 5px 0 0 50px; color: #62768c; }
    .vodshop-web .home-page { background: transparent; padding: 0; }
    /* Preserve the original slideshow, photographs, and initialization. */
    .vodshop-web .hero-container { display: block; max-width: none; margin: 26px 0 22px; padding: 0; }
    .vodshop-web .web-slider-title { font-size: 25px; font-weight: 700; color: #18375d; margin: 0 0 16px; letter-spacing: -.5px; }
    .vodshop-web .hero-carousel { border-radius: 18px; overflow: hidden; background: #fff; }
    .vodshop-web .hero-image, .vodshop-web .side-banner-image { height: 280px; border-radius: 18px; }
    .vodshop-web .carousel-control-prev, .vodshop-web .carousel-control-next { width: 10%; opacity: 1; }
    .vodshop-web .carousel-control-prev-icon, .vodshop-web .carousel-control-next-icon { background-color: #18375d9c; padding: 18px; border-radius: 50%; background-size: 45%; }
    .vodshop-web .carousel-indicators { margin-bottom: 12px; list-style: none; }
    .vodshop-web .carousel-indicators li { cursor: pointer; width: 20px; height: 4px; background: #18375d; margin: 0 4px; opacity: .4; }
    .vodshop-web .carousel-indicators li.active { opacity: 1; }
    .vodshop-web .section-container { max-width: none; margin: 28px 0; padding: 0; scroll-margin-top: 24px; }
    .vodshop-web .section-card { border: 0; border-radius: 18px; box-shadow: none; background: transparent; overflow: visible; }
    .vodshop-web .section-header { background: transparent; color: #18375d; font-size: 25px; letter-spacing: -.5px; padding: 0 0 18px; }
    .vodshop-web .section-header i { display: none; }
    .vodshop-web .section-body { padding: 0; }
    .vodshop-web .category-mat-card, .vodshop-web .product-mat-card { border: 1px solid #dce6f2; border-radius: 16px; box-shadow: 0 4px 12px #153f7806; }
    .vodshop-web .category-mat-card-content { min-height: 0; background: #fff; padding: 18px 20px 8px; }
    .vodshop-web .category-mat-card-title { font-size: 18px; color: #18375d; }
    .vodshop-web .category-image { height: 155px; }
    .vodshop-web .category-mat-card-action { padding: 0 12px 8px; }
    .vodshop-web .product-title { font-size: 20px; color: #18375d; }
    .vodshop-web .product-mat-card-content { min-height: 0; background: #f7faff; padding: 12px 18px; }
    .vodshop-web .product-mat-card-title { font-size: 14px; }
    .vodshop-web .select-unit { font-size: 14px; }
    .vodshop-web .web-footer { background: #e8eff8; border-top: 1px solid #d7e3f0; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px max(40px,calc((100vw - 1360px)/2)); color: #18375d; }
    .vodshop-web .web-footer strong { font-size: 22px; letter-spacing: -.7px; }
    .vodshop-web .web-footer p, .vodshop-web .web-footer > span { font-size: 12px; color: #61758c; margin: 6px 0 0; }
    .vodshop-web .web-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
    .vodshop-web .web-footer a { font-size: 13px; color: #18375d !important; text-decoration: none; }
    /* Login: a welcoming explanation beside the existing authentication form. */
    .vodshop-web .login-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; max-width: 1100px; margin: 12px auto; padding: 30px 20px; background: transparent; }
    .vodshop-web .web-login-story h1 { font-size: 40px; line-height: 1.15; letter-spacing: -1px; font-weight: 750; color: #18375d; }
    .vodshop-web .web-login-story p { font-size: 16px; line-height: 1.7; color: #62768c; margin: 16px 0 22px; }
    .vodshop-web .web-login-story img { width: 100%; height: 200px; object-fit: cover; border-radius: 18px; }
    .vodshop-web .web-login-note { padding: 18px 0; }
    .vodshop-web .web-login-note strong, .vodshop-web .web-login-note span { display: block; }
    .vodshop-web .web-login-note strong { font-size: 15px; }
    .vodshop-web .web-login-note span { font-size: 13px; color: #62768c; margin-top: 4px; }
    .vodshop-web .login-card-wrapper { max-width: 440px; }
    .vodshop-web .login-card { border-radius: 20px; border: 1px solid #dce6f2; box-shadow: 0 12px 40px #153f780b; }
    .vodshop-web .login-card-header { padding: 28px 28px 6px; text-align: left; background: white; color: #18375d; }
    .vodshop-web .login-card-header h3 { font-size: 28px; }
    .vodshop-web .login-card-header p { font-size: 14px; color: #62768c; opacity: 1; }
    .vodshop-web .login-form { padding: 24px 28px 28px; }
    .vodshop-web .login-form label { font-size: 13px; color: #18375d; }
    .vodshop-web .login-form input { height: 48px; font-size: 15px; background: #f8fbff; border-radius: 9px; }
    .vodshop-web .login-button { font-size: 15px; padding: 14px; border-radius: 10px; }
    .vodshop-web .web-register-link { text-align: center; margin-top: 20px; color: #62768c; font-size: 13px; }
    .vodshop-web .web-register-link a { font-weight: 700; }
    /* Cart: useful next steps instead of a single label in an empty page. */
    .vodshop-web .web-empty-cart { max-width: 1020px; margin: 10px auto; }
    .vodshop-web .web-cart-heading h1, .vodshop-web .web-page-heading h1 { font-size: 30px; letter-spacing: -.7px; font-weight: 750; margin: 0 0 20px; }
    .vodshop-web .empty-cart-message { max-width: none; margin: 0; padding: 46px 30px; border-radius: 20px; box-shadow: 0 6px 24px #153f7807; border: 1px solid #dce6f2; text-align: center; background: #fff; }
    .vodshop-web .web-empty-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: #edf5ff; color: #155fbe; font-size: 28px; margin: 0 auto 20px; }
    .vodshop-web .empty-cart-message h2 { font-size: 24px; color: #18375d; font-weight: 700; }
    .vodshop-web .empty-cart-message p { max-width: 440px; margin: 12px auto 24px; color: #62768c; font-size: 15px; line-height: 1.65; font-weight: 400; }
    .vodshop-web .web-empty-actions { display: flex; justify-content: center; align-items: center; gap: 24px; font-size: 14px; flex-wrap: wrap; }
    .vodshop-web .web-cart-tip { padding: 24px 28px; margin-top: 20px; border: 1px solid #dce6f2; border-radius: 16px; background: #eaf3ff; }
    .vodshop-web .web-cart-tip strong { font-size: 16px; }
    .vodshop-web .web-cart-tip p { margin: 6px 0 0; font-size: 14px; color: #62768c; }
    .vodshop-web .web-page-heading { padding: 4px 0 10px; }
    .vodshop-web .web-page-heading h1 { margin-bottom: 8px; }
    .vodshop-web .web-page-heading p { font-size: 14px; color: #62768c; margin: 0 0 18px; }
    .vodshop-web #divcalendar { margin-top: 0; }
    /* Live room guidance is driven by existing selection DOM state. */
    .vodshop-web .vodshop-call-surface { position: relative; }
    .vodshop-web .web-call-empty { display: none; }
    .vodshop-web .vodshop-call-surface:not(:has(.vodshop-customer-card.selected-video-holder)) .web-call-empty { display: flex; position: absolute; inset: 12px 28% 12px 12px; z-index: 1; align-items: center; justify-content: center; flex-direction: column; padding: 24px; text-align: center; border: 1px dashed #d2e1f2; background: #f5f9ff; border-radius: 14px; pointer-events: none; }
    .vodshop-web .web-call-empty h2 { font-size: 21px; font-weight: 700; color: #18375d; }
    .vodshop-web .web-call-empty p { max-width: 350px; font-size: 13px; line-height: 1.6; color: #62768c; }
    .vodshop-web .web-call-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 11px; color: #537090; }
    .vodshop-web:has(.vodshop-meeting-shell) .web-footer { display: none; }
    .vodshop-web:has(.vodshop-meeting-shell) > main > article.content { max-width: none; padding: 18px 24px !important; }
    .vodshop-web .vodshop-app-header { margin-bottom: 14px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .vodshop-web .web-header .navbar { padding-inline: 24px; }
    .vodshop-web .web-header .navbar-brand { margin-right: 18px; }
    .vodshop-web .web-header .navbar-collapse { gap: 12px; }
    .vodshop-web .web-header .nav-item a { padding-inline: 8px; font-size: 13px; }
    .vodshop-web .web-hero-copy { padding: 32px; }
    .vodshop-web .login-page { gap: 40px; }
    .vodshop-web .web-footer > span { display: none; }
}

@media (min-width: 992px) {
    .vodshop-web .web-mobile-cart-label { display: none; }
    .vodshop-web .vodshop-selected-cart #cart:empty::after { content: attr(data-empty-message); display: block; padding: 26px 14px; border: 1px dashed #d2e1f2; border-radius: 12px; margin-top: 12px; color: #62768c; font-size: 13px; line-height: 1.7; text-align: center; background: #f5f9ff; }
}
@media (min-width: 1097px) {
    html body:has(.vodshop-web #meetingContainer.serverVodShopLayout) .g-top,
    html body:has(.vodshop-web #meetingContainer.nonVodShopLayout) .g-top { height: max(620px, calc(100vh - 270px)) !important; }
}

/* Home keeps its original slider below a shorter, text-only introduction. */
@media (min-width: 992px) {
    .vodshop-web .web-hero { display: block; min-height: 0; }
    .vodshop-web .web-hero-copy { padding: 30px 36px; }
    .vodshop-web .web-hero h1 { max-width: none; font-size: clamp(30px, 2.7vw,40px); margin-bottom: 12px; }
    .vodshop-web .web-hero p { max-width: 840px; margin-bottom: 20px; }
}

/* Legacy calendar styles also load on shop pages; keep shop typography consistent. */
@media (min-width: 992px) {
    .vodshop-web { font-family: 'Segoe UI', Arial, sans-serif !important; }
    .vodshop-web :where(h1,h2,h3,h4,h5,h6,p,strong,label,button,input,select,a) { font-family: inherit !important; }
    .vodshop-web .web-hero h1, .vodshop-web .web-login-story h1, .vodshop-web .web-page-heading h1 { text-align: start !important; }
    .vodshop-web .home-page .variant-row { min-height: 0 !important; padding: 10px 12px !important; margin: 0 !important; line-height: 1.5 !important; font-size: 14px; }
    .vodshop-web .home-page .variant-section { padding: 12px; }
    .vodshop-web .home-page .variant-prices { gap: 8px; }
    .vodshop-web .home-page .product-mat-card-title { line-height: 1.6; }
    .vodshop-web .login-input.valid.modified { outline: none; }
}

/* Header search was squeezed to ~110px: the header used a narrow fixed-width
   container, and the logos + menu took all the room. Use the full header width
   and give the search a real minimum size. */
@media (min-width: 992px) {
    .vodshop-web .web-header .navbar > .container {
        width: 100% !important;
        max-width: 1440px !important;
        padding-inline: 0 !important;
    }

    .vodshop-web .web-header .navbar-collapse {
        flex: 1 1 auto;
        min-width: 0;
    }

    .vodshop-web .web-nav-search {
        flex: 1 1 340px;
        min-width: 240px;
        max-width: 480px;
        margin-left: auto;
    }

    .vodshop-web .web-nav-search .input-group {
        width: 100%;
    }

    .vodshop-web .web-nav-search input {
        min-width: 0;
        flex: 1 1 auto;
        font-size: 15px;
    }
}

@media (min-width: 992px) and (max-width: 1279px) {
    .vodshop-web .web-nav-search {
        min-width: 190px;
    }
}

/* Arabic (right-to-left): mirror the brand margins. The left-to-right rules
   (margin-left:-15px in webfont-medical.css, margin-right above) otherwise pull
   the VodShop logo into the Aurès partner box. */
html[dir="rtl"] .vodshop-web .web-header .navbar-brand,
html[dir="rtl"] .navbar > .container .navbar-brand {
    margin-left: 18px;
    margin-right: -15px;
}

/* normalize.css capitalizes every word on .btn ("Passer À La Caisse").
   French only capitalizes the first word, and Arabic has no capitals. */
html[lang="fr"] .btn,
html[lang="ar"] .btn {
    text-transform: none;
}

/* Same shop font on every screen size (the rule above only applies from 992px,
   so phones and tablets fell back to the legacy fonts). */
.vodshop-web { font-family: 'Segoe UI', Roboto, Arial, sans-serif !important; }
.vodshop-web :where(h1,h2,h3,h4,h5,h6,p,strong,label,button,input,select,a) { font-family: inherit !important; }

/* Phones and tablets: login card header is blue, so the welcome line must be light
   (it was grey on blue and very large); the register link now shows on all sizes. */
@media (max-width: 991.98px) {
    .vodshop-web .login-card-header p { color: rgba(255, 255, 255, 0.9) !important; font-size: 15px !important; opacity: 1 !important; }
    .vodshop-web .web-register-link { text-align: center; margin: 4px 16px 20px; color: #62768c; font-size: 14px; }
    .vodshop-web .web-register-link a { font-weight: 700; }
}
