:root {
  color-scheme: light only;

  /* ── Campus Bulkmart brand tokens (CBM_BRANDING.docx) ── */
  --cbm-navy: #000080;
  --cbm-matte-black: #1A1A1A;
  --cbm-pure-white: #FFFFFF;
  --cbm-olive-green: #3B592D;
  --cbm-cool-gray: #F4F4F4;
  --cbm-electric-blue: #000080;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;800;900&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--cbm-matte-black);
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--cbm-navy);
}

h1 {
  font-weight: 900;
}

.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

/* CTA buttons — Electric Blue per branding doc */
.cta-btn {
  background: var(--cbm-electric-blue);
  color: #fff;
}
.cta-btn:hover {
  background: #0069d9;
}

/* Secondary CTAs / badges / trust signals — Olive Green */
.badge-olive {
  background: var(--cbm-olive-green);
  color: #fff;
}

/* Scrollbar hide */
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

/* Product image — object-fit: contain so the whole product is always
   visible, regardless of the source photo's aspect ratio (some admin-
   uploaded images are tall/narrow and were getting cropped badly with
   object-fit: cover). The neutral background fills any letterboxing. */
.product-img {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.product-img:hover {
  transform: scale(1.06);
}

/* Image container — fixed aspect ratio so all cards are uniform */
.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

/* Soft scrim at the base of every product photo — keeps floating
   chips/tags legible on light photos and blends the photo into the
   white card body instead of a hard cut line */
.product-img-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* ============================================================
   Category navigation — plain text nav items (icon + label, no
   pill/border/background box), matching the reference e-commerce
   nav Lucky asked for. One shared rule set used by desktop.html,
   mobile.html, products-desktop.html, products-mobile.html and the
   dynamically-injected custom-category buttons in cart-checkout.js's
   renderCustomCategoryTabs() — so a change here applies everywhere.
   ============================================================ */
.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: #4b5563;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}
.category-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}
.category-btn.active {
  color: var(--cbm-electric-blue);
  font-weight: 700;
  background: transparent;
}
.category-btn.active:hover {
  background: #eff6ff;
}

/* Product card — uniform height regardless of text length */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Force every card to fill its grid cell top-to-bottom */
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  background: #fff;
  /* Soft ambient shadow instead of a hard border — a card should read
     as a physical price-tag resting on the page, not a boxed div */
  box-shadow: 0 1px 2px rgba(0, 0, 128, 0.05), 0 10px 24px -16px rgba(0, 0, 128, 0.35);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -14px rgba(0, 0, 128, 0.28);
}

/* The text body of the card grows to push the CTA to the bottom */
.product-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
/* Name + desc area grows; price/qty/button stay pinned at bottom */
.product-card .card-body .card-text {
  flex: 1;
}

