@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
 
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fb;
    color: #1f2a44;
    min-height: 100vh;
    padding: 30px 0;
    background-image: url("https://cdn.nkolayislem.com.tr/NKbackgroundimage.svg");
}
 
.page-wrap {   margin: 20px 40px -30px 40px; padding: 0 20px; }

/* Mobil ekranlarda margin kaldır */
@media (max-width: 768px) {
    .page-wrap {
        margin: 10px 0 -20px 0;
        padding: 0 10px;
    }
}
 
.merchant-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-left: 4px; }
.merchant-logo {
  width: 48px; height: 48px; border-radius: 10px;
  background: #d8dcff; color: #2540ff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.merchant-logo svg { width: 28px; height: 28px; }
.merchant-title  { font-weight: 700; font-size: 18px; color: #1f2a44; margin: 0; line-height: 1.2; }
.merchant-subtitle { font-size: 13px; color: #8a93a6; margin: 0; }
 
.card-block {
  background: #ffffff; border-radius: 14px;
  box-shadow: 0 4px 24px rgba(31,42,68,0.06); padding: 26px 28px;
}
.card-title {
  font-weight: 600; font-size: 16px; color: #1f2a44;
  margin-bottom: 22px; border-bottom: 1px solid #eef0f5; padding-bottom: 14px;
}
 
.form-label-custom { font-size: 13px; color: #5a6479; margin-bottom: 6px; display: block; font-weight: 500; }
.form-label-custom .req { color: #e74c3c; }
.form-control-custom {
  width: 100%; height: 46px; border: 1px solid #e1e5ee; border-radius: 8px;
  padding: 0 14px; font-size: 14px; font-family: 'Poppins', sans-serif;
  color: #1f2a44; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form-control-custom:focus { outline: none; border-color: #3b54ff; box-shadow: 0 0 0 3px rgba(59,84,255,0.12); }

/* Card input wrapper and brand logo */
.card-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.card-brand-logo {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.card-brand-logo img {
  height: 20px;
  width: auto;
}
.form-control-custom::placeholder { color: #b5bccd; }
.form-group-custom { margin-bottom: 18px; }

/* Amount Split Container Styles */
.amount-split-container {
  display: flex;
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e1e5ee;
  border-radius: 8px;
  overflow: hidden;
  height: 46px;
}

.amount-split-input {
  display: flex;
  align-items: center;
  height: 100%;
}

.amount-split-input:first-child {
  flex: 1;
}

.amount-split-input:last-child {
  width: 100px;
  flex: none;
}

.amount-split-input .form-control-custom {
  width: 100%;
  height: 100%;
  border: none !important;
  box-shadow: none !important;
  padding: 12px 14px;
  background: transparent;
  font-size: 14px;
  text-align: right;
}

.amount-split-input .form-control-custom::placeholder {
  color: #b5bccd;
}

.amount-split-input .amount-suffix {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  color: #5a6479;
  font-size: 14px;
  font-weight: 500;
  padding: 0 16px;
  height: 100%;
  white-space: nowrap;
  border-left: 1px solid #e1e5ee;
}

.amount-split-input:first-child .form-control-custom {
  padding-right: 14px;
}

.amount-split-input:last-child .form-control-custom {
  padding-right: 14px;
  text-align: center;
}
 
.extra-info-wrap { margin-top: 18px; }
.extra-info-header {
  width: 100%; background: #f3f5ff; border: 1px solid #d5dcff; border-radius: 8px;
  color: #3b54ff; font-weight: 600; font-size: 14px; font-family: 'Poppins', sans-serif;
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: background .15s;
}
.extra-info-header:hover { background: #eaeeff; }
.extra-info-header .chev { transition: transform .25s; }
.extra-info-header.open .chev { transform: rotate(180deg); }
.extra-info-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; background: #fff; border-radius: 0 0 8px 8px; }
.extra-info-body.open { max-height: 1000px; }
.extra-info-body-inner { padding: 20px 4px 4px 4px; }
.extra-info-body textarea.form-control-custom { height: 96px; padding: 12px 14px; resize: vertical; }
 
.installment-section { margin-top: 20px; }
.installment-section-label { font-size: 13px; color: #5a6479; margin-bottom: 8px; display: block; font-weight: 500; }
.installment-wrap { 
  position: relative;
  width: 100%;
}
 
.installment-trigger {
  width: 100%; height: 50px; border: 1px solid #e1e5ee; border-radius: 8px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 0 14px; cursor: pointer; font-family: 'Poppins', sans-serif;
  color: #1f2a44; transition: border-color .15s;
  gap: 10px;
}
.installment-trigger:hover:not(:disabled) { border-color: #b9c2dd; }
 
.installment-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
 
.trigger-bank-logo {
  height: 26px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
  flex-shrink: 0;
}
 
.trigger-sel-text {
  font-size: 13px;
  font-weight: 500;
  color: #1f2a44;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
.trigger-placeholder {
  font-size: 13px;
  color: #8a93a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  width: 100%;
}
 
 
.installment-trigger .chev { color: #8a93a6; transition: transform .2s; flex-shrink: 0; }
.installment-trigger .chev.open { transform: rotate(180deg); }
 
.installment-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid #e1e5ee; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(31,42,68,0.12); max-height: 320px;
  overflow-y: auto; z-index: 100; display: none; animation: ddIn .15s ease;
}
    .installment-dropdown.show {
        display: contents;
    }
@keyframes ddIn {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.installment-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f5;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    background: #fafbff;
    border-radius: 10px 10px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
    border: 1px solid #e1e5ee;
}
.installment-dropdown-header .lbl { color: #5a6479; }

.installment-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e1e5ee;
}
.installment-table thead th {
  text-align: left; font-size: 11px; font-weight: 600;
  font-family: 'Poppins', sans-serif; color: #8a93a6;
  padding: 10px 16px; background: #fafbff; border-bottom: 1px solid #eef0f5;
  position: sticky; top: 45px; z-index: 1;
}
.installment-table thead th:nth-child(3),
.installment-table thead th:nth-child(4) { text-align: right; }
.installment-table tbody td {
  padding: 12px 16px; font-size: 13px; font-family: 'Poppins', sans-serif;
  color: #1f2a44; border-bottom: 1px solid #f3f5fb; cursor: pointer;
}
.installment-table tbody tr:hover { background: #f8f9ff; }
.installment-table tbody tr.selected { background: #eef1ff; }
.installment-table tbody td:nth-child(3),
.installment-table tbody td:nth-child(4) { text-align: right; color: #5a6479; }
.installment-table tbody td:nth-child(4) { color: #1f2a44; font-weight: 500; }

.installment-table-direct {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e1e5ee;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
}
.installment-table-direct thead th {
  text-align: left; font-size: 11px; font-weight: 600;
  font-family: 'Poppins', sans-serif; color: #8a93a6;
  padding: 10px 16px; background: #fafbff; border-bottom: 1px solid #eef0f5;
}
.installment-table-direct thead th:nth-child(3) { text-align: right; }
.installment-table-direct tbody td {
  padding: 12px 16px; font-size: 13px; font-family: 'Poppins', sans-serif;
  color: #1f2a44; border-bottom: 1px solid #f3f5fb; cursor: pointer;
}
.installment-table-direct tbody tr:hover { background: #f8f9ff; }
.installment-table-direct tbody tr.selected { background: #eef1ff; }
.installment-table-direct tbody td:nth-child(3) { text-align: right; color: #5a6479; }
 
.radio-dot {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c2c9da;
  display: inline-block; vertical-align: middle; position: relative; transition: border-color .15s;
}
tr.selected .radio-dot { border-color: #3b54ff; }
tr.selected .radio-dot::after {
  content: ""; position: absolute; inset: 2px; background: #3b54ff; border-radius: 50%;
}
 
.agreements-title { font-size: 14px; font-weight: 600; color: #1f2a44; margin: 22px 0 12px 0; }
.agreement-row { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 8px; }
.agreement-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1f2a44; }
.agreement-item a { color: #3b54ff; font-weight: 600; text-decoration: none; }
.agreement-item a:hover { text-decoration: underline; }
.agreement-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: #3b54ff; cursor: pointer; }
 
.pay-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.pay-brands { display: flex; align-items: center; gap: 12px; }
.pay-brands img { height: 22px; }
.btn-pay {
  background: #3b54ff; color: #fff; border: none; border-radius: 8px;
  height: 50px; min-width: 280px; padding: 0 28px; font-weight: 600; font-size: 15px;
  font-family: 'Poppins', sans-serif; cursor: pointer;
  transition: background .15s, transform .05s;
  box-shadow: 0 6px 16px rgba(59,84,255,0.25);
}
.btn-pay:hover { background: #2d44e0; }
.btn-pay:active { transform: translateY(1px); }
 
.order-image { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 18px; }
.order-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; font-size: 13px; border-bottom: 1px dashed #eef0f5; }
.order-row:last-of-type { border-bottom: none; }
.order-row .label { color: #8a93a6; }
.order-row .value { color: #1f2a44; font-weight: 500; text-align: right; }
    .order-row .value.desc {
        font-family: 'Poppins';
        font-style: normal;
        font-weight: 500;
        font-size: 11px;
        line-height: 16px;
        color: #5E6E82;
        order: 2;
        align-self: stretch;
        flex-grow: 0;
        text-align: justify;
        text-wrap-mode: wrap;
    }
.order-row .value.price { color: #3b54ff; font-weight: 700; font-size: 17px; }

/* 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; }
 
.page-footer {
  margin-top: 40px; padding: 20px 4px; border-top: 1px solid #eef0f5;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; font-size: 12px; color: #8a93a6; background-color:white; margin-bottom:-30px
}
.page-header {
    margin-top: -30px;
    padding: 20px 4px;
    border-top: 1px solid #eef0f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #8a93a6; background-color:white
}
.footer-brands { display: flex; align-items: center; gap: 10px; }
.footer-brands img { height: 16px; }
.footer-right { display: flex; align-items: center; gap: 10px; }
.footer-right img { height: 22px; width: auto; object-fit: contain; }
 
.layout-row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col-left  { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 10px; }
.col-right { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 10px; }
.col-full  { flex: 0 0 100%; max-width: 100%; padding: 0 10px; }
.row-half  { display: flex; gap: 16px; }
.row-half > div { flex: 1; }
 
/* ── Responsive ── */
@media (max-width: 991px) {
  .col-left, .col-right, .col-full { flex: 0 0 100%; max-width: 100%; }
  .col-right { order: 1; margin-top: 0; }
  .col-left { order: 2; margin-top: 20px; }
  .col-full { order: 3; margin-top: 20px; }
  .btn-pay { min-width: 200px; }
}
@media (max-width: 575px) {
  .pay-bar { flex-direction: column; align-items: stretch; }
  .btn-pay { width: 100%; min-width: 0; }
  .pay-brands { justify-content: center; }
  .page-footer { flex-direction: column; text-align: center; }
  .bank-strip { justify-content: center; gap: 14px; }
  .footer-right { justify-content: center; }
  .row-half { flex-direction: column; gap: 0; }
}

.spinner {
    position: relative;
    width: 100px;
    height: 100px;
}
#coverScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    filter: alpha(opacity=75);
    opacity: 0.75;
    background-color: rgba(255, 255, 255, 0.8);
}
 

    #coverScreen .spinner {
        display: flex;
        justify-content: center;
        align-items: center;
    }

.circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border: 8px solid #eee;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-sizing: border-box;
}

.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    z-index: 1;
}
@-webkit-keyframes spinner-border {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner-border {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border .75s linear infinite;
    animation: spinner-border .75s linear infinite;
}

.spinner-border-sm {
    width: 1.35rem;
    height: 1.35rem;
    border-width: 0.2em;
}

@-webkit-keyframes spinner-grow {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    50% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes spinner-grow {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    50% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

.spinner-grow {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0;
    -webkit-animation: spinner-grow .75s linear infinite;
    animation: spinner-grow .75s linear infinite;
}

.spinner-grow-sm {
    width: 1.35rem;
    height: 1.35rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}