/* Ek kaynak seçimi (ek çekirdek / RAM / depolama): satır başına + / − sayacı.
   Yalnız yerleştirir; renkler 6'lı paletten, köşeler keskin, gradyan ve hover'da yer değiştirme YOK. */
.cf-extras { border: 0; padding: 0; margin: 0 0 var(--s-6); min-width: 0; }
.cf-extras > legend { font-weight: 800; color: var(--c-ink); font-size: 1.05rem; padding: 0; margin-bottom: var(--s-3); }

.cf-ex-list { border: 1px solid var(--c-line); background: var(--c-white); }
.cf-ex { display: grid; grid-template-columns: 40px minmax(0, 1fr) 156px; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
.cf-ex + .cf-ex { border-top: 1px solid var(--c-line); }

.cf-ex-ico { width: 40px; height: 40px; display: grid; place-items: center; background: var(--c-ice); color: var(--c-navy); }
.cf-ex-ico svg { width: 22px; height: 22px; display: block; }
.cf-ex-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cf-ex-info strong { color: var(--c-ink); font-size: .98rem; line-height: 1.25; }
.cf-ex-info small { color: var(--c-mute); font-size: var(--fs-sm, .85rem); }

.cf-ex-ctl { display: flex; align-items: stretch; width: 156px; height: 42px; border: 1px solid var(--c-line-strong); background: var(--c-white); box-sizing: border-box; }
.cf-ex-btn { flex: 0 0 42px; width: 42px; padding: 0; border: 0; background: var(--c-white); color: var(--c-navy); cursor: pointer; display: grid; place-items: center; }
.cf-ex-btn svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cf-ex-btn:hover:not(:disabled) { background: var(--c-ice); }
.cf-ex-btn:disabled { color: var(--c-mute); opacity: .45; cursor: not-allowed; }
.cf-ex-btn:focus-visible, .cf-extras .cf-ex-ctl input.cf-ex-val:focus-visible { outline: 2px solid var(--c-navy); outline-offset: -2px; }
.cf-extras .cf-ex-ctl input.cf-ex-val { flex: 1 1 auto; min-width: 0; width: 0; height: 100%; min-height: 0; margin: 0; border: 0; border-left: 1px solid var(--c-line); border-right: 1px solid var(--c-line); border-radius: 0; text-align: center; font: inherit; font-size: 1rem; font-weight: 800; color: var(--c-ink); background: var(--c-white); padding: 0; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.cf-ex-val::-webkit-outer-spin-button, .cf-ex-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cf-ex-err { grid-column: 1 / -1; }

/* Sipariş özetinde istenmeyen ek kaynak soluk görünür (+0) */
.is-zero { opacity: .55; }

@media (max-width: 520px) {
    .cf-ex { grid-template-columns: 40px minmax(0, 1fr); }
    .cf-ex-ctl { grid-column: 1 / -1; justify-self: end; }
}

/* ---- Sipariş inceleme (adım 3): satır = etiket | değer | düzenle ---- */
.cf-review .cf-table, .cf-review .cf-table tbody { display: block; width: 100%; }
.cf-review .cf-table tr { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--c-line); background: var(--c-white); }
.cf-review .cf-table tr:last-child { border-bottom: 0; }
.cf-review .cf-table th { display: block; width: auto; padding: 0; border: 0; background: transparent; text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 800; color: var(--c-mute); }
.cf-review .cf-table td { display: block; padding: 0; border: 0; color: var(--c-ink); font-weight: 600; overflow-wrap: anywhere; }
.cf-review .cf-table td .muted { color: var(--c-navy); font-weight: 800; }
.cf-review .cf-table td.cf-edit { width: auto; padding: 0; text-align: right; white-space: nowrap; }
.cf-review .cf-table td.cf-edit:empty { display: none; }
.cf-review .cf-table td.cf-edit a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--c-line-strong); background: var(--c-white); color: var(--c-navy); font-size: .78rem; font-weight: 700; text-decoration: none; }
.cf-review .cf-table td.cf-edit a:hover { background: var(--c-ice); }
.cf-review .cf-table td.cf-edit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf-review .cf-table tr:first-child { border-top: 3px solid var(--c-navy); }
/* Satırın üzerine gelince renk değişmez (genel tablo hover kuralı bu bölümde kapalı) */
.cf-review .cf-table tr:hover, .cf-review .cf-table tr:hover th, .cf-review .cf-table tr:hover td { background: var(--c-white); }

/* ---- Ek Kaynaklar: Metin Izgarası (Grid) ---- */
.cf-review-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px 16px;
}
.cf-review-extra-item {
    font-size: .88rem;
    line-height: 1.4;
    white-space: nowrap;
}
.cf-review-extra-item.is-zero .muted {
    font-weight: 700;
}
.cf-review-extra-item.is-active .muted {
    color: var(--c-navy);
    font-weight: 800;
}

.cf-review .cf-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); background: var(--c-ice); border-top: 1px solid var(--c-line); }

@media (max-width: 640px) {
    .cf-review .cf-table tr { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding: var(--s-3) var(--s-4); }
    .cf-review .cf-table th { grid-column: 1 / -1; }
    .cf-review .cf-table td.cf-edit { grid-column: 2; grid-row: 2; }
}

/* ---- Sepet kalemi: yapılandırma kutuları ----
   Üstte dönem + işletim sistemi (2 sütun), altta ek kaynaklar (3 sütunlu ızgara). */
.cart-item-config { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); }
.cart-item-config > div { grid-column: span 2; padding: var(--s-3) var(--s-4); }
.cart-item-config > div:nth-child(1), .cart-item-config > div:nth-child(2) { grid-column: span 3; }
.cart-item-config > div.is-zero { background: transparent; border-style: dashed; }
.cart-item-config > div.is-zero dt, .cart-item-config > div.is-zero dd, .cart-item-config > div.is-zero .cart-cfg-price { color: var(--c-mute); font-weight: 600; }

@media (max-width: 760px) {
    .cart-item-config { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cart-item-config > div { grid-column: span 1; }
    .cart-item-config > div:nth-child(1), .cart-item-config > div:nth-child(2) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .cart-item-config { grid-template-columns: 1fr; }
    .cart-item-config > div { grid-column: 1 / -1 !important; }
}