/* Hostel service card — pill variant selector */
.variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.variant-pill {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.variant-pill.selected {
  border-color: #000080;
  background: #000080;
  color: #fff;
}
.variant-pill:hover:not(.selected) {
  border-color: #000080;
  color: #000080;
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
}

/* Star rating */
.star-filled { color: #f59e0b; }
.star-empty { color: #d1d5db; }

/* Toast animation */
#toast.show {
  display: flex !important;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Admin form styles */
.admin-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.admin-input:focus {
  border-color: #000080;
  box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.1);
}

/* Page transitions */
.page-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Review stars interactive */
.star-btn {
  cursor: pointer;
  font-size: 24px;
  color: #d1d5db;
  transition: color 0.15s, transform 0.15s;
}
.star-btn:hover,
.star-btn.selected {
  color: #f59e0b;
  transform: scale(1.15);
}

/* ── Lower Banner — promo/CTA strip, admin-editable (settings/siteContent) ── */
.lower-banner {
  background: linear-gradient(135deg, #000080 0%, #0000aa 60%, #00006a 100%);
  text-align: center;
}
.lower-banner-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 48px 16px;
}
.lower-banner-title {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.lower-banner-subtext {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  max-width: 34rem;
  margin: 0 auto 22px;
  line-height: 1.5;
}
.lower-banner-btn {
  display: inline-block;
  background: #fff;
  color: var(--cbm-navy);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 30px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.lower-banner-btn:hover {
  background: #f4f4f4;
  transform: translateY(-2px);
}

/* ============================================================
   Product card redesign — "price tag" motif
   Campus Bulkmart cards are built like a market price tag: a photo,
   a dashed tear-line where the tag would be torn off at the till, and
   the price/CTA below it. A floating tag-button sits on the photo
   itself for a one-tap quick action.
   ============================================================ */

/* Category eyebrow with a small "tag" dot */
.cbm-eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cbm-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cbm-electric-blue);
  flex-shrink: 0;
}
.cbm-eyebrow-dot.olive {
  background: var(--cbm-olive-green);
}

/* Dashed "tear line" between details and price — the moment a market
   price tag would be torn off at checkout */
.cbm-tear {
  border-top: 1.5px dashed #e2e4ea;
  margin: 2px 0 10px;
}

/* Floating tag-button on the photo — quick add for simple products,
   quick view for anything that needs a choice made first */
.cbm-fab {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  color: var(--cbm-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}
.cbm-fab:hover {
  background: var(--cbm-navy);
  color: #fff;
  transform: scale(1.08);
}
.cbm-fab svg {
  width: 15px;
  height: 15px;
}

/* Group-order chip — sits inline beside the price instead of its own
   full-width banner line */
.cbm-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f0f4ec;
  color: var(--cbm-olive-green);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Glassy over-photo badges (top pick / service / low stock) */
.cbm-chip {
  backdrop-filter: blur(3px);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Pill CTA — replaces the old rounded-lg button */
.cbm-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--cbm-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 0;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
.cbm-cta:hover {
  opacity: 0.92;
  box-shadow: 0 8px 18px rgba(0, 0, 128, 0.3);
}

/* Segmented pill quantity stepper — compact and centered, not
   stretched full-width (a full-width flex pill was pushing the −/+
   buttons out to the card edges with a big dead gap around the
   number, which read as oversized and "loose") */
.cbm-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  background: #f3f4f6;
  border-radius: 9999px;
  padding: 3px;
  margin: 0 auto 8px;
}
.cbm-stepper-btn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--cbm-navy);
  border: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.cbm-stepper-input {
  flex: none;
  width: 24px;
  text-align: center;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--cbm-matte-black);
  -moz-appearance: textfield;
}

/* ── Tablet-landscape product grid override ──
   Tailwind's lg:grid-cols-4 (1024px) can't tell a landscape iPad from a
   narrow laptop window by width alone, so a small JS check in
   desktop.html / products-desktop.html adds .cbm-grid-tablet to
   #productGrid specifically for touch devices in the ~900-1400px
   landscape band. Forces 3 columns there instead of 4 — 4 was too
   cramped on real tablets. Non-touch screens at the same width are
   unaffected and keep the normal Tailwind-driven column count. */
#productGrid.cbm-grid-tablet {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ── Footer social links ── */
.footer-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.footer-social-link:hover {
  background: var(--cbm-electric-blue);
  color: #fff;
  transform: translateY(-2px);
}
/* ============================================================
   Top Deals Carousel (Phase 22b)
   Sub-category rows (Discount Offers / CB Vendors / CB Products /
   CB Services / Groceries) shown above the product grid, each row
   independently horizontally scrollable with auto-scroll. Rows with
   no items hide themselves; the whole wrapper hides if every row is
   empty. Row order comes from the "topDealsCategoryOrder" settings
   key (falls back to a hardcoded default — see products.js).
   ============================================================ */
.cbm-topdeals-wrapper {
  margin-bottom: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cbm-topdeals-row {
  margin-bottom: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cbm-topdeals-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  margin-bottom: 8px;
}

.cbm-topdeals-row-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--cbm-navy);
  margin: 0;
}

/* Track — a fixed-height clipping viewport only. All motion lives on
   .cbm-topdeals-track-inner (see below) via a CSS transform animation
   rather than native scrolling — this sidesteps scroll-snap and
   scroll-anchoring entirely, since nothing actually scrolls anymore.
   overflow:hidden also means no scrollbar to hide. */
.cbm-topdeals-track {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 2px 0 6px;
  cursor: grab;
  touch-action: pan-y; /* let vertical page scroll pass through; horizontal drag is handled ourselves */
}
.cbm-topdeals-track.cbm-topdeals-dragging {
  cursor: grabbing;
}

/* The actual moving element. width:max-content so it's exactly as
   wide as its (doubled) card content, never wrapped or clipped by a
   percentage-based width. animation-duration is set per-row in JS
   (AUTO_SCROLL_PX_PER_SEC in products.js), based on that row's real
   content width, so every row feels like the same steady speed
   regardless of how many cards it has. */
.cbm-topdeals-track-inner {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
  animation-name: cbm-topdeals-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes cbm-topdeals-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); } /* content is rendered twice, so -50% is exactly one full set */
}

/* Hover-pause is pure CSS — desktop only in practice, since hover
   doesn't really exist on touch. Touch/drag pausing is handled in JS
   (setupTopDealsAutoScroll) since there's no CSS equivalent for that. */
.cbm-topdeals-track:hover .cbm-topdeals-track-inner,
.cbm-topdeals-track-inner.cbm-topdeals-paused {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .cbm-topdeals-track-inner {
    animation: none;
  }
}

/* 3/4-size card variant — photo + name + price only, no stepper, no
   CTA button. Tapping opens the same product modal as a full card. */
