:root {
  --winconsent-purple: #473e91;
  --winconsent-text: #666773;
  --winconsent-title: #0d0d10;
}

.winconsent,
.winconsent * {
  box-sizing: border-box;
}

.winconsent[hidden] {
  display: none !important;
}

.winconsent {
  position: fixed;
  z-index: 2147483000;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 16px 34px;
  color: var(--winconsent-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.winconsent__inner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 218px;
  gap: 34px;
  align-items: center;
  width: min(100%, 1118px);
  margin: 0 auto;
  padding: 32px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(24, 20, 64, 0.22);
}

.winconsent__brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.winconsent__logo {
  display: block;
  width: 100%;
  max-width: 145px;
  height: auto;
}

.winconsent__title {
  margin: 0 0 5px;
  padding: 0;
  color: var(--winconsent-title);
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.winconsent__text {
  max-width: 650px;
  margin: 0;
  padding: 0;
  color: var(--winconsent-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.winconsent__link {
  color: var(--winconsent-purple);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.winconsent__link:hover,
.winconsent__link:focus-visible {
  color: #332b73;
}

.winconsent__actions {
  display: grid;
  gap: 10px;
}

.winconsent .winconsent__actions .winconsent__button {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid var(--winconsent-purple) !important;
  border-radius: 0 !important;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 100ms ease;
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent;
}

.winconsent .winconsent__actions .winconsent__button:focus-visible {
  outline: 3px solid #00b2df;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}

.winconsent .winconsent__actions .winconsent__button--necessary {
  color: var(--winconsent-purple) !important;
  background: #fff !important;
}

.winconsent .winconsent__actions .winconsent__button--optional {
  color: #fff !important;
  background: var(--winconsent-purple) !important;
}

.winconsent .winconsent__actions .winconsent__button:active {
  transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
  .winconsent .winconsent__actions .winconsent__button:hover {
    transform: translateY(-1px);
  }

  .winconsent .winconsent__actions .winconsent__button--necessary:hover {
    color: #332b73 !important;
    border-color: #332b73 !important;
    background: #f1f0f9 !important;
  }

  .winconsent .winconsent__actions .winconsent__button--optional:hover {
    border-color: #332b73 !important;
    background: #332b73 !important;
  }
}

@media (max-width: 980px) {
  .winconsent__inner {
    grid-template-columns: 140px minmax(0, 1fr) 200px;
    gap: 24px;
    padding: 26px;
  }

  .winconsent__desktop-break {
    display: none;
  }

  .winconsent__logo {
    max-width: 125px;
  }
}

@media (max-width: 820px) {
  .winconsent {
    padding: 0;
  }

  .winconsent__inner {
    display: block;
    max-height: min(86vh, 720px);
    padding: 24px 22px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .winconsent__brand {
    justify-content: flex-start;
    margin-bottom: 22px;
  }

  .winconsent__logo {
    max-width: 145px;
  }

  .winconsent__title {
    margin-bottom: 8px;
    font-size: 27px;
  }

  .winconsent__text {
    font-size: 14px;
    line-height: 1.6;
  }

  .winconsent__actions {
    gap: 12px;
    margin-top: 22px;
  }

  .winconsent .winconsent__actions .winconsent__button {
    min-height: 48px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .winconsent .winconsent__actions .winconsent__button {
    transition: none;
  }
}
