/* Guest area (/my). Phone-first. Tokens copied from the site (redesign.css :root) so the page
   stays light and independent of the homepage stylesheet. */
:root {
  --orange: #E8741A; --orange-deep: #A64A08; --orange-btn: #B4540C; --cream: #FAF6EF; --cream-deep: #F2EBDD;
  --ink: #2A1F1A; --text: #3D332C; --text-muted: #6B645E; --line: #E8DFCF; --white: #FFFFFF;
  --success: #14833B; --error: #DC2626;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 14px; --shadow-md: 0 8px 24px rgba(42, 31, 26, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 16px/1.55 var(--font-sans); overflow-x: hidden; }
a { color: var(--orange-deep); }
h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); line-height: 1.2; margin: 0; }

.my-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.my-logo { font: 800 1.05rem/1.1 var(--font-serif); color: var(--ink); text-decoration: none; min-width: 0; display: inline-flex; align-items: center; }
.my-logo::before { content: ''; flex: none; width: 1.65em; height: 1.65em; margin-right: 0.45em; background: url(/media/brand/naranja.svg) center / contain no-repeat; }
.my-bar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.my-langs { display: inline-flex; background: var(--cream-deep); border-radius: 999px; padding: 3px; }
.my-langs button { min-width: 44px; min-height: 36px; border: 0; background: none; border-radius: 999px; font: 600 0.74rem/1 var(--font-sans); color: var(--text-muted); cursor: pointer; }
.my-langs button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.my-main { max-width: 640px; margin: 0 auto; padding: 24px 16px 72px; }
.my-title { font-size: 1.6rem; margin-bottom: 6px; }
.my-sub { color: var(--text-muted); margin: 0 0 20px; font-size: 0.95rem; }
.my-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin: 0 0 14px; box-shadow: var(--shadow-md); }
.my-card h2 { font-size: 1.1rem; margin-bottom: 10px; }
.my-center { text-align: center; padding-top: 12px; }

.my-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--orange-btn); color: var(--white); font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer; }
.my-btn:hover { background: var(--orange-deep); }
.my-btn[disabled] { opacity: .6; cursor: default; }
.my-btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.my-btn-ghost:hover { background: var(--cream-deep); }
.my-btn-danger { background: var(--white); color: var(--error); border: 1px solid var(--error); }
.my-btn-danger:hover { background: #fef2f2; }
.my-btn-block { width: 100%; }
.my-linkbtn { background: none; border: 0; padding: 0; min-height: 44px; color: var(--text-muted); font: 600 0.9rem/1 var(--font-sans); cursor: pointer; text-decoration: underline; }

.my-field { display: block; margin: 0 0 14px; }
.my-field span { display: block; font: 600 0.85rem/1.2 var(--font-sans); margin-bottom: 6px; color: var(--ink); }
.my-input, .my-textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--font-sans); }
.my-textarea { min-height: 96px; resize: vertical; }
.my-input:focus, .my-textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.my-msg { margin: 12px 0 0; font-size: 0.92rem; }
.my-msg.err { color: var(--error); }

/* list */
.my-section { font-size: 1.05rem; margin: 26px 0 10px; }
.my-item { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 10px; text-decoration: none; color: inherit; min-height: 64px; }
.my-item:hover, .my-item:focus-visible { border-color: var(--orange); outline: none; }
.my-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.my-item-name { font: 600 1rem/1.3 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.my-item-meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.my-chip { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font: 600 0.72rem/1.3 var(--font-sans); background: var(--cream-deep); color: var(--ink); }
.my-chip.ok { background: #dcfce7; color: #14532d; }
.my-chip.wait { background: #fef3c7; color: #78350f; }
.my-chip.off { background: #f3f4f6; color: #4b5563; }
.my-empty { color: var(--text-muted); padding: 8px 2px; }

/* detail */
.my-back { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 6px; font-weight: 600; text-decoration: none; }
.my-dl { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.my-dl dt { color: var(--text-muted); font-size: 0.88rem; }
.my-dl dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.my-price { font: 700 1.5rem/1.2 var(--font-serif); color: var(--ink); }
.my-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.my-box { background: var(--cream); border: 1px dashed var(--orange-soft, #F2A671); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.my-places { margin: 0; padding-left: 1.2em; }
.my-places li { margin: 2px 0; overflow-wrap: anywhere; }

.my-timeline { list-style: none; margin: 0; padding: 0; }
.my-timeline li { position: relative; padding: 0 0 18px 34px; min-height: 28px; }
.my-timeline li:last-child { padding-bottom: 0; }
.my-timeline li::before { content: ''; position: absolute; left: 9px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.my-timeline li:last-child::before { display: none; }
.my-dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); }
.my-timeline .done .my-dot { background: var(--success); border-color: var(--success); }
.my-timeline .done .my-dot::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.my-timeline .current .my-dot { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232, 116, 26, .18); }
.my-timeline .terminal .my-dot { background: var(--error); border-color: var(--error); }
.my-timeline .pending { color: var(--text-muted); }
.my-step-label { font-weight: 600; color: var(--ink); }
.my-timeline .pending .my-step-label { color: var(--text-muted); font-weight: 500; }
.my-step-at { display: block; font-size: 0.82rem; color: var(--text-muted); }

.my-thread { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.my-bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; background: var(--cream-deep); overflow-wrap: anywhere; white-space: pre-wrap; }
.my-bubble.me { align-self: flex-end; background: var(--orange-btn); color: var(--white); }
.my-bubble small { display: block; opacity: .75; font-size: 0.74rem; margin-top: 4px; }
.my-actions { display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 560px) {
  .my-actions { flex-direction: row; flex-wrap: wrap; }
  .my-title { font-size: 1.9rem; }
}
@media (max-width: 380px) {
  .my-logo { font-size: 0.95rem; }
  .my-dl { grid-template-columns: 1fr; gap: 0; }
  .my-dl dd { margin-bottom: 8px; }
}

/* payment panel (transfer + Bizum) */
.my-pay { background: var(--cream); border: 1px dashed var(--orange-soft, #F2A671); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.my-pay h3 { margin: 14px 0 4px; font-size: 1rem; }
.my-pay-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.my-pay-k { grid-column: 1 / -1; font-size: .8rem; color: var(--text-muted); }
.my-pay-v { font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.my-copy { min-height: 44px; min-width: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 .9rem/1 var(--font-sans); cursor: pointer; }
.my-copy:hover { background: var(--cream-deep); }
.my-pay-hint { margin: 8px 0 0; font-size: .85rem; }
.my-pay-qr { margin: 12px 0 0; text-align: center; }
.my-pay-qr img { width: 220px; max-width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.my-pay-qr figcaption { margin-top: 6px; font-size: .8rem; color: var(--text-muted); }
/* Bizum or transfer: two choices, only the chosen method is shown */
.my-pay-choose { margin: 14px 0 6px; font-weight: 700; font-size: .95rem; }
.my-pay-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.my-pay-opt { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.my-pay-opt span { font-size: .78rem; color: var(--text-muted); line-height: 1.3; }
.my-pay-opt[aria-pressed="true"] { border-color: var(--orange-btn, #B4540C); box-shadow: inset 0 0 0 1px var(--orange-btn, #B4540C); }
.my-pay-sec[hidden] { display: none; }
@media (max-width: 360px) { .my-pay-pick { grid-template-columns: 1fr; } }
