/* ==========================================================================
   Deposit limits — "bailrbet-deposit-limits" (1440) / "bailrbet-deposit-limits-mobile" (390)
   Mobile-first; @media (min-width: 1024px) = desktop frame.
   ========================================================================== */

/* Intro ---------------------------------------------------------------------- */
.dl-intro { background: var(--navy); padding: 32px 0 24px; }
.dl-intro__inner { display: flex; flex-direction: column; gap: 32px; }
.dl-intro__left { display: flex; flex-direction: column; gap: 16px; }
.dl-intro__crumb { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 14px; font-weight: 800; }
.dl-intro__crumb-a { color: var(--yellow); }
.dl-intro__crumb-sep { color: var(--ink-4); font-weight: 400; }
.dl-intro__crumb-b { color: var(--white); }
.dl-intro__title { font-family: var(--font-display); font-weight: 900; font-size: 48px; line-height: 44px; color: var(--white); }
.dl-intro__text { font-size: 14px; line-height: 20px; color: var(--ink-4); }

.dl-status { display: flex; flex-direction: column; gap: 12px; padding: 15px; background: var(--navy-2); border: 1px solid var(--blue); border-radius: 6px; }
.dl-status__label { font-size: 10px; line-height: 13px; font-weight: 800; color: var(--ink-4); }
.dl-status__content { display: flex; align-items: center; gap: 12px; }
.dl-status__icon-box { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 71, 255, .13); color: var(--blue); }
.dl-status__icon { width: 20px; height: 20px; }
.dl-status__value-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-status__value { font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 34px; color: var(--yellow); }
.dl-status__sub { font-size: 11px; line-height: 14px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; }
@media (min-width: 1024px) {
  .dl-intro { background: var(--navy-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 63px 0; }
  .dl-intro__inner { flex-direction: row; align-items: flex-start; gap: 48px; }
  .dl-intro__left { flex: 1 1 0; min-width: 0; }
  .dl-intro__title { font-size: 64px; line-height: 60px; }
  .dl-intro__br { display: none; }
  .dl-intro__text { font-size: 16px; line-height: 24px; color: var(--white); }
  .dl-status { flex: 0 0 440px; gap: 16px; padding: 23px; }
  .dl-status__label { font-size: 11px; line-height: 14px; }
  .dl-status__content { gap: 16px; }
  .dl-status__icon-box { width: 48px; height: 48px; }
  .dl-status__icon { width: 24px; height: 24px; }
  .dl-status__value { font-size: 32px; line-height: 38px; }
  .dl-status__sub { font-size: 12px; line-height: 16px; }
}

/* Workspace ------------------------------------------------------------------ */
.dl-workspace { background: var(--cream); color: var(--ink); padding: 32px 0; }
.dl-workspace__inner { display: flex; flex-direction: column; gap: 24px; }
.dl-card { background: var(--white); border: 1px solid var(--ink-4); border-radius: 6px; }
@media (min-width: 1024px) {
  .dl-workspace { padding: 56px 0; }
  .dl-workspace__inner { flex-direction: row; align-items: flex-start; gap: 32px; }
}

/* Current limit card */
.dl-limit { display: flex; flex-direction: column; gap: 20px; padding: 19px; scroll-margin-top: 80px; }
.dl-limit__head { align-self: flex-start; display: grid; gap: 4px; }
.dl-limit__title { font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 34px; color: var(--navy); white-space: nowrap; }
.dl-limit__text { width: 0; min-width: 100%; font-size: 13px; line-height: 17px; color: var(--ink-2); }

.dl-meter { display: flex; flex-direction: column; gap: 16px; padding: 15px; background: var(--cream); border: 1px solid var(--line); border-radius: 4px; }
.dl-meter__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dl-meter__label { font-size: 10px; line-height: 13px; font-weight: 800; color: var(--ink-2); }
.dl-meter__badge { display: inline-flex; padding: 3px 8px; border-radius: 4px; background: var(--navy); color: var(--yellow); font-size: 10px; line-height: 13px; font-weight: 700; white-space: nowrap; }
.dl-meter__amount { display: flex; flex-direction: column; gap: 2px; }
.dl-meter__value { font-family: var(--font-display); font-weight: 900; font-size: 48px; line-height: 57px; color: var(--navy); }
.dl-meter__per { font-size: 14px; line-height: 18px; font-weight: 700; color: var(--blue); text-transform: uppercase; }
.dl-meter__scale { display: flex; flex-direction: column; gap: 8px; }
.dl-meter__track { position: relative; height: 8px; border-radius: 4px; background: rgba(29, 35, 92, .13); overflow: hidden; }
.dl-meter__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--blue); transition: width .5s var(--ease); }
.dl-meter__markers { display: flex; justify-content: space-between; gap: 8px; }
.dl-meter__marker { font-size: 9px; line-height: 12px; color: var(--ink-2); white-space: nowrap; }
.dl-meter__marker--set { font-weight: 700; color: var(--blue); }
.dl-meter__marker--set:empty { visibility: hidden; }
.dl-limit[data-limit-state="none"] .dl-meter__value { color: var(--ink-3); }

