/* Overlay ir modalas – VISADA virš kitų (pvz., web-push) */
#cookie-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2147483645;
}

#cookie-consent-popup {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 24px));
  background: #111;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 14px 50px rgba(0,0,0,.45);
  z-index: 2147483646;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#cookie-consent-wrapper,
#cookie-consent-wrapper * {
  pointer-events: auto; /* užtikrinti, kad click pasiektų mygtukus */
}

.cookie-header { padding: 14px 18px; background: #171717; border-bottom: 1px solid rgba(255,255,255,.06); }
.cookie-header h3 { margin: 0; font-size: 16px; font-weight: 700; }

.cookie-content { padding: 16px 18px; }
.cookie-content p { margin: 0 0 12px 0; color: #e5e5e5; font-size: 14px; line-height: 1.5; }

.cookie-settings { display: grid; gap: 10px; }

.cookie-category { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.cookie-category h4 { margin: 0; font-size: 14px; }
.cookie-category p { margin: 4px 0 0 0; font-size: 13px; color: #cfcfcf; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { display: none; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #555; transition: .2s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .2s; border-radius: 50%; }
input:checked + .slider { background-color: #4caf50; }
input:checked + .slider:before { transform: translateX(20px); }
.switch.disabled { opacity: .6; }

.cookie-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.cookie-policy-link { color: #90caf9; }
.cookie-policy-link:hover { color: #bbdefb; }

.cookie-actions { display: flex; gap: 8px; }
.cookie-button { appearance: none; border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 600; cursor: pointer; }
.cookie-button.primary { background: #f50057; color: #fff; }
.cookie-button.primary:hover { filter: brightness(1.05); }
.cookie-button.secondary { background: #2c2c2c; color: #f5f5f5; }

#cookie-consent-popup.hidden { opacity: 0; transform: translateX(-50%) translateY(10px); transition: opacity .2s ease, transform .2s ease; }

/* Removed the floating cookie settings button styles */

@media (max-width: 480px) {
  #cookie-consent-popup { bottom: 16px; }
  .cookie-footer { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}