.consumer-app {
  background: #f7f4ee;
  padding: 1.25rem 1rem 2.5rem;
}

.consumer-frame {
  max-width: 1120px;
  margin: 0 auto;
  background: #f7f4ee;
  border: 0;
  overflow: hidden;
}

.hero-image-container {
  position: relative;
  height: 280px;
  background:
    linear-gradient(180deg,
      rgba(12, 18, 24, 0.45) 0%,
      rgba(12, 18, 24, 0.75) 100%),
    url('/images/consumer-hero.jpg') center center / cover no-repeat;
  border-bottom: 3px solid #b08a4c;
}

.consumer-hero-copy {
  position: absolute;
  inset: auto 1.25rem 1.35rem 1.25rem;
  color: #fff;
}

.consumer-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff6e1;
  background: rgba(14, 22, 30, 0.62);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}

.consumer-hero-title {
  font-size: 1.95rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.consumer-hero-subtitle {
  margin-top: 0.55rem;
  max-width: 18rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.calc-body {
  background: #f7f4ee;
  padding: 1.15rem 1rem 1rem;
}

.consumer-field-heads {
  display: none;
}

.calc-columns {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.picker-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.carat-shell {
  flex: 1.05;
}

.calc-col {
  background: #fff;
  border-radius: 7px;
  border: 1px solid #ddd6ca;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.shape-wrap {
  flex: 1.35;
}

.picker-step {
  display: none;
}

.calc-carat-col {
  background: linear-gradient(180deg, #fbfdff 0%, #eff4f8 100%);
  border-color: #cad5df;
  align-items: center;
  position: relative;
  justify-content: center;
  min-height: 154px;
}

.diamond-icon-subtle {
  position: absolute;
  top: 15px;
  width: 20px;
  height: 20px;
  color: #9eabb6;
}

.calc-carat-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  margin-top: 12px;
  margin-inline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.carat-step-btn {
  display: none;
}

.carat-step-btn:active {
  color: #1f2f3b;
}

.calc-carat-input {
  width: 100%;
  min-height: 64px;
  text-align: center;
  font-size: 1.28rem;
  font-weight: 600;
  color: #1f2d3a;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0 0.2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}

.calc-carat-input::-webkit-outer-spin-button,
.calc-carat-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-label-ct {
  position: absolute;
  bottom: 14px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: #5f7280;
  font-weight: 700;
}

.picker-wrap {
  height: 50px;
  overflow: hidden;
  position: relative;
  display: block;
  flex: 0 0 50px;
  min-width: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.picker-wrap::-webkit-scrollbar {
  display: none;
}

.picker-container {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0 0 auto 0;
  will-change: transform;
  transition: transform 0.22s ease;
}

.picker-item {
  min-height: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  line-height: 1.1;
  color: #9aa5af;
  font-weight: 500;
  cursor: pointer;
  scroll-snap-align: center;
  transition: all 0.2s;
  text-align: center;
  padding: 0 4px;
}

.picker-item.active {
  color: #121a22;
  font-size: 1.1rem;
  font-weight: 600;
}

#consumer-shape-picker .picker-item {
  font-size: 0.82rem;
  padding: 0 2px;
}

#consumer-shape-picker .picker-item.active {
  font-size: 0.95rem;
}

.picker-wrap::before,
.picker-wrap::after {
  display: none;
}

.methodology-notice {
  background: #edf6ef;
  border: 1px solid #c8dfce;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.95rem;
  margin-left: 0.9rem;
  margin-right: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.methodology-icon {
  color: #198754;
  flex-shrink: 0;
  margin-top: 2px;
}

.methodology-text {
  font-size: 0.79rem;
  line-height: 1.45;
  color: #235840;
}

.methodology-link {
  color: #235840;
  font-weight: 700;
  text-decoration: underline;
}

.ratio-slider-section {
  margin-bottom: 0.95rem;
  padding: 0.8rem 0.85rem 0.55rem;
  background: #fff;
  border: 1px solid #ddd6ca;
  border-radius: 8px;
}

.ratio-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.ratio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.ratio-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ratio-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1b2936;
  background: #f4efe7;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #e2d8c6;
}

.ratio-range {
  width: 100%;
  margin-bottom: 0.25rem;
}

.ratio-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ratio-value-input {
  width: 78px;
  min-width: 78px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #1b2936;
  background: #f4efe7;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #e2d8c6;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.ratio-value-input::-webkit-outer-spin-button,
.ratio-value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ratio-reset-btn {
  border: 1px solid #e2d8c6;
  background: #fff;
  color: #1b2936;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ratio-reset-btn:disabled,
.ratio-value-input:disabled {
  opacity: 0.6;
  cursor: default;
}

.ratio-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #8a93a1;
}

.calc-results-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.price-label,
.fancy-price-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2d3a;
  min-width: 58px;
}

.fancy-price-label {
  margin-top: 0.8rem;
}

.diamond-icon-bold {
  color: #b08a4c;
}

.result-box {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd6ca;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0.8rem 0.7rem;
  min-width: 0;
}

.currency {
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
}

.value-num {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin-right: 0.45rem;
}

.unit-label {
  font-size: 0.74rem;
  color: #97a0af;
  font-weight: 700;
}

.fancy-price-range {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.fancy-price-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.fancy-price-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fancy-from-to {
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 32px;
  text-align: right;
}

.from-label {
  color: #7c8793;
}

.to-label {
  color: #1f2d3a;
}

.fancy-result-box {
  flex: 1;
}

.fancy-ttl-box {
  flex: 1.1;
}

.emerald-warning {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7b2036;
  padding: 0.45rem 0.2rem 0.1rem;
}

.gold-widget {
  border-top: 1px solid #d9d2c6;
  background: #f7f4ee;
  padding: 1rem 0.9rem;
}

.gold-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.gold-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2a1f0e;
}

.gold-unit-toggle {
  display: inline-flex;
  border: 1px solid #ccb98d;
  border-radius: 999px;
  overflow: hidden;
}

.gold-unit-toggle button {
  border: 0;
  background: transparent;
  color: #7b6842;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.gold-unit-toggle button.active {
  background: #b08a4c;
  color: #fff;
}

.gold-prices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.gold-price-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e2d8c6;
  border-radius: 9px;
  padding: 0.8rem 0.55rem;
  text-align: center;
}

.gold-karat {
  font-size: 0.8rem;
  color: #7c6a44;
  font-weight: 700;
}

.gold-value {
  margin-top: 0.35rem;
  font-size: 1rem;
  color: #1d2430;
  font-weight: 700;
}

.gold-desc {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: #93856b;
}

.gold-footer {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  color: #7b705f;
  text-align: center;
}

.consumer-resources {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  padding: 1rem 0.9rem 0.4rem;
  background: #f7f4ee;
}

.resource-card {
  display: block;
  border: 1px solid #ddd6ca;
  border-radius: 9px;
  padding: 0.8rem;
  text-decoration: none;
  color: #15212c;
  background: #fff;
}

.resource-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c7a5d;
  margin-bottom: 0.35rem;
}

.resource-card strong {
  display: block;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .consumer-app {
    padding: 0 0 2rem;
  }

  .consumer-frame {
    border-left: 0;
    border-right: 0;
  }

  .consumer-hero-title {
    font-size: 1.7rem;
  }

  .calc-carat-col,
  .picker-wrap {
    min-height: 118px;
    height: 118px;
    flex-basis: 118px;
  }

  .calc-carat-col {
    padding: 0;
  }

  .calc-carat-stepper {
    flex: 1;
    min-height: 50px;
    margin-top: 0;
    align-items: center;
  }

  .calc-carat-input {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .diamond-icon-subtle {
    top: 10px;
  }

  .calc-label-ct {
    bottom: 10px;
  }
}

@media (min-width: 640px) {

  .consumer-hero-copy,
  .calc-body,
  .gold-widget,
  .consumer-resources {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .consumer-field-heads {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    color: #6c727d;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .consumer-field-heads span {
    text-align: center;
  }

  .calc-columns {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr 1fr;
    align-items: stretch;
  }

  .calc-body {
    padding-left: 0;
    padding-right: 0;
  }

  .calc-col {
    min-height: 84px;
  }

  .calc-carat-col .diamond-icon-subtle,
  .calc-carat-col .calc-label-ct {
    display: none;
  }

  .calc-carat-col {
    min-height: 84px;
    padding: 0;
  }

  .calc-carat-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 84px;
    margin-top: 0;
    margin-inline: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .carat-step-btn {
    display: none;
  }

  .calc-carat-input {
    min-height: 84px;
    width: 100%;
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    text-align: center;
    padding: 0 0.25rem;
  }

  .picker-shell {
    position: relative;
    gap: 0;
  }

  .picker-wrap {
    position: relative;
    height: 84px;
    flex-basis: 84px;
    overflow: hidden;
    touch-action: none;
  }

  .picker-item {
    min-height: 84px;
    height: 84px;
    font-size: 1.15rem;
    opacity: 0.08;
    transform: translateX(calc(var(--picker-chevron-gutter) / 2)) scale(0.9);
    transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
    padding-right: var(--picker-chevron-gutter);
  }

  .picker-item.active {
    font-size: 1.35rem;
    opacity: 1;
    transform: translateX(calc(var(--picker-chevron-gutter) / 2)) scale(1);
  }

  #consumer-shape-picker .picker-item {
    padding-right: var(--picker-chevron-gutter);
  }

  /* move the existing buttons into the picker box */
  .picker-step {
    display: flex;
    position: absolute;
    right: 0.38rem;
    z-index: 3;
    height: 1.15rem;
    min-height: 1.15rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: transparent;
    padding: 0;
    cursor: pointer;
  }

  .picker-step-up {
    top: 50%;
    transform: translateY(-1.15rem);
  }

  .picker-step-down {
    top: 50%;
    transform: translateY(0);
  }

  .picker-step::before {
    content: '';
    display: block;
    width: 0.42rem;
    height: 0.42rem;
    background: transparent;
    border-right: 1.5px solid #74674f;
    border-bottom: 1.5px solid #74674f;
    opacity: 0.82;
    transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  }

  .picker-step-up::before {
    transform: rotate(-135deg);
  }

  .picker-step-down::before {
    transform: rotate(45deg);
  }

  .picker-step:hover::before,
  .picker-step:focus-visible::before {
    opacity: 1;
    border-color: #2b3440;
  }

  .picker-container {
    padding-top: 0;
    padding-bottom: 0;
  }

  .methodology-notice {
    margin-left: 0rem;
    margin-right: 0rem;
  }

  .consumer-resources {
    grid-template-columns: repeat(2, minmax(240px, 320px));
    justify-content: center;
  }
}