/* Account controls use the existing site colors, font and catalog surfaces. */
.sharediv .shop-top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.sharediv .shop-account { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; margin: 0; border: 2px solid var(--accentColor, #fff); border-radius: 10px; appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.04); color: #fff; font: 600 14px var(--font, sans-serif); line-height: 1.3; cursor: pointer; transition: background .2s, color .2s; }
.sharediv .shop-account:hover, .sharediv .shop-account:focus { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); }
.sharediv .shop-account:active { background: rgba(255,255,255,.18); color: #fff; }
#demoDialog { color: #fff; background: linear-gradient(145deg, var(--bgColor, #223344), var(--bgColor2, #090a0f)); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; width: min(500px, calc(100% - 32px)); max-height: 85vh; padding: 28px; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; text-align: left; font: 400 14px/1.6 var(--font, sans-serif); box-shadow: 0 24px 80px rgba(0,0,0,.4); color-scheme: dark; }
#demoDialog.shop-auth { background: linear-gradient(145deg, #10151d, #07090d); }
#demoDialog::backdrop { background: rgba(9,10,15,.68); backdrop-filter: blur(6px); }
#demoDialog * { box-sizing: border-box; }
#demoDialog h2 { font: 700 23px/1.3 var(--font, sans-serif); margin: 0 32px 12px 0; color: inherit; letter-spacing: -.3px; }
#demoDialog h3 { font-size: 16px; margin: 24px 0 12px; }
#demoDialog p { margin: 12px 0; }
#demoDialog label { display: block; margin: 18px 0; font-weight: 600; }
#demoDialog input, #demoDialog select { display: block; width: 100%; height: auto; margin: 7px 0 0; padding: 12px 14px; background: rgba(255,255,255,.05); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; font: inherit; font-weight: 400; box-shadow: none; }
#demoDialog textarea { display: block; width: 100%; min-height: 120px; margin: 7px 0 0; padding: 12px 14px; resize: vertical; background: rgba(255,255,255,.05); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; font: inherit; font-weight: 400; }
#demoDialog select option { background: var(--bgColor2, #090a0f); }
#demoDialog input::placeholder { color: rgba(255,255,255,.4); }
#demoDialog button { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 11px 16px; cursor: pointer; height: auto; white-space: normal; margin: 4px 4px 4px 0; font: 600 13px/1.5 var(--font, sans-serif); letter-spacing: 0; text-transform: none; transition: background .2s, border-color .2s; }
#demoDialog button:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
#demoDialog button[type=submit] { width: 100%; margin: 10px 0; background: rgba(255,255,255,.14); }
#demoAuth > button[data-action] { display: block; margin: 2px auto 0; background: transparent; border-color: transparent; color: rgba(255,255,255,.7); }
#demoDialog button:disabled { opacity: .5; cursor: wait; }
#demoDialog .demo-close { position: absolute; right: 14px; top: 12px; padding: 3px 10px; font-size: 24px; font-weight: 400; background: transparent; border-color: transparent; }
#demoDialog .demo-note { font-size: 12px; font-weight: 400; color: rgba(255,255,255,.58); }
#demoDialog .demo-error { color: #ffb4b4; font-size: 13px; }
#demoDialog .demo-error:empty { margin: 0; }
#demoDialog .demo-order { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); border-radius: 14px; padding: 16px; margin: 12px 0; overflow-wrap: anywhere; }
#demoDialog .shop-order-pending { color: #bfe6d6; }
#demoDialog .shop-admin-link { display: inline-block; margin: 4px 0; padding: 10px 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; color: #fff; background: rgba(255,255,255,.1); text-decoration: none; font-weight: 600; }
#demoDialog .shop-admin-link:hover { background: rgba(255,255,255,.18); }
#demoDialog small { color: rgba(255,255,255,.55); }
#demoDialog code { overflow-wrap: anywhere; user-select: all; font-size: 12px; background: rgba(255,255,255,.06); border: 0; padding: 3px 5px; white-space: normal; }
#demoDialog [hidden] { display: none; }
#demoDialog .shop-empty-history { padding: 24px 0; color: rgba(255,255,255,.6); }
#demoDialog .shop-order-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.04); }
#demoDialog .shop-order-summary > span { grid-column: 1; color: rgba(255,255,255,.6); }
#demoDialog .shop-order-summary > strong:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 20px; }
#demoDialog .shop-payment-methods { display: grid; gap: 10px; }
#demoDialog .shop-currency-intro { margin: -2px 0 18px; color: rgba(255,255,255,.62); font-size: 13px; }
#demoDialog .shop-currency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: min(50vh, 500px); margin-bottom: 12px; padding: 2px 5px 2px 2px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
#demoDialog .shop-currency-grid .shop-currency-option { --coin-accent: #79c9e8; display: flex; flex-direction: column; align-items: stretch; gap: 5px; min-width: 0; min-height: 104px; margin: 0; padding: 13px; text-align: left; background: #17212c; background: linear-gradient(120deg, color-mix(in srgb, var(--coin-accent) 13%, #151c27), #10151d 80%); border-color: color-mix(in srgb, var(--coin-accent) 36%, #263442); box-shadow: inset 3px 0 var(--coin-accent); transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
#demoDialog .shop-currency-grid .shop-currency-option:hover { transform: translateY(-2px); background: #1b2a36; background: linear-gradient(120deg, color-mix(in srgb, var(--coin-accent) 23%, #17212c), #15202a 85%); border-color: var(--coin-accent); box-shadow: inset 3px 0 var(--coin-accent), 0 8px 20px rgba(0,0,0,.16); }
#demoDialog .shop-currency-option[data-currency="BTC"] { --coin-accent: #f7931a; }
#demoDialog .shop-currency-option[data-currency="ETH"] { --coin-accent: #8298d6; }
#demoDialog .shop-currency-option[data-currency="USDT"] { --coin-accent: #26a17b; }
#demoDialog .shop-currency-option[data-currency="USDC"] { --coin-accent: #438edb; }
#demoDialog .shop-currency-option[data-currency="TRX"] { --coin-accent: #ef4b50; }
#demoDialog .shop-currency-option[data-currency="BNB"] { --coin-accent: #e9b731; }
#demoDialog .shop-currency-option[data-currency="TON"] { --coin-accent: #43a9e7; }
#demoDialog .shop-currency-option[data-currency="SOL"] { --coin-accent: #a26fe2; }
#demoDialog .shop-currency-option[data-currency="LTC"] { --coin-accent: #aebaca; }
#demoDialog .shop-currency-option[data-currency="ZEC"] { --coin-accent: #e8b246; }
#demoDialog .shop-currency-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; min-width: 0; width: 100%; }
#demoDialog .shop-currency-icon { order: 2; flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.22); }
#demoDialog .shop-currency-option[data-currency="SOL"] .shop-currency-icon { border-radius: 0; box-shadow: none; }
#demoDialog .shop-currency-copy { order: 1; display: grid; min-width: 0; gap: 2px; }
#demoDialog .shop-currency-copy strong { color: #fff; font-size: 15px; line-height: 1.2; }
#demoDialog .shop-currency-network { color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.35; }
#demoDialog .shop-currency-fee { display: block; margin-top: 5px; color: #bfe6d6; font-size: 11px; line-height: 1.35; }
#demoDialog .shop-currency-fee span { color: rgba(255,255,255,.55); }
#demoDialog .shop-currency-arrow { display: block; align-self: flex-start; color: rgba(255,255,255,.6); font-size: 26px; font-weight: 300; line-height: 1; }
#demoDialog .shop-currency-note { margin: 0 0 14px; color: rgba(255,255,255,.56); font-size: 11px; line-height: 1.45; }
#demoDialog .shop-wallet-qr { display: block; max-width: 100%; height: auto; margin: 18px auto; background: #fff; border: 12px solid #fff; border-radius: 12px; }
#demoDialog label[for="shopWalletAddress"] { margin-bottom: 7px; }
#demoDialog .shop-wallet-address { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
#demoDialog .shop-wallet-address input { min-width: 0; margin: 0; font-family: monospace; font-size: 12px; }
#demoDialog .shop-wallet-address button { margin: 0; padding: 10px 12px; }
#demoDialog .shop-copy-status { display: block; min-height: 20px; margin-top: 5px; color: rgba(255,255,255,.65); font-size: 12px; }
#demoDialog .shop-payment-methods button { width: 100%; padding: 16px; margin: 0; text-align: left; }
#demoDialog .shop-payment-methods button:disabled { cursor: not-allowed; opacity: .6; }
#demoDialog .shop-payment-methods span { display: block; font-size: 12px; font-weight: 400; color: rgba(255,255,255,.6); margin-top: 3px; }
#demoDialog .shop-payment-unavailable { font-size: 13px; color: rgba(255,255,255,.65); }
#demoDialog :is(input, select, textarea, button, a):focus-visible, .shop-account:focus-visible { outline: 2px solid var(--accentColor, #fff); outline-offset: 3px; }
@media (max-width: 600px) {
  .sharediv .shop-account { padding: 0 12px; font-size: 12px; max-width: calc(100vw - 110px); }
  #demoDialog { padding: 22px 18px; }
  #demoDialog .shop-currency-grid { grid-template-columns: 1fr; }
}
