/* COOKIE CONSENT */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  z-index: 9999;
  display: none;
  padding: 0 1rem;
}

.cookie-consent.is-visible {
  display: block;
}

.cookie-consent-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(18, 72, 108, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-consent-main {
  flex: 1;
  min-width: 0;
}

.cookie-consent-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #12486c;
  margin: 0 0 0.4rem;
}

.cookie-consent-text {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: #2b2b2b;
}

.cookie-consent-link-text {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0.45rem 0 0;
  color: #6c757d;
}

.cookie-consent a, .cookie-modal a {
  color: #12486c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions, .cookie-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* BUTTONS */

.cookie-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn-primary {
  background: #12486c;
  color: #ffffff;
}

.cookie-btn-primary:hover {
  background: #0f3c5a;
}

.cookie-btn-secondary {
  background: rgba(18, 72, 108, 0.08);
  color: #12486c;
}

.cookie-btn-secondary:hover {
  background: rgba(18, 72, 108, 0.14);
}

.cookie-btn-outline {
  background: #ffffff;
  color: #12486c;
  border: 1px solid rgba(18, 72, 108, 0.25);
}

.cookie-btn-outline:hover {
  border-color: #12486c;
}

/* MODAL */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.is-visible {
  display: flex;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.cookie-modal-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  padding: 2rem;
}

.cookie-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 72, 108, 0.08);
  color: #12486c;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal-close:hover {
  background: rgba(18, 72, 108, 0.14);
}

.cookie-modal-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #12486c;
  margin: 0 2.5rem 0.5rem 0;
}

.cookie-modal-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6c757d;
  margin: 0 0 1.5rem;
}

.cookie-options {
  display: grid;
  gap: 1rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(18, 72, 108, 0.1);
}

.cookie-option h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #12486c;
  margin: 0 0 0.35rem;
}

.cookie-option p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4f4f4f;
  margin: 0;
}

/* SWITCH */

.cookie-switch {
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  position: relative;
  display: inline-block;
  margin-top: 0.15rem;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #d7dce0;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.cookie-switch span::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
  background: #12486c;
}

.cookie-switch input:checked + span::before {
  transform: translateX(20px);
}

.cookie-switch-disabled span {
  background: #12486c;
}

.cookie-switch-disabled span::before {
  transform: translateX(20px);
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .cookie-consent {
    bottom: 0.75rem;
  }
}

@media (max-width: 768px) {
  .cookie-consent-card {
    display: block;
    padding: 1.25rem;
    border-radius: 1rem;
  }
}

@media (max-width: 768px) {
  .cookie-consent-actions {
    justify-content: stretch;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .cookie-consent-actions .cookie-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .cookie-modal-dialog {
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
  }
}

@media (max-width: 768px) {
  .cookie-option {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 1.25rem;
  }
}

@media (max-width: 768px) {
  .cookie-btn {
    width: 100%;
  }
}

