/*
 * Side Cart Drawer v2 - styles
 * Migrated from Astra Custom Layout hook 460934 (trashed)
 */

/* ============================================================

   Uniclima Side-Cart Drawer v4 (2026-04-17) — fully responsive

   - Fluid type (clamp), dvh/svh viewports, safe-area iOS

   - Breakpoints: desktop / tablet / mobile / small / landscape

   - Touch-friendly tap targets on hover:none devices

   - Honors prefers-reduced-motion

   ============================================================ */



/* Hide xoo-wsc / default mini carts */

.xoo-wsc-modal,

#xoo-wsc-cart,

.xoo-wsc-header,

.xoo-wsc-container,

.xoo-wsc-opac,

.xoo-wsc,

.xoo-wsc-basket,

.xoo-wsc-sc-cont .xoo-wsc-ico-count,

.xoo-wsc-bki-cont { display: none !important; }



/* ============== Drawer root ============== */

#ucn-dr {

  position: fixed; inset: 0;

  pointer-events: none;

  z-index: 2147483000;

  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  visibility: hidden;

  --ucn-r: #E30613;

  --ucn-r-dark: #b30510;

  --ucn-r-light: #ff3545;

  --ucn-r-50: rgba(227,6,19,.06);

  --ucn-r-12: rgba(227,6,19,.12);

  --ucn-r-glow: rgba(227,6,19,.35);

  --ucn-ink: #0f172a;

  --ucn-ink-2: #475569;

  --ucn-muted: #94a3b8;

  --ucn-line: #e2e8f0;

  --ucn-line-2: #f1f5f9;

  --ucn-bg: #fafbfc;

  --ucn-ease: cubic-bezier(.2,.8,.2,1);



  /* Fluid sizes — scale smoothly between breakpoints */

  --ucn-pad-x: clamp(16px, 4vw, 22px);

  --ucn-pad-y: clamp(10px, 2.4vw, 14px);

  --ucn-thumb: clamp(64px, 18vw, 86px);

  --ucn-radius-panel: 0px;

  --ucn-title-name: clamp(16px, 4.4vw, 18px);

  --ucn-price: clamp(.95rem, 3.4vw, 1.05rem);

  --ucn-total-strong: clamp(1.1rem, 4.6vw, 1.25rem);

  --ucn-btn-pad-y: clamp(12px, 3vw, 14px);

  --ucn-btn-font: clamp(.9rem, 3.2vw, .94rem);

}

#ucn-dr.is-open { visibility: visible; pointer-events: auto; }

#ucn-dr * { box-sizing: border-box; }



/* Lock scroll on body when drawer open (added via JS) */
/* IMPORTANT: only overflow:hidden — never position:fixed on body
   (position:fixed creates a new containing block, breaks 100% heights,
   and on short/iOS viewports the inner panel body collapses to 0). */

html.ucn-dr-locked,

body.ucn-dr-locked {

  overflow: hidden !important;

  overscroll-behavior: contain;

}



/* ============== Backdrop ============== */

.ucn-dr__backdrop {

  position: absolute; inset: 0;

  background: rgba(15,23,42,.28);

  opacity: 0;

  transition: opacity .3s var(--ucn-ease);

  -webkit-backdrop-filter: blur(2px);

          backdrop-filter: blur(2px);

}

#ucn-dr.is-open .ucn-dr__backdrop { opacity: 1; }



/* ============== Panel ============== */

.ucn-dr__panel {

  position: absolute; right: 0; top: 0; bottom: 0;

  height: 100vh;            /* fallback */

  height: 100svh;           /* small viewport (stable, no URL-bar jitter) */

  height: 100dvh;           /* dynamic viewport (mobile URL bar safe) */

  max-height: 100vh;

  max-height: 100dvh;

  width: 460px; max-width: 100vw;

  background: #fff;

  box-shadow: -24px 0 64px rgba(15,23,42,.18);

  display: flex; flex-direction: column;

  transform: translateX(102%);

  transition: transform .38s var(--ucn-ease);

  overflow: hidden;

  border-radius: var(--ucn-radius-panel);

}

