/* Payday loan lesson. All rules scoped under .pdl-* */
.pdl-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pdl-note { font-size: 12.5px; color: var(--faint); }

/* the car */
.pdl-car { padding-top: 26px; }
.pdl-carimg { width: 270px; display: block; animation: pdl-shake .5s .2s 2; }
@keyframes pdl-shake { 25% { transform: translateX(-4px) rotate(-1deg); } 75% { transform: translateX(4px) rotate(1deg); } }
.pdl-bill { position: absolute; top: 0; right: 8%; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: #2A1E05; font: 800 15px var(--sans); transform: rotate(5deg); animation: pdl-pop .35s .8s both; }
@keyframes pdl-pop { from { transform: rotate(5deg) scale(0); } }

/* the check */
.pdl-chk { width: 100%; max-width: 330px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, #E7F1EA, #D6E9DD); color: #1F3A2B; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 10px; }
.pdl-ch { display: flex; justify-content: space-between; align-items: baseline; font: 700 13px var(--sans); }
.pdl-ch span { font: 800 15px var(--sans); }
.pdl-amt { display: flex; justify-content: space-between; align-items: center; border: 1.5px solid #8DB39C; border-radius: 8px; padding: 6px 10px; background: #F4FAF6; }
.pdl-amt i { font: 600 13px var(--sans); font-style: normal; color: #4C6B5A; }
.pdl-amt b { font: 800 24px var(--sans); }
.pdl-sig { position: relative; min-height: 54px; border-bottom: 1.5px solid #4C6B5A; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
.pdl-sl { font: 600 12.5px var(--sans); color: #4C6B5A; margin-top: -6px; }
.pdl-sv { width: 70%; height: 40px; }
.pdl-sv path { fill: none; stroke: #1E2A6B; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s ease-out; }
.pdl-chk.signed .pdl-sv path { stroke-dashoffset: 0; }

/* payday */
.pdl-pay { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 6px; }
.pdl-pr { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font: 600 15px var(--sans); }
.pdl-pr i { font-style: normal; color: var(--dim); }
.pdl-pr b { font: 800 19px var(--sans); color: var(--text); }
.pdl-left { border-color: var(--mint); }
.pdl-left b { color: var(--mint); }
.pdl-due { margin-top: 6px; border-color: var(--gold); }
.pdl-due b { color: var(--gold); }

/* five months */
.pdl-cal { display: grid; grid-template-columns: repeat(5, minmax(0, 60px)); gap: 7px; }
.pdl-d { height: 58px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background .25s, border-color .25s; }
.pdl-d i { font: 600 12px var(--sans); color: var(--faint); font-style: normal; }
.pdl-d b { font: 800 15px var(--sans); color: transparent; transition: color .25s; }
.pdl-d.on { background: rgba(240, 192, 64, .16); border-color: var(--gold); }
.pdl-d.on b { color: var(--gold); }
.pdl-tot { display: flex; gap: 10px; }
.pdl-tot span { display: flex; flex-direction: column; align-items: center; padding: 7px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pdl-tot i { font: 600 12.5px var(--sans); color: var(--dim); font-style: normal; }
.pdl-tot b { font: 800 22px var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
.pdl-fp { color: var(--gold) !important; }

/* a year of fees */
.pdl-yr { gap: 14px; }
.pdl-stk { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pdl-coins { width: 64px; height: 140px; display: flex; flex-direction: column-reverse; align-items: center; }
.pdl-co { display: block; width: 56px; height: 5.2px; border-radius: 50%; background: var(--gold); box-shadow: 0 1px 0 var(--gold-deep); margin-top: -0.2px; animation: pdl-drop .2s ease-out both; }
@keyframes pdl-drop { from { transform: translateY(-14px); opacity: 0; } }
.pdl-cn { font: 800 18px var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }
.pdl-vs { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity .4s; }
.pdl-yr.cmp .pdl-vs { opacity: 1; }
.pdl-vr { display: grid; grid-template-columns: 92px 1fr 52px; gap: 8px; align-items: center; font: 600 13.5px var(--sans); }
.pdl-vr i { font-style: normal; color: var(--dim); }
.pdl-vr span { height: 16px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.pdl-vr span b { display: block; height: 100%; width: 0; background: var(--violet); }
.pdl-hot span b { background: var(--gold); }
.pdl-vr em { font: 800 15px var(--sans); font-style: normal; color: var(--text); text-align: right; }

.pdl-shop { width: 220px; display: block; }

@media (max-height: 700px) {
  .pdl-carimg { width: 230px; }
  .pdl-d { height: 50px; }
  .pdl-coins { height: 120px; }
  .pdl-co { height: 4.4px; }
  .pdl-shop { width: 180px; }
  .pdl-pr { padding: 7px 12px; }
}
