.tt-consent,
.tt-consent-modal {
  box-sizing: border-box;
  font-family: Roboto, Arial, sans-serif;
}

.tt-consent *,
.tt-consent *::before,
.tt-consent *::after,
.tt-consent-modal *,
.tt-consent-modal *::before,
.tt-consent-modal *::after {
  box-sizing: border-box;
}

.tt-consent {
  position: fixed;
  z-index: 2147483000;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  justify-content: center;
  color: #1f1a27;
  pointer-events: none;
}

.tt-consent__panel {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(18, 10, 28, .2);
  padding: 11px 12px;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.tt-consent__copy strong {
  display: inline;
  color: #592e83;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.tt-consent__copy p,
.tt-consent-modal__intro,
.tt-consent-choice p {
  margin: 3px 0 0;
  color: #5f556b;
  font-size: 13px;
  line-height: 1.35;
}

.tt-consent__privacy {
  display: inline-block;
  margin-top: 4px;
  color: #592e83;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
}

.tt-consent__actions,
.tt-consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.tt-consent__btn {
  min-height: 38px;
  border-radius: 5px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.tt-consent__btn--primary {
  border: 2px solid #0db39e;
  background: #0db39e;
  color: #fff;
}

.tt-consent__btn--deny {
  border: 2px solid #592e83;
  background: #592e83;
  color: #fff;
}

.tt-consent__btn--ghost {
  border: 2px solid #592e83;
  background: #fff;
  color: #592e83;
}

.tt-consent__btn:focus-visible,
.tt-consent-preferences:focus-visible,
.tt-consent-modal__close:focus-visible {
  outline: 3px solid rgba(13, 179, 158, .35);
  outline-offset: 2px;
}

.tt-consent-modal {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(18, 10, 28, .58);
  color: #1f1a27;
  padding: 18px;
}

.tt-consent-modal__panel {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .34);
  padding: 18px;
}

.tt-consent-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.tt-consent-modal__head h2 {
  margin: 0;
  color: #592e83;
  font-size: 24px;
  line-height: 1.15;
}

.tt-consent-modal__close {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(89, 46, 131, .22);
  border-radius: 999px;
  background: #fff;
  color: #592e83;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tt-consent-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #dfd5e8;
  border-radius: 7px;
  margin-top: 12px;
  padding: 12px;
}

.tt-consent-choice strong {
  color: #31184d;
  font-size: 16px;
}

.tt-consent-choice__fixed {
  color: #0db39e;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.tt-consent-choice input {
  width: 24px;
  height: 24px;
  accent-color: #0db39e;
}

.tt-consent-modal__actions {
  margin-top: 16px;
}

.tt-consent-preferences-wrap {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: center;
}

.tt-consent-preferences {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #592e83;
  box-shadow: none;
  padding: 2px 4px;
  font: 800 12px/1.2 Roboto, Arial, sans-serif;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .tt-consent {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .tt-consent__panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .tt-consent__actions,
  .tt-consent-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tt-consent__btn {
    width: 100%;
  }

  .tt-consent__actions [data-tt-consent="settings"] {
    grid-column: 1 / -1;
    order: 3;
  }

  .tt-consent-choice {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