#ucn-dr.is-open .ucn-dr__panel { transform: translateX(0); }



/* ============== HEADER (light, minimal) ============== */

.ucn-dr__head {

  position: relative;

  background: #fff;

  color: var(--ucn-ink);

  padding: calc(var(--ucn-pad-y) + env(safe-area-inset-top, 0px)) var(--ucn-pad-x) var(--ucn-pad-y);

  flex-shrink: 0;

  overflow: hidden;

  border-bottom: 1px solid var(--ucn-line);

}

.ucn-dr__head-top {

  display: flex; align-items: center; gap: 10px;

  position: relative; z-index: 1;

}

.ucn-dr__title {

  display: flex; align-items: center; gap: 10px;

  font-family: "Open Sans", -apple-system, sans-serif;

  font-size: 1rem; font-weight: 700;

  margin: 0; flex: 1; letter-spacing: -.005em;

  color: var(--ucn-ink); min-width: 0;

}

.ucn-dr__title-ic {

  width: 32px; height: 32px;

  border-radius: 8px;

  background: var(--ucn-r-50);

  display: inline-flex; align-items: center; justify-content: center;

  flex-shrink: 0;

}

.ucn-dr__title-ic svg { width: 17px; height: 17px; color: var(--ucn-r); }

.ucn-dr__title-text { display: flex; align-items: baseline; gap: 8px; line-height: 1.15; min-width: 0; flex-wrap: wrap; }

.ucn-dr__title-name { font-size: var(--ucn-title-name); font-weight: 700; color: var(--ucn-ink); }

.ucn-dr__title-count { font-size: .82rem; font-weight: 600; color: var(--ucn-muted); }

.ucn-dr__title-count b { color: var(--ucn-ink-2); font-weight: 700; }



.ucn-dr__head-actions { display: flex; gap: 4px; position: relative; z-index: 1; flex-shrink: 0; }

.ucn-dr__icbtn {

  width: 34px; height: 34px;

  background: transparent;

  border: 1px solid transparent;

  color: var(--ucn-muted);

  border-radius: 8px;

  cursor: pointer;

  display: inline-flex; align-items: center; justify-content: center;

  transition: background .15s ease, color .15s ease, border-color .15s ease;

}

.ucn-dr__icbtn:hover { background: var(--ucn-line-2); color: var(--ucn-ink); }

.ucn-dr__icbtn:active { background: var(--ucn-line); }

.ucn-dr__icbtn.is-danger:hover { background: var(--ucn-line-2); color: var(--ucn-ink-2); }

.ucn-dr__icbtn svg { width: 16px; height: 16px; }



/* ============== SHIPPING BAR (subtle) ============== */

.ucn-dr__ship {

  margin: 0;

  padding: 9px var(--ucn-pad-x) 10px;

  background: #fffbeb;

  display: flex; flex-direction: column; gap: 6px;

  border-bottom: 1px solid var(--ucn-line-2);

  flex-shrink: 0;

}

