/* ── MP Checkout Pro — Card Form Styles ─────────────────────────────────── */

#mp-card-form {
    padding: 4px 0;
}

/* Field wrapper */
.cp-field-wrap {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.cp-field-wrap label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Side-by-side rows */
.cp-field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.cp-field-row .cp-field-wrap {
    flex: 1;
    margin-bottom: 0;
}

/* Inputs */
.cp-field {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #222;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.cp-field:focus {
    outline: none;
    border-color: #00a854;
    box-shadow: 0 0 0 3px rgba(0,168,84,.12);
}

/* Card number — wider */
.mp-card-number-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mp-card-number-field {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.12em;
    padding-right: 52px;
}

/* Brand icon */
.mp-card-brand {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.mp-card-brand img {
    max-width: 36px;
    max-height: 24px;
    object-fit: contain;
}

/* CVV wrap */
.mp-cvv-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mp-cvv-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    flex-shrink: 0;
}

.mp-cvv-wrap .cp-field {
    padding-right: 38px;
}

/* Select — custom arrow */
select.cp-field {
    cursor: pointer;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

/* Errors */
.mp-card-errors {
    background: #fff5f5;
    border: 1px solid #ffb3b3;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 8px;
    color: #c0392b;
    font-size: 0.88rem;
}

.mp-card-errors p {
    margin: 4px 0;
}

/* Issuer wrap (hidden until needed) */
.mp-issuer-wrap {
    margin-bottom: 14px;
}

/* Expiry placeholder */
#form-checkout__expirationDate::placeholder { color: #bbb; }
#form-checkout__cardNumber::placeholder      { color: #bbb; letter-spacing: 0; }
#form-checkout__securityCode::placeholder   { color: #bbb; }
#form-checkout__identificationNumber::placeholder { color: #bbb; }
#form-checkout__cardholderName::placeholder  { color: #bbb; }
