:root {
  --wpconsent-purple: #5b56a5;
  --wpconsent-text: #666773;
  --wpconsent-title: #0d0d10;
}

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

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

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

.wpconsent__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);
}

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

.wpconsent__logo {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
}

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

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

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

.wpconsent__link:hover,
.wpconsent__link:focus-visible {
  color: #403b89;
}

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

.wpconsent .wpconsent__actions .wpconsent__button {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid var(--wpconsent-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;
}

.wpconsent .wpconsent__actions .wpconsent__button:focus-visible {
  outline: 3px solid #1aaee8;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}

.wpconsent .wpconsent__actions .wpconsent__button--necessary {
  color: var(--wpconsent-purple) !important;
  background: #fff !important;
}

.wpconsent .wpconsent__actions .wpconsent__button--optional {
  color: #fff !important;
  background: var(--wpconsent-purple) !important;
}

.wpconsent .wpconsent__actions .wpconsent__button:active {
  transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
  .wpconsent .wpconsent__actions .wpconsent__button:hover {
    transform: translateY(-1px);
  }

  .wpconsent .wpconsent__actions .wpconsent__button--necessary:hover {
    color: #48438f !important;
    border-color: #48438f !important;
    background: #f2f1fa !important;
  }

  .wpconsent .wpconsent__actions .wpconsent__button--optional:hover {
    border-color: #48438f !important;
    background: #48438f !important;
  }
}

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

  .wpconsent__desktop-break {
    display: none;
  }

  .wpconsent__logo {
    max-width: 140px;
  }
}

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

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

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

  .wpconsent__logo {
    max-width: 180px;
  }

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

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

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

  .wpconsent .wpconsent__actions .wpconsent__button {
    min-height: 48px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wpconsent .wpconsent__actions .wpconsent__button {
    transition: none;
  }
}
