/* ===== Checkout, Mis pedidos y Panel de la tienda (pedidos.js) ===== */
.co, .od-page { max-width: 1120px; margin: 0 auto; }
.co-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* encabezado y pasos */
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.co-back { color: var(--ink2); text-decoration: none; font: 600 14px var(--body); }
.co-back:hover { color: var(--ink); }
.co-steps { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; font: 600 12.5px/1 var(--body); color: #74746f; }
.co-steps li { display: flex; align-items: center; gap: 10px; }
.co-steps li:not(:last-child)::after { content: ""; width: 26px; height: 1px; background: var(--tp-glass-line); }
.co-steps li.done { color: var(--cyan); }
.co-steps li.on { color: var(--ink); }

/* dos columnas: formulario + resumen */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.co-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.co-main.busy { opacity: .75; }
.co-title { font: 700 32px/1.1 var(--display); letter-spacing: -.6px; margin: 0 0 2px; color: var(--ink); }
.co-box { margin: 0; min-width: 0; padding: 18px 18px 20px; border: 1px solid var(--tp-glass-line); border-radius: 16px; background: #151515; }
.co-box legend { padding: 0 6px; margin-left: -6px; font: 700 15px var(--body); color: var(--ink); }
.co-box legend small, .co-box label small { font-weight: 500; color: #8a8a85; }
.co-box label { display: flex; flex-direction: column; gap: 6px; font: 600 12.5px var(--body); color: var(--ink2); }
.co-box input:not([type="radio"]), .co-box select, .co-box textarea, .od-actions input, .od-actions textarea {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #0e0e0e; color: var(--ink); font: 500 15px var(--body); }
.co-box textarea, .od-actions textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.co-box input:focus, .co-box select:focus, .co-box textarea:focus, .od-actions input:focus, .od-actions textarea:focus {
  outline: 2px solid rgba(202, 250, 120, .6); outline-offset: 1px; border-color: transparent; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.co-row3 { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 12px; }
.co-addr { display: grid; gap: 12px; margin-top: 14px; }
.co-addr[hidden] { display: none; }
.co-acc { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--ink2); font-size: 14px; }
.co-acc svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.co-acc b { color: var(--ink); overflow-wrap: anywhere; }
.co-fine { margin: 0; font-size: 12.5px; color: #8a8a85; }

/* opciones de entrega */
.co-opts { display: grid; gap: 10px; margin-top: 4px; }
.co-box .co-opt { flex-direction: row; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #0e0e0e; cursor: pointer; }
.co-box .co-opt:has(input:checked) { border-color: rgba(202, 250, 120, .65); background: rgba(202, 250, 120, .06); }
.co-opt input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: #cafa78; }
.co-opt span { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.co-opt b { color: var(--ink); font-size: 14.5px; }
.co-opt small { color: var(--ink2); font-size: 12.5px; font-weight: 500; }
.co-opt em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }

.co-filenote { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--ink2); line-height: 1.45; }
.co-filenote svg { width: 18px; height: 18px; flex: none; color: var(--cyan); }
.co-paynote { display: flex; gap: 12px; align-items: flex-start; }
.co-paynote svg { width: 22px; height: 22px; margin-top: 1px; flex: none; color: var(--cyan); }
.co-paynote b { display: block; color: var(--ink); margin-bottom: 2px; }
.co-paynote span { color: var(--ink2); font-size: 14px; line-height: 1.5; }
.co-paynote span b { display: inline; }
.co-submit { width: 100%; min-height: 56px; justify-content: center; font-size: 16.5px!important; }
.co-status, .od-status { min-height: 1.3em; margin: 0; font-size: 14px; color: var(--ink2); }
.co-status.bad, .od-status.bad, .od-empty.bad { color: #ff9c9c; }
.co-legal { margin: 0; font-size: 12px; color: #7d7d78; }
.co-legal a { color: var(--ink2); }

/* resumen */
.co-side { position: sticky; top: 96px; }
.co-sum { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--tp-glass-line); border-radius: 18px; background: #121212; }
.co-item { display: flex; gap: 14px; }
.co-thumb, .od-thumb { position: relative; flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 14px;
  border: 1px solid rgba(202, 250, 120, .25); background: linear-gradient(145deg, #222c17, #151515); color: var(--cyan); }
.co-thumb svg, .od-thumb svg { width: 30px; height: 30px; }
.co-thumb i { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px;
  background: #5b5b56; color: #fff; font: 700 12px/22px var(--body); font-style: normal; text-align: center; }
.co-info { min-width: 0; }
.co-info b { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.co-info > span { display: block; margin-top: 2px; color: var(--ink2); font-size: 12.5px; }
.co-info ul { display: grid; gap: 3px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: #b3b3ad; }
.co-qty { display: flex; align-items: center; justify-content: space-between; font: 600 13px var(--body); color: var(--ink2); }
.co-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.co-step button { width: 40px; height: 38px; border: 0; background: #1b1b1b; color: var(--ink); font-size: 18px; cursor: pointer; }
.co-step button:disabled { opacity: .35; cursor: default; }
.co-step output { min-width: 40px; text-align: center; color: var(--ink); font-weight: 700; }
.co-lines, .od-money { display: grid; gap: 10px; margin: 0; }
.co-lines { padding-top: 14px; border-top: 1px solid var(--tp-glass-line); }
.co-lines div, .od-money div { display: flex; justify-content: space-between; gap: 12px; }
.co-lines dt, .od-money dt { color: var(--ink2); font-size: 14px; }
.co-lines dd, .od-money dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; text-align: right; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--tp-glass-line); }
.co-total span { color: var(--ink); font-weight: 700; }
.co-total b { font: 800 26px var(--display); letter-spacing: -.5px; color: var(--ink); }
.co-trust { display: grid; gap: 8px; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--tp-glass-line); font-size: 12.5px; color: var(--ink2); }
.co-trust li { display: flex; gap: 8px; align-items: center; }
.co-trust li::before { content: "✓"; color: var(--cyan); font-weight: 800; }

/* vacío / confirmación */
.co-empty, .co-done { max-width: 580px; margin: 36px auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.co-empty > svg { width: 44px; height: 44px; color: var(--cyan); }
.co-empty h1, .co-done h1 { margin: 0; font: 700 28px/1.15 var(--display); color: var(--ink); }
.co-empty p, .co-done p { margin: 0; color: var(--ink2); line-height: 1.55; }
.co-empty-a, .co-done-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.co-check { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #cafa78; color: #15210b; }
.co-check svg { width: 30px; height: 30px; stroke-width: 2.4; }
.co-done .co-kicker { color: var(--cyan); font: 700 12px var(--body); letter-spacing: .12em; text-transform: uppercase; }

/* progreso del pedido */
.od-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; margin: 16px 0 0; padding: 0; list-style: none; text-align: center; font: 600 11px/1.3 var(--body); color: #6d6d68; }
.od-flow li span { display: block; height: 4px; margin-bottom: 7px; border-radius: 2px; background: #2a2a28; }
.od-flow li.done { color: var(--ink2); }
.od-flow li.done span { background: #8db157; }
.od-flow li.on { color: var(--ink); }
.od-flow li.on span { background: #cafa78; }
.od-cancel { margin: 12px 0 0; color: #ff9c9c; font-weight: 700; font-size: 13px; }

/* listas de pedidos */
.od-head h1 { margin: 0; font: 700 32px/1.1 var(--display); letter-spacing: -.6px; color: var(--ink); }
.od-head p { margin: 8px 0 0; color: var(--ink2); max-width: 640px; }
.od-list { display: grid; gap: 14px; margin-top: 18px; }
.od-empty { padding: 28px 10px; text-align: center; color: var(--ink2); }
.od { padding: 18px; border: 1px solid var(--tp-glass-line); border-radius: 18px; background: #141414; }
.od-h { display: flex; align-items: center; gap: 14px; }
.od-t { flex: 1; min-width: 0; }
.od-t b { display: block; color: var(--ink); overflow-wrap: anywhere; }
.od-t span { color: var(--ink2); font-size: 12.5px; }
.od-pill { flex: none; padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--ink); font: 700 12px/1 var(--body); }
.od-pill.s-awaiting_payment { background: #cafa78; color: #15210b; }
.od-pill.s-completed { background: rgba(202, 250, 120, .14); color: #cafa78; }
.od-pill.s-cancelled { background: rgba(255, 120, 120, .14); color: #ff9c9c; }
.od-body { margin-top: 6px; }
.od-body h4 { margin: 16px 0 6px; font: 700 11.5px var(--body); letter-spacing: .08em; text-transform: uppercase; color: #8a8a85; }
.od-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.od-cols p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.od-money { gap: 6px; }
.od-tot dt, .od-tot dd { color: var(--ink)!important; font-weight: 800!important; font-size: 15px!important; }
.od-cols .od-hint { margin-top: 8px; color: var(--ink2); font-size: 13px; }
.od-specs { display: grid; gap: 6px; margin: 0; }
.od-specs div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 14px; }
.od-specs dt { color: var(--ink2); }
.od-specs dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.od-note { margin: 0; color: var(--ink); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.od-msgs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.od-msgs li { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.od-msgs li.shop { border: 1px solid rgba(202, 250, 120, .22); background: rgba(202, 250, 120, .07); }
.od-msgs b { color: var(--ink); font-size: 13px; }
.od-msgs time, .od-msgs em { color: #8a8a85; font-size: 12px; font-style: normal; }
.od-msgs p { margin: 4px 0 0; color: var(--ink); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.od-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.od-btns .btn svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.od-meta { color: #8a8a85; font-size: 12px; overflow-wrap: anywhere; }
.shader-site .od-danger { color: #ff9c9c; }
.od-actions { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--tp-glass-line); }
.od-actions .od-btns { margin-top: 0; }
.od-quote { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.od-quote label { display: flex; flex-direction: column; gap: 6px; font: 600 12.5px var(--body); color: var(--ink2); }
.od-quote .od-wide { grid-column: 1 / -1; }
.od-quote button { grid-column: 1 / -1; justify-self: start; }
.op-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.op-tabs button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--tp-glass-line); background: var(--tp-pill); color: #d4d4ce; font: 600 12.5px/1 var(--body); cursor: pointer; }
.op-tabs button[aria-selected="true"] { background: #cafa78; border-color: #cafa78; color: #15210b; }
.op-tabs i { margin-left: 6px; font-style: normal; opacity: .7; }

/* cotizador: botón de pedido, contacto, cuenta */
.shader-site .q-order { width: 100%; justify-content: center; margin-top: 14px; min-height: 50px; }
.shader-site .q-order:disabled { opacity: .45; cursor: not-allowed; }
.contact-fine { font-size: 13px; }
.contact-fine a { color: inherit; }
.hg-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.hg-h3 { margin: 14px 0 0; font: 700 15px var(--body); color: var(--ink); }

/* menú: "Mis pedidos" solo con sesión, "Panel" solo para la tienda */
html:not([data-signed-in]) [data-nav="pedidos"], html:not([data-signed-in]) [data-foot-orders], html:not([data-owner]) [data-nav="panel"] { display: none!important; }

@media (max-width: 900px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-side { position: static; order: -1; }
}
@media (max-width: 560px) {
  .co-row, .co-row3, .od-cols, .od-quote { grid-template-columns: minmax(0, 1fr); }
  .od-flow { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .co-title, .od-head h1 { font-size: 26px; }
  .co-steps li:not(:last-child)::after { width: 12px; }
  .od-h { flex-wrap: wrap; }
}

/* ===== Logo "h:" — los dos puntos son los puntitos de las dos "i" de hackgorithmic ===== */
.shader-site .hg-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: #161616;
  border: 1px solid rgba(202, 250, 120, .45); color: #f1f1ed; font: 800 23px/1 var(--display); letter-spacing: -1px; }
.shader-site .hg-logo b { color: #cafa78; font-weight: 800; margin-left: 1px; }
.shader-site .tp-top .shader-brand-mark.hg-logo { width: 40px; font-size: 23px; letter-spacing: -1px; }
.shader-site .hg-logo-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 17px; }
.shader-site .shader-footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.hg-i { position: relative; }
.hg-i::after { content: ""; position: absolute; left: 50%; top: .1em; width: .19em; height: .19em; margin-left: -.095em; border-radius: 50%; background: #cafa78; }
.shader-site .shader-footer-brand .hg-word, .shader-site .shader-footer-brand .hg-word span { color: #e6e6df; }
.shader-site .shader-footer-brand .hg-logo { color: #f1f1ed; }
