/*
 * tm-payment-result — Garanti hosted ödeme sonuç modal'ı (subscription + balance + storefront paylaşır)
 * Trendmetrik design tokens uyumlu. Bootstrap 5 modal şasisi üstüne özel kart.
 */

#tmPaymentResultModal .modal-dialog {
    max-width: 480px;
}

#tmPaymentResultModal .modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

#tmPaymentResultModal .tm-pr-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #eef2f7;
}

#tmPaymentResultModal .tm-pr-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

#tmPaymentResultModal[data-result="succeeded"] .tm-pr-status-icon {
    background: #d1fae5;
    color: #059669;
}

#tmPaymentResultModal[data-result="failed"] .tm-pr-status-icon {
    background: #fee2e2;
    color: #dc2626;
}

#tmPaymentResultModal[data-result="pending"] .tm-pr-status-icon {
    background: #fef3c7;
    color: #d97706;
}

#tmPaymentResultModal .tm-pr-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

#tmPaymentResultModal .tm-pr-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

#tmPaymentResultModal .modal-body {
    padding: 1.25rem 1.5rem;
}

#tmPaymentResultModal .tm-pr-user-message {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

#tmPaymentResultModal .tm-pr-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

#tmPaymentResultModal .tm-pr-detail-table td {
    padding: 0.45rem 0;
    border-bottom: 1px dashed #e2e8f0;
    vertical-align: top;
    font-size: 0.9rem;
}

#tmPaymentResultModal .tm-pr-detail-table tr:last-child td {
    border-bottom: none;
}

#tmPaymentResultModal .tm-pr-detail-key {
    color: #64748b;
    font-weight: 500;
    width: 40%;
}

#tmPaymentResultModal .tm-pr-detail-val {
    color: #0f172a;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

#tmPaymentResultModal .tm-pr-detail-val.tm-pr-mono {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.82rem;
    color: #475569;
}

#tmPaymentResultModal .tm-pr-amount {
    font-weight: 600;
    color: #059669;
}

#tmPaymentResultModal[data-result="failed"] .tm-pr-amount {
    color: #0f172a;
}

#tmPaymentResultModal .tm-pr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem 1.25rem;
    border-top: 1px solid #eef2f7;
    background: #fafbfc;
}

#tmPaymentResultModal .tm-pr-actions .btn {
    flex: 1 1 auto;
    min-width: 120px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
}

#tmPaymentResultModal .tm-pr-actions .btn-primary {
    background: #0175e4;
    border-color: #0175e4;
}

#tmPaymentResultModal .tm-pr-actions .btn-primary:hover {
    background: #015fbf;
    border-color: #015fbf;
}

#tmPaymentResultModal .tm-pr-actions .btn-outline-secondary {
    color: #475569;
    border-color: #cbd5e1;
    background: #fff;
}

#tmPaymentResultModal .tm-pr-actions .btn-link.tm-pr-support {
    color: #64748b;
    font-size: 0.83rem;
    text-decoration: underline;
    padding: 0.35rem 0;
    flex: 0 0 100%;
    text-align: center;
}

#tmPaymentResultModal .tm-pr-actions .btn-link.tm-pr-support:hover {
    color: #0175e4;
}

#tmPaymentResultModal .tm-pr-meta {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.5;
}

#tmPaymentResultModal .tm-pr-meta .tm-pr-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

#tmPaymentResultModal .tm-pr-meta-key {
    color: #94a3b8;
}

#tmPaymentResultModal .tm-pr-meta-val {
    color: #64748b;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

#tmPaymentResultModal .tm-pr-loading {
    padding: 2rem 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

#tmPaymentResultModal .tm-pr-loading .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2rem;
    margin-bottom: 0.5rem;
}

/* Dark mode support — sayfa zaten dark-mode.css yüklerse override eder */
body[data-theme="dark"] #tmPaymentResultModal .modal-content,
body.dark-mode #tmPaymentResultModal .modal-content {
    background: #1e293b;
    color: #e2e8f0;
}

body[data-theme="dark"] #tmPaymentResultModal .tm-pr-title,
body.dark-mode #tmPaymentResultModal .tm-pr-title {
    color: #f1f5f9;
}

body[data-theme="dark"] #tmPaymentResultModal .tm-pr-user-message,
body.dark-mode #tmPaymentResultModal .tm-pr-user-message,
body[data-theme="dark"] #tmPaymentResultModal .tm-pr-detail-val,
body.dark-mode #tmPaymentResultModal .tm-pr-detail-val {
    color: #e2e8f0;
}

body[data-theme="dark"] #tmPaymentResultModal .tm-pr-detail-key,
body.dark-mode #tmPaymentResultModal .tm-pr-detail-key {
    color: #94a3b8;
}

body[data-theme="dark"] #tmPaymentResultModal .tm-pr-header,
body.dark-mode #tmPaymentResultModal .tm-pr-header,
body[data-theme="dark"] #tmPaymentResultModal .tm-pr-actions,
body.dark-mode #tmPaymentResultModal .tm-pr-actions {
    background: #0f172a;
    border-color: #334155;
}
