.hin-terms-consent[hidden] {
  display: none !important;
}

.hin-terms-consent {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: inherit;
}

.hin-terms-consent,
.hin-terms-consent * {
  box-sizing: border-box;
}

.hin-terms-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hin-terms-consent__panel {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #ffffff;
  color: #111111 !important;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  padding: 26px 26px 22px;
}

.hin-terms-consent__panel *:not(.hin-terms-consent__button) {
  color: inherit !important;
}

.hin-terms-consent__panel a {
  color: #0052cc !important;
}

.hin-terms-consent__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hin-terms-consent__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #e7e9ec;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.hin-terms-consent__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.hin-terms-consent__message {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #333333 !important;
}

.hin-terms-consent__link {
  text-decoration: underline;
}

.hin-terms-consent__checkbox {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f4f4f5;
  font-size: 14px;
  line-height: 1.35;
}

.hin-terms-consent__checkbox input {
  margin: 0;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hin-terms-consent__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hin-terms-consent__button {
  appearance: none;
  border: 1px solid #111111;
  border-radius: 12px;
  padding: 12px 18px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  min-width: 160px;
}

.hin-terms-consent__button--secondary {
  background: #ffffff;
  color: #111111;
}

.hin-terms-consent__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .hin-terms-consent__panel {
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  .hin-terms-consent__actions {
    flex-direction: column;
  }

  .hin-terms-consent__button {
    width: 100%;
    min-width: 0;
  }
}

/* Prevent background scroll while open */
.hin-terms-consent--open,
.hin-terms-consent--open body {
  overflow: hidden;
}

