/* ============================================================
   cookie-consent.css — Israeli legal banner + preferences modal
   ============================================================ */

.cc-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9990;
  padding: 12px;
  pointer-events: none;
  transform: translateY(120%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-banner.is-open { transform: translateY(0); }

.cc-banner-inner {
  pointer-events: auto;
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 24px 60px -20px rgba(15, 58, 138, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cc-banner-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.cc-banner-text { flex: 1 1 280px; min-width: 240px; }
.cc-banner-text h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0a;
}
.cc-banner-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
}
.cc-banner-text a { color: #0f3a8a; text-decoration: underline; }

.cc-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.cc-btn {
  appearance: none;
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.cc-btn-primary {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(220, 38, 38, 0.55);
}
.cc-btn-primary:hover { background: #b91c1c; }
.cc-btn-outline {
  background: #fff;
  color: #0f3a8a;
  border-color: #dbeafe;
}
.cc-btn-outline:hover { background: #eff6ff; }
.cc-btn-ghost {
  background: #fafbfc;
  color: #0a0a0a;
  border-color: #e5e7eb;
}
.cc-btn-ghost:hover { background: #e5e7eb; }

/* Preferences modal */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.cc-modal.is-open { display: flex; }
.cc-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(6, 18, 36, 0.55);
  backdrop-filter: blur(4px);
  border: 0;
  cursor: pointer;
}
.cc-modal-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 640px) {
  .cc-modal { align-items: center; padding: 16px; }
  .cc-modal-panel { border-radius: 28px; }
}

.cc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  z-index: 1;
}
.cc-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0a0a0a;
}
.cc-modal-close {
  appearance: none;
  border: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #4b5563;
}
.cc-modal-close:hover { background: #fafbfc; }

.cc-modal-body {
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cc-intro { font-size: 14px; color: #4b5563; margin: 0 0 4px; line-height: 1.55; }

.cc-row {
  border: 1px solid #e5e7eb;
  background: rgba(250,251,252,0.5);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cc-row-text { flex: 1; }
.cc-row-text h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
}
.cc-row-text p { margin: 0; font-size: 13px; color: #4b5563; line-height: 1.55; }

.cc-switch {
  appearance: none;
  flex-shrink: 0;
  position: relative;
  width: 44px;
  height: 26px;
  border: 0;
  border-radius: 9999px;
  background: #e5e7eb;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 2px;
}
.cc-switch::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: right 0.15s;
}
.cc-switch[aria-checked="true"] { background: #0f3a8a; }
.cc-switch[aria-checked="true"]::after { right: calc(100% - 23px); }
.cc-switch[disabled] { cursor: not-allowed; opacity: 0.95; background: #0f3a8a; }

.cc-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 22px;
  border-top: 1px solid #e5e7eb;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
}
@media (min-width: 640px) {
  .cc-modal-footer { flex-direction: row; justify-content: flex-end; }
}

.cc-footer-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner { transition: none; }
}
