/* GTS Bill - Card payments (NMI Collect.js) */

/* One clean border from us, none from NMI's iframe (pattern from GhostCart) */
.cj-field {
    position: relative;
    height: 44px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-elev-1);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.cj-field iframe {
    width: 100% !important;
    height: 42px !important;
    border: 0 !important;
    outline: 0 !important;
    display: block;
    background: transparent;
}
.cj-field.focus, .cj-field:focus-within {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.18);
}
.cj-field.invalid { border-color: #ef4444 !important; }
.cj-field.invalid.focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }

.cp-error { color: #ef4444; font-size: 13px; font-weight: 600; min-height: 1.3em; margin-top: 8px; }
.cp-section-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin: 6px 0 8px; }
.cp-saved-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cp-saved {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1px solid var(--border-card); border-radius: var(--radius-md);
    cursor: pointer; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500;
    background: var(--bg-elev-2);
}
.cp-saved:has(input:checked) { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.12); }
.cp-saved span { flex: 1; }
.cp-saved .cp-del { margin-left: auto; }
#cp-new[hidden] { display: none; }
