.htb-page {
  background: #f8fafc;
  color: #0f172a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: clamp(42px, 6vw, 72px) 18px;
}

.htb-page--compact {
  padding: clamp(28px, 5vw, 48px) 18px;
}

.htb-shell {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  margin: 0 auto;
  max-width: 1120px;
}

.htb-shell--single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.htb-copy {
  padding: 18px 0;
}

.htb-eyebrow {
  color: #1152d4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.htb-page h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0 0 16px;
}

.htb-copy > p:not(.htb-eyebrow) {
  color: #475569;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.htb-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  padding: clamp(22px, 3vw, 34px);
}

.htb-form {
  display: grid;
  gap: 16px;
}

.htb-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.htb-form label {
  color: #0f172a;
  display: grid;
  font-size: 13px;
  font-weight: 850;
  gap: 7px;
}

.htb-form input,
.htb-form select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
}

.htb-form input:focus,
.htb-form select:focus {
  border-color: #1152d4;
  box-shadow: 0 0 0 3px rgba(17, 82, 212, 0.14);
  outline: none;
}

.htb-field-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.htb-checkbox {
  align-items: start;
  color: #475569;
  display: grid;
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.45;
}

.htb-checkbox a {
  color: #1152d4;
  font-weight: 800;
}

.htb-checkbox input {
  min-height: 18px;
  padding: 0;
}

