@import url("/global-catalog.css");
@import url("/global-catalog-contribution.css");

/* Developer commercial tools */
.promo-subtabs { display: inline-flex; gap: 4px; margin: 18px 0; padding: 4px; border: 1px solid rgba(188,196,207,.16); border-radius: 10px; background: #0c0f13; }
.promo-subtabs button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: #9da5af; font: inherit; font-weight: 700; cursor: pointer; }
.promo-subtabs button.active { background: #252a31; color: #f5f7fa; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.promo-local-search { display: flex; align-items: center; gap: 9px; max-width: 520px; margin: 16px 0; padding: 0 12px; border: 1px solid rgba(188,196,207,.16); border-radius: 8px; background: #0d1014; }
.promo-local-search svg { width: 18px; color: #8e96a0; }
.promo-local-search input { width: 100%; min-height: 42px; border: 0; background: transparent; color: #f1f3f5; outline: 0; }
.promo-send-summary { display: grid; gap: 5px; margin-bottom: 16px; padding: 17px; border: 1px solid rgba(188,196,207,.16); border-radius: 9px; background: #101318; }
.promo-send-summary span, .promo-send-summary small { color: #9da5af; }
.promo-send-summary strong { font-family: Consolas, monospace; font-size: 22px; letter-spacing: 1px; }
.promo-recipient-results { display: grid; gap: 8px; max-height: 360px; margin: 12px 0 16px; overflow: auto; }
.promo-recipient-option { position: relative; display: grid; grid-template-columns: 88px minmax(0,1fr) 28px; gap: 4px 12px; align-items: center; width: 100%; padding: 13px; border: 1px solid rgba(188,196,207,.16); border-radius: 8px; background: #0e1116; color: #e8ebef; text-align: left; cursor: pointer; }
.promo-recipient-option:hover, .promo-recipient-option.is-selected { border-color: rgba(222,228,236,.45); background: #171b21; }
.promo-recipient-option span { grid-row: 1 / span 2; color: #9da5af; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.promo-recipient-option strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-recipient-option small { min-width: 0; overflow: hidden; color: #9da5af; text-overflow: ellipsis; white-space: nowrap; }
.promo-recipient-option svg { grid-column: 3; grid-row: 1 / span 2; width: 19px; opacity: 0; }
.promo-recipient-option.is-selected svg { opacity: 1; }
.commercial-config-form { display: grid; gap: 16px; }
.commercial-config-intro { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 17px; border: 1px solid rgba(188,196,207,.16); border-radius: 10px; background: #0d1014; }
.commercial-config-intro h4, .commercial-config-intro p { margin: 0; }
.commercial-config-intro h4 { margin: 3px 0 5px; font-size: 18px; }
.commercial-config-intro p:not(.eyebrow) { color: #9da5af; line-height: 1.45; }
.commercial-config-intro > span { padding: 8px 11px; border-radius: 7px; background: #242930; color: #f0f2f5; font-weight: 800; }
.commercial-price-grid { display: grid; grid-template-columns: repeat(5,minmax(140px,1fr)); gap: 10px; }
.commercial-price-grid label, .commercial-rule-row label { display: grid; gap: 7px; min-width: 0; padding: 12px; border: 1px solid rgba(188,196,207,.14); border-radius: 8px; background: #101318; color: #cdd2d8; font-size: 12px; font-weight: 700; }
.commercial-price-grid input, .commercial-rule-row input { width: 100%; min-height: 40px; border: 1px solid rgba(188,196,207,.19); border-radius: 6px; background: #090b0e; color: #f4f5f7; }
.commercial-price-grid small { color: #8e96a0; font-weight: 500; }
.commercial-rule-block { padding: 15px; border: 1px solid rgba(188,196,207,.16); border-radius: 10px; background: #0d1014; }
.commercial-rule-block > header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; }
.commercial-rule-block h4, .commercial-rule-block p { margin: 0; }
.commercial-rule-block p { margin-top: 4px; color: #8e96a0; font-size: 12px; }
.commercial-rule-block [data-commercial-periods], .commercial-rule-block [data-commercial-tiers] { display: grid; gap: 8px; }
.commercial-rule-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) 40px; gap: 8px; align-items: end; }
.commercial-rule-row.is-tier { grid-template-columns: repeat(3,minmax(0,1fr)) 40px; }
.commercial-rule-row > .icon-button { margin-bottom: 1px; }
.commercial-config-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.commercial-config-footer .developer-security-note { flex: 1; margin: 0; }
@media (max-width: 1180px) { .commercial-price-grid { grid-template-columns: repeat(3,minmax(140px,1fr)); } }
@media (max-width: 760px) {
  .promo-subtabs { display: grid; width: 100%; }
  .commercial-price-grid { grid-template-columns: 1fr 1fr; }
  .commercial-rule-row, .commercial-rule-row.is-tier { grid-template-columns: 1fr 1fr; }
  .commercial-rule-row.is-tier label:nth-child(3) { grid-column: 1 / -1; }
  .commercial-rule-row > .icon-button { grid-column: -2; justify-self: end; }
  .commercial-config-footer, .commercial-rule-block > header, .commercial-config-intro { align-items: stretch; flex-direction: column; }
}
@media (max-width: 480px) {
  .commercial-price-grid, .commercial-rule-row, .commercial-rule-row.is-tier { grid-template-columns: 1fr; }
  .commercial-rule-row.is-tier label:nth-child(3) { grid-column: auto; }
  .commercial-rule-row > .icon-button { grid-column: auto; justify-self: end; }
  .promo-recipient-option { grid-template-columns: 72px minmax(0,1fr) 24px; }
}


