/* UAE guides: car transfer fees, car loan, Ejari and the used iPhone checklist.
   Shared styles (panel, field, segmented, dates table) are in style.css. */

.prose ul { padding-inline-start: 20px; }
.prose li + li { margin-top: 6px; }

/* WhatsApp share */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.share-wa {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border-radius: 999px; font-weight: 600; background: var(--accent); color: var(--surface);
}
.share-wa:hover { text-decoration: none; filter: brightness(1.08); }
.link-button { background: none; border: 0; padding: 8px 4px; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* Fee picker */
.fee-form .check { margin-top: 16px; }
.fee-result { display: block; margin-top: 16px; }
.fee-lines { margin: 0; display: grid; gap: 6px; }
.fee-lines div { display: flex; justify-content: space-between; gap: 12px; }
.fee-lines dt { color: var(--muted); }
.fee-lines dd { margin: 0; font-weight: 600; text-align: end; white-space: nowrap; }
.fee-lines .fee-total { border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); padding-top: 8px; margin-top: 4px; }
.fee-lines .fee-total dt { color: var(--text); font-weight: 700; }
.fee-lines .fee-total dd { font-size: 20px; }
.fee-table { white-space: normal; }
.fee-table.has-notes td:nth-child(3) { color: var(--muted); font-size: 14px; }
/* Phones: the note goes under the item and fee instead of a third column. */
@media (max-width: 560px) {
  .fee-table.has-notes thead { display: none; }
  .fee-table.has-notes tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 9%, transparent); }
  .fee-table.has-notes tr:last-child { border-bottom: 0; }
  .fee-table.has-notes th, .fee-table.has-notes td { padding: 0; border: 0; }
  .fee-table.has-notes td:nth-child(2) { text-align: end; font-weight: 600; }
  .fee-table.has-notes td:nth-child(3) { grid-column: 1 / -1; }
  .fee-table.has-notes td:nth-child(3):empty { display: none; }
}

/* Car loan */
.loan-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 12px; }
.loan-result { display: block; margin-top: 20px; }
.loan-borrow { margin: 0 0 12px; }
.loan-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.loan-col { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.loan-col h3 { margin: 0 0 8px; font-size: 16px; }
.loan-col dl { margin: 0; display: grid; gap: 4px; }
.loan-col dl div { display: flex; justify-content: space-between; gap: 12px; }
.loan-col dt { color: var(--muted); }
.loan-col dd { margin: 0; font-weight: 600; white-space: nowrap; }
.loan-col.is-flat dd:first-of-type, .loan-col.is-reducing dd:first-of-type { font-size: 18px; }
.loan-diff { margin: 12px 0 0; }
.loan-warn { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }

/* Ejari */
.ejari-answer .lead { color: var(--text); margin-bottom: 0; }

/* Checklist */
.check-group { border: 0; padding: 0; margin: 0 0 16px; }
.check-group legend { padding: 0; font-weight: 700; margin-bottom: 8px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--bg); cursor: pointer; }
.check-item + .check-item { margin-top: 6px; }
.check-item input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.check-item b { display: block; }
.check-item small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.check-item:has(input:checked) b { text-decoration: line-through; text-decoration-color: var(--muted); }
.check-footer { position: sticky; bottom: 0; background: var(--surface); padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--text) 9%, transparent); }
.check-progress { margin: 0; font-weight: 700; }
.check-footer .share-row { margin-top: 8px; padding-bottom: 4px; }
.fee-form [hidden] { display: none; }