.htb-consents {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.htb-button {
  align-items: center;
  background: linear-gradient(90deg, #2544cc 0%, #8938c7 100%);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(17, 82, 212, 0.2);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  text-decoration: none;
}

.htb-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.htb-button--ghost {
  background: #eef2ff;
  box-shadow: none;
  color: #1152d4;
}

.htb-link-button {
  background: transparent;
  border: 0;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body .htb-page .htb-link-button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #64748b;
  display: inline;
  min-height: 0;
  padding: 0;
  width: auto;
}

.htb-link-button:hover,
.htb-link-button:focus,
body .htb-page .htb-link-button:hover,
body .htb-page .htb-link-button:focus {
  color: #b42318;
}

.htb-account-secondary-action {
  border-top: 1px solid #e2e8f0;
  margin: 28px 0 8px;
  padding-top: 20px;
}

.htb-plan-summary {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 18px;
}

.htb-plan-summary span,
.htb-details dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.htb-plan-summary strong {
  color: #0f172a;
  font-size: 20px;
}

.htb-plan-summary__price,
.htb-plan-option__price {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  margin: 4px 0 0;
}

.htb-plan-summary__copy,
.htb-plan-details__summary {
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
  margin: 8px 0 0;
}

.htb-plan-summary__features,
.htb-plan-option__features {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.htb-plan-summary__features li,
.htb-plan-option__features li {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  padding-left: 18px;
  position: relative;
}

.htb-plan-summary__features li::before,
.htb-plan-option__features li::before {
  color: #2563eb;
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.htb-plan-details {
  margin-top: 8px;
}

.htb-note {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.htb-alert {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  padding: 12px 14px;
}

.htb-alert.is-error {
  background: #fef2f2;
  color: #991b1b;
}

.htb-alert.is-success {
  background: #ecfdf5;
  color: #065f46;
}

.htb-empty {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}

.htb-empty p {
  color: #475569;
  line-height: 1.6;
}

.htb-auth-card {
  margin: 0 auto;
  max-width: 520px;
}

.htb-auth-card h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 12px;
}

.htb-auth-intro,
.htb-auth-card > p:not(.htb-eyebrow) {
  color: #475569;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.htb-login-form {
  margin-top: 18px;
}

.htb-login-remember {
  align-items: center;
}

.htb-login-form .htb-button {
  justify-content: center;
  width: 100%;
}

.htb-auth-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 18px;
}

.htb-auth-links a {
  color: #1152d4;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.htb-auth-links a:hover {
  text-decoration: underline;
}

.htb-result {
  align-items: center;
  background: #fff;
  border: 1px solid #dbeafe;
  border-left: 5px solid #1152d4;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 960px;
  padding: 20px 22px;
}

.htb-result--cancel {
  border-color: #fecaca;
  border-left-color: #dc2626;
}

.htb-result__icon {
  align-items: center;
  background: #e0e7ff;
  border-radius: 999px;
  color: #1152d4;
  display: inline-flex;
  font-size: 18px;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.htb-result--cancel .htb-result__icon {
  background: #fee2e2;
  color: #b91c1c;
}

.htb-result h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 5px;
}

.htb-result p {
  color: #475569;
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

.htb-details {
  display: grid;
  gap: 0;
  margin: 0;
}

.htb-details div {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 12px;
  grid-template-columns: 142px minmax(0, 1fr);
  min-height: 42px;
  padding: 10px 0;
}

.htb-details div:first-child {
  padding-top: 0;
}

.htb-details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.htb-details dd {
  color: #0f172a;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.htb-status {
  background: #eef2ff;
  border-radius: 999px;
  color: #1152d4;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  text-transform: uppercase;
}

.htb-status--active {
  background: #dcfce7;
  color: #166534;
}

.htb-status--canceling {
  background: #fef3c7;
  color: #92400e;
}

.htb-status--blocked {
  background: #fee2e2;
  color: #991b1b;
}

.htb-status--canceled,
.htb-status--past_due {
  background: #fee2e2;
  color: #991b1b;
}

.htb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.htb-usage-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 20px;
}

.htb-section-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.htb-section-head h2 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
  margin: 0 0 5px;
}

.htb-section-head p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.htb-usage-metrics {
  display: grid;
  gap: 12px;
}

.htb-active-pack-banner {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  padding: 14px 16px;
}

.htb-active-pack-banner__label {
  color: #047857;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.htb-active-pack-banner strong {
  color: #064e3b;
  display: block;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.htb-active-pack-banner p {
  color: #166534;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
}

.htb-usage-meter {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.htb-usage-meter__top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.htb-usage-meter__top strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.htb-usage-meter__top span,
.htb-usage-meter p {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.htb-usage-bar {
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.htb-usage-bar span {
  background: linear-gradient(90deg, #1152d4 0%, #8938c7 100%);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 4px;
}

.htb-usage-note {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 13px 14px;
}

.htb-usage-note p {
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.htb-pack-list {
  display: grid;
  gap: 12px;
}

.htb-pack-card {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.htb-pack-card__tag {
  color: #1152d4;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.htb-pack-card h3 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
  margin: 0 0 6px;
}

.htb-pack-card p {
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.htb-pack-card ul {
  color: #334155;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.htb-pack-card li {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  padding: 6px 9px;
}

.htb-pack-card__buy {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.htb-pack-card__buy strong {
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.htb-security-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  margin-top: 20px;
  padding: 18px 20px 20px;
}

.htb-account-cancel {
  border-top: 1px solid #e2e8f0;
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 16px;
}

body .htb-page .htb-account-cancel .htb-link-button,
.htb-account-cancel .htb-link-button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #b42318;
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: auto;
}

body .htb-page .htb-account-cancel .htb-link-button:hover,
.htb-account-cancel .htb-link-button:hover {
  color: #91110a;
}

.htb-security-panel h2 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px;
}

.htb-security-panel p {
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.htb-security-panel .htb-alert {
  margin-top: 12px;
}

.htb-password-form {
  gap: 12px;
}

.htb-password-field {
  display: grid;
  position: relative;
}

.htb-password-field input {
  padding-right: 48px;
}

.htb-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
}

.htb-password-toggle:hover,
.htb-password-toggle:focus {
  background: #eef2ff;
  color: #1152d4;
  outline: none;
}

.htb-field-help {
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  margin: -2px 0 0;
}

.htb-password-form .htb-button {
  justify-content: center;
}

.htb-account-card {
  padding: clamp(22px, 3vw, 30px);
}

.htb-account-head {
  align-items: start;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 18px;
}

.htb-account-head .htb-eyebrow {
  margin-bottom: 8px;
}

.htb-account-head h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  margin: 0;
}

.htb-account-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 22px;
}

.htb-info-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 20px;
}

.htb-info-panel h2 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
}

.htb-head-note {
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
  margin: 8px 0 0;
  max-width: 650px;
}

.htb-plan-switcher {
  display: grid;
  gap: 14px;
}

.htb-plan-option {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 20px;
}

.htb-plan-option.is-current {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.htb-plan-option__head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.htb-plan-option h2 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.htb-plan-option p {
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 8px;
}

.htb-plan-option .htb-plan-option__price {
  margin: 0 0 8px;
}

.htb-plan-option__period {
  color: #64748b;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
}

.htb-note--left {
  margin-top: 18px;
  text-align: left;
}

.htb-account-blocked {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  display: grid;
  gap: 4px;
  line-height: 1.45;
  margin: 0 0 20px;
  padding: 14px 16px;
}

.htb-account-blocked strong {
  color: #7f1d1d;
}

.htb-modal[hidden] {
  display: none;
}

.htb-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.46);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 100000;
}

.htb-modal__panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.25);
  max-width: 560px;
  padding: 26px;
  position: relative;
  width: 100%;
}

.htb-modal__close {
  align-items: center;
  background: #f1f5f9;
  border: 0;
  border-radius: 999px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
}

.htb-modal h2 {
  font-size: 24px;
  line-height: 1.18;
  margin: 0 40px 10px 0;
}

.htb-modal p {
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.htb-modal__notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 16px;
  padding: 13px 14px;
}

.htb-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
}

.htb-terms-card {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.htb-page .htb-terms-card h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 2px;
}

.htb-page .htb-terms-card h2 {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 18px 0 0;
}

.htb-page .htb-terms-card p {
  color: #334155;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.htb-page .htb-terms-card strong {
  font-weight: 800;
}

@media (max-width: 820px) {
  .htb-shell,
  .htb-grid,
  .htb-details div,
  .htb-account-grid,
  .htb-security-panel {
    grid-template-columns: 1fr;
  }

  .htb-account-head {
    display: grid;
  }

  .htb-section-head,
  .htb-active-pack-banner,
  .htb-pack-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .htb-section-head .htb-button,
  .htb-pack-card .htb-button {
    width: 100%;
  }

  .htb-pack-card__buy {
    justify-items: stretch;
  }

  .htb-plan-option {
    grid-template-columns: 1fr;
  }

  .htb-plan-option .htb-button {
    width: 100%;
  }

  .htb-modal__actions .htb-button {
    width: 100%;
  }

  .htb-result {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .htb-result .htb-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Isolation du thème Hapivot : billing.css doit gagner sur h1/button globaux. */
body .htb-page h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.04;
}

body .htb-auth-card h1 {
  font-size: clamp(32px, 4vw, 46px);
}

body .htb-page .htb-terms-card h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.08;
}

body .htb-page .htb-terms-card h2 {
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
}

body .htb-button {
  background: linear-gradient(90deg, #2544cc 0%, #8938c7 100%);
  border: 0;
  color: #fff;
}

body .htb-button--ghost {
  background: #eef2ff;
  box-shadow: none;
  color: #1152d4;
}

body .htb-page ul,
body .htb-page ol {
  list-style: none;
}

body .htb-page button {
  background: none;
  border: none;
  font-family: inherit;
}

body .htb-page .htb-button,
body .htb-page button.htb-button {
  background: linear-gradient(90deg, #2544cc 0%, #8938c7 100%);
  border: 0;
  color: #fff;
}

body .htb-page button.htb-button--ghost,
body .htb-page .htb-button--ghost {
  background: #eef2ff;
  color: #1152d4;
}

.site-header__account-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 30;
}

.site-header__account-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 12.5rem;
  margin: 0;
  padding: 10px 0 8px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  z-index: 200;
}

.site-header__account-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.site-header__account-wrap:hover .site-header__account-menu,
.site-header__account-wrap:focus-within .site-header__account-menu {
  display: block;
}

.site-header__account-menu form {
  display: block;
  width: 100%;
  margin: 0;
}

.site-header__account-menu a,
body .site-header__account-menu button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.site-header__account-menu a:hover,
body .site-header__account-menu button:hover {
  background: #eef2ff;
  color: #1152d4;
}

:root {
  --htb-topbar-h: 40px;
}

.htb-topbar-slot {
  height: var(--htb-topbar-h);
}

.htb-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 48px;
  background: #e0e7ff;
  box-sizing: border-box;
}

.htb-topbar__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 6px;
  margin: 0;
  max-width: 920px;
  color: #1152d4;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.htb-topbar__link {
  color: #573EC9;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.htb-topbar__close {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1152d4;
  font-size: 24px;
  line-height: 32px;
  transform: translateY(-50%);
  cursor: pointer;
}

body.htb-topbar-on {
  padding-top: 0;
}

body.htb-topbar-on .site-header {
  top: var(--htb-topbar-h);
}

@media (max-width: 767px) {
  :root {
    --htb-topbar-h: 56px;
  }

  .htb-topbar {
    align-items: flex-start;
    min-height: 0;
    padding: 10px 44px 10px 14px;
  }

  .htb-topbar__text {
    display: block;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
  }

  .htb-topbar__link {
    display: inline;
    white-space: normal;
  }

  .htb-topbar__close {
    top: 8px;
    right: 8px;
    transform: none;
  }
}