.ucn-dr__ship.is-free { background: #ecfdf5; }

.ucn-dr__ship-row {

  display: flex; align-items: center; gap: 8px;

  font-size: clamp(11.5px, 3.2vw, 12.5px);

  color: #78350f; line-height: 1.35;

}

.ucn-dr__ship-row svg { width: 15px; height: 15px; color: #d97706; flex-shrink: 0; }

.ucn-dr__ship-row strong { color: var(--ucn-ink); font-weight: 700; }

.ucn-dr__ship.is-free .ucn-dr__ship-row { color: #065f46; }

.ucn-dr__ship.is-free .ucn-dr__ship-row svg { color: #10b981; }

.ucn-dr__ship.is-free .ucn-dr__ship-row strong { color: #047857; }



.ucn-dr__ship-bar {

  height: 4px; background: #fde68a;

  border-radius: 999px; overflow: hidden; position: relative;

}

.ucn-dr__ship.is-free .ucn-dr__ship-bar { background: #a7f3d0; }

.ucn-dr__ship-fill {

  height: 100%; width: 0%;

  background: var(--ucn-r);

  transition: width .5s var(--ucn-ease);

  border-radius: 999px;

}

.ucn-dr__ship.is-free .ucn-dr__ship-fill { background: #10b981; }



/* ============== BODY (scroll area) ============== */

.ucn-dr__body {

  flex: 1 1 0;

  min-height: 0; /* enables flex child scroll — must be 0, not auto */

  height: auto;

  overflow-y: auto;

  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;

  overscroll-behavior: contain;

  touch-action: pan-y;

  padding: 8px var(--ucn-pad-x) 4px;

  background: #fff;

  scrollbar-width: thin;

  scrollbar-color: var(--ucn-line) transparent;

}

.ucn-dr__body::-webkit-scrollbar { width: 6px; }

.ucn-dr__body::-webkit-scrollbar-thumb { background: var(--ucn-line); border-radius: 3px; }



.ucn-dr__empty {

  padding: clamp(40px, 12vw, 64px) 20px;

  text-align: center;

  color: var(--ucn-ink-2);

}

.ucn-dr__empty-ic {

  width: clamp(80px, 22vw, 96px);

  height: clamp(80px, 22vw, 96px);

  margin: 0 auto 18px;

  border-radius: 50%;

  background: linear-gradient(135deg, #fee2e4, #fef2f3);

  display: flex; align-items: center; justify-content: center;

  box-shadow: inset 0 2px 0 rgba(255,255,255,.6);

}

.ucn-dr__empty-ic svg { width: 44px; height: 44px; color: var(--ucn-r); stroke-width: 1.5; }

.ucn-dr__empty p { margin: 0 0 6px; font-size: clamp(1rem, 4vw, 1.1rem); font-weight: 700; color: var(--ucn-ink); }

.ucn-dr__empty span { font-size: .92rem; color: var(--ucn-muted); }



.ucn-dr__loading { padding: clamp(40px, 12vw, 64px) 20px; text-align: center; color: var(--ucn-muted); font-size: .9rem; }



/* ============== ITEM ============== */

.ucn-dr__item {

  display: grid;

  grid-template-columns: var(--ucn-thumb) minmax(0, 1fr) auto;

  gap: clamp(10px, 3vw, 14px);

  padding: 12px 4px;

  border-bottom: 1px solid var(--ucn-line-2);

  align-items: start;

  /* No entrance animation — re-renders on innerHTML replace cause flicker.
     Items must appear instantly when cart updates. */

  opacity: 1;

  transform: none;

  transition: none;

}

.ucn-dr__item:last-child { border-bottom: 0; }



.ucn-dr__thumb {

  width: var(--ucn-thumb); height: var(--ucn-thumb);

  border-radius: 14px;

  background: var(--ucn-bg);

  display: flex; align-items: center; justify-content: center;

  overflow: hidden;

  border: 1px solid var(--ucn-line);

  cursor: zoom-in;

  position: relative;

  transition: transform .25s var(--ucn-ease), box-shadow .25s ease, border-color .25s ease;

  padding: 0;

  flex-shrink: 0;

}

.ucn-dr__thumb:hover {

  border-color: #cbd5e1;

  box-shadow: 0 4px 12px rgba(15,23,42,.06);

}

.ucn-dr__thumb::after {

  content: "";

  position: absolute; inset: 0;

  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,.04) 100%);

  pointer-events: none;

}

.ucn-dr__thumb img {

  width: 100%; height: 100%;

  object-fit: contain;

  mix-blend-mode: multiply;

  transition: transform .3s var(--ucn-ease);

}

.ucn-dr__thumb:hover img { transform: scale(1.04); }

.ucn-dr__thumb-zoom {

  position: absolute; bottom: 4px; right: 4px;

  width: 22px; height: 22px;

  background: rgba(15,23,42,.8);

  color: #fff; border-radius: 6px;

  display: inline-flex; align-items: center; justify-content: center;

  opacity: 0;

  transition: opacity .2s ease;

  pointer-events: none;

}

.ucn-dr__thumb:hover .ucn-dr__thumb-zoom { opacity: 1; }

.ucn-dr__thumb-zoom svg { width: 12px; height: 12px; }



.ucn-dr__info {

  min-width: 0;

  display: flex; flex-direction: column; gap: 10px;

  padding-top: 2px;

}

.ucn-dr__name {

  font-size: clamp(.88rem, 3.4vw, .94rem);

  font-weight: 600;

  color: var(--ucn-ink); line-height: 1.35; margin: 0;

  text-decoration: none;

  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;

  overflow: hidden;

  word-break: break-word;

  transition: color .2s ease;

}

.ucn-dr__name:hover { color: var(--ucn-ink-2); }

.ucn-dr__unit {

  font-size: .78rem;

  color: var(--ucn-muted);

  font-weight: 500;

}

.ucn-dr__unit b { color: var(--ucn-ink-2); font-weight: 600; }



.ucn-dr__qty {

  display: inline-flex; align-items: center;

  background: #fff;

  border: 1.5px solid var(--ucn-line);

  border-radius: 10px;

  overflow: hidden;

  width: fit-content;

  transition: border-color .2s ease, box-shadow .2s ease;

}

.ucn-dr__qty:hover { border-color: #cbd5e1; }

.ucn-dr__qty button {

  width: 34px; height: 34px;

  background: transparent; border: none;

  color: var(--ucn-ink); cursor: pointer;

  display: flex; align-items: center; justify-content: center;

  font-size: 1.05rem; font-weight: 700;

  transition: background .15s ease, color .15s ease;

  -webkit-tap-highlight-color: transparent;

}

.ucn-dr__qty button:hover { background: var(--ucn-line-2); color: var(--ucn-ink); }

.ucn-dr__qty button:active { background: var(--ucn-line); }

.ucn-dr__qty button:disabled { opacity: .35; cursor: not-allowed; }

.ucn-dr__qty .val {

  min-width: 38px; text-align: center;

  font-weight: 700; font-size: .94rem; color: var(--ucn-ink);

  border-left: 1.5px solid var(--ucn-line);

  border-right: 1.5px solid var(--ucn-line);

  height: 34px;

  display: flex; align-items: center; justify-content: center;

}



.ucn-dr__item-right {

  display: flex; flex-direction: column;

  align-items: flex-end; justify-content: space-between;

  gap: 16px;

  min-height: var(--ucn-thumb);

  padding-top: 2px;

  flex-shrink: 0;

}

.ucn-dr__rm {

  background: transparent; border: none;

  cursor: pointer; color: var(--ucn-muted);

  padding: 6px; border-radius: 8px;

  display: flex;

  transition: background .15s ease, color .15s ease, transform .15s ease;

  -webkit-tap-highlight-color: transparent;

}

.ucn-dr__rm:hover { background: var(--ucn-line-2); color: var(--ucn-ink-2); }

.ucn-dr__rm:active { background: var(--ucn-line); }

.ucn-dr__rm svg { width: 17px; height: 17px; }

.ucn-dr__price {

  font-size: var(--ucn-price);

  font-weight: 800;

  color: var(--ucn-ink); white-space: nowrap;

  letter-spacing: -.01em;

}



/* ============== FOOTER ============== */

.ucn-dr__foot {

  padding: 12px var(--ucn-pad-x) calc(14px + env(safe-area-inset-bottom, 0px));

  border-top: 1px solid var(--ucn-line);

  background: #fff;

  flex-shrink: 0;

}

.ucn-dr__totals {

  display: flex; flex-direction: column; gap: 4px;

  margin-bottom: 10px;

}

.ucn-dr__totals-row {

  display: flex; justify-content: space-between; align-items: center;

  font-size: .88rem; color: var(--ucn-ink-2); gap: 12px;

}

.ucn-dr__totals-row.subtotal { padding-bottom: 4px; }

.ucn-dr__totals-row b { color: var(--ucn-ink); font-weight: 700; font-size: .95rem; }

.ucn-dr__totals-row.total {

  padding-top: 6px;

  border-top: 1px dashed var(--ucn-line);

  font-size: .96rem; font-weight: 700; color: var(--ucn-ink);

}

.ucn-dr__totals-row.total strong {

  font-size: var(--ucn-total-strong);

  font-weight: 800;

  color: var(--ucn-ink);

  letter-spacing: -.02em;

}



.ucn-dr__actions { display: flex; flex-direction: column; gap: 8px; }

.ucn-dr__btn {

  display: inline-flex; align-items: center; justify-content: center;

  gap: 10px;

  padding: var(--ucn-btn-pad-y) 18px;

  border-radius: 10px;

  font-family: "Open Sans", sans-serif;

  font-weight: 700; font-size: var(--ucn-btn-font);

  text-decoration: none; cursor: pointer;

  transition: background .18s ease, color .18s ease, border-color .18s ease;

  border: 1.5px solid transparent;

  letter-spacing: .01em;

  min-height: 44px;

  -webkit-tap-highlight-color: transparent;

  width: 100%;

}

.ucn-dr__btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.ucn-dr__btn--primary {

  background: var(--ucn-r);

  color: #fff;

}

.ucn-dr__btn--primary:hover { background: var(--ucn-r-dark); color: #fff; }

.ucn-dr__btn--primary:active { background: #8a040c; }

.ucn-dr__btn--secondary {

  background: #fff; color: var(--ucn-ink-2);

  border-color: var(--ucn-line);

}

.ucn-dr__btn--secondary:hover {

  border-color: #cbd5e1;

  background: var(--ucn-line-2);

  color: var(--ucn-ink);

}



/* ============== ZOOM LIGHTBOX ============== */

.ucn-dr__lb {

  position: fixed; inset: 0;

  z-index: 2147483001;

  background: rgba(15,23,42,.9);

  display: flex; align-items: center; justify-content: center;

  opacity: 0; visibility: hidden; pointer-events: none;

  transition: opacity .25s ease, visibility .25s ease;

  -webkit-backdrop-filter: blur(6px);

          backdrop-filter: blur(6px);

  padding: 20px;

}

.ucn-dr__lb.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.ucn-dr__lb-img {

  max-width: min(92vw, 720px);

  max-height: min(85vh, 85dvh);

  width: auto; height: auto;

  object-fit: contain;

  border-radius: 14px;

  background: #fff;

  box-shadow: 0 30px 80px rgba(0,0,0,.4);

  transform: scale(.9);

  transition: transform .28s var(--ucn-ease);

}

.ucn-dr__lb.is-open .ucn-dr__lb-img { transform: scale(1); }

.ucn-dr__lb-close {

  position: absolute;

  top: calc(20px + env(safe-area-inset-top, 0px));

  right: calc(20px + env(safe-area-inset-right, 0px));

  width: 44px; height: 44px;

  border-radius: 50%;

  background: rgba(255,255,255,.15);

  border: 1px solid rgba(255,255,255,.25);

  color: #fff;

  cursor: pointer;

  display: inline-flex; align-items: center; justify-content: center;

  transition: background .2s ease, transform .2s ease;

}

.ucn-dr__lb-close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }

.ucn-dr__lb-close svg { width: 22px; height: 22px; }

.ucn-dr__lb-name {

  position: absolute;

  bottom: calc(30px + env(safe-area-inset-bottom, 0px));

  left: 50%;

  transform: translateX(-50%);

  color: #fff;

  font-weight: 600; font-size: 14px;

  text-align: center;

  background: rgba(0,0,0,.5);

  padding: 10px 18px;

  border-radius: 999px;

  max-width: calc(100% - 40px);

  -webkit-backdrop-filter: blur(6px);

          backdrop-filter: blur(6px);

}



/* ============== RESPONSIVE BREAKPOINTS ============== */



/* Wide desktop — slightly bigger panel */

@media (min-width: 1280px) {

  .ucn-dr__panel { width: 480px; }

}



/* Tablet (768-1023px) — máx 65% del viewport */

@media (min-width: 768px) and (max-width: 1023px) {

  .ucn-dr__panel {

    width: 65vw;

    min-width: 420px;

    max-width: 540px;

    border-radius: 14px 0 0 14px;

  }

}



/* Tablet pequeño / phablet (600-767px) — máx 70% */

@media (min-width: 600px) and (max-width: 767px) {

  .ucn-dr__panel {

    width: 70vw;

    min-width: 400px;

    max-width: 500px;

    border-radius: 12px 0 0 12px;

  }

}



/* Mobile (≤ 599px) — panel casi full-width para productos legibles */

@media (max-width: 599px) {

  #ucn-dr {

    --ucn-pad-x: clamp(14px, 4vw, 18px);

    --ucn-pad-y: 12px;

    --ucn-thumb: clamp(76px, 22vw, 92px);

    --ucn-title-name: clamp(15px, 4.2vw, 17px);

    --ucn-price: clamp(1rem, 4.2vw, 1.12rem);

    --ucn-total-strong: clamp(1.15rem, 5vw, 1.3rem);

    --ucn-btn-pad-y: 13px;

    --ucn-btn-font: clamp(.94rem, 3.6vw, 1rem);

  }

  .ucn-dr__panel {

    width: 92vw;

    min-width: 320px;

    max-width: 440px;

    border-radius: 0;

    box-shadow: -16px 0 40px rgba(15,23,42,.22);

  }

  .ucn-dr__name { font-size: clamp(.92rem, 3.8vw, 1rem); }

  .ucn-dr__body { padding: 6px var(--ucn-pad-x) 4px; }

  .ucn-dr__item { padding: 14px 2px; gap: 12px; }

  .ucn-dr__info { gap: 8px; padding-top: 0; }

  .ucn-dr__item-right { gap: 10px; min-height: var(--ucn-thumb); }

  .ucn-dr__foot {

    padding: 10px var(--ucn-pad-x) calc(12px + env(safe-area-inset-bottom, 0px));

  }

  .ucn-dr__totals { margin-bottom: 8px; }

  .ucn-dr__actions { gap: 8px; }

  .ucn-dr__btn { min-height: 46px; padding: 12px 16px; width: 100%; }

}



/* Small mobile (≤ 380px) — full-width + compactación controlada */

@media (max-width: 380px) {

  #ucn-dr {

    --ucn-pad-x: 12px;

    --ucn-thumb: 74px;

    --ucn-title-name: 15px;

  }

  .ucn-dr__panel { width: 100vw; max-width: 100vw; min-width: 0; border-radius: 0; }

  .ucn-dr__icbtn { width: 34px; height: 34px; }

  .ucn-dr__qty button { width: 34px; height: 34px; }

  .ucn-dr__qty .val { min-width: 36px; height: 34px; }

  .ucn-dr__head { padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; }

  .ucn-dr__totals { margin-bottom: 6px; gap: 2px; }

  .ucn-dr__totals-row { font-size: .84rem; }

  .ucn-dr__btn { gap: 8px; min-height: 44px; padding: 11px 14px; font-size: .92rem; }

  .ucn-dr__actions { gap: 6px; }

  .ucn-dr__item { padding: 12px 2px; gap: 10px; }

}



/* Mobile landscape — short viewports */

@media (max-width: 932px) and (max-height: 500px) and (orientation: landscape) {

  .ucn-dr__head { padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 8px; }

  .ucn-dr__title-name { font-size: 15px; }

  .ucn-dr__title-ic { width: 28px; height: 28px; }

  .ucn-dr__title-ic svg { width: 14px; height: 14px; }

  .ucn-dr__ship { padding: 6px var(--ucn-pad-x); gap: 4px; }

  .ucn-dr__ship-bar { height: 3px; }

  .ucn-dr__foot { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }

  .ucn-dr__totals { margin-bottom: 8px; gap: 2px; }

  .ucn-dr__totals-row.subtotal { padding-bottom: 2px; }

  .ucn-dr__totals-row.total { padding-top: 4px; }

  .ucn-dr__btn { min-height: 40px; padding: 8px 16px; }

  .ucn-dr__actions { gap: 6px; flex-direction: row-reverse; }

  .ucn-dr__btn { width: auto; flex: 1; }

  .ucn-dr__item { padding: 8px 4px; }

}



/* Touch devices — bigger tap targets, no hover transforms */

@media (hover: none) and (pointer: coarse) {

  .ucn-dr__icbtn { width: 38px; height: 38px; }

  .ucn-dr__qty button { width: 38px; height: 38px; }

  .ucn-dr__qty .val { height: 38px; min-width: 40px; }

  .ucn-dr__rm { padding: 8px; }

  .ucn-dr__rm svg { width: 19px; height: 19px; }

  .ucn-dr__lb-close { width: 48px; height: 48px; }

  .ucn-dr__thumb:hover { box-shadow: none; border-color: var(--ucn-line); }

  .ucn-dr__thumb:hover img { transform: none; }

  .ucn-dr__thumb-zoom { opacity: 1; }

}



/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

  #ucn-dr,

#ucn-dr * {

    animation-duration: .01ms !important;

    transition-duration: .01ms !important;

  }

  .ucn-dr__panel { transition: none !important; }

}



/* High-DPI / retina — sharper shadows */

@media (min-resolution: 2dppx) {

  .ucn-dr__panel { box-shadow: -16px 0 48px rgba(15,23,42,.16); }

}



/* Panel takes full viewport at this width — kill any inherited radius */

@media (max-width: 460px) {

  .ucn-dr__panel { border-radius: 0 !important; }

}



/* Disabled qty button + inline qty error message */

.ucn-dr__qty button.ucn-dr__qty-btn--disabled,

.ucn-dr__qty button[disabled] {

  opacity: .35;

  cursor: not-allowed;

}

.ucn-dr__qty-msg {

  font-size: .78rem;

  color: #b30510;

  line-height: 1.3;

  max-height: 0;

  overflow: hidden;

  opacity: 0;

  transition: max-height .2s ease, opacity .2s ease, margin-top .2s ease;

  margin-top: 0;

}

.ucn-dr__qty-msg.is-visible {

  max-height: 60px;

  opacity: 1;

  margin-top: 2px;

}



/* ============== SVG SIZING (high-specificity guard) ============== */

/* Fixes flex collapse where svgs without explicit width attr resolve to 0 */

#ucn-dr svg { flex-shrink: 0 !important; display: inline-block; }

#ucn-dr .ucn-dr__title-ic > svg { width: 17px !important; height: 17px !important; }

#ucn-dr .ucn-dr__icbtn > svg { width: 16px !important; height: 16px !important; }

#ucn-dr .ucn-dr__rm > svg { width: 17px !important; height: 17px !important; }

#ucn-dr .ucn-dr__ship-row > svg { width: 15px !important; height: 15px !important; }

#ucn-dr .ucn-dr__btn > svg { width: 16px !important; height: 16px !important; }

#ucn-dr .ucn-dr__empty-ic > svg { width: 40px !important; height: 40px !important; }

#ucn-dr .ucn-dr__thumb-zoom > svg { width: 12px !important; height: 12px !important; }

#ucn-dr .ucn-dr__lb-close > svg { width: 22px !important; height: 22px !important; }
