/* ZFS Product Booster — EasySell tarzı Kapıda Ödeme mini-checkout */

.zfspb-cod-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
    background: #fff !important;
    border: 2px solid var(--zfspb-accent, #ff6a00) !important;
    border-radius: var(--zfspb-radius, 12px) !important;
    padding: 12px 16px !important;
    margin: 12px 0 !important;
    cursor: pointer;
    transition: background .15s ease;
}
.zfspb-cod-btn:hover { background: #fff6ee !important; }
.zfspb-cod-btn-main {
    font: 800 15px/1.2 'Montserrat', sans-serif !important;
    color: var(--zfspb-accent, #ff6a00) !important;
}
.zfspb-cod-btn-sub {
    font: 600 11px/1.2 'Open Sans', sans-serif !important;
    color: #847b6a !important;
}

/* --- Modal --- */
.zfspb-cod-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(23, 19, 16, .6);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.zfspb-cod-overlay.is-open { display: flex; }

.zfspb-cod-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 24px 20px 20px;
}
.zfspb-cod-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none;
    font-size: 24px; line-height: 1;
    color: #847b6a; cursor: pointer;
}
.zfspb-cod-product {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid #ece7dd;
}
.zfspb-cod-product-img {
    width: 46px !important;
    height: 46px !important;
    border-radius: 9px !important;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ece7dd;
}
.zfspb-cod-product-img--placeholder {
    background: #faf8f4;
}
.zfspb-cod-product-name {
    font: 700 13.5px/1.35 'Open Sans', sans-serif !important;
    color: #171310 !important;
}

.zfspb-cod-modal h3 {
    font: 800 18px/1.3 'Montserrat', sans-serif !important;
    color: #171310 !important;
    margin: 0 0 16px !important;
    padding-right: 20px;
}

/* --- Sipariş özeti --- */
.zfspb-cod-order {
    background: #faf8f4;
    border: 1px solid #ece7dd;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}
.zfspb-cod-order-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ece7dd;
}
.zfspb-cod-order-name {
    font: 700 12.5px/1.35 'Open Sans', sans-serif !important;
    color: #171310 !important;
}
.zfspb-cod-order-qty {
    font: 700 12.5px/1.35 'Open Sans', sans-serif !important;
    color: #847b6a !important;
    flex-shrink: 0;
}
.zfspb-cod-order-row {
    display: flex;
    justify-content: space-between;
    font: 600 12.5px/1.6 'Open Sans', sans-serif !important;
    color: #3a352c !important;
}
.zfspb-cod-order-total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ece7dd;
    font: 800 15px/1.3 'Montserrat', sans-serif !important;
    color: #171310 !important;
}
.zfspb-cod-order-total span { color: #171310 !important; }
.zfspb-cod-order-row--discount span {
    color: #1a7f37 !important;
    font-weight: 700 !important;
}

/* --- Form --- */
.zfspb-cod-field { margin-bottom: 12px; }
.zfspb-cod-field label {
    display: block;
    font: 700 12px/1.4 'Open Sans', sans-serif !important;
    color: #171310 !important;
    margin-bottom: 5px;
}
.zfspb-cod-field label span { color: #e02b2b; }

.zfspb-cod-field input,
.zfspb-cod-field textarea,
.zfspb-cod-field select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px !important;
    border: 1.5px solid #e0dace !important;
    border-radius: 9px !important;
    font: 400 13.5px/1.4 'Open Sans', sans-serif !important;
    color: #171310 !important;
    background: #fff !important;
}
.zfspb-cod-field input:focus,
.zfspb-cod-field textarea:focus,
.zfspb-cod-field select:focus {
    border-color: var(--zfspb-accent, #ff6a00) !important;
    outline: none;
}

/* Adet artı/eksi */
.zfspb-cod-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0dace;
    border-radius: 9px;
    overflow: hidden;
    width: fit-content;
}
.zfspb-cod-qty button {
    width: 42px; height: 42px;
    background: #faf8f4 !important;
    border: none !important;
    font-size: 20px;
    color: #171310 !important;
    cursor: pointer;
}
.zfspb-cod-qty input {
    width: 54px !important;
    text-align: center;
    border: none !important;
    border-left: 1.5px solid #e0dace !important;
    border-right: 1.5px solid #e0dace !important;
    border-radius: 0 !important;
    font: 700 14px/1 'Open Sans', sans-serif !important;
    padding: 11px 0 !important;
}

/* Honeypot */
.zfspb-cod-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
}

.zfspb-cod-msg {
    display: none;
    font: 600 12.5px/1.4 'Open Sans', sans-serif !important;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.zfspb-cod-msg.is-error { display: block; background: #fdecec; color: #c0392b; }
.zfspb-cod-msg.is-success { display: block; background: #eaf6e6; color: #2e7d32; }

.zfspb-cod-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background: var(--zfspb-accent, #ff6a00) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--zfspb-radius, 12px) !important;
    padding: 15px 18px !important;
    font: 700 15px/1 'Open Sans', sans-serif !important;
    cursor: pointer;
    transition: background .15s ease;
}
.zfspb-cod-submit:hover:not(:disabled) { background: var(--zfspb-accent-hover, #e55e00) !important; }
.zfspb-cod-submit:disabled { opacity: .6; cursor: default; }
.zfspb-cod-submit-total { font-weight: 800; white-space: nowrap; }

.zfspb-cod-note {
    font: 400 11px/1.5 'Open Sans', sans-serif !important;
    color: #847b6a !important;
    text-align: center;
    margin: 12px 0 0 !important;
}

/* Nakit / kredi kartı seçimi */
.zfspb-cod-paym {
    display: flex;
    gap: 8px;
}
.zfspb-cod-paym-opt {
    flex: 1 1 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 12px 8px !important;
    border: 1.5px solid #e0dace !important;
    border-radius: 9px !important;
    cursor: pointer;
    margin: 0 !important;
    background: #fff;
    transition: border-color .15s ease, background .15s ease;
    position: relative;
}
.zfspb-cod-paym-opt input {
    position: absolute !important;
    top: 10px;
    left: 10px;
}
.zfspb-cod-paym-label {
    padding-left: 18px;
}
.zfspb-cod-paym-total {
    font: 800 15px/1.2 'Montserrat', sans-serif !important;
    color: var(--zfspb-accent, #ff6a00) !important;
}
.zfspb-cod-paym-opt:has(input:checked) {
    border-color: var(--zfspb-accent, #ff6a00) !important;
    background: color-mix(in srgb, var(--zfspb-accent, #ff6a00) 7%, #fff);
}
.zfspb-cod-paym-opt input {
    margin: 0 !important;
    accent-color: var(--zfspb-accent, #ff6a00);
    width: 15px;
    height: 15px;
}
.zfspb-cod-paym-opt span {
    font: 700 12.5px/1.3 'Open Sans', sans-serif !important;
    color: #171310 !important;
}
.zfspb-cod-paym-opt em {
    font-style: normal;
    color: var(--zfspb-accent, #ff6a00) !important;
}
