/* CircoFlows Payment – Checkout card form styles */

/* Test-mode banner */
.circoflows-test-notice {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 0 4px 4px 0;
}

.circoflows-description {
    margin-bottom: 16px;
    color: #555;
    font-size: 14px;
}

/* Card form container */
.circoflows-card-form {
    border: none;
    padding: 0;
    margin: 0;
}

/* Field wrapper */
.circoflows-field {
    position: relative;
    margin-bottom: 14px;
}

.circoflows-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.circoflows-field label .required {
    color: #e2401c;
    font-style: normal;
    margin-left: 2px;
    text-decoration: none;
}

/* Inputs */
.circoflows-card-form input[type="tel"],
.circoflows-card-form input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    color: #222;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
    -webkit-appearance: none;
    appearance: none;
}

.circoflows-card-form input[type="tel"]:focus,
.circoflows-card-form input[type="password"]:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.15);
}

.circoflows-card-form input::placeholder {
    color: #aaa;
    letter-spacing: normal;
}

/* Row layout for expiry + CVV */
.circoflows-field-row {
    display: flex;
    gap: 14px;
}

.circoflows-field--half {
    flex: 1;
    min-width: 0;
}

.circoflows-field--full {
    width: 100%;
}

/* Card brand badge */
.circoflows-card-brand {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) translateY(10px); /* offset for label height */
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    pointer-events: none;
    transition: background 0.15s;
}

.circoflows-brand--visa       { background: #1a1f71; }
.circoflows-brand--mastercard { background: #eb001b; }
.circoflows-brand--amex       { background: #007bc1; }
.circoflows-brand--discover   { background: #ff6600; }
.circoflows-brand--jcb        { background: #003087; }
.circoflows-brand--dinersclub { background: #555; }

/* Responsive */
@media (max-width: 480px) {
    .circoflows-field-row {
        flex-direction: column;
        gap: 0;
    }
}
