/* EasyBOX Commerce Module v1.7.5 — compact poster cards, detail and cart UI */

.ebx170-detail-page,
.ebx170-detail-page *,
.ebx170-cart-page,
.ebx170-cart-page * {
    box-sizing: border-box;
}

/* Xbox/PC catalog uses the exact PlayStation catalog DOM and CSS classes. */

/* Xbox / PC product detail */
.ebx170-detail-page {
    width: 100%;
    min-width: 0;
}

.ebx170-detail-section {
    padding: 24px 0 42px;
}

.ebx173-detail-shell {
    width: 100%;
    min-width: 0;
}

.ebx170-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #7f9aaa;
    font-size: 13px;
}

.ebx170-breadcrumb a {
    color: #8fc8e8;
    text-decoration: none;
}

.ebx170-detail {
    display: grid;
    grid-template-columns:
        minmax(230px, 282px)
        minmax(0, 1fr)
        minmax(240px, 300px);
    gap: 24px;
    align-items: start;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 24px;
    border: 1px solid rgba(51, 196, 83, .34);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(10,31,44,.99), rgba(4,17,27,.99));
}

.ebx170-detail[data-commerce-platform="pc"] {
    border-color: rgba(151, 102, 255, .38);
}

.ebx170-detail-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #07131f;
}

.ebx170-detail-cover-backdrop {
    position: absolute;
    inset: -18px;
    z-index: 0;
    display: block;
    background-size: cover;
    background-position: center;
    filter: blur(16px) brightness(.48) saturate(.95);
    transform: scale(1.1);
    opacity: .9;
}

.ebx170-detail-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #07131f;
}

@media (max-width: 820px) {
    .ebx170-detail-cover-wrap {
        width: min(100%, 340px);
        margin-inline: auto;
    }
}

@media (max-width: 380px) {
    .ebx170-detail-cover-wrap {
        width: min(100%, 300px);
    }
}

@media (min-width: 1181px) {
    .ebx170-detail-cover-wrap {
        aspect-ratio: 1 / 1;
        border-radius: 20px;
    }

    .ebx170-detail-cover-backdrop {
        display: none;
    }
}

.ebx170-detail-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 4px 0;
}

.ebx170-detail-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ebx170-detail-labels span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(70, 184, 112, .35);
    border-radius: 999px;
    color: #b7f5cb;
    background: rgba(25, 102, 61, .2);
    font-size: 12px;
}

.ebx170-detail[data-commerce-platform="pc"] .ebx170-detail-labels span {
    border-color: rgba(171, 128, 255, .38);
    color: #eadcff;
    background: rgba(94, 58, 154, .22);
}

.ebx170-detail h1 {
    margin: 16px 0 18px;
    color: #fff;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.ebx170-detail-description {
    margin: 0 0 20px;
    color: #a8c0ce;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    /* v12: Yalnız Xbox/PC oyun detayı açıklaması — admin'in girdiği satır sonlarını (
) satır kırması; boşluk dizileri hâlen çökertilir. */
    white-space: pre-line;
}

.ebx170-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.ebx170-detail-meta-grid article {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(98, 153, 183, .17);
    border-radius: 12px;
    background: rgba(4, 20, 31, .5);
}

.ebx170-detail-meta-grid small {
    display: block;
    margin-bottom: 5px;
    color: #75a3bd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ebx170-detail-meta-grid strong {
    display: block;
    color: #fff;
    font-size: 14px;
    overflow-wrap: break-word;
}

/* Xbox / PC buy panel — right-hand column, mirrors the PS5 rental
   panel's position and box size (see game-rental-panel in
   customer-core-before-v0600rc2.css). Content differs: this is a
   sale, not a rental, so it shows price + Sepete Ekle, not packages. */
.ebx170-detail-buy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(51, 196, 83, .28);
    border-radius: 18px;
    background: rgba(7, 30, 44, .55);
}

.ebx170-detail[data-commerce-platform="pc"] .ebx170-detail-buy {
    border-color: rgba(151, 102, 255, .3);
}

.ebx170-detail-price small {
    display: block;
    margin-bottom: 6px;
    color: #84a5b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ebx170-detail-price strong {
    color: #39b7ff;
    font-size: 27px;
    white-space: nowrap;
}

.ebx170-detail-add-form {
    display: flex;
    width: 100%;
}

.ebx170-detail-add-form .btn {
    width: 100%;
    min-height: 54px;
    padding-inline: 28px;
    white-space: nowrap;
}

.ebx170-detail-promise {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(113, 164, 192, .2);
    list-style: none;
}

