/* 사이드바 환율·유가 — 독립 카드 2개 + B안 행 리스트 */
.hm_fx_pw_stack {
  box-sizing: border-box;
  max-width: 400px;
  width: 100%;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hm_fx_pw_stack * {
  box-sizing: border-box;
}

.hm_fx_pw_stack a {
  color: inherit;
  text-decoration: none;
}

.hm_fx_pw_stack a:hover {
  text-decoration: underline;
}

.hm_fx_pw_card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  overflow: hidden;
}

.hm_fx_pw__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid #eee;
}

.hm_fx_pw__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.hm_fx_pw__link_more {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #333;
  background: #f3f4f6;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color .15s ease;
}

.hm_fx_pw__link_more:hover {
  background: #e5e7eb;
  text-decoration: none !important;
}

.hm_fx_pw__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm_fx_pw__row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 2px;
  padding: 11px 12px;
  border-bottom: 1px solid #f3f4f6;
  background: #fcfcfd;
}

.hm_fx_pw__list .hm_fx_pw__row:last-child {
  border-bottom: 0;
}

.hm_fx_pw__row_label {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  line-height: 1.4;
}

.hm_fx_pw__row--myr .hm_fx_pw__row_label { color: #a16207; }
.hm_fx_pw__row--usd-krw .hm_fx_pw__row_label { color: #1d4ed8; }
.hm_fx_pw__row--usd-myr .hm_fx_pw__row_label { color: #047857; }
.hm_fx_pw__row--ron95 .hm_fx_pw__row_label { color: #15803d; }
.hm_fx_pw__row--ron97 .hm_fx_pw__row_label { color: #c2410c; }
.hm_fx_pw__row--diesel .hm_fx_pw__row_label { color: #475569; }

.hm_fx_pw__row_note {
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.4;
  word-break: keep-all;
}

.hm_fx_pw__row_note--empty {
  visibility: hidden;
}

.hm_fx_pw__row_note--up {
  color: #dc2626;
}

.hm_fx_pw__row_note--dn {
  color: #2563eb;
}

.hm_fx_pw__row_note_glyph {
  font-weight: 700;
}

.hm_fx_pw__row_end {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  justify-self: end;
}

.hm_fx_pw__row_val {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.3;
  white-space: nowrap;
}

.hm_fx_pw__row_dec {
  font-size: 1em;
  font-weight: 700;
}

.hm_fx_pw__row_unit {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
}

.hm_fx_pw__row_diff {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.3;
}

.hm_fx_pw__row_diff--up {
  color: #dc2626;
}

.hm_fx_pw__row_diff--dn {
  color: #16a34a;
}

.hm_fx_pw__nodata {
  margin: 0;
  padding: 14px 12px;
  font-size: 0.8125rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.4;
}

html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__link_more {
  background: #0f172a;
  border-color: #293241;
  color: #cbd5e1;
}

html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__link_more:hover {
  background: #1f2937;
  border-color: #3b4454;
  color: #fff;
}

html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw_card {
  background: #111827;
  border-color: #293241;
}

html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__head {
  border-bottom-color: #293241;
}

html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__title {
  color: #e5e7eb;
}

html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row {
  background: #0f172a;
  border-bottom-color: #293241;
}

html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row_val {
  color: #e5e7eb;
}

html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row_note,
html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row_unit,
html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__nodata {
  color: #94a3b8;
}

html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row--myr .hm_fx_pw__row_label { color: #fbbf24; }
html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row--usd-krw .hm_fx_pw__row_label { color: #93c5fd; }
html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row--usd-myr .hm_fx_pw__row_label { color: #6ee7b7; }
html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row--ron95 .hm_fx_pw__row_label { color: #86efac; }
html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row--ron97 .hm_fx_pw__row_label { color: #fdba74; }
html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row--diesel .hm_fx_pw__row_label { color: #cbd5e1; }

html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row_note--up,
html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row_diff--up {
  color: #f87171;
}

html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row_note--dn,
html[data-hm-theme="dark"] body:not(.hm-mobile) .hm_fx_pw__row_diff--dn {
  color: #4ade80;
}

html[data-hm-theme-choice="light"] body:not(.hm-mobile) .hm_fx_pw__link_more {
  background: #f3f4f6 !important;
  border-color: #e5e7eb !important;
  color: #333 !important;
}

html[data-hm-theme-choice="light"] body:not(.hm-mobile) .hm_fx_pw__link_more:hover {
  background: #e5e7eb !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
}

@media (prefers-color-scheme: dark) {
  body:not(.hm-mobile) .hm_fx_pw_card {
    background: #111827;
    border-color: #293241;
  }

  body:not(.hm-mobile) .hm_fx_pw__head {
    border-bottom-color: #293241;
  }

  body:not(.hm-mobile) .hm_fx_pw__title {
    color: #e5e7eb;
  }

  body:not(.hm-mobile) .hm_fx_pw__link_more {
    background: #0f172a;
    border-color: #293241;
    color: #cbd5e1;
  }

  body:not(.hm-mobile) .hm_fx_pw__link_more:hover {
    background: #1f2937;
    border-color: #3b4454;
    color: #fff;
  }

  body:not(.hm-mobile) .hm_fx_pw__row {
    background: #0f172a;
    border-bottom-color: #293241;
  }

  body:not(.hm-mobile) .hm_fx_pw__row_val {
    color: #e5e7eb;
  }

  body:not(.hm-mobile) .hm_fx_pw__row_note,
  body:not(.hm-mobile) .hm_fx_pw__row_unit,
  body:not(.hm-mobile) .hm_fx_pw__nodata {
    color: #94a3b8;
  }

  body:not(.hm-mobile) .hm_fx_pw__row--myr .hm_fx_pw__row_label { color: #fbbf24; }
  body:not(.hm-mobile) .hm_fx_pw__row--usd-krw .hm_fx_pw__row_label { color: #93c5fd; }
  body:not(.hm-mobile) .hm_fx_pw__row--usd-myr .hm_fx_pw__row_label { color: #6ee7b7; }
  body:not(.hm-mobile) .hm_fx_pw__row--ron95 .hm_fx_pw__row_label { color: #86efac; }
  body:not(.hm-mobile) .hm_fx_pw__row--ron97 .hm_fx_pw__row_label { color: #fdba74; }
  body:not(.hm-mobile) .hm_fx_pw__row--diesel .hm_fx_pw__row_label { color: #cbd5e1; }

  body:not(.hm-mobile) .hm_fx_pw__row_note--up,
  body:not(.hm-mobile) .hm_fx_pw__row_diff--up {
    color: #f87171;
  }

  body:not(.hm-mobile) .hm_fx_pw__row_note--dn,
  body:not(.hm-mobile) .hm_fx_pw__row_diff--dn {
    color: #4ade80;
  }
}
