/* Códigos promocionales: Administración and Mi cuenta > Código. */
.promo-code { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--r-paper, #f7f3ea); white-space: nowrap }

/* Creation form: delivery type, then the configuration fields. */
html.relieve .app-shell:not(.anonymous) #view .promo-create > .promo-form { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.promo-form .promo-kind, .promo-form .promo-hint, .promo-form .form-status { grid-column: 1 / -1 }
.promo-form .promo-hint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--i-soft, #b9c3cc); max-width: 92ch }
.promo-form > .primary { justify-self: start; min-height: 38px; padding: 0 22px }
.promo-form .form-status:empty { display: none }
.promo-kind { display: flex; flex-wrap: wrap; gap: 6px }
html.relieve .app-shell:not(.anonymous) #view .promo-kind-option[aria-checked='true'] { color: var(--r-paper); border-color: #a8325a; background: rgb(139 30 63 / .32) }
.promo-form label.field[hidden] { display: none }
html.relieve .app-shell:not(.anonymous) #view .promo-form label.field { display: grid; gap: 5px; margin: 0; font-size: 11.5px; font-weight: 600; color: var(--i-soft); letter-spacing: .02em }
html.relieve .app-shell:not(.anonymous) #view .promo-form :is(input, select) { width: 100%; min-height: 38px; border-radius: 10px; font-size: 13.5px }
html.relieve .app-shell:not(.anonymous) #view .promo-form select { padding: 0 10px; border: 1px solid var(--i-line-strong); background: rgb(9 15 21 / .6); color: var(--r-paper) }

/* Codes just created: visible until the section is left, ready to copy. */
.promo-results[hidden] { display: none }
.promo-results { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgb(159 211 180 / .4); background: rgb(159 211 180 / .06) }
.promo-results:focus { outline: none }
.promo-results:focus-visible { outline: 2px solid #9fd3b4; outline-offset: 2px }
.promo-results h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 21px }
.promo-results p { margin: 0 }
.promo-result { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px }
.promo-result .promo-code { font-size: 14px }
.promo-result .meta { margin-right: auto }

/* List */
.promo-list > label.field { max-width: 420px }
html.relieve .app-shell:not(.anonymous) #view .promo-list > label.field { display: grid; gap: 5px; margin: 0; font-size: 11.5px; font-weight: 600; color: var(--i-soft) }
html.relieve .app-shell:not(.anonymous) #view .promo-list > label.field input { width: 100%; min-height: 38px; border-radius: 10px; font-size: 13.5px }
html.relieve .app-shell:not(.anonymous) #view .admin-layout .promo-table td small { font-family: var(--font-body); font-size: 11.5px; color: var(--i-dim) }
html.relieve .app-shell:not(.anonymous) #view .admin-layout .promo-table td.promo-code-cell small { max-width: 26ch; overflow-wrap: anywhere }
html.relieve .app-shell:not(.anonymous) #view .admin-layout .promo-table td.promo-access small { white-space: nowrap }
html.relieve .app-shell:not(.anonymous) #view .admin-layout .promo-table td.promo-actions { width: 250px; min-width: 250px }
.promo-actions .tool { margin: 0 4px 4px 0 }
.promo-dialog { display: grid; gap: 12px }
.promo-dialog p { margin: 0; line-height: 1.5 }
.promo-dialog label.field { display: grid; gap: 5px; margin: 0 }
.promo-dialog :is(input, select) { width: 100%; min-height: 40px }

/* Mi cuenta > Código */
.promo-current { display: grid; gap: 8px; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgb(159 211 180 / .4); background: rgb(159 211 180 / .06) }
.promo-current[hidden] { display: none }
.promo-current:not([data-state='active']) { border-color: rgb(174 184 195 / .28); background: rgb(174 184 195 / .05) }
.promo-current > strong { font-size: 14px }
.promo-current .meta { margin: 0; font-size: 12.5px }
.promo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 16px; margin: 0 }
.promo-facts dt { font-size: 11px; color: #aeb8c3 }
.promo-facts dd { margin: 2px 0 0; font-size: 14px; color: #f7f3ea }
.promo-redeem { display: grid; gap: 10px }
.promo-redeem .field { margin-bottom: 0 }
.promo-redeem input { width: 100%; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase }
.promo-redeem input::placeholder { text-transform: none; letter-spacing: .04em }
.promo-redeem .primary { justify-self: start; min-height: 42px; padding: 0 26px }
.promo-redeem .quiet { justify-self: start }
.promo-redeem [hidden] { display: none }

/* Five account tabs (with Código) stay on one row on phones. */
@media (max-width: 560px) {
  .account-panel .tabs[role='tablist']:has(> :nth-child(5)) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none }
  .account-panel .tabs[role='tablist']:has(> :nth-child(5)) .tab { flex: 1 0 auto; padding-inline: 8px; font-size: 12px }
}
@media (max-width: 900px) {
  html.relieve .app-shell:not(.anonymous) #view .promo-create > .promo-form { grid-template-columns: minmax(0, 1fr) }
  .promo-result .meta { margin-right: 0; flex-basis: 100% }
}
/* F3.9: pases de centro */
.center-pass-admin { display: grid; gap: 12px; margin-top: 18px }
.center-pass-admin h3 { margin: 0 }
.center-pass-list { display: grid; gap: 8px }
.center-pass-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--i-edge, rgb(255 255 255 / .12)) }
.center-pass-row code { font-size: 13.5px; letter-spacing: .04em }
.center-pass-row .muted { flex: 1 1 220px }
