/**
 * BrillaHero Pricing Repeater styles — Sprint 1.2.5
 */

.bh-pr-wrap {
  --_bh-blu-primary:  var(--bh-blu-primary, #0047BB);
  --_bh-blu-strong:   var(--bh-blu-strong, #1A2B5F);
  --_bh-blu-soft:     var(--bh-blu-soft, #B3C5FF);
  --_bh-surface:      var(--bh-surface, #F5F6FA);
  --_bh-text-1:       var(--bh-text-1, #1A2B5F);
  --_bh-text-2:       var(--bh-text-2, #877F7D);
  --_bh-border:       var(--bh-border, #E2E6F2);

  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--_bh-border);
  border-radius: 10px;
  background: var(--_bh-surface);
  font-family: var(--bh-font-body, 'Inter', sans-serif);
  color: var(--_bh-text-1);
}

.bh-pr-heading {
  margin: 0 0 4px 0;
  font-family: var(--bh-font-display, 'Bricolage Grotesque', sans-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--_bh-blu-strong);
}

.bh-pr-help {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--_bh-text-2);
}

.bh-pr-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bh-pr-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 140px 130px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--_bh-border);
  border-radius: 8px;
}

.bh-pr-cat {
  font-size: 14px;
  font-weight: 500;
  color: var(--_bh-text-1);
}

.bh-pr-price-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bh-pr-currency {
  position: absolute;
  left: 10px;
  font-size: 14px;
  color: var(--_bh-text-2);
  pointer-events: none;
  user-select: none;
}

.bh-pr-price,
.bh-pr-mode {
  height: 40px;
  border: 1px solid var(--_bh-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--_bh-text-1);
  background: #fff;
  box-sizing: border-box;
  line-height: 1.2;
}

.bh-pr-price {
  width: 100%;
  padding: 0 10px 0 24px;
  text-align: right;
}

.bh-pr-mode {
  padding: 0 32px 0 10px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%231A2B5F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5L6 8l3.5-3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  cursor: pointer;
}

.bh-pr-price:focus,
.bh-pr-mode:focus {
  outline: none;
  border-color: var(--_bh-blu-primary);
  box-shadow: 0 0 0 3px var(--_bh-blu-soft);
}

.bh-pr-price:disabled {
  background: var(--_bh-surface);
  color: var(--_bh-text-2);
  cursor: not-allowed;
}

.bh-pr-price:disabled + .bh-pr-currency,
.bh-pr-price-wrap:has(.bh-pr-price:disabled) .bh-pr-currency {
  color: var(--_bh-border);
}

.bh-pr-empty {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--_bh-text-2);
  text-align: center;
  padding: 12px;
}

@media (max-width: 480px) {
  .bh-pr-row {
    grid-template-columns: 1fr;
  }

  .bh-pr-price {
    text-align: left;
  }
}