/* All periods (signed in) */
.dl-periods { display: flex; flex-direction: column; gap: 8px; }
.dl-periods__label { font-size: 10px; line-height: 13px; font-weight: 800; color: var(--ink-2); }
.dl-periods__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dl-periods__item { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 1px solid var(--line-light); border-radius: 4px; }
.dl-periods__item.is-primary { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.dl-periods__name { font-size: 10px; line-height: 13px; font-weight: 700; color: var(--ink-3); }
.dl-periods__value { font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 22px; color: var(--navy); white-space: nowrap; }

/* Pending change */
.dl-pending-list { display: flex; flex-direction: column; gap: 8px; }
.dl-pending-list[hidden] { display: none; }
.dl-pending { display: flex; gap: 10px; padding: 11px; background: var(--yellow-dim); border: 1px solid var(--yellow); border-radius: 4px; }
.dl-pending__icon { flex: none; color: #9a6a00; margin-top: 1px; }
.dl-pending__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-pending__label { font-size: 10px; line-height: 13px; font-weight: 800; color: #7a5400; }
.dl-pending__text { font-size: 12px; line-height: 16px; color: var(--ink); }
.dl-pending__cancel { align-self: flex-start; margin-top: 4px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.dl-pending__cancel:hover { opacity: .8; }

/* Actions + change form */
.dl-actions { display: flex; flex-direction: column; gap: 12px; }
.dl-actions__cta { width: 100%; height: 48px; padding: 14px 16px; font-size: 13px; line-height: 17px; font-weight: 800; color: var(--navy); }
.dl-actions__note { font-size: 11px; line-height: 16px; color: var(--ink-2); }
.dl-change > summary { list-style: none; cursor: pointer; }
.dl-change > summary::-webkit-details-marker { display: none; }
.dl-change[open] > summary { background: var(--white); border-color: var(--navy); color: var(--navy); }
.dl-form { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; padding: 15px; border: 1px solid var(--line-light); border-radius: 4px; background: var(--white); animation: dl-in .25s var(--ease); }
@keyframes dl-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dl-form__title { font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 24px; color: var(--navy); }
.dl-field { gap: 6px; }
.dl-field .field__label, .dl-field__label { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--navy); }
.dl-field .field__error { color: var(--red); font-weight: 500; }
.dl-field__hint { font-size: 11px; line-height: 14px; color: var(--ink-3); }
.dl-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-light); border-radius: 4px; overflow: hidden; }
.dl-seg__option { position: relative; display: block; cursor: pointer; }
.dl-seg__option + .dl-seg__option { border-left: 1px solid var(--line-light); }
.dl-seg__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dl-seg__text { display: flex; align-items: center; justify-content: center; height: 42px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-2); transition: background-color var(--t), color var(--t); }
.dl-seg__option:hover .dl-seg__text { background: var(--grey); }
.dl-seg__input:checked + .dl-seg__text { background: var(--navy); color: var(--yellow); }
.dl-seg__input:focus-visible + .dl-seg__text { outline: 2px solid var(--blue); outline-offset: -2px; }
.dl-amount { position: relative; }
.dl-amount__prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; line-height: 18px; font-weight: 700; color: var(--ink-2); pointer-events: none; }
.dl-field .dl-amount__input { height: 48px; padding: 0 15px 0 28px; border-color: var(--line-light); font-weight: 600; color: var(--ink); }
.dl-field .dl-amount__input::placeholder { color: var(--ink-3); font-weight: 400; }
.dl-field .dl-amount__input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 71, 255, .15); }
.dl-field .dl-amount__input[aria-invalid="true"] { border-color: var(--red); }
.dl-form__buttons { display: flex; gap: 12px; }
.dl-form__buttons .btn { flex: 1 1 0; height: 44px; }
.no-js .dl-form__cancel { display: none; }
@media (min-width: 1024px) {
  .dl-limit { flex: 1 1 0; min-width: 0; gap: 28px; padding: 31px; scroll-margin-top: 24px; }
  .dl-limit__head { gap: 6px; }
  .dl-limit__text { width: auto; min-width: 0; color: var(--ink-4); }
  .dl-meter { padding: 27px; }
  .dl-meter__label { font-size: 11px; line-height: 14px; color: var(--ink-4); }
  .dl-meter__badge { padding: 4px 10px; font-size: 11px; line-height: 14px; }
  .dl-meter__value { font-size: 64px; line-height: 77px; }
  .dl-meter__per { font-size: 16px; line-height: 21px; }
  .dl-meter__track { height: 10px; border-radius: 5px; }
  .dl-meter__marker { font-size: 10px; line-height: 13px; color: var(--ink-4); }
  .dl-meter__marker--set { color: var(--blue); }
  .dl-periods__label { font-size: 11px; line-height: 14px; }
  .dl-actions { gap: 16px; }
  .dl-actions__cta { height: 41px; padding: 12px 24px; }
  .dl-actions__note { font-size: 12px; line-height: 16px; color: var(--ink-4); }
  .dl-form { padding: 23px; gap: 20px; }
  .dl-form__buttons .btn { flex: 0 0 auto; min-width: 140px; }
}

