/* Device selection: restrained graphite, ivory and antique gold. */
html.device-picker-open { overflow: hidden; scrollbar-gutter: stable; }
.device-picker {
  --picker-top: var(--app-safe-top,0px);
  --picker-right: var(--app-safe-right,0px);
  --picker-bottom: var(--app-safe-bottom,0px);
  --picker-left: var(--app-safe-left,0px);
  --picker-max-height: calc(100dvh - var(--picker-top) - var(--picker-bottom) - 28px);
  --picker-duration: 240ms;
  position: fixed; inset: var(--picker-top) var(--picker-right) var(--picker-bottom) var(--picker-left); margin: auto;
  box-sizing: border-box; width: min(940px,calc(100% - var(--picker-left) - var(--picker-right) - 28px));
  max-width: none; max-height: var(--picker-max-height);
  border: 1px solid #8d78575e; border-radius: 20px; padding: 0; overflow: hidden;
  color: #f1eade; background: #181411; box-shadow: 0 28px 90px #0007;
  font-family: Inter,Arial,sans-serif;
  opacity: 0; transition: opacity var(--picker-duration) ease;
}
.device-picker.is-visible { opacity: 1; }
.device-picker[open] { display: flex; flex-direction: column; }
.device-picker-bar { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 8px 14px 4px 34px; }
.device-picker-bar:focus { outline: none; }
.device-picker-bar .device-overline { margin: 0; }
.device-picker-scroll { min-height: 0; padding: 0 34px 34px; overflow-y: auto; overscroll-behavior: contain; }
.device-picker::backdrop { background: #08060400; transition: background-color var(--picker-duration,240ms) ease; }
.device-picker.is-visible::backdrop { background: #080604bd; }
.device-picker h2 { font: 500 clamp(32px,4vw,48px)/1.08 'Cormorant Garamond',Georgia,serif; margin: 10px 0 12px; color: #f1eade; }
.device-picker-intro { color: #b9ad9e; font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
.device-close { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid #8d785766; border-radius: 50%; background: #181411; color: #d2c5af; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 160ms ease, border-color 160ms ease; }
@media (hover:hover) { .device-close:hover { background: #31251f; border-color: #b39c75; } }
.device-close:active { background: #3b2c23; border-color: #b39c75; }
.device-overline { font: 600 10px/1.5 Inter,Arial,sans-serif; letter-spacing: .16em; color: #bea36e; margin: 0 0 10px; }
.device-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.device-card { box-sizing: border-box; padding: 0 24px 24px; background: #f0ebe2; border: 1px solid #d2c7b7; border-radius: 14px; color: #27211c; display: flex; flex-direction: column; text-align: left; color-scheme: light; overflow: hidden; }
.device-card--jet { background: #f0ebe2; border-color: #d2c7b7; }
.device-card-media { aspect-ratio: 8 / 5; margin: 0 -24px 22px; overflow: hidden; background: #dedbd3; border-bottom: 1px solid #cfc4b35c; }
.device-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.device-card .device-overline { color: #80683f; font-size: 9px; }
.device-card--jet .device-overline { color: #793f47; }
.device-card h3 { font: 500 clamp(26px,3.2vw,34px)/1.13 'Cormorant Garamond',Georgia,serif; margin: 0 0 13px; color: #27211c; }
.device-card > p:not(.device-overline) { font: 400 13px/1.8 Inter,Arial,sans-serif; color: #62574c; flex: 1; margin: 0 0 23px; }
.device-price { font: 500 26px/1.3 Inter,Arial,sans-serif; color: #2e251c; }
.device-card small { font: 400 11px/1.7 Inter,Arial,sans-serif; color: #796a57; margin: 7px 0 19px; }
.device-buy { display: block; text-align: center; text-decoration: none; border: 1px solid #b69b68; border-radius: 8px; background: #bea16c; color: #21170e; padding: 13px 10px; font: 600 12px/1.4 Inter,Arial,sans-serif; transition: background-color 160ms ease, border-color 160ms ease; }
.device-buy:hover { background: #caaf7c; border-color: #a78b58; }
.device-details { align-self: center; color: #673c42; font: 400 11px/1.5 Inter,Arial,sans-serif; margin-top: 15px; text-underline-offset: 4px; }
.device-details:hover { text-decoration: underline; }
.device-buy:focus-visible,.device-details:focus-visible,.device-close:focus-visible { outline: 2px solid #ae7f34; outline-offset: 4px; }
@media (max-width:620px) {
  .device-picker { margin-block: 14px auto; }
  .device-picker-bar { padding-left: 18px; }
  .device-picker-scroll { padding: 0 18px 18px; }
  .device-cards { grid-template-columns: 1fr; gap: 16px; }
  .device-card { padding: 0 22px 22px; }
  .device-card-media { margin: 0 -22px 20px; }
}
@media (prefers-reduced-motion:reduce) {
  .device-picker,.device-picker::backdrop,.device-close,.device-buy { transition: none; }
}

/* Keep the new checkout within the same palette; legacy purchases keep their shell. */
body:has(.device-sales-shop) { color-scheme: dark; background: #0c0b0a; color: #f1eade; --muted: #b7a89d; }
body:has(.device-sales-shop) .service-brand { color: #e2c58d; }
body:has(.device-sales-shop) :is(.service-help,.service-footer,.flow-note) { color: #b7a89d; }
.device-sales-shop .flow-card { background: #171211; border-color: #9b7e535e; box-shadow: none; }
.device-sales-shop > .shop-hero + .shop-hero { margin-block-start: clamp(20px,4vw,32px); }
.device-sales-shop :is(.shop-nav a,.shop-muted,.shop-price p,.shop-footer-note,.shop-steps,.shop-address-hint) { color: #bcada2; }
.device-sales-shop :is(.eyebrow,.flow-link,.shop-field a,.shop-check a,#shopLegalNote a) { color: #c4a66e; }
.device-sales-shop .shop-field :is(input,select,textarea) { background: #100d0c; color: #f1eade; border-color: #8a71505c; }
.device-sales-shop .shop-field input::placeholder,.device-sales-shop .shop-field textarea::placeholder { color: #938179; }
.device-sales-shop .shop-field small { color: #ac9b8e; }
.device-sales-shop .shop-option { border-color: #9b7e535e; background: #191211; }
.device-sales-shop .shop-option:has(input:checked) { background: #35141d; border-color: #c4a66e; }
.device-sales-shop .shop-option small { color: #c6b6aa; }
.device-sales-shop .shop-option.is-unavailable { background: #13100e; border-color: #514034; color: #9e8c80; }
.device-sales-shop input { accent-color: #c4a66e; }
.device-sales-shop .shop-price { background: #251217; border-color: #9b7e535e; }
.device-sales-shop .shop-badge { background: #48212a; color: #e4c995; }
.device-sales-shop .shop-btn { background: #211715; border-color: #a58a5d88; color: #e8d9c0; }
.device-sales-shop .shop-btn:hover { background: #382026; }
.device-sales-shop .shop-btn.primary { background: #c4a66e; border-color: #c4a66e; color: #18110c; }
.device-sales-shop .shop-btn.primary:hover { background: #d3b781; }
.device-sales-shop :is(.shop-order,.shop-receipt li) { border-color: #9b7e535e; }
.device-sales-shop .shop-selected { background: #30151c; color: #eadfce; }
.device-sales-shop :is(.shop-warning,.shop-error) { background: #401a23; border-color: #a9666d; color: #f0d8ce; }
.device-sales-shop .shop-success { background: #32271a; color: #ead5a8; }
.device-sales-shop .shop-status { color: #c4a66e; }
.device-sales-shop .shop-spinner { border-color: #574130; border-top-color: #d2b47a; }
