﻿/* Taksit Seçenekleri Modal Styles */
#installmentOptionsModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#installmentOptionsModal .modal-header {
    border-bottom: 1px solid #eef0f5;
    padding: 20px 24px;
}

#installmentOptionsModal .modal-title {
    font-weight: 600;
    font-size: 18px;
    color: #1f2a44;
}

#installmentOptionsModal .modal-body {
    padding: 24px;
}

#installmentOptionsModal .modal-footer {
    border-top: 1px solid #eef0f5;
    padding: 16px 24px;
}

.taksit-options-container {
    position: relative;
}

.bank-logos-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #eef0f5;
    overflow-x: auto;
    cursor: pointer;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

    .bank-logos-header .bank-logo {
        height: 28px;
        width: auto;
        object-fit: contain;
        flex-shrink: 0;
        transition: all 0.3s ease;
        opacity: 0.5;
        filter: grayscale(80%);
    }

        .bank-logos-header .bank-logo:hover {
            opacity: 1;
            filter: grayscale(0%);
            transform: scale(1.1);
        }

        .bank-logos-header .bank-logo.active {
            opacity: 1;
            filter: grayscale(0%);
            box-shadow: 0 4px 12px rgba(59, 84, 255, 0.3);
            border-radius: 4px;
        }

.installment-table-wrapper {
    margin-bottom: 0;
    max-height: 500px;
    overflow-y: auto;
}

.installment-options-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e1e5ee;
    border-radius: 8px;
    overflow: hidden;
}

    .installment-options-table thead th {
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        font-family: 'Poppins', sans-serif;
        color: #8a93a6;
        padding: 14px 16px;
        background: #fafbff;
        border-bottom: 1px solid #eef0f5;
        position: sticky;
        z-index: 5;
    }

        .installment-options-table thead th:first-child {
            text-align: center;
            width: 80px;
        }

        .installment-options-table thead th:nth-child(2) {
            text-align: left;
        }

        .installment-options-table thead th:nth-child(3) {
            text-align: right;
        }

    .installment-options-table tbody td {
        padding: 14px 16px;
        font-size: 13px;
        font-family: 'Poppins', sans-serif;
        color: #1f2a44;
        border-bottom: 1px solid #f3f5fb;
    }

    .installment-options-table tbody tr:last-child td {
        border-bottom: none;
    }

    .installment-options-table tbody td:first-child {
        text-align: center;
        font-weight: 600;
        color: #3b54ff;
        background: #f8f9ff;
    }

    .installment-options-table tbody td:nth-child(2) {
        text-align: left;
        color: #5a6479;
    }

    .installment-options-table tbody td:nth-child(3) {
        text-align: right;
        color: #1f2a44;
        font-weight: 500;
    }

    .installment-options-table tbody tr:hover {
        background: #f0f3ff;
    }

.installment-campaigns {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #eef0f5;
}

.campaigns-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2a44;
    margin-bottom: 12px;
}

.campaign-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.campaign-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.campaign-text {
    font-size: 13px;
    color: #5a6479;
    margin: 0;
    line-height: 1.5;
}

.installment-bank-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 4px 0;
}

.installment-bank-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    max-width: 60px;
    flex-shrink: 0;
}

.installment-bank-item span {
    font-size: 13px;
    color: #5a6479;
    font-weight: 500;
    white-space: nowrap;
}

/* Modal scroll styling */
.taksit-options-container::-webkit-scrollbar {
    width: 8px;
}

.taksit-options-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.taksit-options-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .taksit-options-container::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

.order-meta {
    margin-top: 18px;
    background: #f8f9ff;
    border-radius: 10px;
    padding: 4px 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0; /*border-bottom: 1px solid #eef0f5;*/
}

    .meta-item:last-child {
        border-bottom: none;
    }

.meta-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 9px; /*background: #e6e9ff;*/
    color: #2540ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .meta-icon-box svg {
        width: 20px;
        height: 20px;
    }

.meta-text small {
    color: #8a93a6;
    font-size: 12px;
    display: block;
    line-height: 1.3;
    margin-bottom: 2px;
}

.meta-text strong {
    color: #1f2a44;
    font-size: 13px;
    font-weight: 600;
}

.secure-box {
    margin-top: 16px;
    background: #f8f9ff;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .secure-box p {
        margin: 0;
        font-size: 12px;
        color: #5a6479;
        line-height: 1.4;
    }

    .secure-box .title {
        font-weight: 600;
        color: #1f2a44;
        font-size: 13px;
        margin-bottom: 2px;
    }

.secure-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e6e9ff;
    color: #2540ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .secure-icon svg {
        width: 22px;
        height: 22px;
    }

.bank-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding: 0 4px;
}

    .bank-strip img {
        height: 22px;
        width: 60px;
        object-fit: contain;
        opacity: .85;
    }

.paynkolay-line {
    margin-top: 14px;
    padding: 0 4px;
    font-size: 13px;
    color: #5a6479;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

    .paynkolay-line img {
        height: 18px;
        vertical-align: middle;
        margin: 0 2px;
    }


.taksit-toggle {
    margin-top: 10px;
    padding: 0 4px;
    font-size: 13px;
}

    .taksit-toggle .badge-plus {
        background: #3b54ff;
        color: #fff;
        padding: 3px 8px;
        border-radius: 4px;
        font-weight: 600;
        margin-right: 6px;
    }

    .taksit-toggle a {
        color: #5a6479;
        text-decoration: none;
    }

        .taksit-toggle a:hover {
            text-decoration: underline;
        }

.modal-body-scroll {
    max-height: 80vh;
    overflow-y: auto !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch; /* iOS Safari akıcı kaydırma (momentum scrolling) */
    touch-action: pan-x pan-y pinch-zoom; /* Kaydırma ve zoom izinleri */
}

/* Canvas boyutunun mobil ekranı aşmaması için */
#pdfCanvasContainer canvas {
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 0 auto 10px auto;
}
