.sos-consent {
  --sos-consent-ink: #12343a;
  --sos-consent-petrol: #0d5663;
  --sos-consent-line: #b8e8f0;
  --sos-consent-soft: #effbfd;
  position: relative;
  z-index: 1000001;
  color: var(--sos-consent-ink);
  font-family: inherit;
}

.sos-consent [hidden] {
  display: none !important;
}

html.sos-consent-open,
html.sos-consent-open body {
  overflow: hidden;
}

.sos-consent__banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  box-sizing: border-box;
  width: min(1120px, calc(100% - 36px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  margin: auto;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--sos-consent-line);
  border-top: 5px solid var(--sos-consent-accent, #63d4e9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 80px rgba(7, 61, 71, 0.24);
}

.sos-consent__copy > :first-child,
.sos-consent__dialog > :first-child {
  margin-top: 0;
}

.sos-consent__copy > :last-child,
.sos-consent__dialog > :last-child {
  margin-bottom: 0;
}

.sos-consent__eyebrow {
  margin: 0 0 7px;
  color: var(--sos-consent-petrol);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sos-consent h2 {
  margin: 0 0 8px;
  color: var(--sos-consent-ink);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sos-consent p {
  margin: 0 0 9px;
  color: #45656a;
  font-size: 0.92rem;
  line-height: 1.55;
}

.sos-consent__privacy {
  color: var(--sos-consent-petrol);
  font-size: 0.86rem;
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.sos-consent__actions,
.sos-consent__dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.sos-consent__actions {
  width: min(390px, 100%);
}

.sos-consent__button,
.sos-consent-settings-link {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--sos-consent-line);
  border-radius: 11px;
  background: #fff;
  color: var(--sos-consent-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.sos-consent__button:hover,
.sos-consent__button:focus-visible,
.sos-consent-settings-link:hover,
.sos-consent-settings-link:focus-visible {
  border-color: var(--sos-consent-petrol);
}

.sos-consent__button--primary {
  border-color: var(--sos-consent-accent, #63d4e9);
  background: var(--sos-consent-accent, #63d4e9);
  color: var(--sos-consent-button-text, #12343a);
  box-shadow: 0 9px 20px rgba(13, 86, 99, 0.16);
}

.sos-consent__button--link {
  border-color: transparent;
  background: transparent;
  color: var(--sos-consent-petrol);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sos-consent__backdrop {
  position: fixed;
  z-index: 1;
  inset: 0;
  background: rgba(7, 44, 51, 0.62);
  backdrop-filter: blur(4px);
}

.sos-consent__dialog {
  position: fixed;
  z-index: 2;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  width: min(620px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  padding: clamp(24px, 5vw, 36px);
  overflow: auto;
  border: 1px solid var(--sos-consent-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(7, 44, 51, 0.34);
  transform: translate(-50%, -50%);
}

.sos-consent__close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--sos-consent-line);
  border-radius: 12px;
  background: var(--sos-consent-soft);
  color: var(--sos-consent-petrol);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.sos-consent__category {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--sos-consent-line);
  border-radius: 15px;
  background: linear-gradient(110deg, var(--sos-consent-soft), #fff);
}

.sos-consent__category strong,
.sos-consent__category small {
  display: block;
}

.sos-consent__category small {
  margin-top: 4px;
  color: #557278;
  font-size: 0.79rem;
  line-height: 1.4;
}

.sos-consent__category input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sos-consent__category i {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
  border-radius: 999px;
  background: #b8c9cc;
  box-shadow: inset 0 0 0 1px rgba(7, 61, 71, 0.12);
  transition: background 160ms ease;
}

.sos-consent__category i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(7, 61, 71, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.sos-consent__category input:checked + i {
  background: var(--sos-consent-accent, #63d4e9);
}

.sos-consent__category input:checked + i::after {
  transform: translateX(20px);
}

.sos-consent__category input:focus-visible + i {
  outline: 3px solid rgba(13, 86, 99, 0.35);
  outline-offset: 3px;
}

.sos-consent__always {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
	background: var(--sos-consent-accent, #63d4e9);
	color: var(--sos-consent-button-text, #12343a);
  font-size: 0.72rem;
  font-weight: 850;
}

.sos-consent__dialog-actions {
  margin-top: 22px;
}

.sos-consent__reopen {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--sos-consent-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 61, 71, 0.18);
  color: var(--sos-consent-petrol);
  cursor: pointer;
}

@media (max-width: 760px) {
  .sos-consent__banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sos-consent__actions,
  .sos-consent__actions .sos-consent__button {
    width: 100%;
  }

  .sos-consent__button--primary {
    order: -1;
  }
}

@media (max-width: 480px) {
  .sos-consent__banner {
    right: 9px;
    bottom: 9px;
    left: 9px;
    width: calc(100% - 18px);
    max-height: calc(100dvh - 18px);
    padding: 19px;
    overflow: auto;
    border-radius: 18px;
  }

  .sos-consent__dialog-actions,
  .sos-consent__dialog-actions .sos-consent__button {
    width: 100%;
  }

  .sos-consent__category {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sos-consent *,
  .sos-consent *::before,
  .sos-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
