/* path: public/assets/css/cookie-consent.css */

.cookie-consent-banner {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 28px);
  left: clamp(14px, 3vw, 32px);
  z-index: 60;
  display: grid;
  gap: 10px;
}

.cookie-consent-banner[hidden],
.cookie-consent-panel[hidden] {
  display: none;
}

.cookie-consent-content,
.cookie-consent-panel {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  border: 1px solid rgba(220, 228, 234, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.99);
  color: #16202a;
  box-shadow: 0 18px 46px rgba(28, 43, 55, 0.18);
}

.cookie-consent-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.cookie-consent-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.cookie-consent-text strong,
.cookie-consent-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.cookie-consent-text p,
.cookie-consent-option p,
.cookie-consent-option small {
  margin: 0;
  color: #4d5d6b;
  font-size: 0.94rem;
}

.cookie-consent-actions,
.cookie-consent-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  background: #f8fbfc;
}

.cookie-consent-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #0d766e;
}

.cookie-consent-required {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e5f3ef;
  color: #075e59;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-consent-primary,
.cookie-consent-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.cookie-consent-primary {
  border: 1px solid #0d766e;
  background: #0d766e;
  color: #ffffff;
}

.cookie-consent-primary:hover {
  background: #075e59;
}

.cookie-consent-secondary {
  border: 1px solid #dce4ea;
  background: #ffffff;
  color: #16202a;
}

.cookie-consent-secondary:hover {
  border-color: #b9c8d2;
}

.cookie-consent-link {
  font-weight: 800;
}

@media (max-width: 760px) {
  .cookie-consent-content {
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions,
  .cookie-consent-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .cookie-consent-primary,
  .cookie-consent-secondary,
  .cookie-consent-link {
    width: 100%;
    text-align: center;
  }

  .cookie-consent-option {
    grid-template-columns: 1fr;
  }
}
