/* prices.css - lifted verbatim from the extension's options.html inline
   <style>. Shared tokens come from theme.css. */
:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --border: #e4e4e4;
    --accent: #ffcc33;
    --accent-strong: #e0b400;
    --accent-ink: #1a1a1a;
    --header-bg: #1a1a1a;
    --header-text: #ffffff;
    --header-muted: #b8b8b8;
    --error: #c8102e;
    --card-bg: #fafafa;
  }
  [data-theme="dark"] {
    --bg: #1c1c1c;
    --text: #f0f0f0;
    --muted: #a0a0a0;
    --border: #333333;
    --header-bg: #0f0f0f;
    --error: #ff5c72;
    --card-bg: #262626;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
  }
  header {
    padding: 16px 24px;
    background: var(--header-bg);
    color: var(--header-text);
    border-bottom: 3px solid var(--accent);
  }
  header h1 { font-size: 18px; margin: 0; letter-spacing: 0.02em; }
  header .sub { font-size: 12px; color: var(--header-muted); margin-top: 4px; }
  main {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 24px 40px;
  }
  .card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
  }
  .card h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0 0 10px;
  }
  #currentStatus { font-size: 13px; }
  #dropZone {
    border: 2px dashed var(--accent-strong);
    border-radius: 8px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 204, 51, 0.06);
    font-size: 14px;
    color: var(--text);
  }
  #dropZone.dragover {
    background: rgba(255, 204, 51, 0.25);
  }
  #dropZone .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
  #parseStatus {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--muted);
    min-height: 1.2em;
  }
  #parseStatus.error { color: var(--error); font-weight: 700; }
  label.field {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin: 12px 0 4px;
  }
  input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 7px 9px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
  }
  #mappingCard {
    border-color: var(--accent-strong);
  }
  #mappingHint {
    font-size: 12.5px;
    margin-bottom: 10px;
  }
  .mapping-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .currency-choice {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 6px;
    font-size: 13px;
  }
  .currency-choice label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
    cursor: pointer;
  }
  #previewTable {
    margin-top: 10px;
    overflow-x: auto;
    font-size: 11.5px;
  }
  #previewTable table {
    border-collapse: collapse;
    width: 100%;
  }
  #previewTable th, #previewTable td {
    border: 1px solid var(--border);
    padding: 4px 6px;
    text-align: left;
    white-space: nowrap;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #previewTable th { background: rgba(255, 204, 51, 0.15); }
  #useMappingBtn {
    border: 1px solid var(--accent-strong);
    background: var(--accent);
    color: var(--accent-ink);
    margin-top: 12px;
  }
  #fxSource { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
  #summary { font-size: 13px; margin-bottom: 10px; font-weight: 700; }
  .section-row, .unmatched-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
  }
  .unmatched-row { display: block; }
  .unmatched-row.muted { color: var(--muted); }
  #sectionTable, #unmatchedList {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 6px;
  }
  details summary {
    cursor: pointer;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 10px;
  }
  .actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
  }
  button {
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
  #applyBtn {
    border: 1px solid var(--accent-strong);
    background: var(--accent);
    color: var(--accent-ink);
  }
  #applyBtn:disabled { opacity: 0.45; cursor: default; }
  #revertBtn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
  }
  #revertBtn:disabled { opacity: 0.45; cursor: default; }
  .privacy-note {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 18px;
    line-height: 1.5;
  }
  #favoritesList {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
  }
  .favorites-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
  }
  .favorites-row:hover {
    background: rgba(255, 204, 51, 0.12);
    text-decoration: line-through;
    opacity: 0.75;
  }
  .favorites-row .favorites-row-remove {
    font-size: 12px;
    color: var(--muted);
  }
  #favoritesEmpty {
    font-size: 12.5px;
    color: var(--muted);
    font-style: italic;
  }
  #kofiCard {
    text-align: center;
  }
  #kofiCard p {
    font-size: 13px;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.5;
  }
  #kofiCard a {
    display: inline-block;
  }
  #uaGreeting {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text);
  }

/* Local ko-fi button - no third-party image request on page load. */
.kofi-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
}
.kofi-btn:hover { background: var(--accent-strong); }
.kofi-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
