.hgdbc {
  --hgdbc-bg: #f5f2ef;
  --hgdbc-panel: #e3ddd7;
  --hgdbc-text: #041914;
  --hgdbc-muted: rgba(4, 25, 20, 0.7);
  --hgdbc-line: #e3ddd7;
  --hgdbc-accent: #c97c30;
  --hgdbc-dark: #505449;
  --hgdbc-light: #f7f2ee;
  background: var(--hgdbc-bg);
  color: var(--hgdbc-text);
  font-family: "Inter", sans-serif;
}

.hgdbc *,
.hgdbc *::before,
.hgdbc *::after {
  box-sizing: border-box;
}

.hgdbc__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.hgdbc__controls {
  padding-right: 28px;
}

.hgdbc__form {
  display: grid;
  gap: 18px;
}

.hgdbc__control {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hgdbc-line);
}

.hgdbc__control:last-child {
  border-bottom: 0;
}

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

.hgdbc__top label {
  color: var(--hgdbc-text);
  font: 400 16px/1.5 "Inter", sans-serif;
}

.hgdbc__input,
.hgdbc__select {
  min-width: 118px;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--hgdbc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--hgdbc-text);
  font: 400 16px/1 "Inter", sans-serif;
}

.hgdbc__input {
  max-width: 132px;
  text-align: center;
}

.hgdbc__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 14px 46px 14px 14px;
  line-height: 1.35;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%23505449' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
}

.hgdbc__range-wrap {
  display: grid;
  gap: 8px;
}

.hgdbc__range-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--hgdbc-muted);
  font: 600 12px/1.2 "Inter", sans-serif;
}

.hgdbc__range {
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.hgdbc__range::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(
    to right,
    var(--hgdbc-accent) 0%,
    var(--hgdbc-accent) var(--range-progress, 0%),
    var(--hgdbc-line) var(--range-progress, 0%),
    var(--hgdbc-line) 100%
  );
  border-radius: 999px;
}

.hgdbc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--hgdbc-accent);
}

.hgdbc__range::-moz-range-track {
  height: 6px;
  background: var(--hgdbc-line);
  border-radius: 999px;
}

.hgdbc__range::-moz-range-progress {
  height: 6px;
  background: var(--hgdbc-accent);
  border-radius: 999px;
}

.hgdbc__range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--hgdbc-accent);
}

.hgdbc__toggle-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hgdbc__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 16px 32px;
  border: 1px solid rgb(80, 84, 73);
  border-radius: 15px;
  background: rgba(97, 206, 112, 0);
  color: rgb(80, 84, 73);
  font: 600 16px/16px "Inter", sans-serif;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hgdbc__toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hgdbc__toggle.is-active {
  background: rgb(80, 84, 73);
  color: #fff;
}

.hgdbc__summary {
  background: var(--hgdbc-panel);
  padding: 28px;
}

.hgdbc__eyebrow {
  margin: 0 0 8px;
  color: var(--hgdbc-muted);
  font: 400 16px/1.5 "Inter", sans-serif;
}

.hgdbc__summary-head h2,
.hgdbc__card h3 {
  margin: 0;
  color: var(--hgdbc-text);
  font-family: "Darker Grotesque", sans-serif;
  font-weight: 800;
}

.hgdbc__summary-head h2 {
  font-size: 32px;
}

.hgdbc__summary-head p,
.hgdbc__amount-label,
.hgdbc__headline-copy,
.hgdbc__link,
.hgdbc__popover p,
.hgdbc__row span {
  color: var(--hgdbc-muted);
  font: 400 16px/1.6 "Inter", sans-serif;
}

.hgdbc__amount-label {
  margin: 22px 0 6px;
}

.hgdbc__headline-note {
  margin: 10px 0 0;
  color: var(--hgdbc-muted);
  font: 400 14px/1.6 "Inter", sans-serif;
}

.hgdbc__headline {
  margin: 26px 0 8px;
  color: var(--hgdbc-text);
  font: 800 clamp(48px, 7vw, 80px)/0.92 "Darker Grotesque", sans-serif;
}

.hgdbc__summary-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 22px;
}

.hgdbc__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 16px 32px;
  border-radius: 15px;
  background: rgb(201, 124, 48);
  color: #fff;
  font: 600 16px/16px "Inter", sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hgdbc__link-wrap {
  position: relative;
}

.hgdbc__link {
  text-decoration: none;
  cursor: pointer;
}

.hgdbc__popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 18px);
  width: min(340px, 72vw);
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: var(--hgdbc-dark);
  color: var(--hgdbc-light);
  box-shadow: 0 18px 34px rgba(4, 25, 20, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.hgdbc__popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hgdbc__popover::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 100%;
  width: 22px;
  height: 22px;
  background: var(--hgdbc-dark);
  transform: rotate(45deg) translateY(-11px);
  border-radius: 4px;
}

.hgdbc__popover h3 {
  margin: 0 0 8px;
  color: var(--hgdbc-light);
  font: 800 28px/1 "Darker Grotesque", sans-serif;
}

.hgdbc__popover p {
  color: var(--hgdbc-light);
  font-size: 14px;
  line-height: 1.55;
}

.hgdbc__popover p + p {
  margin-top: 8px;
}

.hgdbc__cards {
  display: grid;
  gap: 14px;
}

.hgdbc__card {
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
}

.hgdbc__card h3 {
  margin-bottom: 14px;
  font-size: 28px;
}

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

.hgdbc__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.hgdbc__row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hgdbc__row strong {
  color: var(--hgdbc-text);
  font: 800 18px/1 "Darker Grotesque", sans-serif;
  text-align: right;
}

.hgdbc__mini-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--hgdbc-dark);
  color: var(--hgdbc-light);
  font: 700 11px/1 "Inter", sans-serif;
  cursor: pointer;
}

.hgdbc__inline-note {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(4, 25, 20, 0.08);
  color: var(--hgdbc-muted);
  font: 400 14px/1.6 "Inter", sans-serif;
}

.hgdbc__inline-note.is-visible {
  display: block;
}

.hgdbc__inline-note p {
  margin: 0;
}

.hgdbc__inline-note p + p {
  margin-top: 8px;
}

.hgdbc__inline-note strong {
  color: var(--hgdbc-text);
  font: 800 24px/1 "Darker Grotesque", sans-serif;
}

@media (max-width: 1120px) {
  .hgdbc__shell {
    grid-template-columns: 1fr;
  }

  .hgdbc__controls {
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .hgdbc__top,
  .hgdbc__summary-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hgdbc__input,
  .hgdbc__select {
    width: 100%;
    max-width: none;
  }

  .hgdbc__select {
    min-height: 54px;
    padding: 15px 46px 15px 14px;
    border-radius: 15px;
  }

  .hgdbc__summary,
  .hgdbc__controls {
    padding: 0;
  }

  .hgdbc__summary {
    padding: 20px;
  }

  .hgdbc__popover {
    right: auto;
    left: 0;
    width: min(100%, 340px);
  }

  .hgdbc__popover::after {
    left: 28px;
    right: auto;
  }
}
