/* RCS sepet / ödeme / teşekkürler: adım göstergesi, kart görünümlü sepet, yapışkan özet, Fluid Checkout uyarlaması */

/* ===== Adım göstergesi (Sepet → Ödeme → Tamamlandı) ===== */
.rcs-steps-wrap{margin:0 0 20px}
.rcs-steps ol{display:flex;flex-wrap:wrap;align-items:center;gap:10px;list-style:none;margin:0;padding:0}
.rcs-steps__i{display:flex;align-items:center;gap:8px;margin:0;color:var(--rcs-muted);font-size:15px;font-weight:600}
.rcs-steps__i + .rcs-steps__i::before{content:"";width:32px;height:2px;margin-right:2px;background:var(--rcs-line-d)}
.rcs-steps__n{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1.5px solid var(--rcs-line-d);border-radius:50%;background:#fff;font-size:13px;line-height:1}
.rcs-steps__i.is-active{color:var(--rcs-primary)}
.rcs-steps__i.is-active .rcs-steps__n{background:var(--rcs-primary);border-color:var(--rcs-primary);color:#fff}
.rcs-steps__i.is-active .rcs-steps__t{font-weight:700}
.rcs-steps__i.is-done{color:var(--rcs-ink)}
.rcs-steps__i.is-done .rcs-steps__n{background:#e8f0fe;border-color:#bcd0f7;color:var(--rcs-primary)}
.rcs-steps__n .rcs-i{width:15px;height:15px}
.rcs-steps a{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none}
.rcs-steps a:hover .rcs-steps__t{color:var(--rcs-primary)}
.rcs-cc .container.content-wrapper{margin-top:18px}

/* model etiketi (chip): kartlardaki " for " bölme mantığıyla aynı (JS: rcs-cart.js) */
.rcs-cc .rcs-chip{display:inline-block;max-width:100%;margin:6px 0 0;padding:2px 10px;border-radius:999px;background:#e8f0fe;color:#1450b3;font-size:12px;font-weight:600;line-height:1.35;white-space:normal;text-align:left}

/* ===== SEPET ===== */
.rcs-cc--cart .rcs-cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:32px;align-items:start}
.rcs-cc--cart .woocommerce-cart-form{min-width:0;margin:0}
.rcs-ci-list{display:flex;flex-direction:column;gap:14px}
.rcs-ci{display:grid;grid-template-columns:92px minmax(0,1fr) auto auto 34px;grid-template-areas:"img body qty total rm";align-items:center;gap:18px;padding:14px 16px;background:#fff;border:1px solid var(--rcs-line);border-radius:14px}
.rcs-ci__img{grid-area:img;width:92px;height:92px;border-radius:10px;background:#f3f4f6;overflow:hidden}
.rcs-ci__img a{display:block;width:100%;height:100%}
.rcs-ci__img img{display:block;width:100%;height:100%;margin:0;object-fit:contain;mix-blend-mode:multiply}
.rcs-ci__body{grid-area:body;min-width:0}
.rcs-ci__body .rcs-ci__name{display:block;color:var(--rcs-ink) !important;font-size:16px;font-weight:600 !important;line-height:1.35;text-decoration:none !important}
.rcs-ci__body a.rcs-ci__name:hover{color:var(--rcs-primary) !important}
.rcs-ci__unit{margin-top:6px;color:var(--rcs-muted);font-size:13.5px}
.rcs-ci__qty{grid-area:qty}
.rcs-ci__qty .quantity{width:116px !important;height:42px !important;margin:0 !important;display:flex !important;align-items:center}
.rcs-ci__qty .quantity .qty{flex:1 1 auto;min-width:0;width:auto !important;height:100%;padding:0;font-size:15px;text-align:center}
.rcs-ci__qty .quantity .botiga-quantity-minus,.rcs-ci__qty .quantity .botiga-quantity-plus{flex:0 0 34px;position:static;display:flex;align-items:center;justify-content:center;width:34px;height:100%;padding:0}
.rcs-ci__total{grid-area:total;min-width:78px;color:var(--rcs-ink);font-size:17px;font-weight:700;text-align:right}
.rcs-ci__rm{grid-area:rm}
.woocommerce a.remove.rcs-ci__remove,a.remove.rcs-ci__remove{display:flex;align-items:center;justify-content:center;width:34px;height:34px;margin:0;border-radius:50%;background:transparent !important;color:#94a3b8 !important;font-size:inherit;line-height:1;text-decoration:none}
a.remove.rcs-ci__remove:hover{background:#f1f3f6 !important;color:#e11d48 !important}
a.remove.rcs-ci__remove .rcs-i{width:20px;height:20px}
.rcs-cart-actions,.rcs-cc--cart .woocommerce-cart-form button[name="update_cart"]{display:none !important}
.rcs-cc--cart .woocommerce-cart-form.processing .rcs-ci-list,.rcs-cc--cart .cart_totals.processing{opacity:.5;pointer-events:none}

/* yapışkan sipariş özeti */
.rcs-cc--cart .cart-collaterals{position:sticky;top:90px;width:auto;float:none;margin:0}
.rcs-cc--cart .cart-collaterals .cart_totals{width:100%;float:none;margin:0}
.rcs-cc--cart .cart-collaterals .cart_totals.rcs-sum,.rcs-sum{box-sizing:border-box;margin:0 !important;padding:22px !important;background:#fff !important;border:1px solid var(--rcs-line);border-radius:14px}
.rcs-cc--cart .cart-collaterals{margin:0 !important;padding:0 !important;background:none}
.rcs-sum__title{margin:0 0 10px;color:var(--rcs-ink);font-size:20px;line-height:1.2}
.rcs-sum table.shop_table{width:100%;margin:0;border:0;border-collapse:collapse;background:none}
.rcs-sum table.shop_table th,.rcs-sum table.shop_table td{padding:11px 0;border:0;border-top:1px solid var(--rcs-line);background:none;color:var(--rcs-text);font-size:15px;font-weight:400;letter-spacing:0;text-transform:none;vertical-align:top}
.rcs-sum table.shop_table tr:first-child th,.rcs-sum table.shop_table tr:first-child td{border-top:0}
.rcs-sum table.shop_table th{width:38%;font-weight:600;color:var(--rcs-ink);text-align:left}
.rcs-sum table.shop_table td{text-align:right}
.rcs-sum table.shop_table tr.order-total th,.rcs-sum table.shop_table tr.order-total td{padding-top:14px;color:var(--rcs-ink);font-size:17px}
.rcs-sum table.shop_table tr.order-total td .amount,.rcs-sum table.shop_table tr.order-total td strong{font-size:22px;font-weight:700}
.rcs-sum table.shop_table tr.order-total small,.rcs-sum .includes_tax{display:block;color:var(--rcs-muted);font-size:12.5px;font-weight:400}
.rcs-sum .woocommerce-shipping-methods{margin:0;padding:0;list-style:none}
.rcs-sum .woocommerce-shipping-destination,.rcs-sum p.woocommerce-shipping-destination{margin:6px 0 0;color:var(--rcs-muted);font-size:13px}
.rcs-sum a.shipping-calculator-button{display:inline-block;margin-top:6px;color:var(--rcs-primary);font-size:13px;font-weight:600;text-decoration:none}
.rcs-sum .shipping-calculator-form{margin-top:8px;text-align:left}
.rcs-sum .rcs-fs{margin:14px 0 0;padding:12px 14px;border:0;border-radius:10px;background:var(--rcs-soft)}
.rcs-sum .rcs-fs p{margin:0 0 8px;color:var(--rcs-text);font-size:14px;line-height:1.35}
.rcs-sum .rcs-fs strong{color:var(--rcs-ink)}
.rcs-fs__bar{height:8px;border-radius:999px;background:#dfe4ec;overflow:hidden}
.rcs-fs__bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#1a5fd0,#4f8df5);transition:width .35s ease}
.rcs-fs--done .rcs-fs__bar i{background:#16a34a}
.rcs-fs--done p{color:#166534}
.rcs-fs--none{display:none}
.rcs-coupon{display:flex;gap:8px;margin:14px 0 0}
.rcs-coupon .input-text{flex:1 1 auto;min-width:0;height:46px;margin:0;padding:0 16px;border:1.5px solid var(--rcs-line-d);border-radius:999px;font-size:15px}
.rcs-coupon .button{flex:none;height:46px;margin:0;padding:0 20px;background:#fff !important;color:var(--rcs-primary) !important;border:1.5px solid var(--rcs-primary) !important;font-size:14px}
.rcs-coupon .button:hover{background:var(--rcs-primary) !important;color:#fff !important}
.rcs-sum .wc-proceed-to-checkout{padding:0;margin:16px 0 0}
.rcs-sum .wc-proceed-to-checkout a.checkout-button{display:flex;align-items:center;justify-content:center;width:100%;height:56px;margin:0;padding:0 20px;border-radius:999px;font-size:17px;font-weight:700;line-height:1.2}
.rcs-sum__secure{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:14px;color:var(--rcs-muted);font-size:13.5px}
.rcs-sum__lock{display:inline-flex;align-items:center;gap:6px}
.rcs-sum__lock .rcs-i{width:16px;height:16px;color:var(--rcs-primary)}
.rcs-sum__pay{display:block;width:auto;max-width:140px;height:auto;border-radius:6px}
.rcs-cc--cart .cart-empty{padding:40px 20px;text-align:center;font-size:18px;color:var(--rcs-ink)}
.rcs-cc--cart .return-to-shop{text-align:center}

@media (max-width:991px){
  .rcs-cc--cart .rcs-cart-layout{grid-template-columns:1fr;gap:20px}
  .rcs-cc--cart .cart-collaterals{position:static}
}
@media (max-width:640px){
  .rcs-steps ol{gap:6px}
  .rcs-steps__i{gap:6px;font-size:14px}
  .rcs-steps__i + .rcs-steps__i::before{width:14px}
  .rcs-ci{grid-template-columns:76px minmax(0,1fr) auto;grid-template-areas:"img body rm" "img qty total";row-gap:10px;column-gap:12px;padding:12px}
  .rcs-ci__img{width:76px;height:76px}
  .rcs-ci__body .rcs-ci__name{font-size:15px}
  .rcs-ci__total{min-width:0;font-size:16px}
  .rcs-ci__qty .quantity{width:108px !important;height:40px !important}
  .rcs-sum{padding:18px}
}

/* ===== ÖDEME (Fluid Checkout) — yalnızca CSS değişkenleri ve ek CSS; eklenti dosyalarına dokunulmaz ===== */
body.rcs-cc{
  --fluidcheckout--checkout-progress--bar-color--current:#1a5fd0;
  --fluidcheckout--checkout-progress--bar-color--complete:#1a5fd0;
  --fluidcheckout--checkout-progress--bar-color:#e6e8ec;
  --fluidcheckout--color--success:#1a5fd0;
  --fluidcheckout--color--success-highlight:#eaf1fd;
  --fluidcheckout--section--border-radius:14px;
  --fluidcheckout--section--border-color:#e6e8ec;
  --fluidcheckout--section--border-width:1px;
  --fluidcheckout--section--background-color:#fff;
  --fluidcheckout--section--highlighted-background-color:#fff;
  --fluidcheckout--order-summary--border-color:#e6e8ec;
  --fluidcheckout--order-summary--background-color:#fff;
  --fluidcheckout--order-summary--image-border-radius:10px;
  --fluidcheckout--order-summary--image-background-color:#f3f4f6;
  --fluidcheckout--order-summary--image-border-color:transparent;
  --fluidcheckout--field--border-radius:10px;
  --fluidcheckout--field--border-color:#d9dde4;
  --fluidcheckout--field--background-color:#fff;
  --fluidcheckout--option-box--border-radius:12px;
  --fluidcheckout--option-box--radio-color--checked:#1a5fd0;
  --fluidcheckout--option-box--label-border-color--checked:#1a5fd0;
  --fluidcheckout--option-box--background-color--checked:#f4f8ff;
  --fluidcheckout--button--border-radius:999px;
  --fluidcheckout--button--font-weight:700;
  --fluidcheckout--button--primary--background-color:#1a5fd0;
  --fluidcheckout--button--primary--border-color:#1a5fd0;
  --fluidcheckout--button--primary--text-color:#fff;
  --fluidcheckout--button--primary--background-color--hover:#1450b3;
  --fluidcheckout--button--primary--border-color--hover:#1450b3;
  --fluidcheckout--button--primary--text-color--hover:#fff;
}
body.rcs-cc--checkout,body.rcs-cc--received{font-family:SourceSans3,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
body.rcs-cc .fc-wrapper,body.rcs-cc .fc-wrapper input,body.rcs-cc .fc-wrapper select,body.rcs-cc .fc-wrapper textarea,body.rcs-cc .fc-wrapper button{font-family:inherit}
.rcs-cc--checkout .fc-checkout-step,.rcs-cc--checkout .fc-checkout-order-review__inner,.rcs-cc--checkout .fc-checkout-order-review{border-radius:14px}
/* "Change" / "Edit cart": altı çizgisiz, ana renkte, küçük */
.rcs-cc--checkout .fc-step__substep-edit,.rcs-cc--checkout .fc-step__substep-edit a,.rcs-cc--checkout .fc-checkout-order-review__edit-cart,.rcs-cc--checkout .fc-checkout-order-review__header-link,.rcs-cc--checkout .fc-checkout-order-review__header-link a{color:var(--rcs-primary) !important;font-size:13px !important;font-weight:600;text-decoration:none !important}
.rcs-cc--checkout .fc-step__substep-edit:hover,.rcs-cc--checkout .fc-checkout-order-review__edit-cart:hover{color:var(--rcs-primary-d) !important}
/* "Remove": kırmızı çerçeveli düğme yerine sade gri çöp kutusu */
.rcs-checkout-remove{position:relative;display:inline-block !important;width:28px !important;height:28px !important;margin:2px 0 0 !important;padding:0 !important;border:0 !important;border-radius:50% !important;background:transparent !important;color:transparent !important;font-size:0 !important;line-height:0 !important;overflow:hidden;text-decoration:none !important}
.rcs-checkout-remove > span{display:none !important}
.rcs-checkout-remove::before{content:"";position:absolute;inset:4px;background:#94a3b8;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/></svg>") center/contain no-repeat}
.rcs-checkout-remove:hover::before{background:#475569}
/* birincil düğmeler: sitedeki düğmelerle aynı */
.rcs-cc--checkout .fc-place-order-button,.rcs-cc--checkout #place_order,.rcs-cc--checkout .fc-step__next-step,.rcs-cc--checkout button.fc-step__next-step{height:52px;border-radius:999px !important;background:var(--rcs-primary) !important;border-color:var(--rcs-primary) !important;color:#fff !important;font-size:16px;font-weight:700;text-transform:none;letter-spacing:0}
.rcs-cc--checkout .fc-place-order-button:hover,.rcs-cc--checkout #place_order:hover,.rcs-cc--checkout .fc-step__next-step:hover{background:var(--rcs-primary-d) !important;border-color:var(--rcs-primary-d) !important}
/* sipariş özetindeki ürün adı + model etiketi */
.rcs-cc--checkout .cart-item__name{line-height:1.35}
.rcs-cc--checkout .cart-item__name .rcs-chip{display:block;width:fit-content}

/* sadeleşmiş ödeme başlığı: kurallar rcs-hdr.css içinde (iki satırlı header) */

/* ===== TEŞEKKÜRLER (sipariş alındı) ===== */
.rcs-cc--received .woocommerce-order{max-width:880px;margin:0 auto}
.rcs-cc--received .woocommerce-notice--success{margin:0 0 18px;padding:18px 22px;border:1px solid #bcd0f7;border-radius:14px;background:#f4f8ff;color:var(--rcs-ink);font-size:20px;font-weight:700}
.rcs-cc--received ul.woocommerce-order-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 0 20px;padding:0;border:0;list-style:none}
.rcs-cc--received ul.woocommerce-order-overview li{margin:0;padding:14px 16px;border:1px solid var(--rcs-line);border-radius:14px;background:#fff;color:var(--rcs-muted);font-size:13px;line-height:1.4;text-transform:none}
.rcs-cc--received ul.woocommerce-order-overview li strong{display:block;margin-top:4px;color:var(--rcs-ink);font-size:16px}
.rcs-cc--received .woocommerce-order-details,.rcs-cc--received .woocommerce-customer-details{margin:0 0 18px;padding:20px 22px;border:1px solid var(--rcs-line);border-radius:14px;background:#fff}
.rcs-cc--received .woocommerce-order-details__title,.rcs-cc--received .woocommerce-column__title{margin:0 0 12px;font-size:19px}
.rcs-cc--received table.shop_table{width:100%;margin:0;border:0;border-collapse:collapse}
.rcs-cc--received table.shop_table th,.rcs-cc--received table.shop_table td{padding:11px 0;border:0;border-top:1px solid var(--rcs-line);background:none;font-size:15px;font-weight:400;letter-spacing:0;text-transform:none;vertical-align:top}
.rcs-cc--received table.shop_table thead th{border-top:0;color:var(--rcs-muted);font-size:13px;font-weight:600}
.rcs-cc--received table.shop_table tfoot th{font-weight:600;color:var(--rcs-ink)}
.rcs-cc--received table.shop_table td a{color:var(--rcs-ink);font-weight:600;text-decoration:none}
.rcs-cc--received .woocommerce-customer-details address{padding:0;border:0;font-style:normal;line-height:1.6}
.rcs-cc--received .rcs-invoice-info{margin:12px 0 0;padding:12px 14px;border-radius:10px;background:var(--rcs-soft);font-size:14.5px}
.rcs-cc--received .woocommerce-column--shipping-address,.rcs-cc--received .woocommerce-column--billing-address{float:none;width:100%}

/* Fluid Checkout: onay kutusu / radyo düğmesi vurgusu ana renkte */
body.rcs-cc input[type="checkbox"],body.rcs-cc input[type="radio"]{accent-color:var(--rcs-primary)}
/* Kurumsal fatura alanları (Code Snippets "kurumsal fatura"): Bireysel/Kurumsal seçimi iki hap düğme, "(optional)" gizli */
.rcs-invoice-type{margin-top:6px}
.rcs-invoice-type > label:first-child{display:block;margin-bottom:8px;font-weight:600}
.rcs-invoice-type .optional,.rcs-corp-field .optional{display:none !important}
.rcs-invoice-type .woocommerce-input-wrapper{display:flex !important;flex-wrap:wrap;gap:10px;align-items:center}
.rcs-invoice-type .woocommerce-input-wrapper input[type="radio"]{position:absolute !important;opacity:0;width:1px;height:1px;margin:0 !important;pointer-events:none}
.rcs-invoice-type .woocommerce-input-wrapper label.radio{display:inline-flex !important;align-items:center;justify-content:center;min-width:132px;margin:0 !important;padding:10px 20px;border:1.5px solid var(--rcs-line-d);border-radius:999px;background:#fff;color:var(--rcs-text);font-size:15px;font-weight:600 !important;cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.rcs-invoice-type .woocommerce-input-wrapper input[type="radio"]:checked + label.radio{border-color:var(--rcs-primary);background:#f4f8ff;color:var(--rcs-primary)}
.rcs-invoice-type .woocommerce-input-wrapper input[type="radio"]:focus-visible + label.radio{outline:2px solid var(--rcs-primary);outline-offset:2px}
.rcs-corp-field label .required{color:#e11d48}

/* teşekkürler: tema tablo/liste arka planlarını temizle, ürün bağlantıları sade */
.rcs-cc--received ul.woocommerce-order-overview{background:none !important;padding:0 !important}
.rcs-cc--received .woocommerce-order-details table.shop_table,.rcs-cc--received .woocommerce-order-details table.shop_table tr,.rcs-cc--received .woocommerce-order-details table.shop_table th,.rcs-cc--received .woocommerce-order-details table.shop_table td{background:transparent !important}
.rcs-cc--received .woocommerce-order-details table.shop_table{border:1px solid var(--rcs-line) !important;border-radius:12px;overflow:hidden;border-collapse:separate;border-spacing:0}
.rcs-cc--received .woocommerce-order-details table.shop_table th,.rcs-cc--received .woocommerce-order-details table.shop_table td{padding:12px 16px}
.rcs-cc--received .woocommerce-table__product-name a{color:var(--rcs-ink) !important;font-weight:600;text-decoration:none !important}
.rcs-cc--received .woocommerce-table__product-name .rcs-chip{margin:0 6px 0 8px}

/* ===== Ödeme düzeltmeleri (2026-10-29) ===== */
/* Sipariş özeti: çöp ikonu ad uzunluğundan bağımsız sabit — satırın sağ altı, birim fiyatla aynı hizada */
.rcs-cc--checkout .product-details{position:relative}
.rcs-cc--checkout .cart-item__price{display:flex;align-items:flex-end;min-height:28px;padding-right:36px}
.rcs-cc--checkout .rcs-checkout-remove{position:absolute !important;right:0;bottom:0;margin:0 !important}
/* Kurumsal alanlar: vergi dairesi gizliyken (yurt dışı adres) vergi/VAT no tam genişlikte */
#billing_tax_office_field[style*="display: none"] + #billing_tax_number_field,
#billing_tax_office_field[style*="display:none"] + #billing_tax_number_field{float:none !important;width:100% !important;clear:both}
/* Bireysel / Kurumsal: aynı satırda, aralarında boşluk; dar ekranda alt alta */
.rcs-invoice-type .woocommerce-input-wrapper{gap:12px !important}
.rcs-invoice-type .woocommerce-input-wrapper label.radio{min-width:140px;margin:0 !important}
@media (max-width:360px){.rcs-invoice-type .woocommerce-input-wrapper label.radio{flex:1 1 100%}}
.rcs-cc--checkout .form-row.woocommerce-invalid input.input-text,.rcs-cc--checkout .form-row.woocommerce-invalid select{border-color:#e11d48 !important;box-shadow:0 0 0 3px rgba(225,29,72,.12)}
.rcs-cc--checkout .woocommerce-error li a{color:inherit;text-decoration:none}
/* radyo seçeneklerinde (Bireysel / Kurumsal) zorunlu yıldızı yok; yalnızca alan etiketinde */
.rcs-invoice-type .woocommerce-input-wrapper label.radio abbr.required,.rcs-invoice-type .woocommerce-input-wrapper label.radio .required{display:none !important}