.ebx170-detail-promise li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #a8c0ce;
    font-size: 13px;
    line-height: 1.4;
}

.ebx170-detail-promise li i {
    flex: 0 0 auto;
    color: #32c66c;
    font-style: normal;
}

.ebx170-detail[data-commerce-platform="pc"] .ebx170-detail-promise li i {
    color: #ad82ff;
}

.ebx170-listing-info {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(85, 160, 199, .22);
    border-radius: 18px;
    background: rgba(7, 30, 44, .72);
}

.ebx173-listing-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.ebx173-listing-heading small {
    display: block;
    margin-bottom: 5px;
    color: #75a3bd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ebx173-listing-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
}

.ebx173-listing-heading > strong {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid rgba(77, 188, 121, .30);
    border-radius: 999px;
    color: #bdf4cd;
    background: rgba(30, 111, 66, .22);
    font-size: 12px;
    white-space: nowrap;
}

.ebx170-detail[data-commerce-platform="pc"] .ebx173-listing-heading > strong {
    border-color: rgba(177, 136, 255, .32);
    color: #eadcff;
    background: rgba(94, 58, 154, .22);
}

.ebx173-listing-lead {
    margin: 14px 0 0;
    color: #a8c0ce;
    font-size: 15px;
    line-height: 1.65;
}

.ebx173-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.ebx173-info-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(98, 153, 183, .17);
    border-radius: 14px;
    background: rgba(4, 20, 31, .50);
}

.ebx173-info-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 16px;
}

.ebx173-info-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ebx173-info-card li {
    position: relative;
    margin: 0;
    padding-left: 16px;
    color: #91adbd;
    font-size: 13px;
    line-height: 1.55;
}

.ebx173-info-card li::before {
    position: absolute;
    top: .56em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #32c66c;
    content: "";
}

.ebx170-detail[data-commerce-platform="pc"] .ebx173-info-card li::before {
    background: #ad82ff;
}

.ebx173-info-card.ebx173-faq-card {
    grid-column: 1 / -1;
}

.ebx173-faq-card details {
    padding: 10px 0;
    border-top: 1px solid rgba(98, 153, 183, .17);
}

.ebx173-faq-card details:first-of-type {
    border-top: none;
    padding-top: 0;
}

.ebx173-faq-card summary {
    cursor: pointer;
    color: #dcecf4;
    font-size: 14px;
    font-weight: 600;
}

.ebx173-faq-card details p {
    margin: 8px 0 0;
    color: #91adbd;
    font-size: 13px;
    line-height: 1.6;
}

/*
 * GERÇEK CİHAZ ACCEPTANCE (11 Ağustos 2026, F) — bu liste (Play
 * Anywhere "Her Cihaz İçin Yeni Bir Sipariş..." uyarısı) tarayıcı
 * varsayılan disk bullet'ını kullanıyordu; sayfadaki diğer bilgi
 * maddeleri (.ebx173-info-card li::before) yeşil nokta kullanıyor.
 * Aynı deseni (list-style:none + ::before yeşil nokta) burada da
 * uyguluyoruz — yeni renk tanımlamadık, mevcut #32c66c'yi tekrar
 * kullandık.
 */
.commerce180-notice ul {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.commerce180-notice li {
    position: relative;
    margin: 0;
    padding-left: 16px;
}

.commerce180-notice li::before {
    position: absolute;
    top: .56em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #32c66c;
    content: "";
}

/* Cart */
.ebx170-cart-page {
    width: 100%;
    min-width: 0;
    padding: 16px 18px 42px;
}

.ebx170-cart-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: 100%;
    padding: 28px 32px;
    border: 1px solid rgba(64, 137, 181, .28);
    border-radius: 22px;
    background: linear-gradient(120deg, #0b273b, #07182a);
}

.ebx170-cart-hero small {
    color: #65caff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
}

.ebx170-cart-hero h1 {
    margin: 8px 0 6px;
    font-size: 34px;
}

.ebx170-cart-hero p {
    margin: 0;
    color: #7f9eaf;
}

.ebx170-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 20px;
    align-items: start;
    width: 100%;
    margin-top: 18px;
}

.ebx170-cart-items {
    display: grid;
    gap: 14px;
    min-width: 0;
    /* Canlı teslimat panelindeki "talimatları görüntüle" CTA'sı buraya
       kaydırıyor; sabit üst bar altında kalmasın. */
    scroll-margin-top: 88px;
}

.ebx170-cart-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(150px, auto);
    gap: 16px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(51, 196, 83, .28);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(10,31,44,.99), rgba(4,17,27,.99));
}

.ebx170-cart-item[data-cart-platform="pc"] {
    border-color: rgba(151, 102, 255, .32);
}

