.reference-section {
  background: #fcfffd;
}

.reference-note {
  margin: 18px 0 0;
  padding: 13px 14px;
  border-radius: 9px;
  background: #f1f5f9;
  color: #475569;
  line-height: 1.45;
  font-size: 13px;
}

.reference-offer-card {
  background: #fbfffd;
}

.reference-offer-heading {
  display: grid;
  grid-template-rows: minmax(2.7em, auto) minmax(1.4em, auto);
  align-content: start;
  gap: 4px;
  min-height: 4.5em;
  margin: 0 0 12px;
}

.reference-offer-heading h5 {
  margin: 0;
  line-height: 1.35;
}

.reference-offer-subtitle {
  display: block;
  align-self: start;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.reference-offer-card .offer-values {
  grid-template-rows: repeat(2, minmax(2.8em, auto));
}

.reference-offer-card .offer-values > div {
  align-items: start;
}

.bfl-price-field {
  min-width: 0;
}

.bfl-price-field label {
  width: 100%;
}

.bfl-price-field input[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
}

.bfl-field-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 0 0;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.bfl-field-warning[hidden] {
  display: none;
}

.bfl-field-warning > span:first-child {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.deal-form-field {
  min-width: 0;
}

.deal-form-field label {
  width: 100%;
}

#deal-draft-dialog input:not([type="hidden"]),
#deal-draft-dialog select {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 13px;
  color: #1e293b;
  font: inherit;
  line-height: 1.25;
}

#deal-draft-dialog select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

#deal-draft-dialog select:disabled {
  opacity: 1;
  color: #64748b;
  background-color: #f8fafc;
}

.deal-form-field input[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
}

.deal-field-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 0 0;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.deal-field-warning[hidden] {
  display: none;
}

.deal-field-warning > span:first-child {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.price-tabs {
  display: flex;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  overflow-x: auto;
  border-bottom: 1px solid #cbd5e1;
  scrollbar-width: thin;
}

.price-tabs [role="tab"] {
  position: relative;
  flex: 0 0 auto;
  min-width: 104px;
  min-height: 48px;
  margin: 0;
  padding: 13px 20px 12px;
  border: 0;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: #526579;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .16s ease, color .16s ease;
}

.price-tabs [role="tab"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #1f5c49;
  transform: translateX(-50%);
  transition: width .16s ease;
}

.price-tabs [role="tab"]:hover {
  background: #eef3f6;
  color: #334155;
}

.price-tabs [role="tab"]:focus-visible {
  outline: 2px solid #7ba899;
  outline-offset: -3px;
}

.price-tabs [role="tab"][aria-selected="true"] {
  background: #fff;
  color: #1f5c49;
}

.price-tabs [role="tab"][aria-selected="true"]::after {
  width: calc(100% - 32px);
}

.price-tab-panel {
  margin: 0;
  padding: 20px 0 0;
}

.price-tab-panel[hidden] {
  display: none;
}

.price-controls {
  margin: 0 0 16px;
}

.price-controls + .price-controls {
  margin-top: -4px;
}

.phone-mask {
  display: flex;
  width: 100%;
  height: 48px;
  min-height: 48px;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.phone-prefix {
  flex: 0 0 auto;
  padding-left: 13px;
  color: #334155;
  font-weight: 650;
}

.phone-mask input:not([type="hidden"]) {
  width: 100%;
  height: 46px;
  min-height: 46px;
  min-width: 0;
  padding-block: 0;
  padding-left: 7px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
}

.phone-mask:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .18);
}

.phone-mask:has(input[aria-invalid="true"]) {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
}

.phone-mask input[aria-invalid="true"] {
  border: 0;
  box-shadow: none;
}

select[data-auto-selected="true"] {
  color: #334155;
  background-color: #f8fafc;
}

@media (max-width: 700px) {
  .price-tabs {
    margin-right: -4px;
  }

  .price-tabs [role="tab"] {
    min-width: 78px;
    padding-inline: 14px;
  }
}
