/* Cookies popup styles (non-critical; loaded as a small separate file) */

.popup-cookies[hidden] {
  display: none !important;
}

.popup-cookies {
  position: fixed;
  right: 16px;
  left: 16px;
  bottom: 16px;
  z-index: 2147483000; /* high enough to be above most UI, but below system reserved */
  pointer-events: none; /* only inner can receive events */
}

.popup-cookies-inner {
  max-width: 980px;
  margin: 0 auto;
  /*box-shadow: 0 10px 30px rgba(0,0,0,.2);*/
  /*border-radius: 12px;*/
  background: #141d2b80;
  /*backdrop-filter: saturate(140%) blur(4px);*/
  /*-webkit-backdrop-filter: saturate(140%) blur(4px);*/
  color: #fff;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  align-items: center;
  pointer-events: auto; /* receive events */
  transform: translateY(24px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

.popup-cookies.is-visible .popup-cookies-inner {
  transform: translateY(0);
  opacity: 1;
}

.popup-cookies-text {
  margin: 0;
  line-height: 1.45;
  font-size: 14px;
}

.popup-cookies-text a {
  color: #fbf170;
  text-decoration: underline;
}

/* Reuse existing button styles when present; fallbacks below */
.popup-cookies .button.button--color-yellow {
  white-space: nowrap;
}

/*!* Fallback basic button styling in case project styles differ *!*/
/*.popup-cookies .button {*/
/*  display: inline-flex;*/
/*  align-items: center;*/
/*  gap: 8px;*/
/*  background: #ffd54a;*/
/*  color: #222;*/
/*  border: 0;*/
/*  border-radius: 8px;*/
/*  padding: 10px 14px;*/
/*  cursor: pointer;*/
/*  font-weight: 600;*/
/*}*/

.popup-cookies .button .caption { font-size: 14px; }

@media (max-width: 640px) {
  .popup-cookies-inner {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .popup-cookies .button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .popup-cookies-inner { transition: none; }
}
