@charset "UTF-8";

/* ===== Checkout / Payment / Result Pages ===== */
.checkout-page { background: #f5f7fb; }

/* Checkout Card */
.checkout-card {
    background: var(--pub-color-bg-white, #fff);
    border-radius: var(--pub-radius-xl, 1.25rem);
    border: 1px solid var(--pub-color-border-light, #e2e6ef);
    box-shadow: var(--pub-shadow-md, 0 8px 24px rgba(10,14,39,.08));
    padding: 2rem;
}
.checkout-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--pub-color-text, #1a1f36);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pub-color-border-light, #e2e6ef);
}
.checkout-card__lead {
    margin: -0.25rem 0 1.4rem;
    color: #5c6478;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Legal Links */
.checkout-legal .form-check-label {
    font-size: 0.875rem;
    color: var(--pub-color-text-muted, #5c6478);
}
.checkout-legal .form-check-label a {
    color: #1e6eb5;
    font-weight: 500;
    text-decoration: underline;
}
.checkout-legal .form-check-label a:hover {
    color: #2196c9;
}

/* Error Display */
.checkout-error:empty {
    display: none;
}
.checkout-error {
    margin-top: 1rem;
}

/* Order Summary */
.order-summary {
    background: var(--pub-color-bg-white, #fff);
    border-radius: var(--pub-radius-xl, 1.25rem);
    border: 1px solid var(--pub-color-border-light, #e2e6ef);
    box-shadow: var(--pub-shadow-md, 0 8px 24px rgba(10,14,39,.08));
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}
.order-summary__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--pub-color-text, #1a1f36);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--pub-color-border-light, #e2e6ef);
}

.order-summary__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--pub-color-border-light, #e2e6ef);
}
.order-summary__head-ico {
    flex-shrink: 0;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #eef7ff 0%, #e4f2ff 100%);
    border: 1px solid #d4e9fb;
    color: #1e6eb5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.order-summary__head-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.order-summary__head-hint {
    font-size: 0.75rem;
    color: var(--pub-color-text-muted, #8891a8);
}

.summary-coupon {
    padding: 0.85rem 0.95rem;
    margin-bottom: 1rem;
    border-radius: 0.65rem;
    background: linear-gradient(180deg, #fafdff 0%, #f5f9ff 100%);
    border: 1px solid #dbe8f9;
}
.summary-coupon__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #5e6d8c;
    margin-bottom: 0.45rem;
}
.summary-coupon__row {
    display: flex;
    gap: 0.45rem;
    align-items: stretch;
}
.summary-coupon__input {
    flex: 1;
    min-width: 0;
    border-radius: 0.5rem;
    border: 1px solid #ccd8ea;
    padding: 0.55rem 0.65rem;
    font-size: 0.9rem;
    background: #fff;
    color: #1a1f36;
}
.summary-coupon__input:focus {
    outline: none;
    border-color: #2196c9;
    box-shadow: 0 0 0 3px rgba(33,150,201,.14);
}
.summary-coupon__btn {
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0 0.95rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    background: linear-gradient(180deg, #26a869 0%, #1f8f59 100%) !important;
    color: #fff !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(31,143,89,.35);
}
.summary-coupon__btn:hover {
    filter: brightness(1.06);
}
.summary-coupon__applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}
.summary-coupon__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0d683f;
    background: #dff6ea;
    border: 1px solid #bde8d7;
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
}
.summary-coupon__chip i {
    opacity: 0.85;
    font-size: 0.8rem;
}
.summary-coupon__remove {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #b5473a !important;
    text-decoration: none !important;
    padding: 0.2rem 0.35rem;
    border-radius: 0.35rem;
}
.summary-coupon__remove:hover {
    background: rgba(181,71,58,.09);
}
.summary-coupon__msg {
    margin-top: 0.55rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}
.summary-coupon__msg-ok {
    color: #0d6844;
}
.summary-coupon__msg-err {
    color: #b42318;
}
.summary-coupon__msg .fa-solid {
    margin-right: 0.35rem;
}

.order-summary__row--save {
    color: #0d6844 !important;
    font-weight: 600;
}
.order-summary__save-amt {
    color: #0d6844 !important;
    font-weight: 700;
}
.order-summary__product {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--pub-color-border-light, #e2e6ef);
    margin-bottom: 1.25rem;
}
.order-summary__img {
    width: 80px;
    height: 80px;
    border-radius: 0.625rem;
    object-fit: cover;
    border: 1px solid var(--pub-color-border-light, #e2e6ef);
    flex-shrink: 0;
}
.order-summary__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--pub-color-text, #1a1f36);
    line-height: 1.4;
}
.order-summary__prices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.order-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--pub-color-text-muted, #5c6478);
}
.order-summary__row--highlight {
    color: var(--pub-color-text, #1a1f36);
    font-weight: 500;
}
.order-summary__row--total {
    padding-top: 0.75rem;
    border-top: 2px solid var(--pub-color-border-light, #e2e6ef);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pub-color-text, #1a1f36);
}
.order-summary__old-price {
    text-decoration: line-through;
    color: var(--pub-color-text-muted, #5c6478);
}
.order-summary__current-price {
    color: #1e6eb5;
    font-weight: 600;
}
.order-summary__total-price {
    color: #1e6eb5;
    font-weight: 700;
}
.order-summary__campaign {
    margin-top: 0.9rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.45rem;
    background: #64a70b;
    color: #fff;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
}
.order-summary__continue {
    width: 100%;
    margin-top: 0.6rem;
    border: none;
    border-radius: 0.5rem;
    background: #1e6eb5;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
}
.order-summary__balance {
    color: var(--pub-color-success, #0d9f6e);
    font-weight: 600;
}

/* Payment Container */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 1.25rem;
}
.checkout-main {
    background: #fff;
    border: 1px solid #e2e6ef;
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px rgba(10,14,39,.08);
    padding: 1.5rem;
}
.checkout-main__title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--pub-color-text, #1a1f36);
}
.checkout-main__subtitle {
    margin: -0.35rem 0 1rem;
    color: #5c6478;
    font-size: 0.92rem;
    line-height: 1.55;
}
.checkout-steps {
    display: flex;
    gap: 0.55rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
}
.checkout-step {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #d5deeb;
    color: #7b869d;
    background: #fff;
}
.checkout-step--done {
    color: #0d9f6e;
    border-color: #bde8d7;
    background: #f0fbf6;
}
.checkout-step--active {
    color: #1e6eb5;
    border-color: #b9d9f7;
    background: #eef7ff;
}

.checkout-steps--card {
    margin-bottom: 1.35rem;
}

.checkout-methods {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.checkout-method {
    border: 1px solid #e2e6ef;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}
.checkout-method__head {
    width: 100%;
    border: none;
    background: #fff;
    padding: 1rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2a3246;
}
.checkout-method__head span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.checkout-method__body {
    display: none;
    padding: 0.8rem 0.9rem 1rem;
    border-top: 1px solid #ecf0f6;
    background: #fafbfd;
}
.checkout-method.is-open .checkout-method__body {
    display: block;
}
.pay-note {
    background: #f2f8ff;
    border: 1px solid #d8e8f9;
    color: #5c6478;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    padding: 0.55rem 0.75rem;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.65rem;
}
.pay-note i {
    color: #1e6eb5;
}
.pay-iframe-wrap {
    background: #fff;
    border: 1px solid #e4eaf4;
    border-radius: 0.55rem;
    padding: 0.4rem;
}
.pay-warning {
    background: #fff8ec;
    border: 1px solid #ffe0ab;
    color: #8a5a16;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.bank-list {
    display: grid;
    gap: 0.7rem;
}
.bank-card {
    border: 1px solid #dce5f2;
    border-radius: 0.55rem;
    background: #fff;
    padding: 0.7rem 0.8rem;
    cursor: pointer;
    display: block;
}
.bank-card input {
    display: none;
}
.bank-card input:checked + .bank-card__head {
    color: #1e6eb5;
}
.bank-card__head {
    font-weight: 700;
    color: #2a3246;
    margin-bottom: 0.45rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #edf1f7;
}
.bank-card__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem;
    padding: 0.28rem 0;
    font-size: 0.83rem;
    color: #4e5870;
}
.bank-card__row span {
    color: #77819a;
}
.bank-card__row strong {
    color: #2a3246;
}
.bank-card__row--iban {
    align-items: center;
}
.iban-copy-btn {
    margin-left: auto;
    border: 1px solid #d9e3f2;
    background: #f5f9ff;
    width: 30px;
    height: 30px;
    border-radius: 0.4rem;
    color: #1e6eb5;
}
.iban-copy-btn.is-copied {
    background: #e8f8ef;
    border-color: #bce8cb;
    color: #0d9f6e;
}
.checkout-open-main {
    border: 1px solid #bfd8f3;
    background: #eef7ff;
    color: #1e6eb5;
    border-radius: 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.55rem 0.8rem;
}
.checkout-method__info {
    font-size: 0.9rem;
    color: #5c6478;
    line-height: 1.6;
}

.checkout-summary {
    background: #fff;
    border: 1px solid #e2e6ef;
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px rgba(10,14,39,.08);
    padding: 1rem;
    position: sticky;
    top: 5.6rem;
    height: fit-content;
}
.checkout-summary__title {
    margin: 0 0 0.8rem;
    font-size: 1.15rem;
    font-weight: 700;
}
.checkout-summary__product {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #ecf0f6;
}
.checkout-summary__img {
    width: 72px;
    height: 72px;
    border-radius: 0.5rem;
    object-fit: cover;
}
.checkout-summary__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2a3246;
}
.checkout-summary__price {
    margin-top: 0.35rem;
    font-size: 1.55rem;
    font-weight: 700;
    color: #1e6eb5;
}
.checkout-summary__totals {
    margin-top: 0.8rem;
}
.checkout-summary__line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.95rem;
    color: #5c6478;
}
.checkout-summary__line--total {
    font-size: 1.1rem;
    color: #2a3246;
    font-weight: 700;
}
.checkout-consents {
    margin-top: 0.75rem;
    border: 1px solid #e4eaf4;
    border-radius: 0.5rem;
    background: #f8fbff;
    padding: 0.55rem 0.65rem;
}
.checkout-consents__item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #5c6478;
    margin-bottom: 0.4rem;
}
.checkout-consents__item:last-child {
    margin-bottom: 0;
}

/* iyzico form responsive override */
#iyzipay-checkout-form.responsive {
    width: 100% !important;
}
#iyzipay-checkout-form iframe {
    width: 100% !important;
    min-height: 500px;
}

/* Result Pages */
.result-page {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 540px;
    margin: 0 auto;
}
.result-page__icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}
.result-page__icon svg {
    width: 80px;
    height: 80px;
}
.result-page__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 1rem;
}
.result-page--success .result-page__title {
    color: var(--pub-color-success, #0d9f6e);
}
.result-page--error .result-page__title {
    color: var(--pub-color-danger, #e5534b);
}
.result-page__desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--pub-color-text-muted, #5c6478);
    margin: 0 0 0.75rem;
}
.result-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Alert Styles (for inline errors) */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .order-summary {
        position: static;
    }
    .checkout-summary {
        position: static;
    }
}
@media (max-width: 767px) {
    .checkout-card {
        padding: 1.25rem;
    }
    .order-summary {
        padding: 1.25rem;
    }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .result-page {
        padding: 2rem 0.5rem;
    }
}

/* Yasal metinler (satın alma modalları) */
.legal-doc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #374151;
}

.legal-doc h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    color: #111827;
}

.legal-doc h2:first-child {
    margin-top: 0;
}

.legal-doc h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 1rem 0 0.45rem;
    color: #1f2937;
}

.legal-doc p,
.legal-doc li {
    margin: 0 0 0.55rem;
}

.legal-doc ul {
    padding-left: 1.15rem;
    margin: 0 0 0.65rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.65rem 0 1rem;
    font-size: 0.82rem;
}

.legal-table th,
.legal-table td {
    border: 1px solid #e5e7eb;
    padding: 0.45rem 0.55rem;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    width: 34%;
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

@media (max-width: 767px) {
    .legal-table th {
        width: 40%;
    }
}
