/* ============================================================================
   COOKIE CONSENT — single source of truth for the sitewide banner
   ----------------------------------------------------------------------------
   Spatie\CookieConsent\CookieConsentMiddleware (registered globally in
   app/Http/Kernel.php) appends this widget's markup to every HTTP response,
   admin/seller/customer/support alike. Previously this component's CSS was
   duplicated verbatim across two backend-only files (resources/css/backend/
   custom-style.css and public/assets/backend/dist/css/custom-style.css) and
   never reached the customer-facing site at all. One file now, linked from
   every layout that renders a real page — edit here only.

   Uses design-system tokens (--u-*, resources/css/frontend/uepaki-design-
   system.css) with hardcoded fallbacks so it still renders correctly on the
   one layout that doesn't load that token file (layouts/app.blade.php).
   ========================================================================== */
.js-cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: auto;
  background: var(--u-ink, #16203A);
  color: #fff;
  font-size: 13.5px;
  padding: 14px 18px;
  border-radius: var(--u-r-sm, 10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
}

/* Real markup is the package's own <p class="cookie-consent__message"> — the
   original override this was authored against used <span>, kept as a second
   selector since a (now-fixed) vendor override could again change the tag. */
.js-cookie-consent span,
.js-cookie-consent .cookie-consent__message {
  display: block;
  color: #fff;
  font-weight: 400;
  font-size: 13.5px;
  margin-bottom: 0;
  max-width: 480px;
}

.js-cookie-consent a {
  color: #fff;
  text-decoration: underline;
}

.js-cookie-consent .cookie-consent__agree,
.js-cookie-consent-agree {
  background: var(--u-coral, #F9645A);
  color: #fff;
  border: none;
  padding: 8px 18px;
  margin-top: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.js-cookie-consent .cookie-consent__agree:hover,
.js-cookie-consent-agree:hover {
  background: var(--u-coral-deep, #E8505B);
  color: #fff;
}

/* No mobile override needed — the base rule's `max-width:calc(100% - 32px);
   width:auto; left:50%; transform:translateX(-50%);` already produces a
   correctly centered, width-constrained banner at any viewport. A previous
   mobile override here (`width:300px; left:8%`, carried over verbatim from
   the pre-existing responsive.css:3362 rule) combined with the base rule's
   UNCHANGED translateX(-50%) and put the banner mostly off-screen to the
   left — confirmed via computed rect at 400px viewport: x:-118 (118px
   clipped off the left edge), only reaching to x:182 of the 400px width. */
