.htconsent {
  --htc-bg: #1c2c5b;
  --htc-text: #fff;
  --htc-btn-bg: #fff;
  --htc-btn-text: #1c2c5b;
  position: relative;
  z-index: 2147483000;
  font-family: inherit;
}

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

.htconsent__banner {
  position: fixed;
  bottom: 18px;
  width: min(430px, calc(100vw - 28px));
  padding: 18px;
  border-radius: 10px;
  background: var(--htc-bg);
  color: var(--htc-text);
  box-shadow: 0 14px 42px rgba(0,0,0,.22);
  z-index: 2147483001;
  box-sizing: border-box;
}

.htconsent--bottom-left .htconsent__banner { left: 14px; }
.htconsent--bottom-right .htconsent__banner { right: 14px; }
.htconsent--bottom-center .htconsent__banner { left: 50%; transform: translateX(-50%); }

.htconsent__message {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.htconsent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 13px;
}

.htconsent__privacy,
.htconsent__text-button {
  color: var(--htc-text);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.htconsent__text-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.htconsent__actions,
.htconsent__modal-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.htconsent__button {
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.htconsent__button--primary {
  background: var(--htc-btn-bg);
  color: var(--htc-btn-text);
  border-color: var(--htc-btn-bg);
}

.htconsent__button--secondary {
  background: transparent;
  color: var(--htc-text);
}

.htconsent__reopen {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 2147482999;
  border: 1px solid #d8dee9;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #27324a;
  box-shadow: 0 6px 22px rgba(0,0,0,.15);
  font-size: 11px;
  cursor: pointer;
}

.htconsent--bottom-right .htconsent__reopen { left: auto; right: 14px; }
.htconsent--bottom-center .htconsent__reopen { left: 50%; transform: translateX(-50%); }

.htconsent__overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.54);
  box-sizing: border-box;
}

.htconsent__modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  color: #20242c;
  box-shadow: 0 20px 70px rgba(0,0,0,.28);
}

.htconsent__modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #e7e9ee;
}

.htconsent__modal-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.htconsent__close {
  border: 0;
  background: transparent;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  color: #4a5060;
}

.htconsent__category {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px;
  border-bottom: 1px solid #eef0f3;
}

.htconsent__category-copy strong { display: block; margin-bottom: 4px; }
.htconsent__category-copy p { margin: 0; font-size: 13px; line-height: 1.5; color: #5c6473; }

.htconsent__switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.htconsent__switch input { opacity: 0; width: 0; height: 0; }
.htconsent__switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c8ccd4;
  transition: .2s;
  cursor: pointer;
}
.htconsent__switch span:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.htconsent__switch input:checked + span { background: #2d7d46; }
.htconsent__switch input:checked + span:before { transform: translateX(20px); }
.htconsent__switch--locked span { opacity: .72; cursor: not-allowed; }

.htconsent__modal-privacy { margin: 14px 22px 0; font-size: 12px; }
.htconsent__modal-actions { padding: 18px 22px 22px; }
.htconsent__modal .htconsent__button--secondary { color: #27324a; border-color: #aeb5c1; }
.htconsent__modal .htconsent__button--primary { background: var(--htc-btn-bg); color: var(--htc-btn-text); }

html.htconsent-lock { overflow: hidden; }

@media (max-width: 560px) {
  .htconsent__banner {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px;
    width: auto;
    transform: none !important;
  }
  .htconsent__actions,
  .htconsent__modal-actions { flex-direction: column-reverse; }
  .htconsent__button { width: 100%; }
  .htconsent__category { align-items: flex-start; }
  .htconsent__reopen { max-width: calc(100vw - 28px); }
}
