/* Cream and gold enquiry design from the supplied StarX Bullion audit. */
.starxbullion-sales-popup{
  --text:#2d281e;--muted:#655941;--accent:#77500b;--border:#d8bd83;--border-strong:#ba913b;--bg-soft:#fffaf0;--hover:#f4e6c8;--down:#a51f25;--up:#236138;
  position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom));z-index:80;
  width:min(380px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scroll-padding:16px;color-scheme:light;
  padding:24px;border:1px solid var(--border-strong);border-radius:16px;background:#fbf4e6;color:var(--text);box-shadow:0 12px 40px #0006;
  font:14px/1.5 var(--font-ui);animation:starxbullion-sales-enter .25s ease-out;
}
.starxbullion-sales-popup[hidden],.starxbullion-sales-trigger[hidden]{display:none}
.starxbullion-sales-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--border);border-radius:50%;background:#fffaf0;color:var(--accent);font:28px/1 var(--font-ui);cursor:pointer}
.starxbullion-sales-close:hover{background:var(--hover)}
.starxbullion-sales-emblem{display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0 auto 8px;border:1px solid var(--border);border-radius:50%;background:#f4e6c8}
.starxbullion-sales-emblem img{object-fit:contain}
.starxbullion-sales-title{margin:0 32px 6px;text-align:center;font-size:26px;line-height:1.25;font-weight:700;color:var(--text)}
.starxbullion-sales-copy{margin:0 auto 8px;max-width:30ch;text-align:center;font-size:13px;line-height:1.5;color:var(--muted)}
.starxbullion-sales-metals{display:flex;align-items:center;justify-content:center;height:70px;margin:0 0 10px}
.starxbullion-sales-metals img{width:100px;height:70px;object-fit:contain}
.starxbullion-sales-metals img+img{margin-left:-16px}
.starxbullion-sales-field{margin-bottom:14px}
.starxbullion-sales-field label{display:block;margin:0 0 6px;font-size:13px;line-height:1.4;font-weight:600;color:var(--text)}
.starxbullion-sales-field input{display:block;box-sizing:border-box;width:100%;height:46px;margin:0;padding:10px 12px;border:1px solid var(--border);border-radius:6px;background:var(--bg-soft);color:var(--text);font:16px/1.4 var(--font-ui)}
.starxbullion-sales-field input::placeholder{color:var(--muted);opacity:1}
.starxbullion-sales-field input[aria-invalid="true"]{border-color:var(--down)}
.starxbullion-sales-error{margin:6px 0 0;font-size:12px;line-height:1.5;color:var(--down)}
.starxbullion-sales-error:empty{display:none}
.starxbullion-sales-submit,.starxbullion-sales-trigger{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid #ba913b;border-radius:6px;background:linear-gradient(115deg,#ffe586,#e7b445 75%,#c8932b);color:#191507;font:700 14px/1.4 var(--font-ui);cursor:pointer}
.starxbullion-sales-submit{width:100%;min-height:48px;font-size:15px}
.starxbullion-sales-submit:hover,.starxbullion-sales-trigger:hover{background:#ffe797}
.starxbullion-sales-submit:disabled{opacity:.65;cursor:wait}
.starxbullion-sales-actions{display:grid;gap:10px}
.starxbullion-sales-support{margin:2px 0 0;text-align:center;font-size:12px;line-height:1.5;color:var(--muted)}
.starxbullion-sales-whatsapp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.starxbullion-sales-direct{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 4px;border:1px solid var(--border);border-radius:6px;background:#fffaf0;color:var(--accent);font:700 12px/1.4 var(--font-ui);text-decoration:none;white-space:nowrap}
.starxbullion-sales-direct img{width:20px;height:20px;object-fit:contain;flex:none}
.starxbullion-sales-direct:hover{text-decoration:underline;text-underline-offset:3px;background:var(--hover)}
.starxbullion-sales-status{margin:12px 0 0;font-size:13px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.starxbullion-sales-status:empty{display:none}
.starxbullion-sales-status[data-state="error"]{color:var(--down)}
.starxbullion-sales-status[data-state="success"]{color:var(--up)}
.starxbullion-sales-trigger{position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom));z-index:79}
.starxbullion-sales-trigger .starxbullion-link-icon{margin:0}
.starxbullion-sales-popup :focus-visible,.starxbullion-sales-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@keyframes starxbullion-sales-enter{from{transform:translateY(8px)}to{transform:translateY(0)}}
.starxbullion-motion-off .starxbullion-sales-popup{animation:none}
@media(max-width:575px){.starxbullion-sales-popup{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:calc(100% - 24px);padding:20px;max-height:calc(100dvh - 24px)}.starxbullion-sales-trigger{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}}
@media(max-height:700px){.starxbullion-sales-popup{padding:16px 20px}.starxbullion-sales-emblem{display:none}.starxbullion-sales-metals{height:42px;margin-bottom:6px}.starxbullion-sales-metals img{height:42px}.starxbullion-sales-field{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.starxbullion-sales-popup{animation:none}}