.ebx170-cart-cover {
    display: block;
    width: 92px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: #07131f;
}

.ebx170-cart-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ebx170-cart-copy {
    min-width: 0;
}

.ebx170-cart-copy small {
    color: #73cfff;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.ebx170-cart-copy h2 {
    margin: 6px 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ebx170-cart-copy p {
    margin: 0;
    color: #8da8b8;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.ebx170-cart-price {
    display: grid;
    justify-items: end;
    gap: 6px;
    min-width: 150px;
    text-align: right;
}

.ebx170-cart-price > small {
    color: #7894a5;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
}

.ebx170-cart-price > strong {
    color: #fff;
    font-size: 17px;
    white-space: nowrap;
}

.ebx170-cart-remove {
    border: 0;
    padding: 2px 0;
    color: #ff7f88;
    background: transparent;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.ebx170-cart-summary {
    position: sticky;
    top: 18px;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(70, 137, 176, .25);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(10,31,44,.99), rgba(4,17,27,.99));
}

.ebx170-cart-summary > small {
    color: #7894a5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
}

.ebx170-cart-summary h2 {
    margin: 7px 0 18px;
    font-size: 23px;
}

.ebx170-cart-summary > div:not(.coupon2100-widget) {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-block: 1px solid rgba(121, 166, 190, .14);
}

.ebx170-cart-summary > div:not(.coupon2100-widget) strong {
    white-space: nowrap;
    text-align: right;
}

.ebx170-cart-summary .btn {
    width: 100%;
    margin-top: 16px;
}

/*
 * .coupon2100-widget'in kendi "Uygula" butonu yukarıdaki genel kural
 * yerine coupon2100-input-group'un flex boyutlandırmasını kullanmalı
 * (kart genelindeki tam genişlik CTA kuralı yalnız "Satın Al" için).
 */
.ebx170-cart-summary .coupon2100-input-group .btn {
    width: auto;
    margin-top: 0;
}

.ebx170-cart-summary p {
    margin: 13px 0 0;
    color: #819aa9;
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .ebx173-info-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/*
 * Tablet-landscape (roughly 821-1280px): the three-column desktop grid
 * (cover + content + buy panel) squeezes the content column so hard that
 * the Kaynak/Uyumluluk/Destek Süresi boxes inside it break words letter
 * by letter. Collapse to the same two-column layout the sub-980px rule
 * already uses, well before the squeeze starts.
 */
@media (max-width: 1280px) {
    .ebx170-detail {
        grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
        gap: 22px;
    }

    .ebx170-detail-buy {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .ebx170-detail {
        grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
        gap: 22px;
    }

    .ebx170-detail-buy {
        grid-column: 1 / -1;
    }

    .ebx170-cart-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ebx170-cart-summary {
        position: static;
    }
}

@media (max-width: 700px) {
    .ebx170-detail-section {
        padding-top: 16px;
    }

    .ebx170-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 16px;
        border-radius: 20px;
    }

    .ebx170-detail h1 {
        font-size: clamp(29px, 9vw, 40px);
    }

    .ebx170-detail-buy {
        grid-column: auto;
    }

    .ebx170-detail-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ebx173-listing-heading {
        flex-direction: column;
        gap: 10px;
    }

    .ebx173-listing-heading > strong {
        align-self: flex-start;
    }

    .ebx170-cart-page {
        padding: 10px 10px 34px;
    }

    .ebx170-cart-hero {
        display: grid;
        gap: 16px;
        padding: 20px;
        border-radius: 17px;
    }

    .ebx170-cart-hero > .btn {
        width: 100%;
    }

    .ebx170-cart-layout {
        gap: 14px;
    }

    .ebx170-cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 12px;
        border-radius: 16px;
    }

    .ebx170-cart-cover {
        width: 76px;
    }

    .ebx170-cart-copy h2 {
        font-size: 16px;
    }

    .ebx170-cart-price {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        padding-top: 12px;
        border-top: 1px solid rgba(121, 166, 190, .14);
        text-align: left;
    }

    .ebx170-cart-price > small {
        display: none;
    }

    .ebx170-cart-price form {
        margin-left: auto;
    }

    .ebx170-cart-summary {
        padding: 17px;
        border-radius: 16px;
    }
}

/*
 * ≤700px'te .ebx170-cart-hero{display:grid} hiçbir grid-template-columns
 * bildirmiyor; iki satır (başlık div'i + buton) tek örtük sütuna düşüyor
 * ama o sütunun genişliği "auto" — justify-content'in varsayılanı
 * (normal≈start) örtük sütunları konteynerin tamamını doldurmaya
 * ZORLAMAZ (yalnız justify-items/align-items varsayılanı stretch'tir,
 * o da öğeyi KENDİ sütununa sığdırır, sütunun kendi genişliğini
 * belirlemez). Sonuç: sütun, en geniş satırın (başlık div'i) içerik
 * genişliğine göre daralıyor; `.ebx170-cart-hero > .btn{width:100%}`
 * doğru çalışıyor ama bu daralmış sütunun %100'ü — konteynerin değil —
 * bu yüzden butonun sağında boşluk kalıyor. Aynı `minmax(0,1fr)` deseni
 * bu dosyada `.ebx170-cart-layout`/`.ebx173-info-grid` için zaten
 * kullanılıyor (satır 570, 594) — kanıtlanmış çözüm. Yalnız Sipariş
 * Özeti sayfasına (.commerce180-order-page) scoped: sepet/index.php
 * aynı .ebx170-cart-hero'yu bu sınıf olmadan kullanıyor, dokunulmuyor.
 */
@media (max-width: 700px) {
    .commerce180-order-page .ebx170-cart-hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

/*
 * Tablet dikey (701–980px, örn. iPad/iPad Pro 11" portrait): temel
 * .ebx170-cart-hero hâlâ flex-row olduğu için "Siparişlerime Dön"
 * başlığın sağında kalıyor. ≤700px zaten dikey/tam genişlik; ≥981px
 * masaüstü/tablet-yatay zaten kompakt satır istiyor — yalnız bu aralık
 * boş. Yalnız Sipariş Özeti sayfasına (.commerce180-order-page) scoped:
 * aynı .ebx170-cart-hero'yu paylaşan sepet sayfası (sepet/index.php)
 * bu sınıfı taşımadığı için etkilenmez.
 */
@media (min-width: 701px) and (max-width: 980px) and (orientation: portrait) {
    .commerce180-order-page .ebx170-cart-hero {
        display: grid;
        gap: 16px;
    }

    .commerce180-order-page .ebx170-cart-hero > .btn {
        justify-self: start;
    }
}

@media (max-width: 390px) {
    .ebx170-listing-info {
        padding: 16px;
    }

    .ebx173-info-card {
        padding: 14px;
    }

    .ebx170-cart-item {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 10px;
    }

    .ebx170-cart-cover {
        width: 68px;
    }
}

/* Catalog grid layout: no override here — inherits the shared
   body.play39-body/.store-body .catalog-grid rule so Xbox/PC columns
   match PS5 exactly (see customer-core-before-v0600rc2.css). */

/* ── v1.8.0.0 · Sepet onayı, sipariş özeti ve sipariş listesi ─────────
   Yeni dosya açılmaz; Xbox/PC satın alma akışının tüm stilleri bu
   modülün içinde kalır. */

.commerce180-flash {
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px solid rgba(70, 137, 176, .3);
    border-radius: 12px;
    background: rgba(9, 28, 41, .92);
    color: #d7e6ef;
    font-size: 13px;
    line-height: 1.5;
}

.commerce180-flash.error {
    border-color: rgba(214, 92, 92, .45);
    background: rgba(48, 16, 18, .78);
    color: #f2cfcf;
}

.commerce180-flash.success {
    border-color: rgba(86, 186, 132, .42);
    background: rgba(11, 40, 28, .78);
    color: #c7ecd7;
}

.commerce180-cart-item-blocked {
    border-color: rgba(214, 92, 92, .42);
}

.commerce180-cart-warning {
    display: block;
    margin-top: 8px;
    color: #e59a9a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.ebx170-cart-summary p.commerce180-cart-warning {
    color: #e59a9a;
    font-size: 12px;
}

.commerce180-purchase-form {
    margin: 0;
}

.commerce180-purchase-form .btn {
    width: 100%;
    margin-top: 16px;
}

.commerce180-delivery-note {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(121, 166, 190, .14);
}

.commerce180-summary-link {
    display: inline-block;
    margin-top: 12px;
    color: #7fb6d8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.commerce180-summary-link:hover {
    text-decoration: underline;
}

.commerce180-notice {
    margin: 0 0 20px;
    padding: 15px 18px;
    border: 1px solid rgba(70, 137, 176, .3);
    border-left-width: 3px;
    border-radius: 12px;
    background: rgba(9, 28, 41, .9);
    color: #cfe1eb;
    font-size: 13px;
    line-height: 1.6;
}

.commerce180-notice-done {
    border-color: rgba(86, 186, 132, .42);
    background: rgba(11, 40, 28, .7);
    color: #c7ecd7;
}

.commerce180-badge {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid rgba(121, 166, 190, .28);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.commerce180-badge-xbox {
    border-color: rgba(96, 190, 120, .45);
    color: #8fe0a8;
}

.commerce180-badge-pc {
    border-color: rgba(108, 156, 226, .45);
    color: #a3c4f5;
}

/* PS5 rozeti — admin canlı teslimat panelindeki (`admin480-platform-ps5`) aynı mavi aile. */
.commerce180-badge-ps5 {
    border-color: rgba(0, 112, 209, .45);
    color: #66b6ff;
}

.commerce180-orders {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.commerce180-orders-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 23px;
}
@media(max-width:850px){
    .commerce180-orders-head {
        flex-direction: column;
    }
}

.commerce180-ps5-head {
    margin: 6px 0 14px;
}

.commerce180-orders-head small {
    color: #7894a5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
}

.commerce180-orders-head h2 {
    margin: 6px 0 0;
    font-size: 21px;
}

.commerce180-orders-head p {
    margin: 0;
    color: #819aa9;
    font-size: 12px;
}

/*
 * PS5 kiralama kartıyla (`.customer-reservation-card`) aynı iskelet:
 * sabit genişlikte tam yükseklik kapak solda, sağda tek akan içerik
 * sütunu (başlık → bilgi kutuları → durum şeridi → aksiyon satırı).
 * PS5'in gerçek genişlik/kırılım değerleriyle birebir eşleşir.
 */
/*
 * PS5 kiralama kartıyla (`.customer-reservation-card`, bkz.
 * customer-core-before-v0600rc2.css) BİREBİR aynı geometri: sıfır grid
 * `gap`, sıfır dış `padding`. Kapak kartın sol/üst/alt kenarına sıfır
 * oturur; yalnız dış kartın `border-radius` + `overflow:hidden`'i sol
 * köşeleri kırpar (kapağın kendi border-radius'u yok — PS5'te de yok).
 * İçerik boşluğu yalnız `.commerce180-order-content{padding:18px}`
 * üzerinden gelir — PS5'in aynı 18px değeri.
 */
.commerce180-order-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    border: 1px solid var(--line, rgba(70, 137, 176, .35));
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(#0d2033, #081522);
    box-shadow: 0 18px 50px #0005;
}

.commerce180-order-cover {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 235px;
    background: linear-gradient(135deg, #153b60, #091723);
    color: #6fa9c9;
    font-size: 56px;
    font-weight: 900;
}

.commerce180-order-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commerce180-order-cover-count {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(4, 17, 27, .88);
    border: 1px solid rgba(121, 166, 190, .4);
    color: #dff0fa;
    font-size: 10px;
    font-weight: 850;
}

.commerce180-order-content {
    min-width: 0;
    padding: 18px;
}

.commerce180-order-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 23px;
}
@media(max-width:850px){
    .commerce180-order-header {
        flex-direction: column;
    }
}

.commerce180-order-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.commerce180-order-header h2 {
    margin: 5px 0 10px;
    overflow-wrap: anywhere;
}

.commerce180-order-banner {
    display: grid;
    gap: 5px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(63, 190, 255, .32);
    border-radius: 14px;
    background: rgba(6, 35, 54, .72);
}

.commerce180-order-banner strong {
    font-size: 17px;
    line-height: 1.25;
    color: #f5fbff;
}

.commerce180-order-banner p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #c8e4f2;
}

.commerce180-order-banner--completed {
    border-color: rgba(52, 211, 153, .38);
    background: rgba(8, 55, 41, .48);
}

.commerce180-order-banner--completed strong {
    color: #85f4bd;
}

.commerce180-order-banner--cancelled {
    border-color: rgba(248, 113, 113, .38);
    background: rgba(88, 23, 31, .42);
}

.commerce180-order-banner--cancelled strong {
    color: #ffacb5;
}

/*
 * Taban (küçük ekran/no-JS) düzeni. Gerçek boy/kırılım standardı — PS5
 * kart butonlarıyla piksel eşleşmesi için — customer-core-after-v0600rc2.css
 * içinde body[data-customer-page="reservations"] kapsamlı kurallarla
 * (!important) sağlanır; burada aynı selector'lar tekrar edilmez.
 */
.commerce180-order-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/*
 * PS5'in gerçek 3 kırılımı (customer-core-after-v0600rc2.css,
 * body.ebx-page-reservations kapsamındaki kademeler): 820 / 560 / 360.
 * Bu sayfaya özel 1280/1024 gibi commerce'e has ara kademeler kaldırıldı.
 */
@media (max-width: 820px) {
    .commerce180-order-row {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .commerce180-order-cover {
        min-height: 124px;
        font-size: 30px;
    }

    .commerce180-order-content {
        padding: 14px;
    }
}

@media (max-width: 560px) {
    .commerce180-order-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .commerce180-order-cover {
        min-height: 98px;
        font-size: 24px;
    }

    .commerce180-order-content {
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .commerce180-order-row {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .commerce180-order-cover {
        min-height: 84px;
    }

    .commerce180-order-content {
        padding: 11px;
    }
}

/*
 * Görev 36 — birleşik Siparişlerim: arama/filtre çubuğu ve platform
 * bölümleri (details/summary). Yalnız bu sayfada kullanılır.
 */
.ebx36-filter-bar {
    display: grid;
    grid-template-columns: minmax(200px, 1.6fr) repeat(2, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin: 18px 0 26px;
    padding: 16px 18px;
    border: 1px solid rgba(70, 137, 176, .25);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(10,31,44,.9), rgba(4,17,27,.9));
}

.ebx36-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ebx36-filter-field label {
    color: #7894a5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ebx36-filter-field input,
.ebx36-filter-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(121, 166, 190, .3);
    border-radius: 10px;
    background: #07131f;
    color: #eef6fb;
    font-size: 13px;
}

.ebx36-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 1024px) {
    .ebx36-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .ebx36-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .ebx36-filter-bar {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .ebx36-filter-actions {
        flex-wrap: wrap;
    }

    .ebx36-filter-actions .btn {
        flex: 1;
        text-align: center;
    }
}

.ebx36-unified-section {
    margin-bottom: 30px;
}

.ebx36-platform-sections {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.ebx36-platform-section {
    border: 1px solid rgba(70, 137, 176, .25);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(10,31,44,.85), rgba(4,17,27,.85));
    overflow: hidden;
}

.ebx36-platform-section-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 800;
    color: #eef6fb;
    min-height: 24px;
}

.ebx36-platform-section-summary::-webkit-details-marker {
    display: none;
}

.ebx36-platform-section-summary::before {
    content: '▸';
    margin-right: 10px;
    color: #6fa9c9;
    transition: transform .15s ease;
}

details[open] > .ebx36-platform-section-summary::before {
    transform: rotate(90deg);
}

.ebx36-platform-section-count {
    color: #7894a5;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    white-space: nowrap;
}

.ebx36-platform-section-body {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
}

.ebx36-platform-empty {
    margin: 0;
    padding: 14px 0 4px;
    color: #7894a5;
    font-size: 12px;
}

@media (max-width: 560px) {
    .ebx36-platform-section-summary {
        padding: 14px;
        font-size: 14px;
    }

    .ebx36-platform-section-body {
        padding: 0 14px 14px;
    }
}

/*
 * Sipariş özetindeki canlı teslimat kartı. PS5'teki teslimat kartıyla aynı
 * düğme ve aynı adım anlatımını kullanır; yalnız metinler farklıdır.
 */
/*
 * grid-template-columns hiç tanımlı değildi; tek örtük sütun içeriğe göre
 * daralıyor, konteynerin tam genişliğini doldurmuyordu (aynı kanıtlanmış
 * kök neden — bkz. yukarıdaki `.ebx170-cart-hero` yorumu, satır ~707).
 * Sonuç: tablet
 * dikeyde `.commerce180-live-head` ve `.commerce180-live-actions`
 * (Teslimat Geçmişini Gör düğmesi) kartın tam genişliğinde değil, farklı
 * genişlikte iki örtük satırda, boş bir yan kolon bırakarak render
 * ediliyordu. `minmax(0,1fr)` tek sütunu her zaman kartın tam genişliğine
 * kilitler.
 */
.commerce180-live-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid rgba(16, 165, 91, .28);
    border-radius: 18px;
    background: rgba(9, 32, 22, .35);
}

/*
 * Tek çocuk (başlık metin bloğu) var, ikinci bir sağ öğe hiç eklenmedi.
 * Önceki `display:flex;justify-content:flex-start` denemesi gerçek
 * iPad Pro 11" ve Galaxy Tab S9 dikey testinde hâlâ metni sağa/farklı
 * bir eksene kaydırıyordu — tek çocuklu bir flex satırında
 * justify-content'in "deterministik" olması gerçek cihazda
 * doğrulanamadı. Tek çocuk zaten blok seviyeli bir `<div>`; flex'i
 * tamamen kaldırmak (düz blok akışı) tarayıcıdan bağımsız, belirsizliğe
 * yer bırakmayan tek çözüm — blok çocuk zaten üst öğesinin tam
 * genişliğini kaplar ve soldan başlar.
 */
.commerce180-live-head {
    display: block;
    width: 100%;
    margin-bottom: 23px;
}

.commerce180-live-head > div {
    width: 100%;
}

.commerce180-live-head small {
    display: block;
    color: #5fd99a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.commerce180-live-head h2 {
    margin: 4px 0 0;
    font-size: 18px;
}

.commerce180-live-head p {
    margin: 6px 0 0;
    max-width: 46ch;
    color: #8aa6b6;
    font-size: 12px;
    line-height: 1.6;
}



.commerce180-live-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 12px;
}

@media (max-width: 720px) {
    .commerce180-live-panel {
        padding: 16px;
    }

    .commerce180-live-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ---------------------------------------------------------------------
   İade ve iptal (görev 23)

   Ayrı bir dosya AÇILMIYOR: Xbox/PC müşteri modülünün tamamı bu dosyada
   ve bir alan = bir dosya kuralı geçerli (CLAUDE.md §6.1).
   --------------------------------------------------------------------- */

.commerce230-cancel-form {
    margin: 16px 0 0;
    padding: 14px;
    border: 1px solid rgba(255, 122, 122, 0.28);
    border-radius: 12px;
    background: rgba(255, 92, 92, 0.06);
}

.commerce230-cancel-form p {
    margin: 0 0 10px;
    color: #8aa6b6;
    font-size: 12px;
    line-height: 1.6;
}

.commerce230-confirm {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    color: #cfe0ea;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.commerce230-confirm input {
    margin-top: 2px;
    flex: none;
}

.commerce230-confirm {
    min-width: 0;
}

.commerce230-confirm input[type="checkbox"] {
    appearance: auto;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    justify-self: start;
    align-self: start;
    box-sizing: border-box;
}

.commerce230-confirm > span {
    display: block;
    min-width: 0;
    width: auto;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
}

.commerce180-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1px solid rgba(66, 214, 154, .48);
    border-radius: 999px;
    background: rgba(18, 104, 67, .2);
    color: #8ff0ba;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .02em;
    white-space: nowrap;
}

.commerce180-live-badge > i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #42d69a;
    box-shadow: 0 0 0 4px rgba(66, 214, 154, .12);
}

.entitlement-confirm-page {
    width: 100%;
    min-width: 0;
}

.entitlement-confirm-card {
    max-width: 720px;
    margin-inline: auto;
}

.entitlement-confirm-heading,
.entitlement-confirm-summary {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.entitlement-confirm-heading h1,
.entitlement-confirm-summary p {
    margin: 0;
}

.entitlement-confirm-heading .commerce180-badge {
    justify-self: start;
}

.entitlement-confirm-summary {
    margin: 22px 0;
}

.entitlement-confirm-summary p {
    padding: 12px 14px;
    border: 1px solid rgba(120, 160, 190, .22);
    border-radius: 12px;
    background: rgba(10, 26, 40, .55);
}

.entitlement-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.entitlement-confirm-actions form {
    margin: 0;
}

@media (max-width: 560px) {
    .commerce230-cancel-form {
        display: grid;
        gap: 12px;
        min-width: 0;
        padding: 12px;
    }

    .commerce230-cancel-form p,
    .commerce230-confirm {
        width: 100%;
        min-width: 0;
        margin: 0;
        overflow-wrap: normal;
        word-break: normal;
    }

    .commerce230-cancel-form .btn {
        width: 100%;
        white-space: normal;
    }

    .entitlement-confirm-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .entitlement-confirm-actions .btn,
    .entitlement-confirm-actions form {
        width: 100%;
    }
}

.commerce230-refunds {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(120, 160, 190, 0.22);
    border-radius: 16px;
    background: rgba(10, 26, 40, 0.55);
}

.commerce230-refunds h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

/* Dar ekranda tablo kendi içinde kayar; sayfa yatay kaymaz. */
.commerce230-refund-table {
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.commerce230-refund-table th,
.commerce230-refund-table td {
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid rgba(120, 160, 190, 0.16);
}

.commerce230-refund-table th {
    color: #8aa6b6;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.commerce230-refund-table td small {
    display: block;
    margin-top: 3px;
    color: #8aa6b6;
    white-space: normal;
}

.commerce230-refund-table tr:last-child td {
    border-bottom: 0;
}

/*
 * Dar mobilde 5 kolon (Ürün/Sebep/Tutar/Durum/Tarih) yan yana sığmıyor;
 * nowrap + yatay kaydırma yerine her satır etiket:değer kartına döner.
 * Masaüstü/tablet tablo görünümüne dokunulmaz.
 */
@media (max-width: 560px) {
    .commerce230-refund-table,
    .commerce230-refund-table tbody,
    .commerce230-refund-table tr,
    .commerce230-refund-table td {
        display: block;
        width: 100%;
    }

    .commerce230-refund-table {
        overflow-x: hidden;
    }

    .commerce230-refund-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        border: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .commerce230-refund-table tbody tr {
        padding: 12px 0;
        border-bottom: 1px solid rgba(120, 160, 190, 0.16);
    }

    .commerce230-refund-table tbody tr:last-child {
        border-bottom: 0;
    }

    .commerce230-refund-table td {
        padding: 4px 0;
        border-bottom: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .commerce230-refund-table td::before {
        display: block;
        margin-bottom: 2px;
        color: #8aa6b6;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .commerce230-refund-table td:nth-child(1)::before {
        content: "Ürün";
    }

    .commerce230-refund-table td:nth-child(2)::before {
        content: "Sebep";
    }

    .commerce230-refund-table td:nth-child(3)::before {
        content: "Tutar";
    }

    .commerce230-refund-table td:nth-child(4)::before {
        content: "Durum";
    }

    .commerce230-refund-table td:nth-child(5)::before {
        content: "Tarih";
    }
}

.commerce230-item-refund {
    margin: 8px 0 0;
    color: #cfe0ea;
    font-size: 12px;
    line-height: 1.6;
}

.commerce230-item-refund small {
    display: block;
    margin-top: 2px;
    color: #8aa6b6;
}

.commerce230-review-link {
    margin: 0;
}

/* ── Kurulum rehberi modalı (native <dialog>, rental43-confirm-dialog ile
     aynı yaklaşım) ───────────────────────────────────────────────────── */

.commerce491-guide-dialog {
    width: min(560px, calc(100vw - 30px));
    max-width: 560px;
    max-height: min(80vh, 720px);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(95, 217, 154, .35);
    border-radius: 16px;
    color: #eef7fb;
    background: linear-gradient(145deg, #0a263b, #061725 68%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.commerce491-guide-dialog::backdrop {
    background: rgba(0, 7, 13, .78);
    backdrop-filter: blur(6px);
}

.commerce491-guide-dialog-card {
    display: flex;
    flex-direction: column;
    max-height: min(80vh, 720px);
}

.commerce491-guide-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 23px;
}
@media(max-width:850px){
    .commerce491-guide-dialog-header {
        flex-direction: column;
    }
}

.commerce491-guide-dialog-header h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

.commerce491-guide-dialog-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 9px;
    background: rgba(255, 255, 255, .05);
    color: #cfe0ea;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.commerce491-guide-dialog-close:hover {
    border-color: rgba(255, 255, 255, .32);
    color: #fff;
}

.commerce491-guide-dialog-body {
    padding: 18px 22px 22px;
    overflow-y: auto;
}

.commerce491-guide-dialog-body .ebx492-admin-guide {
    margin: 0 0 14px;
}

.commerce491-guide-dialog-body .ebx492-admin-guide:last-child {
    margin: 0;
}

@media (max-width: 560px) {
    .commerce491-guide-dialog-header {
        padding: 16px 16px 12px;
    }

    .commerce491-guide-dialog-body {
        padding: 14px 16px 18px;
    }
}

/* ── Sepete eklendi bildirimi (toast) ─────────────────────────────── */

.ebx182-cart-toasts {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
}

.ebx182-cart-toast {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid rgba(70, 137, 176, .3);
    border-radius: 12px;
    background: rgba(9, 28, 41, .96);
    color: #d7e6ef;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: auto;
}

.ebx182-cart-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.ebx182-cart-toast strong {
    display: block;
    color: #f2f8fc;
}

.ebx182-cart-toast small {
    display: block;
    margin-top: 4px;
}

.ebx182-cart-toast a {
    color: #7cc4f5;
    font-weight: 700;
    text-decoration: underline;
}

.ebx182-cart-toast.error {
    border-color: rgba(214, 92, 92, .45);
    background: rgba(48, 16, 18, .94);
    color: #f2cfcf;
}

.ebx182-cart-toast.error strong {
    color: #f8dede;
}

.ebx182-cart-toast button {
    border: 0;
    background: transparent;
    color: #9db3c6;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}

.ebx182-cart-toast button:hover,
.ebx182-cart-toast button:focus-visible {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .ebx182-cart-toast {
        transition: none;
    }
}

@media (max-width: 480px) {
    .ebx182-cart-toasts {
        right: 10px;
        left: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        width: auto;
    }
}