/* How your limit works (preview) */
.dl-how { display: flex; flex-direction: column; gap: 20px; padding: 19px; }
.dl-how__title { font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 24px; color: var(--navy); }
.dl-how__list { display: flex; flex-direction: column; gap: 16px; }
.dl-how__row { display: flex; gap: 12px; }
.dl-how__num { flex: none; font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 22px; color: var(--blue); }
.dl-how__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-how__name { font-size: 13px; line-height: 17px; font-weight: 700; color: var(--navy); }
.dl-how__desc { font-size: 12px; line-height: 16px; color: var(--ink-2); }
.dl-how__rule { height: 1px; margin: 0 0 -1px; background: var(--cream); }
.dl-how__link { align-self: flex-start; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--blue); transition: opacity var(--t); }
.dl-how__link:hover { opacity: .8; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 1024px) {
  .dl-how { flex: 0 0 310px; gap: 24px; padding: 23px; }
  .dl-how__desc { color: var(--ink-4); }
  .dl-how__row:last-child .dl-how__desc { white-space: nowrap; } /* design text hugs 233px in a 231px column */
}

/* Support rail */
.dl-rail { display: flex; flex-direction: column; gap: 24px; }
.dl-route { display: flex; flex-direction: column; gap: 10px; padding: 15px; }
.dl-route__title { font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 22px; color: var(--navy); }
.dl-route__text { font-size: 12px; line-height: 16px; color: var(--ink-2); }
.dl-route__link { align-self: flex-start; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--blue); transition: opacity var(--t); }
.dl-route__link:hover { opacity: .8; text-decoration: underline; text-underline-offset: 2px; }
.dl-route--dark { gap: 12px; background: var(--navy-2); border-color: var(--line); }
.dl-route--dark .dl-route__title { color: var(--white); }
.dl-route--dark .dl-route__text { color: var(--ink-4); }
.dl-route__help { display: flex; flex-direction: column; gap: 4px; }
.dl-route__help-label { font-size: 10px; line-height: 13px; font-weight: 800; color: var(--yellow); }
.dl-route__phone { align-self: flex-start; font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 34px; color: var(--yellow); transition: opacity var(--t); }
.dl-route__phone:hover { opacity: .85; }
@media (min-width: 1024px) {
  .dl-rail { flex: 0 0 310px; }
  .dl-route { gap: 12px; padding: 19px; }
  .dl-route__text { color: var(--ink-4); }
}

/* Detailed workflow ---------------------------------------------------------- */
.dl-workflow { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 47px 0; scroll-margin-top: 60px; }
.dl-workflow__inner { display: flex; flex-direction: column; gap: 32px; }
.dl-workflow__head { display: flex; flex-direction: column; gap: 6px; }
.dl-workflow__kicker { font-size: 11px; line-height: 14px; font-weight: 800; color: var(--yellow); }
.dl-workflow__title { font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 38px; color: var(--white); }
.dl-steps { display: flex; flex-direction: column; gap: 24px; }
.dl-step { display: flex; flex-direction: column; gap: 12px; }
.dl-step__num { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 29px; color: var(--yellow); }
.dl-step__title { font-size: 16px; line-height: 21px; font-weight: 700; color: var(--white); }
.dl-step__desc { font-size: 13px; line-height: 18px; color: var(--ink-4); }
.dl-connector { display: flex; align-items: center; gap: 8px; height: 32px; padding-left: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 17px; color: var(--yellow); white-space: nowrap; }
.dl-connector::before { content: ''; flex: none; width: 1px; height: 32px; margin-right: -1px; background: var(--line); }
.dl-connector__arrow { font-family: var(--font-body); font-weight: 400; }
.dl-connector--loop { height: 16px; font-size: 13px; line-height: 16px; color: var(--ink-4); }
.dl-connector--loop::before { display: none; }
@media (min-width: 1024px) {
  .dl-workflow { padding: 63px 0; scroll-margin-top: 0; }
  .dl-workflow__inner { gap: 40px; }
  .dl-workflow__head { gap: 8px; }
  .dl-workflow__kicker { font-size: 12px; line-height: 16px; }
  .dl-workflow__title { font-size: 36px; line-height: 43px; }
  .dl-steps { flex-direction: row; align-items: flex-start; gap: 32px; }
  .dl-step { flex: 1 1 0; min-width: 0; gap: 16px; }
  .dl-connector { flex: none; height: auto; padding: 8px 0 0; font-weight: 400; font-size: 20px; line-height: 24px; }
  .dl-connector::before { display: none; }
  .dl-connector--loop { font-weight: 700; font-size: 14px; line-height: 17px; }
}

/* Principle band ------------------------------------------------------------- */
.dl-principle { background: var(--blue); padding: 28px 0; }
.dl-principle__text { max-width: 358px; margin: 0 auto; text-align: center; font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 36px; color: var(--white); }
@media (min-width: 1024px) {
  .dl-principle { padding: 48px 0; }
  .dl-principle__text { max-width: none; font-size: 40px; line-height: 48px; }
}
