.omnex-purchase{box-sizing:border-box;width:min(360px,calc(100% - 28px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #e8e0f5;border-radius:24px;background:#fff;color:#171c48;font-family:'Cairo',Tahoma,Arial,sans-serif;box-shadow:0 24px 90px #13032935;overflow:auto}
/* A dim layer avoids full-page blur work during the dialog transition. */
.omnex-purchase::backdrop{background:#100926a8;backdrop-filter:none}
.omnex-purchase *{box-sizing:border-box}
.purchase-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #eee7f6}
.purchase-header h2{font-size:21px;margin:0;font-weight:800}
.purchase-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid #e8e0f5;border-radius:11px;background:#f7f4ff;color:#6c7291;font:26px Arial;cursor:pointer}
.purchase-body{display:grid;gap:18px;padding:24px}
.purchase-summary{display:flex;align-items:center;gap:16px;padding:16px;background:linear-gradient(135deg,#fff0f2,#f5f1ff);border:1px solid #eee2ef;border-radius:19px}
.purchase-image{display:block;width:88px;height:88px;flex-shrink:0;object-fit:cover;object-position:center;background:#fff;border-radius:14px;padding:0}
.purchase-identity{min-width:0;flex:1}
.purchase-identity h3{font-size:16px;line-height:1.6;margin:0 0 8px;overflow-wrap:anywhere}
.purchase-unit{display:block;font-size:11px;color:#6c7291}
.purchase-price-line{display:contents}
.purchase-unit-short{display:none}
.purchase-price{display:block;color:#ff182d;font-size:18px}
.purchase-stock{font-size:11px;color:#527565;line-height:1.7;margin:7px 0 0}
.purchase-description{padding:16px;border:1px solid #f3cfd7;border-inline-start:3px solid #ff182d;border-radius:15px;background:#fffafb}
.purchase-description h3{color:#ff182d;margin:0 0 8px;font-size:14px}
.purchase-description p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9;margin:0}
.purchase-divider{text-align:center;font-size:12px;color:#7b819d;margin:0;display:flex;align-items:center;gap:12px}
.purchase-divider:before,.purchase-divider:after{content:'';height:1px;flex:1;background:#eee7f6}
.purchase-agreement{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:16px 12px;background:#f7f4ff;border:1px solid #e8e0f5;border-radius:14px;font-size:13px}
.purchase-agreement input{width:21px;height:21px;margin:0 0 0 6px;accent-color:#ff182d;cursor:pointer;flex-shrink:0}
.purchase-agreement label{cursor:pointer}
.purchase-agreement a{color:#e91429;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.purchase-confirm{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:0;border-radius:14px;background:#ff182d;color:white;padding:16px;font:700 14px 'Cairo',Tahoma,Arial,sans-serif;cursor:pointer}
.purchase-confirm strong{font-size:13px;background:#ffffff24;padding:4px 8px;border-radius:7px;white-space:nowrap}
.purchase-confirm:disabled{background:#eee8f2;color:#9690a5;cursor:not-allowed}
.purchase-message{color:#a82b3b;background:#fff0f2;padding:12px;border-radius:10px;font-size:12px;line-height:1.8;margin:0}
.purchase-preparation{font-size:.875rem;margin:0}
.purchase-inline-action{font:inherit;font-size:.875rem;color:inherit;text-decoration:underline;text-underline-offset:.2em}
button.purchase-inline-action{background:transparent;border:0;padding:.25em .4em;cursor:pointer}
.purchase-actions { display:contents; }
.omnex-purchase :focus-visible{outline:3px solid #a89ae8;outline-offset:3px}
.store-product-action{width:100%;font-family:inherit;cursor:pointer;border:0}
@media(max-width:360px){.purchase-body{padding:16px;gap:14px}.purchase-header{padding:17px}.purchase-summary{padding:12px;gap:10px}.purchase-image{width:70px;height:90px}.purchase-confirm{padding:13px;font-size:13px}}
.store-purchasable{cursor:pointer}
.purchase-header{padding:17px 20px}
.purchase-header h2{font-size:19px}
.purchase-body{padding:20px;gap:16px}
.purchase-summary{gap:12px;padding:14px}
.purchase-image{width:88px;height:88px;padding:0;object-position:center}
.purchase-identity h3{font-size:14px;margin-bottom:5px}
.purchase-price{font-size:16px}
.purchase-stock{display:inline-block;background:#e9f4ee;color:#317655;border-radius:20px;padding:3px 9px;margin-top:8px}
.purchase-description{padding:14px}
.purchase-description p{font-size:12px;line-height:1.85;unicode-bidi:plaintext}
.purchase-agreement{padding:13px 10px;font-size:12px}
.purchase-confirm{padding:13px;font-size:13px;min-height:50px;transition:background-color .18s,color .18s}
/* Keep one transition path for entry, exit and reversing an unfinished entry. */
html{scrollbar-gutter:stable}
.omnex-purchase[open]{opacity:0;transform:translateY(12px) scale(.96);transition:opacity .22s ease-out,transform .22s cubic-bezier(.22,1,.36,1);transform-origin:center}
.omnex-purchase[open]::backdrop{opacity:0;transition:opacity .22s ease-out}
.omnex-purchase[open].is-visible{opacity:1;transform:translateY(0) scale(1)}
.omnex-purchase[open].is-visible::backdrop{opacity:1}
.omnex-purchase[open].is-closing{transition-duration:.18s;transition-timing-function:ease-in;pointer-events:none}
.omnex-purchase[open].is-closing::backdrop{transition-duration:.18s}
/* The owner explicitly requested this short purchase-dialog motion in both system modes. */


/* Short feedback animations are explicitly requested for this checkout control. */
.purchase-agreement{gap:5px;min-height:56px;padding:13px 14px;border-radius:16px;transition:border-color .18s,background-color .18s}
.purchase-agreement:has(input:checked){border-color:#ffd0d8;background:#fff5f7}
.purchase-agreement input{appearance:none;-webkit-appearance:none;display:grid;place-items:center;width:26px;height:26px;border:1.5px solid #d4cce1;border-radius:9px;background:#fff;transition:background-color .16s,border-color .16s,box-shadow .16s,transform .16s}
.purchase-agreement input::after{content:'';width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(0);opacity:0;transition:transform .18s cubic-bezier(.2,1.5,.4,1),opacity .12s}
.purchase-agreement input:checked{background:#ff1936;border-color:#ff1936;box-shadow:0 3px 12px #ff193633}
.purchase-agreement input:checked::after{transform:translateY(-1px) rotate(45deg) scale(1);opacity:1}
.purchase-agreement input:active{transform:scale(.93)}
.purchase-confirm{position:relative;isolation:isolate;overflow:hidden;justify-content:center;flex-wrap:wrap;gap:10px;min-height:58px;padding:14px 12px;border:1px solid #ff3451;border-radius:16px;background:linear-gradient(115deg,#ff3c50,#ff1436 60%,#ed0f33);color:#fff;font-size:15px;font-weight:800;box-shadow:0 8px 23px #ff193633,inset 0 1px 0 #ffffff35;transition:transform .16s ease,box-shadow .2s ease,filter .2s ease,background-color .18s,color .18s}
.purchase-confirm>span{white-space:nowrap}
.purchase-bag{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.purchase-confirm strong{position:relative;padding:6px 9px;border-radius:9px;background:#b0002429;color:inherit;font-size:13px;line-height:1.5;box-shadow:inset 0 1px 1px #9d001b15}
.purchase-confirm:disabled{background:#eee8f2;border-color:#eee8f2;color:#a49bae;box-shadow:none;filter:none;transform:none;cursor:not-allowed}
.purchase-confirm:disabled strong{background:#ffffff4d;box-shadow:none}
.purchase-confirm:not(:disabled){animation:purchase-button-ready .22s ease-out}
.purchase-confirm:not(:disabled)::after{content:'';position:absolute;z-index:-1;inset:-40% auto -40% -50%;width:35%;background:linear-gradient(90deg,transparent,#ffffff25,transparent);transform:skewX(-20deg);pointer-events:none;animation:purchase-button-shine .55s ease-out both}
@media(hover:hover){.purchase-confirm:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 11px 28px #ff19364d;filter:brightness(1.04)}.purchase-confirm:not(:disabled):hover .purchase-bag{transform:translateY(-1px)}}
.purchase-confirm:not(:disabled):active{transform:translateY(0) scale(.98);box-shadow:0 4px 12px #ff19362e}
@keyframes purchase-button-ready{from{transform:scale(.98);filter:brightness(.95)}to{transform:scale(1);filter:brightness(1)}}
@keyframes purchase-button-shine{from{transform:translateX(0) skewX(-20deg);opacity:0}20%{opacity:1}to{transform:translateX(500%) skewX(-20deg);opacity:0}}
@media(max-width:360px){.purchase-confirm{gap:7px;font-size:14px}.purchase-confirm strong{font-size:12px;padding:6px 8px}.purchase-bag{width:18px;height:18px}}

.purchase-buyer-fields{display:grid;gap:14px;margin-bottom:18px}.purchase-buyer-field{display:grid;gap:8px}.purchase-buyer-field input,.purchase-buyer-field select{width:100%;padding:13px;border:1px solid #e9e0fb;border-radius:12px;font:inherit;color:#191b4b;background:#faf8ff}
.purchase-player-check{padding:11px 12px;gap:8px;margin-bottom:0;border:1px solid #ffd0d9;border-radius:13px;background:linear-gradient(135deg,#fff8fa,#faf7ff)}
.purchase-player-check h3{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;line-height:1.5;font-weight:800;color:#191b4b}
.purchase-player-shield{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.purchase-player-check h3 .purchase-player-shield{color:#ff2446}
.purchase-player-check .purchase-player-id>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.purchase-player-check .purchase-player-id input{text-align:right}
.purchase-player-controls{display:flex;gap:9px;align-items:flex-end}
.purchase-player-inputs{display:grid;gap:10px;flex:1;min-width:0}
.purchase-player-check .purchase-buyer-field{font-size:12px;min-width:0;gap:6px}
.purchase-player-check input,.purchase-player-check select{min-width:0;min-height:40px;padding:8px 10px;border-radius:10px;font-size:12px}
/* Match information-details.css's delete-account colors and interaction motion. */
.omnex-purchase :is(.purchase-player-verify,.purchase-amount-button){display:flex;align-items:center;justify-content:center;gap:5px;flex:none;min-width:78px;min-height:40px;padding:8px 10px;border:1px solid rgba(239,68,68,.2);border-radius:10px;color:#ef4444;background:rgba(239,68,68,.1);font:800 12px var(--font-family);cursor:pointer;box-shadow:none;transform:none;transition:background-color .3s cubic-bezier(.25,.8,.25,1),color .3s cubic-bezier(.25,.8,.25,1),box-shadow .3s cubic-bezier(.25,.8,.25,1),transform .3s cubic-bezier(.25,.8,.25,1)}
:is(.purchase-player-verify,.purchase-amount-button) .purchase-player-shield{fill:currentColor;stroke:none}
@media(hover:hover){.omnex-purchase :is(.purchase-player-verify,.purchase-amount-button):hover:not(:disabled){background:#ef4444;color:#fff;box-shadow:0 10px 20px rgba(239,68,68,.3);transform:translateY(-3px)}}
.omnex-purchase :is(.purchase-player-verify,.purchase-amount-button):active:not(:disabled){transform:translateY(0)}
.omnex-purchase :is(.purchase-player-verify,.purchase-amount-button):disabled{opacity:.65;cursor:wait;transform:none;box-shadow:none}
.omnex-purchase :is(.purchase-player-verify,.purchase-amount-button):focus-visible{outline:2px solid #ff8692;outline-offset:4px}
.purchase-player-result{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-top:0;padding:7px 10px;border:1px solid #ffd0d9;border-radius:9px;background:#fff0f3;color:#bd2842;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.purchase-player-result[hidden]{display:none}
.purchase-player-result.is-success{background:#e7f7ee;border-color:#bbe8d0;color:#247255}
.purchase-player-result strong{padding:2px 9px;border-radius:7px;background:#ffffff90;font-size:14px;unicode-bidi:plaintext;max-width:100%}
.purchase-player-result small{flex-basis:100%}

/* Compact service checkout, with the original product description still accessible. */
.omnex-purchase.purchase-service{width:min(340px,calc(100% - 28px));border-radius:21px}
.purchase-service .purchase-header{padding:14px 20px}
.purchase-service .purchase-header h2{font-size:17px}
.purchase-service .purchase-close{width:30px;height:30px;border-radius:9px;font-size:23px}
.purchase-service .purchase-body{padding:20px 22px;gap:14px}
.purchase-service .purchase-summary{min-height:112px;padding:12px;gap:10px;border-radius:16px}
.purchase-service .purchase-image{width:88px;height:88px;border-radius:12px}
.purchase-service .purchase-identity h3{font-size:13px;margin-bottom:4px}
.purchase-service .purchase-unit{font-size:10px}
.purchase-service .purchase-price{font-size:14px;line-height:1.6}
.purchase-service .purchase-stock{font-size:10px;margin-top:5px;padding:2px 7px}
.purchase-service .purchase-divider{font-size:10px;line-height:1.6}
.purchase-service .purchase-player-check{padding:11px 12px;gap:8px;border-radius:12px}
.purchase-service .purchase-agreement{min-height:48px;padding:10px 12px;border-radius:12px;font-size:11px}
.purchase-service .purchase-agreement input{width:22px;height:22px;border-radius:7px}
.purchase-service .purchase-confirm{min-height:50px;padding:11px 10px;font-size:13px;gap:7px;border-radius:12px}
.purchase-service .purchase-confirm strong{padding:4px 7px;font-size:11px}
.purchase-service .purchase-bag{width:17px;height:17px}
@media(max-width:360px){.purchase-service .purchase-body{padding:16px;gap:12px}.omnex-purchase .purchase-image{width:76px;height:76px}}

/* Dark checkout surfaces: scoped selectors also override legacy theme v4. */
.omnex-purchase { background:#1c1c22; color:#f4f4f6; border-color:#33333f; }
.omnex-purchase .purchase-header { border-color:#33333f; }
.omnex-purchase .purchase-close { background:#22222c; border-color:#33333f; color:#aaaab9; }
.omnex-purchase .purchase-summary { background:#22222c; border-color:#33333f; }
.omnex-purchase .purchase-image { background:#14141a; }
.omnex-purchase .purchase-description { background:#22222c; border:1px solid #33333f; color:#d6d6df; }
.omnex-purchase .purchase-description h3 { color:#ff8692; }
.omnex-purchase .purchase-unit, .omnex-purchase .purchase-divider { color:#aaaab9; }
.omnex-purchase .purchase-divider::before, .omnex-purchase .purchase-divider::after { background:#33333f; }
.omnex-purchase .purchase-agreement a { color:#ff8692; }
.omnex-purchase :focus-visible { outline-color:#ff7180; }
.omnex-purchase .purchase-description p { color: #d6d6df; }
.omnex-purchase .purchase-stock { background: #20382f; color: #9be0ba; }
.omnex-purchase .purchase-agreement { background: #22222c; border-color: #33333f; }
.omnex-purchase .purchase-agreement:has(input:checked) { background: #342027; border-color: #934351; }
.omnex-purchase .purchase-agreement input { background: #14141a; border-color: #777784; }
.omnex-purchase .purchase-agreement input:checked { background: #e52636; border-color: #e52636; }
.omnex-purchase .purchase-close:hover { background: #342027; color: #ff9ba7; border-color: #713440; }
.omnex-purchase .purchase-confirm { background: #e52636; border-color: #f04b5a; color: #fff; }
.omnex-purchase .purchase-confirm:disabled { background: #33333f; border-color: #464653; color: #aaaab9; }
.omnex-purchase .purchase-confirm:disabled strong { background: #292933; }
.omnex-purchase .purchase-confirm strong { background:#a61525; color:#fff; border:1px solid #ffffff24; padding:7px 10px; border-radius:9px; font-size:14px; font-weight:900; line-height:1.5; font-variant-numeric:tabular-nums; box-shadow:none; }
.omnex-purchase .purchase-confirm:disabled strong { color:#f4f4f6; border-color:#464653; }
.omnex-purchase.purchase-service .purchase-confirm strong { padding:6px 9px; font-size:13px; }
.omnex-purchase .purchase-buyer-field input,
.omnex-purchase .purchase-buyer-field select { background: #14141a; border-color: #464653; color: #f4f4f6; color-scheme: dark; }
.omnex-purchase .purchase-buyer-field input::placeholder { color: #aaaab9; opacity: 1; }
.omnex-purchase .purchase-player-check { background: #22222c; border-color: #33333f; }
.omnex-purchase .purchase-player-check h3 { color: #f4f4f6; }
.omnex-purchase .purchase-player-result { background: #342027; border-color: #713440; color: #ffc1c8; }
.omnex-purchase .purchase-player-result.is-success { background: #20382f; border-color: #3c7157; color: #9be0ba; }
.omnex-purchase .purchase-player-result strong { background: #14141a; }

/* A quiet rose-red focus edge, with a short highlight instead of a thick outline. */
.omnex-purchase .purchase-player-id-only .purchase-player-id {
  width:min(100%,260px);
  justify-self:start;
  gap:7px;
  font-size:12px;
}
.omnex-purchase .purchase-player-id-only .purchase-player-id input {
  height:44px;
  min-height:44px;
  padding:9px 11px;
  border-radius:10px;
  font-size:13px;
  text-align:right;
}
.omnex-purchase .purchase-player-id-only .purchase-player-id input,
.omnex-purchase .purchase-player-check .purchase-buyer-field input,
.omnex-purchase .purchase-player-check .purchase-buyer-field select {
  outline:none;
  background-image:linear-gradient(180deg,rgba(255,255,255,.025),transparent 65%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  transition:border-color .24s ease-out,box-shadow .24s ease-out;
}
.omnex-purchase .purchase-player-id-only .purchase-player-id input:focus,
.omnex-purchase .purchase-player-check .purchase-buyer-field input:focus,
.omnex-purchase .purchase-player-check .purchase-buyer-field select:focus {
  border-color:#bb6271;
  box-shadow:inset 0 1px 0 rgba(255,214,220,.06),0 0 0 2px rgba(187,98,113,.1);
}
.omnex-purchase .purchase-player-id-only .purchase-player-id input:focus-visible,
.omnex-purchase .purchase-player-check .purchase-buyer-field input:focus-visible,
.omnex-purchase .purchase-player-check .purchase-buyer-field select:focus-visible {
  outline:none;
}
.omnex-purchase .purchase-player-id { position:relative; }
.omnex-purchase .purchase-player-id::after {
  content:'';
  position:absolute;
  top:0;
  inset-inline:14px;
  height:1px;
  border-radius:1px;
  background:linear-gradient(90deg,transparent,rgba(205,113,129,.45),rgba(255,210,218,.8),rgba(205,113,129,.45),transparent);
  opacity:0;
  transform:scaleX(.65);
  transition:opacity .24s ease-out,transform .32s cubic-bezier(.22,1,.36,1);
  pointer-events:none;
}
.omnex-purchase .purchase-player-id:focus-within::after { opacity:1;transform:scaleX(1); }
.omnex-purchase .purchase-player-id-only .purchase-player-id::after { top:auto;bottom:43px; }
/* Keep focused checkout fields readable without mobile browser auto-zoom. */
@media(max-width:900px),(pointer:coarse) {
  .omnex-purchase .purchase-buyer-field input,
  .omnex-purchase .purchase-buyer-field select,
  .omnex-purchase .purchase-player-id-only .purchase-player-id input {
    font-size:16px;
    min-width:0;
    min-height:44px;
    line-height:1.4;
  }
}
@media(prefers-reduced-motion:reduce) {
  .omnex-purchase .purchase-player-id-only .purchase-player-id input,
  .omnex-purchase .purchase-player-check .purchase-buyer-field input,
  .omnex-purchase .purchase-player-check .purchase-buyer-field select,
  .omnex-purchase .purchase-player-id::after { transition:none; }
}


/* Product details remain visible in every checkout, including player top-ups. */
.omnex-purchase .purchase-summary { align-items:flex-start; }
.omnex-purchase .purchase-buyer-fields:empty { display:none; }
.omnex-purchase .purchase-artwork { flex:0 0 88px; display:grid; justify-items:center; gap:7px; }
.omnex-purchase .purchase-artwork .purchase-image { width:88px; height:88px; border:1px solid #3c3c49; }
/* Match the reference's compact inventory pill using the OMNEX accent. */
.omnex-purchase .purchase-stock { display:flex; align-items:center; flex-wrap:wrap; justify-content:center; gap:3px; width:fit-content; max-width:100%; margin:7px 0 0; padding:3px 9px; border:1px solid #713440; border-radius:999px; background:#342027; color:#ffb5bf; font-size:10px; font-weight:700; line-height:1.6; }
.omnex-purchase .purchase-stock[data-state="available"] { background:#342027; color:#ffb5bf; border-color:#713440; }
.omnex-purchase .purchase-stock-count { font-size:inherit; font-weight:800; font-variant-numeric:tabular-nums; }
.omnex-purchase .purchase-stock[data-state="pending"] { background:#292933; border-color:#464653; color:#c8c8d2; }
.omnex-purchase .purchase-stock[data-state="error"] { background:#332b22; border-color:#66513a; color:#f2cf99; }
.omnex-purchase .purchase-stock[data-state="sold-out"],
.omnex-purchase .purchase-stock[data-state="unpriced"] { background:#342027; border-color:#713440; color:#ffc1c8; }
.omnex-purchase .purchase-description { position:relative; overflow:hidden; margin:0; padding:14px 16px 14px 18px; border:1px solid #493039; border-radius:14px; background:linear-gradient(135deg,#e5263612,transparent 60%),#18181e; font-family:'Almarai',Tahoma,Arial,sans-serif; text-align:right; }
.omnex-purchase .purchase-description::before { content:''; position:absolute; inset-block:0; inset-inline-start:0; width:2px; background:linear-gradient(180deg,#ff8692,#e52636); pointer-events:none; }
.omnex-purchase .purchase-description h3 { margin:0 0 8px; color:#ff9ba7; font-family:inherit; font-size:12.5px; line-height:1.5; font-weight:800; }
.omnex-purchase .purchase-description p { margin:0; color:#ded9de; font-family:inherit; font-size:12.5px; font-weight:400; line-height:1.7; direction:rtl; text-align:right; white-space:pre-line; overflow-wrap:anywhere; unicode-bidi:normal; }
.omnex-purchase, .omnex-purchase.purchase-service { width:min(466px,calc(100% - 28px)); }
.omnex-purchase .purchase-body, .omnex-purchase.purchase-service .purchase-body { padding:20px 24px; }
@media(max-width:360px) {
  .omnex-purchase .purchase-body, .omnex-purchase.purchase-service .purchase-body { padding:16px; }
}
.omnex-purchase .purchase-close { min-width:36px; min-height:36px; }
.omnex-purchase .purchase-close:focus-visible { outline:none; box-shadow:none; }
.omnex-purchase { scrollbar-width:thin; scrollbar-color:#68606c #1c1c22; }
.omnex-purchase ::selection { background:#713440; color:#fff; }
@media(max-width:360px) {
  .omnex-purchase .purchase-artwork { flex-basis:76px; }
  .omnex-purchase .purchase-artwork .purchase-image { width:76px; height:76px; }
}

/* Player details and an Arabic server picker matching the service checkout. */
.omnex-purchase.purchase-has-server { width:min(620px,calc(100% - 28px)); }
.omnex-purchase .purchase-player-id-only .purchase-player-id { width:100%; }
.omnex-purchase .purchase-buyer-field { gap:8px; min-width:0; }
.omnex-purchase .purchase-buyer-field>span,
.omnex-purchase .purchase-buyer-field>label { font-size:12px; font-weight:700; color:#c8c8d2; }
.purchase-player-input-wrap { position:relative; min-width:0; width:100%; }
.omnex-purchase .purchase-player-input-wrap input { width:100%; padding:10px 40px 10px 12px; text-align:right; }
.omnex-purchase .purchase-player-id-only .purchase-player-input-wrap input { height:46px; min-height:46px; padding:10px 40px 10px 12px; }
.omnex-purchase .purchase-buyer-fields .purchase-user-id { width:min(100%,260px); justify-self:start; }
.omnex-purchase .purchase-amount { padding:12px; border:1px solid #464653; border-radius:12px; background:#ffffff05; }
.purchase-amount-limits { display:flex; flex-wrap:wrap; gap:6px 16px; color:#c8c8d2; font-size:12px; }
.purchase-amount-limits bdi { font-weight:700; color:#f4f4f6; }
.purchase-amount-limits small { flex-basis:100%; color:#aaaab9; font-size:inherit; }
.purchase-amount-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.omnex-purchase .purchase-amount-controls input {
  min-width:0; min-height:44px; font-variant-numeric:tabular-nums;
  transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease;
}
.omnex-purchase .purchase-amount-controls input:focus {
  outline:none; border-color:#e98493; background-color:#2d272f;
  box-shadow:0 0 0 1px #e9849330,inset 0 1px 0 #ffd6dc18;
  animation:purchase-amount-focus .42s ease-out;
}
.omnex-purchase .purchase-amount-controls input[aria-invalid="true"] { border-color:#ef7587; }
.purchase-amount-button { white-space:nowrap; }
@keyframes purchase-amount-focus { from { box-shadow:0 0 0 1px #e9849360,inset 0 1px 10px #ffd6dc25; } }
.purchase-amount-status { margin:0; color:#c8c8d2; font-size:12px; }
.purchase-amount-status[data-state="error"] { color:#ffb5bf; }
.purchase-amount-status:empty { display:none; }
@media(max-width:600px) {
  .omnex-purchase .purchase-amount-controls input { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) {
  .omnex-purchase.purchase-has-amount[open],
  .omnex-purchase.purchase-has-amount[open].is-closing,
  .omnex-purchase.purchase-has-amount[open]::backdrop,
  .omnex-purchase.purchase-has-amount[open].is-closing::backdrop,
  .purchase-has-amount .purchase-confirm:not(:disabled),
  .purchase-has-amount .purchase-confirm:not(:disabled)::after,
  .purchase-has-amount .purchase-bag,
  .omnex-purchase .purchase-amount-controls input,
  .omnex-purchase .purchase-amount-controls input:focus,
  .omnex-purchase .purchase-amount-button { animation:none; transition:none; }
  .omnex-purchase.purchase-has-amount[open],
  .omnex-purchase.purchase-has-amount[open].is-visible,
  .omnex-purchase.purchase-has-amount[open].is-closing,
  .purchase-has-amount .purchase-confirm:not(:disabled),
  .purchase-has-amount .purchase-confirm:not(:disabled):is(:hover,:active),
  .purchase-has-amount .purchase-confirm:not(:disabled):hover .purchase-bag,
  .omnex-purchase .purchase-amount-button:is(:hover,:active):not(:disabled) { transform:none; }
}
.omnex-purchase .purchase-buyer-fields .purchase-user-id input { height:40px; min-height:40px; padding:8px 38px 8px 11px; box-sizing:border-box; }
@media(max-width:600px) {
  .omnex-purchase .purchase-buyer-fields .purchase-user-id { width:100%; }
  .omnex-purchase .purchase-buyer-fields .purchase-user-id input { height:44px; min-height:44px; }
}
.purchase-player-pencil,.purchase-account-icon { position:absolute; width:17px; height:17px; inset-inline-start:14px; top:50%; transform:translateY(-50%); fill:none; stroke:currentColor; color:#aaaab9; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.purchase-account-input-wrap { position:relative; min-width:0; }
.omnex-purchase.purchase-credentials .purchase-buyer-fields { gap:12px; }
.omnex-purchase.purchase-credentials .purchase-buyer-field { width:100%; gap:6px; }
.omnex-purchase.purchase-credentials .purchase-buyer-field input:not(.purchase-server-native) {
  min-height:46px;
  border-radius:11px;
  background-image:linear-gradient(180deg,#ffffff05,transparent 65%);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.omnex-purchase.purchase-credentials :is(.purchase-account-input-wrap,.purchase-player-input-wrap) input {
  padding:10px 42px 10px 13px;
}
.omnex-purchase.purchase-credentials .purchase-buyer-field input:focus {
  outline:none;
  border-color:#cf7b8a;
  box-shadow:0 0 0 1px #cf7b8a38;
}
.purchase-credentials .purchase-buyer-field :is(.purchase-account-icon,.purchase-player-pencil) { transition:color .2s ease; }
.purchase-credentials .purchase-buyer-field:focus-within :is(.purchase-account-icon,.purchase-player-pencil) { color:#ffacb8; }
.omnex-purchase.purchase-credentials .purchase-player-id::after { content:none; }
@media(prefers-reduced-motion:reduce) {
  .omnex-purchase.purchase-credentials .purchase-buyer-field input:not(.purchase-server-native),
  .purchase-credentials .purchase-buyer-field :is(.purchase-account-icon,.purchase-player-pencil) { transition:none; }
}
.purchase-server-select { position:relative; min-width:0; }
.omnex-purchase .purchase-server-native { position:absolute; width:1px; height:1px; min-height:0; padding:0; margin:0; border:0; opacity:0; clip-path:inset(50%); pointer-events:none; }
.omnex-purchase .purchase-server-trigger { display:flex; align-items:center; gap:10px; width:100%; min-height:46px; padding:11px 14px; border:1px solid #464653; border-radius:11px; background:#14141a; color:#aaaab9; font:400 13px 'Almarai',Tahoma,Arial,sans-serif; text-align:right; cursor:pointer; transition:border-color .18s,background-color .18s; }
.purchase-server-text { flex:1; min-width:0; overflow-wrap:anywhere; }
.purchase-field-icon,.purchase-server-arrow { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.purchase-server-arrow { width:14px; height:14px; transition:transform .3s cubic-bezier(.22,1,.36,1); }
.omnex-purchase .purchase-server-trigger.has-value { color:#f4f4f6; }
.omnex-purchase .purchase-server-select.is-open .purchase-server-trigger { background:#2b252d; border-color:#bb6271; color:#ffb5bf; }
.purchase-server-select.is-open .purchase-server-arrow { transform:rotate(180deg); }
.purchase-server-menu { display:grid; grid-template-rows:0fr; opacity:0; transform:translateY(-8px); transition:grid-template-rows .32s cubic-bezier(.22,1,.36,1),opacity .24s ease-out,transform .32s cubic-bezier(.22,1,.36,1); pointer-events:none; }
.purchase-server-select.is-open .purchase-server-menu { grid-template-rows:1fr; opacity:1; transform:translateY(0); pointer-events:auto; }
.purchase-server-clip { min-height:0; overflow:hidden; }
.purchase-server-options { max-height:230px; overflow-y:auto; margin-top:6px; padding:5px; border:1px solid #464653; border-radius:12px; background:#22222c; scrollbar-width:thin; scrollbar-color:#68606c #22222c; }
.purchase-server-option { position:relative; padding:12px 14px; min-height:44px; border-radius:7px; color:#d6d6df; font:400 13px/1.7 'Almarai',Tahoma,Arial,sans-serif; text-align:right; cursor:pointer; overflow-wrap:anywhere; }
.purchase-server-option.is-active,.purchase-server-option:hover { background:#34232c; color:#ffc1c8; }
.purchase-server-option[aria-selected="true"] { background:#3d2731; color:#ffc1c8; font-weight:700; }
.omnex-purchase .purchase-server-trigger:focus-visible { outline:2px solid #bb6271; outline-offset:2px; }
.omnex-purchase .purchase-server-trigger[aria-invalid="true"] { border-color:#ff7180; }
/* The owner requests this short dropdown slide in both motion-preference modes. */

/* Mobile checkout follows the reference's edge-to-edge bottom sheet. */
@media(max-width:640px) {
  html:has(.omnex-purchase[open]) { scrollbar-gutter:auto; }
  .omnex-purchase,
  .omnex-purchase.purchase-service,
  .omnex-purchase.purchase-has-server {
    position:fixed;
    inset:auto 0 0;
    width:100%;
    max-width:100%;
    max-height:min(90dvh,calc(100dvh - var(--mobile-keyboard-inset,0px) - 12px));
    margin:0;
    border:1px solid #33333f;
    border-bottom:0;
    border-radius:20px 20px 0 0;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scroll-padding-block:36px calc(84px + env(safe-area-inset-bottom,0px));
    box-shadow:0 -12px 40px #00000040;
  }
  .omnex-purchase[open] {
    opacity:1;
    transform:translateY(100%);
    transform-origin:bottom center;
    transition:transform .32s cubic-bezier(.22,1,.36,1);
  }
  .omnex-purchase[open].is-visible { transform:translateY(0); }
  .omnex-purchase[open].is-closing { transform:translateY(100%); transition-duration:.2s; transition-timing-function:ease-in; }
  .omnex-purchase .purchase-header {
    position:sticky;
    top:0;
    z-index:3;
    justify-content:center;
    padding:0;
    min-height:28px;
    border:0;
    background:#1c1c22;
  }
  .omnex-purchase .purchase-header h2 {
    position:absolute;
    width:1px;
    height:1px;
    margin:-1px;
    padding:0;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  .omnex-purchase .purchase-close,
  .omnex-purchase .purchase-close:hover {
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    height:28px;
    min-height:28px;
    border:0;
    border-radius:0;
    padding:0;
    background:transparent;
    font-size:0;
    box-shadow:none;
  }
  .omnex-purchase .purchase-close::before { content:''; width:42px; height:4px; border-radius:999px; background:#a24957; }
  .omnex-purchase .purchase-close:hover::before { background:#d76f7f; }
  .omnex-purchase .purchase-body,
  .omnex-purchase.purchase-service .purchase-body { padding:0 16px; gap:14px; }
  .omnex-purchase .purchase-actions {
    position:sticky;
    bottom:0;
    z-index:2;
    display:grid;
    gap:8px;
    margin-inline:-16px;
    padding:9px 16px calc(10px + env(safe-area-inset-bottom,0px));
    border-top:1px solid var(--border-color,#34343e);
    background:#1c1c22;
  }
  .mobile-keyboard-open .omnex-purchase {
    bottom:var(--mobile-keyboard-inset,0px);
    scroll-padding-bottom:12px;
  }
  .mobile-keyboard-open .omnex-purchase .purchase-actions { position:static; padding-bottom:10px; }
  .omnex-purchase .purchase-summary,
  .omnex-purchase.purchase-service .purchase-summary { align-items:center; min-height:0; padding:12px; gap:12px; border-radius:16px; }
  .omnex-purchase .purchase-artwork { flex-basis:72px; }
  .omnex-purchase .purchase-artwork .purchase-image { width:72px; height:72px; border-radius:12px; }
  .omnex-purchase .purchase-identity h3 { font-size:14px; line-height:1.6; margin-bottom:4px; }
  .omnex-purchase .purchase-unit { font-size:9px; }
  .omnex-purchase .purchase-price { font-size:14px; line-height:1.7; }
  .omnex-purchase .purchase-stock { font-size:9px; padding:2px 8px; margin-top:5px; }
  .omnex-purchase .purchase-description { padding:12px 14px 12px 16px; }
  .omnex-purchase .purchase-description h3 { font-size:12px; margin-bottom:6px; }
  .omnex-purchase .purchase-description p { font-size:11.5px; line-height:1.8; }
  .omnex-purchase .purchase-divider { font-size:11px; }
  .omnex-purchase .purchase-buyer-fields { gap:16px; margin-bottom:0; }
  .omnex-purchase .purchase-buyer-field>span,
  .omnex-purchase .purchase-buyer-field>label { font-size:11px; }
  .omnex-purchase .purchase-agreement { min-height:52px; padding:12px; font-size:12px; border-radius:12px; }
  .omnex-purchase .purchase-agreement input { width:24px; height:24px; border-radius:8px; }
  .omnex-purchase .purchase-confirm { min-height:54px; padding:12px; font-size:14px; border-radius:12px; }
  .omnex-purchase .purchase-confirm strong { font-size:12px; padding:5px 8px; }
}

/* A more compact checkout on desktop; mobile keeps its bottom-sheet layout. */
@media(min-width:641px) {
  .omnex-purchase,
  .omnex-purchase.purchase-service { width:min(420px,calc(100% - 28px)); border-radius:20px; }
  .omnex-purchase:is(.purchase-has-server,.purchase-credentials) { width:min(520px,calc(100% - 28px)); }
  .omnex-purchase .purchase-header { padding:13px 18px; }
  .omnex-purchase .purchase-header h2 { font-size:17px; }
  .omnex-purchase .purchase-close { width:32px; height:32px; min-width:32px; min-height:32px; font-size:24px; border-radius:9px; }
  .omnex-purchase .purchase-body,
  .omnex-purchase.purchase-service .purchase-body { padding:18px; gap:12px; }
  .omnex-purchase .purchase-summary,
  .omnex-purchase.purchase-service .purchase-summary { min-height:0; padding:12px; gap:10px; border-radius:14px; }
  .omnex-purchase .purchase-artwork { flex-basis:72px; }
  .omnex-purchase .purchase-artwork .purchase-image { width:72px; height:72px; border-radius:11px; }
  .omnex-purchase .purchase-identity h3 { font-size:13px; margin-bottom:4px; }
  .omnex-purchase .purchase-price { font-size:15px; }
  .omnex-purchase .purchase-description { padding:12px 14px; }
  .omnex-purchase .purchase-description h3 { margin-bottom:6px; }
  .omnex-purchase .purchase-buyer-fields { gap:12px; margin-bottom:0; }
  .omnex-purchase .purchase-agreement { min-height:48px; padding:10px 12px; border-radius:12px; }
  .omnex-purchase .purchase-agreement input { width:22px; height:22px; border-radius:7px; }
  .omnex-purchase .purchase-confirm { min-height:50px; padding:10px 12px; font-size:13px; border-radius:12px; }
  .omnex-purchase .purchase-confirm strong { font-size:12px; padding:5px 8px; }
}

/* Compact gift-card and single-ID checkout on desktop only. */
@media(min-width:641px) {
  .omnex-purchase.purchase-compact:not(.purchase-has-server,.purchase-credentials) { width:min(354px,calc(100% - 28px)); border-radius:22px; }
  .omnex-purchase.purchase-compact:not(.purchase-has-server)::backdrop { backdrop-filter:blur(5px); }
  .purchase-compact .purchase-header { padding:18px 24px 14px; min-height:67px; }
  .purchase-compact .purchase-header h2 { font-size:17px; }
  .purchase-compact .purchase-close { background:#14141a; }
  .omnex-purchase.purchase-compact .purchase-body { padding:24px; gap:18px; }
  .omnex-purchase.purchase-compact .purchase-summary { position:relative; align-items:center; gap:14px; min-height:128px; padding:20px 18px; border-radius:18px; background:radial-gradient(ellipse at 90% 15%,#e5263622,transparent 75%),#25252e; }
  .purchase-compact .purchase-artwork { flex-basis:86px; padding-bottom:0; }
  .omnex-purchase.purchase-compact .purchase-artwork .purchase-image { width:86px; height:86px; padding:0; border:0; border-radius:12px; background:transparent; object-fit:cover; }
  .purchase-compact .purchase-identity { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
  .omnex-purchase.purchase-compact .purchase-identity h3 { width:100%; font-size:14px; line-height:1.5; margin:0; }
  .purchase-compact .purchase-price-line { display:flex; align-items:center; flex-wrap:wrap; gap:4px; max-width:100%; padding:4px 8px; border:1px solid #713440; border-radius:999px; background:#e5263612; }
  .purchase-compact .purchase-unit { font-size:9px; line-height:1.5; white-space:nowrap; }
  .purchase-compact .purchase-unit-full { display:none; }
  .purchase-compact .purchase-unit-short { display:inline; }
  .omnex-purchase.purchase-compact .purchase-price { font-size:13.5px; line-height:1.4; font-variant-numeric:tabular-nums; }
  .omnex-purchase.purchase-compact.purchase-simple-topup .purchase-stock[data-state="available"] { position:absolute; inset-inline-start:61px; bottom:10px; transform:translateX(50%); margin:0; max-width:110px; padding:2px 7px; font-size:9px; }
  .purchase-compact .purchase-divider { font-size:11px; gap:8px; }
  .purchase-compact .purchase-divider::before { flex:0 0 5px; height:5px; border-radius:50%; background:#e52636; box-shadow:0 0 8px #e5263640; }
  .omnex-purchase.purchase-compact .purchase-buyer-fields .purchase-buyer-field { width:100%; gap:8px; }
  .omnex-purchase.purchase-compact .purchase-buyer-fields .purchase-buyer-field input { width:100%; height:47px; min-height:47px; padding:12px 40px 12px 14px; border-radius:10px; font-size:14px; background-color:#ffffff07; }
  .omnex-purchase.purchase-compact.purchase-gift-card .purchase-stock { margin:0; font-size:9px; padding:3px 8px; }
  .purchase-compact .purchase-buyer-field>span { font-size:12px; }
  .purchase-compact .purchase-player-id-only .purchase-player-id::after { bottom:46px; }
  .omnex-purchase.purchase-compact .purchase-agreement { min-height:56px; padding:13px 14px; border-radius:14px; font-size:12px; }
  .purchase-compact .purchase-agreement input { width:24px; height:24px; border-radius:8px; }
  .omnex-purchase.purchase-compact .purchase-confirm { min-height:56px; padding:13px 10px; gap:8px; border-radius:14px; font-size:14px; }
  .omnex-purchase.purchase-compact .purchase-confirm strong { font-size:12px; padding:4px 8px; }
}
