.cookie-consent {
  position: fixed;
  inset: auto 20px 20px auto;
  z-index: 100;
  width: min(520px, calc(100% - 40px));
  display: none;
  color: var(--text, #344054);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.cookie-panel {
  border: 1px solid var(--line, #e5edf0);
  border-radius: 8px;
  padding: 22px;
  background: var(--white, #ffffff);
  box-shadow: 0 18px 44px rgba(8, 37, 68, 0.18);
}

.cookie-panel h2 {
  margin: 0 0 10px;
  color: var(--navy, #082544);
  font-size: 20px;
  line-height: 1.25;
}

.cookie-panel p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal-dark, #8c5862);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--teal-dark, #8c5862);
  background: var(--white, #ffffff);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}

.cookie-button-primary {
  color: var(--white, #ffffff);
  border-color: var(--teal, #e0c1c6);
  background: var(--teal, #e0c1c6);
}

.cookie-button:hover,
.cookie-button:focus-visible {
  color: var(--white, #ffffff);
  border-color: var(--teal-dark, #8c5862);
  background: var(--teal-dark, #8c5862);
  outline: none;
}

.cookie-settings {
  display: none;
  margin-top: 16px;
  border-top: 1px solid var(--line, #e5edf0);
  padding-top: 14px;
}

.cookie-settings.is-open {
  display: grid;
  gap: 12px;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line, #e5edf0);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.cookie-option strong {
  display: block;
  margin-bottom: 3px;
  color: var(--navy, #082544);
  font-size: 14px;
  line-height: 1.3;
}

.cookie-option span {
  display: block;
  color: var(--muted, #667085);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-switch {
  width: 46px;
  height: 26px;
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.cookie-switch input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

.cookie-switch span {
  width: 46px;
  height: 26px;
  display: block;
  border-radius: 999px;
  background: #d0d5dd;
  cursor: pointer;
  transition: background 160ms ease;
}

.cookie-switch span::after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(8, 37, 68, 0.25);
  transition: transform 160ms ease;
}

.cookie-switch input:checked + span {
  background: var(--teal-dark, #8c5862);
}

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

.cookie-switch input:disabled + span {
  cursor: not-allowed;
  opacity: 0.74;
}

.cookie-settings-link {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  display: none;
  border: 1px solid var(--line, #e5edf0);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--navy, #082544);
  background: var(--white, #ffffff);
  box-shadow: 0 8px 20px rgba(8, 37, 68, 0.1);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-settings-link.is-visible {
  display: inline-flex;
}

@media (max-width: 720px) {
  .cookie-consent {
    inset: auto 12px 12px 12px;
    width: auto;
  }

  .cookie-panel {
    padding: 18px;
  }

  .cookie-actions {
    display: grid;
  }

  .cookie-button {
    width: 100%;
  }
}
