.discount-field-host { display: flex; align-items: center; gap: 10px; margin: 12px 0; min-width: 0; flex-wrap: wrap; }
.discount-field-host[hidden] { display: none; }
.discount-field-label { color: #526a81; font-size: 13px; font-weight: 600; }
.discount-field-host .discount-field-value { display: inline-flex; align-items: center; gap: 9px; width: auto; max-width: 100%; min-height: 36px; padding: 7px 12px; border: 1px solid #ced9e4; border-radius: 10px; background: #fff; color: #27445f; font: inherit; font-size: 13px; box-shadow: none; text-align: left; overflow-wrap: anywhere; }
.discount-field-value > b { color: #1769a0; white-space: nowrap; }
.discount-recognition { --medal: #d3a64c; --ink: #644c22; display: flex; align-items: center; gap: 12px; color: var(--ink); padding: 10px 14px; border: 1px solid #ddceb0; border-radius: 18px; background: linear-gradient(125deg,#fffdfa,#fcf5e5); }
.discount-recognition.military { --medal: #b85a59; --ink: #213d60; border-color: #cbd8e8; background: linear-gradient(120deg,#f4f8ff,#fffafa); }
.discount-recognition.other { --medal: #729fae; --ink: #235769; border-color: #c6dce1; background: linear-gradient(120deg,#f0fafc,#fff); }
.discount-medallion { position: relative; isolation: isolate; flex: 0 0 62px; width: 62px; height: 62px; display: grid; align-content: center; justify-items: center; gap: 1px; border: 4px double var(--medal); border-radius: 50%; color: var(--ink); background: #fff; box-shadow: 0 2px 8px #223d5314; }
.discount-medallion::before { content: ''; position: absolute; inset: -7px; z-index: -1; border-radius: 50%; border: 2px dotted var(--medal); }
.discount-medallion svg { width: 17px; height: 17px; fill: var(--medal); }
.discount-medallion b { font-size: 15px; line-height: 1.1; }
.discount-medallion-artwork { flex-basis: 68px; width: 68px; height: 68px; border: 0; background: transparent; box-shadow: none; }
.discount-medallion-artwork::before { display: none; }
.discount-medallion-artwork img { display: block; width: 100%; height: 100%; object-fit: contain; }
.discount-recognition-copy { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.discount-recognition-copy small { font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.discount-recognition-copy strong { font-size: 13px; line-height: 1.35; }
.discount-recognition-copy > span { font-size: 12px; }
.discount-recognition-copy em { font-size: 11px; font-style: normal; opacity: .85; }
.portal-header-inner { flex-wrap: wrap; }
#portalDiscount { flex: 0 1 300px; margin-left: auto; }
#portalDiscount[hidden], .discount-editor [hidden] { display: none !important; }
.discount-editor { width: min(520px,calc(100vw - 28px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #bccddd; border-radius: 20px; background: #fff; color: #243e57; overflow: auto; box-shadow: 0 22px 80px #071d4460; }
.discount-editor::backdrop { background: #112c4b80; }
.discount-editor header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; background: #193c5c; color: #fff; }
.discount-editor h2 { margin: 0; font-size: 19px; }
.discount-editor .discount-close { flex: 0 0 40px; min-height: 40px; padding: 0; border: 1px solid #c5d3e2; border-radius: 10px; background: #fff; color: #214a70; font-size: 25px; }
.discount-help,.discount-message { margin: 14px 20px; line-height: 1.5; font-size: 13px; }
.discount-message { color: #785a20; }
.discount-editor fieldset { margin: 0; padding: 0 20px 20px; border: 0; min-width: 0; }
.discount-inputs { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 12px; }
.discount-inputs label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.discount-inputs label:nth-child(n+3) { grid-column: 1 / -1; }
.discount-inputs :is(select,input) { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #a8bfd3; border-radius: 9px; background: #fff; color: #24445f; font-size: 16px; padding: 8px; }
.discount-editor footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid #d5e1ec; }
.discount-editor .discount-use-customer { margin-top: 12px; padding: 8px 12px; min-height: 40px; border: 1px solid #bacde0; border-radius: 9px; background: #eef5fb; color: #235580; }
.discount-preview:empty { display: none; }
.discount-preview { margin-top: 18px; }
.discount-item-selection { margin-top: 14px; border: 1px solid #d5e1ec; border-radius: 12px; overflow: hidden; }
.discount-item-selection p { margin: 12px; font-size: 12px; line-height: 1.5; color: #526a81; }
.discount-editor .discount-item { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; border-top: 1px solid #e2e9f0; cursor: pointer; }
.discount-editor .discount-item input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: #2467c5; }
.discount-item strong { font-size: 13px; overflow-wrap: anywhere; }
.discount-item small { display: block; font-size: 11px; color: #526a81; margin-top: 3px; }
.discount-item b { font-size: 12px; white-space: nowrap; }
.discount-estimate-total { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.discount-correction-reason { display: grid; gap: 8px; margin: 16px 0; font-size: 13px; font-weight: 600; }
.discount-correction-reason textarea { width: 100%; min-height: 76px; box-sizing: border-box; padding: 10px; border: 1px solid #a8bfd3; border-radius: 9px; font: inherit; font-size: 16px; color: #24445f; background: white; resize: vertical; }
.document-discount { margin: 14px 0; padding: 12px 16px; border: 1px solid #c5d9cb; border-radius: 10px; background: #f2faf4; color: #27583d; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.document-discount small { flex: 1 1 100%; font-size: 12px; }
.document-item-discount { display: block; color: #35634c; font-size: 12px; margin-top: 4px; }
@media(max-width: 1000px) {
  #portalDiscount { flex: 1 1 100%; order: 3; margin: 0; }
}
@media(max-width: 700px) {
  #portalDiscount .discount-recognition { padding: 8px 12px; gap: 12px; }
  #portalDiscount .discount-medallion { flex-basis: 48px; width: 48px; height: 48px; border-width: 3px; }
  #portalDiscount .discount-medallion b { font-size: 12px; }
  #portalDiscount .discount-medallion svg { width: 12px; height: 12px; }
  #portalDiscount .discount-medallion-artwork { flex-basis: 68px; width: 68px; height: 68px; border: 0; }
  #portalDiscount .discount-recognition-copy small { display: none; }
}
