/* Pedido externo: botón junto a la búsqueda y ventana para crear el pedido (cómoda en el celular). */
body .admin-toolbar .external-order-open { flex:none;min-height:44px;padding:0 18px;border:0;border-radius:999px;background:#ffe600;color:#0b1b3a;font:800 14px 'Plus Jakarta Sans',system-ui,sans-serif;cursor:pointer;white-space:nowrap; }
.external-order-dialog { width:min(560px, calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--admin-line, #2b4066);border-radius:18px;background:var(--admin-surface, #12264e);color:var(--admin-text, #f5f7ff);overflow:auto; }
.external-order-dialog::backdrop { background:rgba(4,10,30,.6); }
.external-order-form { display:grid;gap:14px;padding:20px;font:500 14px 'Plus Jakarta Sans',system-ui,sans-serif; }
.external-order-form header { display:flex;align-items:center;justify-content:space-between; }
.external-order-form h2 { margin:0;font-size:20px;font-weight:800; }
.external-order-close { display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:1px solid var(--admin-line, #2b4066);border-radius:50%;background:transparent;color:inherit;cursor:pointer; }
.external-order-close svg { width:18px;height:18px; }
.external-order-note { margin:0;color:var(--admin-muted, #a9b7d6);font-size:13px; }
.external-order-form label { display:grid;gap:6px;font-weight:700;font-size:13px; }
.external-order-form :is(input,select) { min-height:46px;padding:0 12px;border:1px solid var(--admin-line, #2b4066);border-radius:12px;background:rgba(255,255,255,.04);color:inherit;font:600 15px 'Plus Jakarta Sans',system-ui,sans-serif; }
.external-order-row { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
/* Mini tienda: cuadrícula de imágenes con desplazamiento propio. */
.external-order-results { display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;max-height:min(42vh,360px);overflow-y:auto;padding:2px; }
.external-order-results:empty { display:none; }
.external-order-results button { position:relative;display:grid;align-content:start;gap:3px;padding:6px;border:1px solid var(--admin-line, #2b4066);border-radius:12px;background:transparent;color:inherit;text-align:left;cursor:pointer; }
.external-order-results button:hover, .external-order-results button:focus-visible { border-color:#ffe600;outline:none; }
.external-order-results img, .external-order-noimg { display:block;width:100%;aspect-ratio:1;border-radius:8px;object-fit:contain;background:rgba(255,255,255,.07); }
.external-order-name { overflow:hidden;font-weight:700;font-size:12px;line-height:1.25;white-space:nowrap;text-overflow:ellipsis; }
.external-order-results small, .external-order-empty { color:var(--admin-muted, #a9b7d6);font-weight:500;font-size:11px;margin:0; }
.external-order-empty { grid-column:1/-1; }
.external-order-results em { position:absolute;top:10px;left:10px;padding:2px 6px;border-radius:6px;background:#ff7a00;color:#fff;font-style:normal;font-weight:800;font-size:10px; }
.external-order-cart ul { display:grid;gap:6px;margin:0;padding:0;list-style:none; }
.external-order-cart li { display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(255,230,0,.08); }
.external-order-cart li span { flex:1;min-width:0; }
.external-order-cart li button { width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:inherit;font-size:20px;cursor:pointer; }
.external-order-total { margin:8px 0 0;text-align:right; }
.external-order-status { margin:0;min-height:0;color:var(--admin-muted, #a9b7d6);font-size:13px; }
.external-order-status:empty { display:none; }
.external-order-status.is-error { color:#ff8a8a; }
.external-order-submit { min-height:50px;border:0;border-radius:999px;background:#ffe600;color:#0b1b3a;font:800 15px 'Plus Jakarta Sans',system-ui,sans-serif;cursor:pointer; }
.external-order-submit:disabled { opacity:.6;cursor:wait; }
@media (max-width:520px) { .external-order-row { grid-template-columns:1fr; } }

/* Aviso de cambio de producto hecho por el cliente (admin.js itemChangesNote). */
body #adminDashboard .order-item-changes { margin: 0 28px 10px; padding: 10px 16px; border-radius: 12px; background: rgba(255, 196, 0, .12); color: var(--admin-text, inherit); font-size: 13px; line-height: 1.45; }
@media (max-width: 640px) { body #adminDashboard .order-item-changes { margin: 0 18px 10px; } }

/* Comprobante «Enviado con éxito» (admin-gift-receipt.js). */
body #adminDashboard .order-bot-heading { display: flex; align-items: center; gap: 8px; }
body #adminDashboard .order-bot-heading .order-gift-receipt { margin-left: auto; min-height: 28px; padding: 0 12px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; opacity: .9; }
.order-bot-heading .order-gift-receipt:hover { background: rgba(255,255,255,.08); }
.gift-receipt-dialog { width: min(560px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 18px; background: #17181c; color: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.gift-receipt-dialog::backdrop { background: rgba(3, 6, 14, .7); }
.gift-receipt-box { display: grid; gap: 12px; padding: 14px; }
.gift-receipt-image { display: block; width: 100%; min-height: 120px; border-radius: 12px; background: #202125; }
.gift-receipt-status { margin: 0; color: #aab0c0; font-size: 13px; text-align: center; }
.gift-receipt-status:empty { display: none; }
.gift-receipt-actions { display: flex; gap: 8px; }
.gift-receipt-actions { flex-wrap: wrap; }
.gift-receipt-actions button { flex: 1 1 120px; min-height: 44px; border: 0; border-radius: 12px; background: #2c2e35; color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.gift-receipt-actions .gift-receipt-copy { background: #ffe600; color: #111; }

.gift-receipt-actions button[hidden] { display: none; }body #adminDashboard .order-bot-heading .order-gift-receipt { display: inline-flex; align-items: center; gap: 6px; }
body #adminDashboard .order-bot-heading .order-gift-receipt svg { width: 14px; height: 14px; }
/* «Copiar captura» + ver (admin-gift-receipt.js). */
body #adminDashboard .order-bot-heading .order-gift-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
body #adminDashboard .order-bot-heading .order-gift-actions .order-gift-receipt { margin-left: 0; }
body #adminDashboard .order-bot-heading .order-gift-view { display: grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; opacity: .9; }
body #adminDashboard .order-bot-heading .order-gift-view svg { width: 15px; height: 15px; }
.gift-receipt-toast { position: fixed; left: 50%; bottom: 24px; z-index: 2147483647; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: #ffe600; color: #111; font: 700 14px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.4); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.gift-receipt-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }