/* Pinguru telefon görünümü (m-odeme) — yalnız PINGURU_MOBILE_MEDIA (max-width: 759.98px) altında yüklenir; masaüstünü etkilemez. */
/* Sepet, ödeme ve ödeme tamamlanmadı (G2, 22 Kas 2026): kısa başlık, ince adım çubuğu, kompakt kartlar,
   ödeme düğmesi/çubuğu hep ekranda, ince footer. Ödeme mantığına dokunulmaz; yalnız görünüm ve sıra. */

/* ── Ortak: sayfa başı, adım çubuğu ───────────────────────── */
.woo-page--flow { padding-block: 10px 28px; }
.woo-page--flow .crumbs { font-size: 13px; }
.woo-page--flow .crumbs ol { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.woo-page--flow .crumbs li { flex-shrink: 0; }
.woo-page--flow .crumbs li:last-child { flex-shrink: 1; min-width: 0; }
.woo-page--flow .crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.woo-page__head { margin-top: 4px; gap: 8px; }
.woo-page__h1 { font-size: 22px; }
.woo-page__count { padding: 3px 10px; font-size: 12px; }
/* Sepet: "Alışverişe devam et" kırıntı + logo varken gereksiz; ödeme: SSL hapı alttaki güven satırında zaten var. */
.woo-page__back, .woo-page__secure { display: none; }
.co-steps { margin: 10px 0 14px; flex-wrap: nowrap; gap: 6px; }
.co-steps__item { gap: 6px; min-width: 0; }
.co-steps__dot { width: 24px; height: 24px; flex-shrink: 0; }
.co-steps__dot .icon { width: 12px; height: 12px; }
.co-steps__label { font-size: 12px; white-space: nowrap; }
.co-steps__line { flex: 1 1 12px; min-width: 8px; }

/* Ortak kartlar */
.co-card { padding: 14px; border-radius: 16px; }
.co-card--summary { padding: 16px; border-radius: 18px; }
.co-card__title { font-size: 17px; }
.co-sum { margin-top: 12px; gap: 10px; }
.co-total { margin-top: 12px; padding-top: 12px; }
.co-total strong { font-size: 26px; }
.co-pay { margin-top: 14px; height: 52px; font-size: 14px; }
.co-trust { margin-top: 10px; gap: 4px 12px; }
.co-trust li { font-size: 12px; }
.co-reward-note { font-size: 12px; }
.co-reward-hint { font-size: 12.5px; }
.co-rewards { margin-top: 12px; }
.co-cashback { margin-top: 12px; padding: 10px 12px; font-size: 13px; }

/* Sabit alt çubuk (ödeme ve sepet): etiket 12 px. */
.co-dock { gap: 10px; padding-block: 8px calc(8px + env(safe-area-inset-bottom)); }
.co-dock__label { font-size: 12px; }
.co-dock__go { padding-inline: 16px; }
.co-dock__go .icon { width: 17px; height: 17px; }
/* Sepette alt sekme çubuğu yerine ödeme şeridi (ödeme sayfasında olduğu gibi); ikisi üst üste binmesin. */
.woocommerce-cart:has(.co-dock--cart) .mtab { display: none; }

/* İnce footer: sepet, ödeme ve ödeme tamamlanmadı sayfalarında yalnız sözleşme bağlantıları + ödeme logoları + ©. */
.woocommerce-cart .site-footer__grid, .woocommerce-checkout .site-footer__grid, .page-template-payment-failed .site-footer__grid,
.woocommerce-cart .site-footer .trust-row, .woocommerce-checkout .site-footer .trust-row, .page-template-payment-failed .site-footer .trust-row,
.woocommerce-cart .site-footer__bottom > :not(.site-footer__legal), .woocommerce-checkout .site-footer__bottom > :not(.site-footer__legal), .page-template-payment-failed .site-footer__bottom > :not(.site-footer__legal),
.woocommerce-cart .site-footer > .neon-line:first-of-type, .woocommerce-checkout .site-footer > .neon-line:first-of-type, .page-template-payment-failed .site-footer > .neon-line:first-of-type { display: none; }

/* ── Sepet (boş) ───────────────────────────────────────────── */
/* WooCommerce'in "Sepetiniz şu anda boş." bildirimi alttaki kartla aynı şeyi söylüyor; boş sepette adım çubuğu anlamsız. */
.woo-page--flow .cart-empty.woocommerce-info { display: none; }
.woo-page--flow:has(.cart-empty) .co-steps { display: none; }
.woo-page--flow:has(.cart-empty) + .empty, .woo-page--flow:has(.cart-empty) .empty, .woocommerce-cart .empty { margin-top: 12px; padding: 18px 16px 20px; }
.woocommerce-cart .empty .empty__art { width: 110px; height: auto; margin-bottom: 4px; }
.woocommerce-cart .empty__title { font-size: 18px; }
.woocommerce-cart .empty__text { margin-top: 4px; font-size: 14px; }
.woocommerce-cart .empty__actions { margin-top: 14px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.woocommerce-cart .empty__actions .btn { min-height: 44px; padding-inline: 8px; font-size: 13px; }
.woocommerce-cart .empty__actions .btn:only-child { grid-column: 1 / -1; }
/* "Çok satanlar": 2 sütun küçük kart; kapak 16:9, ad 2 satır, "Paketleri gör" ve sunucu satırı gizli (kartın tamamı bağlantı). */
.cart-more { margin-top: 24px; }
.cart-more .section-head { margin-bottom: 10px; }
.cart-more .section-head__title { font-size: 20px; }
.cart-more .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cart-more .pcard__media { aspect-ratio: 16 / 9; }
/* Bölüm zaten "Çok satanlar": karttaki aynı rozet gizli. */
.cart-more .pcard__tags { display: none; }
.cart-more .pcard > .fav { top: 6px; right: 6px; }
.cart-more .pcard__body { margin-top: -18px; padding: 0 10px 10px; }
.cart-more .pcard__pub { font-size: 12px; }
.cart-more .pcard__title { font-size: 14px; }
.cart-more .pcard__servers, .cart-more .pcard__cta { display: none; }
.cart-more .pcard__price { padding-top: 6px; }
.cart-more .pcard__amount > span { font-size: 17px; }

/* ── Sepet (dolu) ──────────────────────────────────────────── */
/* Sıra: ürünler → ödül kutuları → sipariş özeti → "Sepetine yakışır". */
.cart-layout { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; }
.cart-main { display: contents; }
.cart-main > *, .cart-aside { flex: none; width: 100%; max-width: none; margin-top: 0; }
.cart-aside { order: 4; }
.cart-upsell { order: 5; }
.cart-head { margin-bottom: -4px; }
.cart-head__label { display: none; }
.cart-head__clear { margin-left: auto; min-height: 36px; font-size: 13px; }
/* "Bunları da sevebilirsin" bandı dolu sepette gizli: sayfada zaten "Sepetine yakışır" var. */
.cart-layout ~ .cart-more { display: none; }

/* Ürün satırı: kapak solda 72 px, sağda ad + çipler; alt satırda adet — fiyat — çöp. */
.cart-items { gap: 8px; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 10px 12px; padding: 10px 12px; border-radius: 14px; }
.cart-item__media { width: 72px; border-radius: 8px; }
.cart-item__name { display: block; font-size: 15px; }
.cart-item__chips { margin-top: 4px; gap: 4px; }
.chip-pack, .chip-del, .chip-save { padding: 2px 8px; font-size: 12px; }
.cart-item__side { grid-column: 1 / -1; width: auto; margin: 0; justify-content: space-between; gap: 10px; }
.cqty button { width: 40px; height: 40px; }
.cart-item__price { min-width: 0; margin-left: auto; }
.cart-item__total { font-size: 17px; }
.cart-item__remove { width: 40px; height: 40px; }

/* Ödül kutuları: ince tek satır metin + çubuk. */
.cart-boost { margin-top: 0; gap: 8px; padding: 8px; border-radius: 16px; }
.cart-boost__box { gap: 10px; padding: 8px 10px; border-radius: 12px; }
.cart-boost__img { width: 28px; height: 28px; }
.cart-boost__text { font-size: 13px; line-height: 1.4; }
.cart-boost__bar, .cart-boost__steps { margin-top: 6px; }

/* Özet kartı */
.cart-aside .co-pay { margin-top: 14px; }
.cart-aside .co-hint { font-size: 12px; }

/* "Sepetine yakışır": tek satır, kapak 56 px, sağda fiyat + 40 px "+" düğmesi; en çok 3 öneri. */
.cart-upsell { margin-top: 0; padding: 12px; border-radius: 16px; }
.cart-upsell__title { margin-top: 2px; font-size: 16px; }
.cart-upsell__sub { display: none; }
.cart-upsell__list { margin-top: 10px; gap: 6px; }
.cart-upsell__list > .cup:nth-child(n+4) { display: none; }
/* Izgara: kapak | ad (üstte) + paket çipi ve fiyat (altta) | "+" düğmesi; ad tam genişlik kullanır. */
.cup { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; padding: 6px 8px; border-radius: 12px; }
.cup__media { grid-row: 1 / 3; grid-column: 1; width: 56px; height: 36px; border-radius: 8px; }
.cup__info { display: contents; }
.cup__name { grid-row: 1; grid-column: 2; font-size: 14px; }
.cup__meta { grid-row: 2; grid-column: 2; justify-self: start; max-width: calc(100% - 84px); margin-top: 0; flex-wrap: nowrap; overflow: hidden; gap: 6px; }
.cup__meta > * { flex-shrink: 0; }
.cup__del { display: none; }
.cup__price { grid-row: 2; grid-column: 2; justify-self: end; margin-left: 0; flex-direction: row-reverse; align-items: baseline; gap: 6px; }
.cup__price strong { font-size: 14px; }
.cup__price s { font-size: 12px; }
.cup__btn, .cup__btn--id { grid-row: 1 / 3; grid-column: 3; }
.cup__btn { min-width: 40px; width: 40px; height: 40px; margin-left: 0; padding: 0; gap: 0; font-size: 0; }
.cup__btn .icon { width: 18px; height: 18px; }
.cup__btn-add, .cup__btn-done { gap: 0; }
/* "ID gir": simge + kısa yazı (ürün sayfasına gider). */
.cup__btn--id { width: auto; padding-inline: 10px; gap: 4px; font-size: 12px; }
.cup__btn--id .icon { width: 14px; height: 14px; }

/* ── Ödeme ─────────────────────────────────────────────────── */
.checkout-layout { gap: 12px; }
.checkout-steps { gap: 10px; }
.co-head { margin-bottom: 10px; gap: 10px; }
.co-num { width: 28px; height: 28px; font-size: 13px; }
.co-head__title { font-size: 16px; }
.co-head__sub { display: none; }

/* Teslimat: e-posta tek satır + sağda "Değiştir". */
.co-mail { flex-wrap: nowrap; gap: 10px; padding: 8px 8px 8px 12px; font-size: 13px; line-height: 1.4; }
.co-mail__ico { display: none; }
.co-mail__text { flex: 1; min-width: 0; overflow-wrap: break-word; }
.co-mail a.co-mail__edit { flex-shrink: 0; height: 40px; padding: 0 12px; }
.co-billing { margin-top: 8px; }
.co-billing__head { min-height: 52px; padding: 8px 12px; gap: 10px; }
.co-billing__ico { width: 32px; height: 32px; }
.co-addr__def { font-size: 12px; }

/* Ödeme yöntemi: başlık + "Doğrudan kredi kartı ile öde" alt alta, bakiye kartları tek satır. */
.co-head--pay { margin-bottom: 10px; row-gap: 8px; }
.co-head--pay .co-head__text { flex-basis: 0; }
.co-cardonly { height: 40px; padding: 0 12px; font-size: 12.5px; }
.co-wallets { gap: 8px; }
/* Bakiye kartı ızgara: [simge] başlık / kullanılabilir tutar [anahtar]; haplar altta. */
.co-wallet { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 10px 12px; border-radius: 14px; }
.co-wallet__tile { grid-row: 1 / 3; grid-column: 1; width: 32px; height: 32px; border-radius: 10px; box-shadow: none; }
.co-wallet__tile .icon { width: 17px; height: 17px; }
.co-wallet__body, .co-wallet__side { display: contents; }
.co-wallet__title { grid-row: 1; grid-column: 2; font-size: 14px; line-height: 1.3; }
.co-wallet__avail { grid-row: 2; grid-column: 2; display: flex; align-items: baseline; gap: 6px; text-align: left; }
.co-wallet__k { font-size: 12px; }
.co-wallet__amount { margin-top: 0; font-size: 14px; }
.co-wallet__switch { grid-row: 1 / 3; grid-column: 3; width: 46px; height: 28px; }
.co-wallet__switch::after { top: 4px; left: 4px; width: 20px; height: 20px; }
.co-wallet input:checked + .co-wallet__switch::after { transform: translateX(18px); }
/* Açıklama ve "Nasıl yüklenir?" yalnız bakiye boşken (o zaman yararlı). */
.co-wallet__meta { grid-row: 3; grid-column: 2 / -1; margin-top: 0; font-size: 12px; gap: 2px 10px; }
.co-wallet:not(.is-empty) .co-wallet__meta { display: none; }
.co-wallet__link { min-height: 32px; }
.co-wallet__pills { grid-row: 4; grid-column: 2 / -1; margin-top: 4px; gap: 4px; }
.co-wallet__used, .co-wallet__note { padding: 2px 8px; font-size: 12px; }
/* Pinguru Bakiyesi uyarısı yalnız anahtar açıkken (kapalıyken bilgi hapı gizli). */
.co-wallet__note.is-info { display: none; }
.co-wallet__pills:not(:has(> :not(.is-info))) { display: none; }
/* Kural kutusu tek cümle: "Önce Hesap Bakiyesi, sonra Pinguru Bakiyesi" (ikinci cümle gizli). */
.co-info { margin-top: 8px; gap: 8px; padding: 8px 12px; border-radius: 12px; }
.co-info .icon { width: 16px; height: 16px; }
.co-info p { font-size: 12px; line-height: 1.45; }
.co-info:not(.co-info--fee) p { font-size: 0; }
.co-info:not(.co-info--fee) strong { font-size: 12px; font-weight: 600; }
.co-wallet-note { margin-top: 8px; }

/* Kupon: telefonda açılır satır "Kupon kodun var mı?" (checkout.js); cüzdandaki kuponlar kapalıyken de görünür. */
.co-card--coupon > .co-head { display: none; }
.co-card--coupon:has(.coupon-applied) .co-coupon-toggle, .co-card--coupon:has(.coupon-box[hidden]) .co-coupon-toggle { display: none; }
.co-coupon-toggle {
  display: flex; width: 100%; min-height: 44px; align-items: center; gap: 10px; padding: 0 2px; border: 0; background: none;
  font-size: 14px; font-weight: 700; color: var(--ink); text-align: left;
}
.co-coupon-toggle > .icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); }
.co-coupon-toggle > span { flex: 1; }
.co-coupon-toggle .co-coupon-toggle__chev { width: 18px; height: 18px; color: var(--mute); transition: transform .2s; }
.co-coupon-toggle[aria-expanded="true"] .co-coupon-toggle__chev { transform: rotate(180deg); }
.co-card--coupon { padding-block: 6px; }
.co-card--coupon.is-open, .co-card--coupon:has(.coupon-applied), .co-card--coupon:has(.coupon-locked:not([hidden])) { padding-block: 6px 14px; }
.co-card--coupon:not(.is-open) .coupon-box .co-field { display: none; }
.co-card--coupon:not(.is-open) .coupon-wallet { padding-bottom: 8px; }
.coupon-box { gap: 8px; }
.co-card--coupon .co-field__label { display: none; }
.coupon-box__row .co-input, .coupon-box__apply { height: 46px; }
.coupon-wallet { font-size: 12px; gap: 6px; }
.coupon-wallet__chip { min-height: 36px; }
.coupon-locked { gap: 10px; padding: 10px 12px; }
.coupon-locked__text { font-size: 12.5px; }
.coupon-locked__btn { min-height: 40px; }

