/* Mahfil Rewards tag box + reward-code step inside the dark bill panel of the
   hotel, delivery and room-service checkouts. Uses the same navy/gold tokens
   as the coupon box above it (site.css). Written to hold at 320 px. */

.loyalty-co { margin: 1rem 0; }
.loyalty-co[hidden] { display: none; }

.loyalty-co__box { display: grid; gap: .45rem; min-width: 0; }
.loyalty-co__box[hidden], .loyalty-co__entry[hidden] { display: none; }

.loyalty-co__label {
  display: block; font-family: var(--caps); text-transform: uppercase;
  font-size: .7rem; letter-spacing: .1em; color: var(--on-dark-mute);
}

.loyalty-co__input {
  width: 100%; min-width: 0; box-sizing: border-box;
  background: var(--ink-soft); border: 1px solid var(--line-dark);
  color: var(--on-dark); padding: .6rem .75rem; font: inherit;
}
.loyalty-co__input--tag { text-transform: uppercase; letter-spacing: .06em; }
.loyalty-co__input--otp { letter-spacing: .35em; font-variant-numeric: tabular-nums; max-width: 12rem; }
.loyalty-co__input::placeholder { color: var(--on-dark-mute); text-transform: none; letter-spacing: 0; }
.loyalty-co__input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.loyalty-co__hint { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--on-dark-mute); overflow-wrap: anywhere; }
.loyalty-co__hint--note { font-style: italic; }

.loyalty-co__link {
  justify-self: start; font-size: .8rem; color: var(--gold-lit);
  text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere;
}
.loyalty-co__link:hover { color: var(--gold); }
.loyalty-co__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.loyalty-co__btn {
  justify-self: start; max-width: 100%;
  background: transparent; border: 1px solid var(--gold-dim); color: var(--gold-lit);
  padding: .6rem 1.1rem; font: inherit; font-weight: 600; font-size: .82rem; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.loyalty-co__btn:hover:not(:disabled) { background: var(--gold); color: var(--ink-deep); }
.loyalty-co__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.loyalty-co__btn:disabled { opacity: .5; cursor: not-allowed; }
.loyalty-co__btn[hidden] { display: none; }

.loyalty-co__msg { margin: 0; font-size: .8rem; line-height: 1.5; min-height: 1em; overflow-wrap: anywhere; }
.loyalty-co__msg[data-state="ok"] { color: #7FD99A; }
.loyalty-co__msg[data-state="error"] { color: #ef9fac; }

.loyalty-co__entry { display: grid; gap: .45rem; }
.loyalty-co__error { margin: 0; font-size: .82rem; line-height: 1.5; color: #ef9fac; overflow-wrap: anywhere; }
.loyalty-co__error[hidden] { display: none; }

.bill__note--reward { color: #7FD99A; }

@media (max-width: 380px) {
  .loyalty-co__input--otp { max-width: 100%; }
  .loyalty-co__btn { width: 100%; }
}
.bill__row--reward span:last-child { color: #7FD99A; }
