.ts-upi-card {
    background: #0f172a;
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 12px;
    padding: 16px;
    color: #e2e8f0;
    margin-top: 8px;
}
.ts-upi-flex {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.ts-upi-qr-wrap {
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.ts-upi-details {
    flex: 1 1 230px;
    font-size: 13.5px;
    line-height: 1.5;
}
.ts-upi-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    margin-bottom: 6px;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
}
.ts-upi-lbl {
    color: #94a3b8;
    font-size: 12px;
}
.ts-upi-val {
    color: #f8fafc;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    word-break: break-all;
}
.ts-upi-copy-btn {
    background: rgba(20, 184, 166, 0.16);
    color: #5eead4;
    border: 1px solid rgba(20, 184, 166, 0.4);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.ts-upi-copy-btn.is-copied {
    background: #10b981;
    color: #042f2e;
    border-color: #10b981;
}
.ts-upi-intent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    color: #042f2e !important;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none !important;
}
.ts-upi-utr-wrap {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.ts-upi-utr-wrap label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #f8fafc;
    margin-bottom: 6px;
}
.ts-upi-utr-wrap input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #020617;
    color: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    letter-spacing: 0.08em;
}
.ts-upi-note {
    font-size: 12px;
    color: #94a3b8;
    margin: 6px 0 0;
}

label[for="payment_method_tradeswing_upi"] {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.25 !important;
    vertical-align: middle !important;
}
.ts-cpay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 4px 10px;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(20, 184, 166, 0.45);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2 !important;
    color: #e2e8f0;
    vertical-align: middle;
}
.ts-cpay-badge img,
.ts-cpay-badge span {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    margin: 0;
}
.ts-upi-utr-error {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #fda4af;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
}
.ts-upi-utr-wrap input.ts-utr-invalid {
    border-color: #f43f5e !important;
}

.ts-upi-trust-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.25);
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.35;
}
.ts-upi-trust-bar strong { color: #5eead4; }

.ts-cpay-logo {
    height: 24px !important;
    width: auto !important;
    max-height: 24px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
}
.ts-upi-app-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.ts-upi-app-lbl {
    font-size: 11.5px;
    color: #94a3b8;
}
.ts-upi-app-pills a {
    font-size: 11.5px;
    font-weight: 600;
    color: #5eead4 !important;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 6px;
    padding: 3px 8px;
    text-decoration: none !important;
}
.ts-upi-app-pills a:hover {
    background: rgba(20, 184, 166, 0.25);
}


/* v1.0.19: Desktop shows clean QR + Copy only; Mobile shows Save QR + package-targeted UPI apps */
.ts-upi-mobile-only { display: none; margin-top: 10px; }
@media (max-width: 768px) {
    .ts-upi-mobile-only { display: block; }
}
.ts-upi-mob-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}
.ts-upi-save-qr-btn,
.ts-upi-copy-combo {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    background: rgba(20, 184, 166, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.45);
    color: #5EEAD4;
}
.ts-upi-copy-combo {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.45);
    color: #7DD3FC;
}


/* v1.0.20: Center QR code cleanly on mobile */
@media (max-width: 768px) {
    .ts-upi-flex {
        flex-direction: column !important;
        align-items: center !important;
    }
    .ts-upi-qr-wrap {
        margin: 0 auto !important;
    }
    .ts-upi-details {
        width: 100% !important;
    }
}