/* Güven satırı: küçük ve sıkı. */
.co-trustrow { gap: 4px 14px; padding: 0 4px; font-size: 12px; }
.co-trustrow li { gap: 5px; }
.co-trustrow .icon { width: 14px; height: 14px; }

/* Sipariş özeti */
.review__items { margin-top: 12px; gap: 10px; padding-bottom: 12px; }
.review__pack, .review__srv { font-size: 12px; }
.co-used { margin-top: 10px; padding-top: 10px; }
.co-used__title { margin-bottom: 8px; font-size: 12px; }
.co-used__tile { width: 30px; height: 30px; }
.review .co-total { margin-top: 10px; padding-top: 10px; align-items: center; }
.review .co-total__label { font-size: 14px; white-space: nowrap; }
.co-terms { margin-top: 12px; padding: 12px; }
.co-cb { margin-top: 12px; min-height: 0; padding: 14px 110px 14px 14px; }
.co-cb__art { height: 112px; }
.co-cb__title { font-size: 17px; }

/* ── Ödeme tamamlanmadı ────────────────────────────────────── */
.payfail__wrap { padding: 10px 16px 32px; }
.payfail .crumbs { display: none; }
.payfail__hero { margin-top: 0; border-radius: 20px; }
.payfail__in { display: block; border-radius: 19px; }
/* Görsel küçük ve yatay: penguen solda, banka yanıtı yanında; halka/ışıma süsleri yok. */
.payfail__art { min-height: 0; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; background: radial-gradient(60% 120% at 15% 50%, rgb(248 113 113 / .18), transparent 70%), var(--deep); }
.payfail__ring, .payfail__halo { display: none; }
.payfail__img { width: 72px; flex-shrink: 0; }
.payfail__tag { margin-top: 0; min-width: 0; padding: 8px 10px; gap: 8px; box-shadow: none; }
.payfail__tag-ico { width: 30px; height: 30px; }
.payfail__body { padding: 14px 16px 16px; }
.payfail__chip { height: 26px; font-size: 12px; }
.payfail__title { margin-top: 8px; font-size: 21px; line-height: 1.2; }
.payfail__text { margin-top: 6px; font-size: 14px; line-height: 1.5; }
.payfail__ok { margin-top: 10px; gap: 6px; }
.payfail__ok p { padding: 8px 12px; }
.payfail__actions { margin-top: 12px; flex-direction: column; gap: 8px; }
.payfail__retry, .payfail__other { flex: none; width: 100%; }
.payfail__retry { height: 48px; }
.payfail__other { height: 44px; }
.payfail__grid { margin-top: 12px; gap: 12px; }
.payfail__grid .co-card { border-radius: 16px; }
.payfail__h2 { margin-bottom: 10px; font-size: 14px; }
.payfail__alts { gap: 6px; }
.payfail__alts a { min-height: 56px; gap: 10px; padding: 8px 12px; border-radius: 12px; }
.payfail__alt-ico { width: 34px; height: 34px; border-radius: 10px; }
/* Sık görülen sebepler: yalnız başlıklar; bankanın koduna uyan sebebin açıklaması görünür. */
.payfail__causes { gap: 8px; }
.payfail__causes li { align-items: center; }
.payfail__causes li.is-on { align-items: flex-start; }
.payfail__causes li:not(.is-on) span > span { display: none; }
.payfail__causes strong { font-size: 13px; }
/* Boş "Bekleyen sepetin" kartı gizli; destek bağlantısı "Başka yollar" listesinde (payment-failed.php). */
.payfail__grid > .co-card:has(.payfail__empty) { display: none; }
.payfail__support { margin-top: 12px; min-height: 48px; }
/* Özet adet etiketi 10px idi; okunurluk için 12px. */
.review__qty { font-size: 12px; }

/* Fable son tur P2-4: e-posta kendi satırında (uzunsa sonda …), özet ürün adı en çok 2 satır. */
.co-mail__text strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.review__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
