/* ==========================================================================
   Oyunmarkt — Sepet, sepet çekmecesi, Ödeme, Havale ve Sipariş (demo port).
   Görünüm demo işaretlemesindeki satır içi stillerden gelir; burada yalnızca
   satır içi stilin ifade edemediği kurallar var: gizleme, karanlık mod
   tamamlayıcıları, odak ve 390px düzeltmeleri.
   ========================================================================== */

/* Satır içi display değerleri [hidden] özniteliğini ezmesin. */
#om-cart [hidden], [data-om-cart-page] [hidden], [data-om-checkout] [hidden], [data-om-order] [hidden] { display: none !important; }

/* Çekmece köşeleri ve kaydırma: demo kökü .sharp, çekmece de aynı kök altında. */
#om-cart.sharp *:not(.dot) { border-radius: 0 !important; }

/* Demo kökünün metin ayarları ve eski genel kuralların (style.css) etkisizleştirilmesi. */
:is(section[data-om-cart-page], section[data-om-suggestions], section[data-om-checkout], section[data-om-order], #om-cart) { font-size: 16px; line-height: 1.5; letter-spacing: -0.005em; }
:is(section[data-om-cart-page], section[data-om-suggestions], section[data-om-checkout], section[data-om-order], #om-cart) :is(h1, h2) { color: inherit; }
:is(section[data-om-cart-page], section[data-om-checkout], section[data-om-order]) input:not([type="radio"], [type="file"]) { min-height: 0; max-width: none; box-shadow: none; }

/* Sipariş detayı: hesap sayfasının kabuğu yok; WooCommerce sarmalayıcıları tam genişlikte. */
.om-order-detail .wp-block-post-content, .om-order-detail .woocommerce, .om-order-detail .om-member-content--full { max-width: none; margin: 0; padding: 0; }
section[data-om-order] ol > li + li { margin-top: 0; }

/* Karanlık mod: demo bileşeni bu değerleri JS ile değiştiriyordu (demo.css'te kuralı yok). */
.theme-dark .lt [data-om-line="wait"] { background: rgb(42, 42, 46) !important; }
.theme-dark .lt [data-om-box="off"] { box-shadow: inset 0 0 0 1.5px #4A4A4E !important; }
.theme-dark .lt [data-om-step="wait"] { color: #8E8E93 !important; }
.theme-dark .lt [data-om-bg="white"] { background-color: #FFFFFF !important; color: #111111 !important; }

/* Odak halkası: düğmeler satır içi stilde, yalnızca klavye odağında görünür. */
#om-cart :is(a, button):focus-visible, [data-om-cart-page] :is(a, button):focus-visible, [data-om-checkout] :is(a, button):focus-visible, [data-om-order] :is(a, button, label):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
[data-om-checkout] input:focus-visible { outline: none; }

/* Adet düğmeleri: devre dışı halde imleç. */
#om-cart button:disabled, [data-om-cart-page] button:disabled, [data-om-checkout] button:disabled { cursor: not-allowed; }

/* Dekont yükleme alanı (gerçek dosya girişi görünmez, etiket tıklanır). */
[data-om-order] .drop input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-om-order] .drop.is-over { border-color: #111111 !important; background: #FAFAF9 !important; }
.theme-dark [data-om-order] .drop.is-over { border-color: #F2F2F2 !important; background: #18181B !important; }

/* 390px: the demo's 12-column grid keeps 11 column gaps (528px+) when its children stack, which
   pushed the page to 544px. Stacked, the grid needs one column; nothing else changes. */
@media (max-width: 900px) {
    :is([data-om-cart-page], [data-om-checkout], [data-om-order]) .g12 { grid-template-columns: minmax(0px, 1fr) !important; }
}

/* Paylaşılan eski sınıflar: hesap listesi (inc/account.php) ve blog kopyalama düğmesi hâlâ kullanıyor. */
.om-order-thumb { flex: none; width: 44px; height: 44px; object-fit: cover; background: var(--om-soft); }
.om-order-thumb--empty { display: grid; place-items: center; color: var(--om-muted); }
.om-order-thumb--empty .om-icon { width: 20px; height: 20px; }
.om-copy { position: relative; flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 0; background: rgb(255 255 255 / .1); color: #fff; font-size: 14px; font-weight: 500; transition: background .2s ease; }
.om-copy:hover { background: rgb(255 255 255 / .18); }
.om-copy > span { display: inline-flex; align-items: center; gap: 8px; }
.om-copy .om-icon { width: 15px; height: 15px; }
.om-copy__done { display: none !important; color: #7ee2a8; }
.om-copy.is-copied .om-copy__idle { display: none; }
.om-copy.is-copied .om-copy__done { display: inline-flex !important; }
