/* ============================================================
   cms_wallet - Panel component CSS (auto-extracted)
   Generated from cms_wallet/templates/cms_wallet/*.html <style> blocks
   Do not edit directly; edit the source templates or re-run extract.
   ============================================================ */

.cmsw-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; overflow: hidden;
}
.cmsw-head {
  padding: 14px 20px; background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; color: #1e3a8a; font-size: 0.95rem;
}
.cmsw-head a.more {
  font-size: 0.78rem; font-weight: 400; color: #2563eb;
  text-decoration: none;
}
.cmsw-sample-note {
  background: #fef9e6; border-left: 3px solid #f59e0b;
  padding: 6px 14px; font-size: 0.72rem; color: #78350f;
}
.cmsw-empty {
  padding: 14px 16px;
  color: #6b7280;
  font-size: 0.86rem;
  background: #f8fafc;
}
.cmsw-badge-featured {
  display: inline-block; background: #fef3c7; color: #92400e;
  padding: 2px 10px; border-radius: 999px; font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.04em;
}
.cmsw-badge-limited {
  display: inline-block; background: #fee2e2; color: #b91c1c;
  padding: 2px 10px; border-radius: 999px; font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.04em;
}
.cmsw-pt { font-family: 'SF Mono', Monaco, Consolas, monospace; font-weight: 800; color: #d97706; }
.cmsw-jpy { font-family: 'SF Mono', Monaco, Consolas, monospace; color: #1e3a8a; }
a.cmsw-link { color: #2563eb; text-decoration: none; }
a.cmsw-link:hover { text-decoration: underline; }

.cmsw-cf-body { padding: 20px 24px; }
.cmsw-cf-section { margin-bottom: 22px; }
.cmsw-cf-section h4 { font-size: 0.92rem; color: #1e3a8a; margin-bottom: 10px; }
.cmsw-cf-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cmsw-cf-pack input { display: none; }
.cmsw-cf-pack-box {
  border: 2px solid #e5e7eb; border-radius: 6px;
  padding: 14px; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cmsw-cf-pack input:checked + .cmsw-cf-pack-box {
  border-color: #d97706; background: #fffbeb;
}
.cmsw-cf-pack-pt { margin-bottom: 4px; }
.cmsw-cf-pack-pt .cmsw-pt { font-size: 1.15rem; }
.cmsw-cf-pack-pt small { font-size: 0.7rem; color: #6b7280; margin-left: 2px; }
.cmsw-cf-pack-bonus { font-size: 0.7rem; color: #059669; font-weight: 700; }
.cmsw-cf-pack-jpy { font-size: 0.92rem; color: #1e3a8a; font-weight: 700; font-family: monospace; margin-top: 4px; }

.cmsw-cf-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.cmsw-cf-method input { display: none; }
.cmsw-cf-method-box {
  border: 2px solid #e5e7eb; border-radius: 6px;
  padding: 10px 14px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem;
  transition: border-color 0.15s, background 0.15s;
}
.cmsw-cf-method-box i { color: var(--brand); font-size: 1.2rem; }
.cmsw-cf-method input:checked + .cmsw-cf-method-box {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, #fff);
}
.cmsw-cf-method-box small { margin-left: auto; color: #6b7280; font-size: 0.7rem; }

.cmsw-cf-summary {
  display: grid; grid-template-columns: 1fr 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 18px; background: #f8fafc;
  border-radius: 6px; margin-top: 14px;
}
.cmsw-cf-summary .lbl { font-size: 0.72rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.06em; }
.cmsw-cf-summary .val { font-size: 1.2rem; font-weight: 800; }
.cmsw-cf-summary .val .cmsw-pt { font-size: 1.2rem; }
.cmsw-cf-summary .val small { font-size: 0.75rem; color: #6b7280; margin-left: 2px; }
.cmsw-cf-submit {
  padding: 12px 24px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, #1e3a8a, #d97706);
  color: #fff; font-weight: 700; cursor: pointer;
  font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.cmsw-cf-submit:hover { filter: brightness(1.05); }
.cmsw-cf-note {
  display: block; margin-top: 14px;
  text-align: center; color: #6b7280; font-size: 0.78rem;
}
@media (max-width: 640px) {
  .cmsw-cf-summary { grid-template-columns: 1fr 1fr; }
  .cmsw-cf-summary .cmsw-cf-submit { grid-column: 1 / -1; }
}

.cmsw-pack-grid { padding: 18px; display: grid; gap: 14px; }
.cmsw-pack-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cmsw-pack-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cmsw-pack-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.cmsw-pack {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; padding: 18px; text-align: center;
  position: relative; display: flex; flex-direction: column;
  align-items: center; transition: transform 0.15s, box-shadow 0.15s;
}
.cmsw-pack:hover {
  transform: translateY(-2px); border-color: #d97706;
  box-shadow: 0 4px 16px rgba(217,119,6,0.15);
}
.cmsw-pack-featured {
  border: 2px solid #d97706;
  background: linear-gradient(135deg, #fffbeb, #fff);
}
.cmsw-pack .cmsw-badge-featured, .cmsw-pack .cmsw-badge-limited {
  position: absolute; top: 10px; left: 10px;
}
.cmsw-pack-icon {
  font-size: 2.2rem; color: #d97706; margin-bottom: 8px;
}
.cmsw-pack-name {
  font-weight: 700; color: #1f2937; margin-bottom: 6px;
}
.cmsw-pack-points {
  margin: 6px 0;
}
.cmsw-pack-points .cmsw-pt { font-size: 1.6rem; }
.cmsw-pack-points small { font-size: 0.78rem; color: #6b7280; margin-left: 2px; }
.cmsw-pack-bonus {
  display: block; font-size: 0.74rem; color: #059669;
  font-weight: 700; margin-top: 2px;
}
.cmsw-pack-price {
  font-size: 1.2rem; color: #1e3a8a; font-weight: 700;
  font-family: 'SF Mono', Monaco, monospace; margin: 8px 0;
}
.cmsw-pack-btn {
  margin-top: 10px; padding: 8px 20px;
  background: #1e3a8a; color: #fff !important;
  border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 0.88rem;
}
.cmsw-pack-btn:hover { background: #152a63; }
.cmsw-pack-btn-disabled,
.cmsw-pack-btn-disabled:hover {
  display: inline-block;
  background: #e5e7eb;
  color: #6b7280 !important;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .cmsw-pack-grid { grid-template-columns: 1fr !important; }
}

.cmsw-flow-body { padding: 20px 24px; }

.cmsw-flow-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.cmsw-flow-kpi {
  padding: 14px 16px; border-radius: 6px;
  border: 1px solid #e5e7eb; background: #f8fafc;
}
.cmsw-flow-kpi .lbl {
  font-size: 0.7rem; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.cmsw-flow-kpi .val {
  font-size: 1.4rem; font-weight: 800; margin-top: 4px;
  font-family: 'SF Mono', Monaco, monospace;
}
.cmsw-flow-kpi .val small { font-size: 0.78rem; color: #6b7280; margin-left: 2px; font-family: inherit; font-weight: normal; }
.cmsw-flow-kpi-revenue { border-color: #1e3a8a; background: linear-gradient(135deg, #eff4fd, #fff); }
.cmsw-flow-kpi-revenue .val { color: #1e3a8a; }
.cmsw-flow-kpi-in { border-color: #059669; background: linear-gradient(135deg, #d1fae5, #fff); }
.cmsw-flow-kpi-in .val { color: #047857; }
.cmsw-flow-kpi-out { border-color: #dc2626; background: linear-gradient(135deg, #fee2e2, #fff); }
.cmsw-flow-kpi-out .val { color: #b91c1c; }
.cmsw-flow-kpi-burn { border-color: #d97706; background: linear-gradient(135deg, #fef3c7, #fff); }
.cmsw-flow-kpi-burn .val { color: #92400e; }

.cmsw-flow-bar-wrap { margin-bottom: 18px; }
.cmsw-flow-bar-label {
  font-size: 0.78rem; color: #6b7280; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.cmsw-flow-bar {
  display: flex; height: 32px; border-radius: 4px; overflow: hidden;
  background: #f3f4f6;
}
.cmsw-flow-bar-seg {
  height: 100%; display: flex; align-items: center;
  padding: 0 10px; overflow: hidden;
  color: #fff; font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.cmsw-flow-bar-seg:hover { filter: brightness(1.08); }
.cmsw-flow-seg-charge { background: #1e3a8a; }
.cmsw-flow-seg-bonus { background: #d97706; }

.cmsw-flow-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding: 14px; background: #f8fafc; border-radius: 6px;
}
.cmsw-flow-stats > div { text-align: center; }
.cmsw-flow-stats .lbl {
  display: block; font-size: 0.7rem; color: #6b7280;
}
.cmsw-flow-stats strong { font-size: 1rem; color: #1f2937; }
.cmsw-flow-stats small { font-size: 0.7rem; color: #6b7280; font-weight: normal; margin-left: 2px; }
@media (max-width: 640px) {
  .cmsw-flow-stats { grid-template-columns: 1fr 1fr; }
}

.cmsw-tx-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.cmsw-tx-table thead {
  background: #f8fafc; font-size: 0.72rem; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.cmsw-tx-table th, .cmsw-tx-table td {
  padding: 10px 14px; text-align: left; border-bottom: 1px solid #f3f4f6;
}
.cmsw-tx-table tr:hover { background: #f8fafc; }
.cmsw-tx-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 3px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.cmsw-tx-badge-charge { background: #d1fae5; color: #059669; }
.cmsw-tx-badge-spend { background: #fee2e2; color: #dc2626; }
.cmsw-tx-badge-bonus { background: #fef3c7; color: #92400e; }
.cmsw-tx-badge-refund { background: #dbeafe; color: #1e40af; }
.cmsw-tx-badge-adjust { background: #e5e7eb; color: #374151; }
.cmsw-tx-badge-expire { background: #fce7f3; color: #9f1239; }
.cmsw-tx-delta-plus { color: #059669; font-weight: 700; font-family: monospace; }
.cmsw-tx-delta-minus { color: #dc2626; font-weight: 700; font-family: monospace; }
.cmsw-tx-jpy { font-size: 0.72rem; color: #6b7280; font-family: monospace; }

.cmsw-balance-compact {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #e5e7eb; text-decoration: none;
}
.cmsw-balance-compact:hover { border-color: #d97706; }
.cmsw-balance-compact .cmsw-pt { font-size: 0.95rem; }
.cmsw-balance-compact .cmsw-pt small { font-size: 0.72rem; opacity: 0.8; margin-left: 2px; }
.cmsw-balance-add {
  font-size: 0.72rem; color: #d97706; font-weight: 700;
  padding: 2px 8px; border-radius: 3px; background: #fef3c7;
}

.cmsw-balance-card .cmsw-balance-body {
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, #fff7ed, #fff);
}
.cmsw-balance-label {
  font-size: 0.78rem; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cmsw-balance-num { margin-top: 4px; }
.cmsw-balance-num .cmsw-pt { font-size: 2.4rem; }
.cmsw-balance-num small { font-size: 0.9rem; color: #6b7280; margin-left: 4px; }
.cmsw-btn-charge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff !important; text-decoration: none;
  font-weight: 700;
}
.cmsw-btn-charge:hover { filter: brightness(1.05); }
.cmsw-balance-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid #e5e7eb;
}
.cmsw-balance-stats > div {
  padding: 10px 20px; text-align: center;
}
.cmsw-balance-stats > div + div { border-left: 1px solid #e5e7eb; }
.cmsw-balance-stats .lbl { font-size: 0.72rem; color: #6b7280; display: block; }
.cmsw-balance-stats strong { font-size: 0.95rem; }
.cmsw-balance-stats small { font-size: 0.72rem; color: #9ca3af; margin-left: 2px; }