.cbm-topdeals-card {
  flex-shrink: 0;
  width: 128px;
  cursor: pointer;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 128, 0.05), 0 8px 18px -12px rgba(0, 0, 128, 0.35);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cbm-topdeals-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 128, 0.3);
}
.cbm-topdeals-card .cbm-topdeals-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}
.cbm-topdeals-card .cbm-topdeals-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* ============================================================
   HERO SLIDESHOW (Phase 23b)
   Fixed height matches slide 1's real measured render (desktop:
   1425x330 at 1440px viewport, +buffer for narrower desktop widths).
   #heroSlideshow's height is the ONE place every slide shares — an
   image slide (.hero-slide-image) just fills it via object-fit:cover,
   slide 1 (the real content section) already renders close to it
   unchanged. mobile.css overrides this height for mobile.html.
   ============================================================ */
#heroSlideshow {
  position: relative;
  overflow: hidden;
  height: 340px;
}
.hero-slideshow-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}
.hero-slideshow-track > .hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-slide-image {
  position: relative;
  height: 100%;
  width: 100%;
}
/* The slide box changes shape with the screen (fixed height, full
   width), so an image banner is never cropped: the whole banner is
   fitted inside (contain), and any leftover space is filled by a
   blurred, enlarged copy of the same image so the edges blend into the
   banner's own colours. Same URL, so no extra download. */
.hero-slide-image {
  overflow: hidden;
  background: var(--cbm-navy);
}
.hero-slide-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-slide-image img.hero-slide-backdrop {
  object-fit: cover;
  filter: blur(28px) saturate(1.1);
  transform: scale(1.25);
}
.hero-slide-image img.hero-slide-main {
  object-fit: contain;
}
.hero-slide-image .hero-slide-cta {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fff;
  color: var(--cbm-navy);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.hero-slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero-slideshow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, border-radius 0.2s ease;
  padding: 0;
  border: none;
}
.hero-slideshow-dot.active {
  width: 18px;
  border-radius: 4px;
  background: #fff;
}

.cbm-discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 20px;
  line-height: 1;
  z-index: 1;
}
.cbm-topdeals-card .cbm-topdeals-body {
  padding: 8px 9px 10px;
}
.cbm-topdeals-card .cbm-topdeals-name {
  font-size: 11px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 3px;
}
.cbm-topdeals-card .cbm-topdeals-price {
  font-size: 12px;
  font-weight: 900;
  color: var(--cbm-navy);
  margin: 0;
}

/* CB Vendors row — vendor profile cards, not products. No confirmed
   vendor photo field to key off, so this leans on an initial-in-circle
   avatar (same idea as the admin name badge) rather than guessing at
   an image column that may not exist. */
.cbm-topdeals-vendor-card {
  flex-shrink: 0;
  width: 108px;
  cursor: pointer;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 128, 0.05), 0 8px 18px -12px rgba(0, 0, 128, 0.35);
  padding: 14px 8px 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cbm-topdeals-vendor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 128, 0.3);
}
.cbm-topdeals-vendor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cbm-navy);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}
.cbm-topdeals-vendor-name {
  font-size: 11px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 3px;
}
.cbm-topdeals-vendor-rating {
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
}

/* Top Deals text item + its dropdown arrow — kept as TWO separate
   controls (the arrow is never embedded inside the category text),
   with a real gap so it reads as its own clickable control. The
   arrow opens a menu listing every category on this page. */
.cbm-topdeals-pill-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cbm-topdeals-dropdown-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s, color 0.15s, transform 0.15s, background 0.15s;
}
.cbm-topdeals-dropdown-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}
.cbm-topdeals-dropdown-btn.open {
  color: var(--cbm-electric-blue);
  background: #eff6ff;
  transform: rotate(180deg);
}
.cbm-topdeals-jump-menu {
  position: fixed;
  z-index: 200;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 128, 0.18);
  padding: 6px;
  min-width: 180px;
  white-space: normal;
}
.cbm-topdeals-jump-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
}
.cbm-topdeals-jump-menu button:hover {
  background: #eff6ff;
  color: var(--cbm-navy);
}
.cbm-topdeals-jump-menu button.active {
  color: var(--cbm-electric-blue);
  background: #eff6ff;
  font-weight: 700;
}

/* ============================================================
   Phase 23a — product modal image-overlay icons (✕ close /
   ⤢ fullscreen), shared by the desktop dialog and the mobile
   bottom sheet since both render the same openProductModal()
   markup. Replaces the old floating close button that sat
   outside the modal card.
   ============================================================ */
.cbm-modal-icon-btn {
  position: absolute;
  top: 10px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px; /* real enforcement for mobile is in mobile.css's !important override — see comment there */
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
}
.cbm-modal-icon-btn:active {
  background: #fff;
}
.cbm-modal-icon-close { left: 10px; }
.cbm-modal-icon-expand { right: 10px; }
