/* ================================================================
   Cookie Consent Banner — Afikim Nadlan / Mordi Oz sites
   Adapted with brand gold (#c79a36) color
   ================================================================ */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 2px solid #e2e8f0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  border-radius: 20px 20px 0 0;
  z-index: 99990;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  font-family: system-ui, -apple-system, sans-serif;
  direction: rtl;
  padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.cookie-icon {
  width: 34px;
  height: 34px;
  background: rgba(199, 154, 54, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c79a36;
}
.cookie-icon svg {
  width: 18px;
  height: 18px;
}

.cookie-title {
  font-size: 1rem;
  font-weight: 700;
  color: #10233f;
  margin: 0;
}

.cookie-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #5b6472;
  margin: 0 0 0.9rem;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  font-family: inherit;
}
.cookie-btn:focus-visible {
  outline: 3px solid #c79a36;
  outline-offset: 2px;
}

.cookie-btn-accept {
  background: #c79a36;
  color: #ffffff;
}
.cookie-btn-accept:hover {
  background: #b08520;
  transform: translateY(-1px);
}

.cookie-btn-decline {
  background: transparent;
  color: #5b6472;
  border: 1px solid #e2e8f0;
}
.cookie-btn-decline:hover {
  background: #f7f9fc;
}

.cookie-btn-policy {
  background: transparent;
  color: #c79a36;
  border: none;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: auto;
}
.cookie-btn-policy:hover {
  opacity: 0.75;
}

/* Desktop: floating card bottom-right */
@media (min-width: 768px) {
  .cookie-consent-banner {
    bottom: 28px;
    right: 28px;
    left: auto;
    width: 380px;
    border-radius: 16px;
    border-top: none;
    padding: 1.5rem;
  }
}
