/* ============================================================
   Macro Market — Depósito / transferencia
   Front-end confirmation + account panel, upload form, and the
   admin review metabox. Reuses the storefront brand tokens.
   ============================================================ */
:root {
  --mm-deep-navy: #1E2A3A;
  --mm-forest:    #053031;
  --mm-midnight:  #2F588C;
  --mm-teal:      #2E7C89;
  --mm-sand:      #E7D8C4;
  --mm-gold:      #C9A565;
  --mm-line:      rgba(30,42,58,0.12);
  --mm-line-strong: rgba(30,42,58,0.22);
}

/* ---- Blocks checkout: payment-method description ---- */
.mm-deposito-pm__desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(30,42,58,0.75);
}

/* ---- The branded payment panel (thank-you + account view-order) ---- */
.mm-dep-panel {
  margin: clamp(24px, 4vw, 40px) 0;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(30,42,58,0.04), 0 22px 48px -30px rgba(30,42,58,0.30);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--mm-deep-navy);
}
.mm-dep-panel--ok  { border-top: 4px solid var(--mm-teal); }
.mm-dep-panel--wait{ border-top: 4px solid var(--mm-gold); }
.mm-dep-panel--bad { border-top: 4px solid #c0392b; }

.mm-dep-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 18px;
}
.mm-dep-panel__eyebrow {
  flex-basis: 100%;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mm-teal);
}
.mm-dep-panel__title {
  margin: 4px 0 0;
  font-family: 'Unbounded', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 34px);
  letter-spacing: 0.005em;
  color: var(--mm-deep-navy);
}
.mm-dep-pill {
  margin-left: auto;
  align-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mm-dep-pill--wait { background: #FBF3DF; color: #8a6d1f; }
.mm-dep-pill--ok   { background: #E1F0EE; color: #1f5a63; }
.mm-dep-pill--bad  { background: #FBE7E5; color: #9b2c22; }

.mm-dep-panel__lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(30,42,58,0.80);
}

/* Key facts: amount + reference */
.mm-dep-keyrow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.mm-dep-key {
  flex: 1 1 200px;
  padding: 14px 18px;
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  background: #FAFAF7;
}
.mm-dep-key__label {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30,42,58,0.55);
  margin-bottom: 6px;
}
.mm-dep-key__value {
  font-family: 'Unbounded', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--mm-deep-navy);
}

.mm-dep-subhead {
  margin: 0 0 12px;
  font-family: 'Unbounded', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--mm-deep-navy);
}

/* Bank account cards */
.mm-dep-accounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.mm-dep-account {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--mm-line-strong);
  border-radius: 12px;
  background: #fff;
}
.mm-dep-account__bank {
  font-family: 'Unbounded', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--mm-deep-navy);
}
.mm-dep-account__number {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--mm-midnight);
  word-break: break-all;
}
.mm-dep-account__meta {
  font-size: 13px;
  color: rgba(30,42,58,0.62);
}
.mm-dep-note {
  margin: 0 0 24px;
  font-size: 13px;
  color: rgba(30,42,58,0.62);
}

/* Uploaded slips */
.mm-dep-slips { margin: 8px 0 24px; }
.mm-dep-slips__list { list-style: none; margin: 0; padding: 0; }
.mm-dep-slip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  background: #F7FAF9;
  margin-bottom: 8px;
}
.mm-dep-slip__icon { font-size: 16px; }
.mm-dep-slip__name {
  font-weight: 600;
  color: var(--mm-deep-navy);
  text-decoration: none;
  word-break: break-all;
}
.mm-dep-slip__name:hover { color: var(--mm-midnight); }
.mm-dep-slip__date {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: rgba(30,42,58,0.55);
  white-space: nowrap;
}

/* Upload form */
.mm-dep-upload {
  margin-top: 8px;
  padding: 20px;
  border: 1px dashed var(--mm-line-strong);
  border-radius: 14px;
  background: #FAFAF7;
}
.mm-dep-upload__hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(30,42,58,0.6);
}
.mm-dep-upload__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.mm-dep-file {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
  cursor: pointer;
}
.mm-dep-file input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; overflow: hidden;
  clip: rect(0 0 0 0);
}
.mm-dep-file__btn {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid var(--mm-deep-navy);
  border-radius: 10px;
  background: #fff;
  color: var(--mm-deep-navy);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}
.mm-dep-file:hover .mm-dep-file__btn { background: var(--mm-sand); }
.mm-dep-file__name {
  font-size: 14px;
  color: rgba(30,42,58,0.7);
  word-break: break-all;
}
.mm-dep-btn {
  flex: 0 0 auto;
  padding: 14px 26px;
  border: 1px solid var(--mm-deep-navy);
  border-radius: 10px;
  background: var(--mm-deep-navy);
  color: #fff;
  font-family: 'Unbounded', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mm-dep-btn:hover { background: var(--mm-midnight); border-color: var(--mm-midnight); transform: translateY(-1px); }

@media (max-width: 600px) {
  .mm-dep-upload__row { flex-direction: column; align-items: stretch; }
  .mm-dep-file { flex-wrap: wrap; }
  .mm-dep-btn { width: 100%; }
  .mm-dep-pill { margin-left: 0; }
}

/* ============================================================
   Admin metabox (order edit screen, HPOS + legacy)
   ============================================================ */
.mm-dep-admin { font-size: 13px; color: #1d2327; }
.mm-dep-admin__status {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 8px 10px;
  border-radius: 8px; font-weight: 600;
}
.mm-dep-admin__status--wait { background: #FBF3DF; color: #8a6d1f; }
.mm-dep-admin__status--ok   { background: #E1F0EE; color: #1f5a63; }
.mm-dep-admin__status--bad  { background: #FBE7E5; color: #9b2c22; }
.mm-dep-admin__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mm-dep-admin__total { margin: 0 0 12px; }
.mm-dep-admin__empty { color: #646970; font-style: italic; margin: 0 0 12px; }
.mm-dep-admin__count { margin: 0 0 8px; font-weight: 600; }
.mm-dep-admin__slips { list-style: none; margin: 0 0 14px; padding: 0; }
.mm-dep-admin__slips li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid #f0f0f1;
}
.mm-dep-admin__thumb {
  width: 56px; height: 56px; object-fit: cover;
  border-radius: 6px; border: 1px solid #dcdcde;
}
.mm-dep-admin__file { font-weight: 600; }
.mm-dep-admin__date { margin-left: auto; color: #646970; font-size: 12px; white-space: nowrap; }
.mm-dep-admin__hint { margin: 12px 0 8px; font-weight: 600; }
.mm-dep-admin__btns { display: flex; flex-direction: column; gap: 6px; }
.mm-dep-admin__btns .button { width: 100%; text-align: center; }
.mm-dep-admin__cancel { color: #b32d2e !important; border-color: #b32d2e !important; }
