/* ==========================================================================
   CFG CARDPOINTE VAULT & COI BOX STYLING
   ========================================================================== */

.cfg-cc-vault-box {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #0C4D9C;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    font-family: inherit;
    color: #334155;
}

.cfg-cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.cfg-cc-title {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cfg-cc-brands {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cfg-cc-badge {
    height: 22px;
    width: 34px;
    border-radius: 3px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: -0.2px;
    box-sizing: border-box;
}

.cfg-cc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.cfg-cc-field-full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

.cfg-cc-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.cfg-cc-label .req {
    color: #dc2626;
}

.cfg-cc-input {
    width: 100% !important;
    height: 42px !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    box-sizing: border-box !important;
}

.cfg-cc-input:focus {
    outline: none !important;
    border-color: #0C4D9C !important;
    box-shadow: 0 0 0 3px rgba(12, 77, 156, 0.15) !important;
}

/* Force CardPointe iframe wrapper to expand full width */
.cfg-cc-iframe-wrapper {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    height: 42px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.cfg-cc-iframe-wrapper iframe,
#tokenframe {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    border: 0 !important;
    display: block !important;
}

.cfg-cc-auth-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 12px 14px;
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cfg-cc-auth-box input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #0C4D9C;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.cfg-cc-auth-label {
    font-size: 12px;
    color: #1e40af;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 600px) {
    .cfg-cc-grid {
        grid-template-columns: 1fr;
    }
}
