/* 点点易付 – Checkout Block 样式 */
/* 父容器 */
.ddpay-form {
    display: flex;
    flex-direction: column;
    gap: 12px;               /* 每行之间留空 */
    margin-top: 8px;
}

/* 通用输入框 */
.ddpay-form input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #d3d5d7;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
/* 获得焦点时：蓝边 + 微光 */
.ddpay-form input:focus {
    outline: none;
    border-color: #1e73be;
    box-shadow: 0 0 0 2px rgba(30,115,190,0.2);
}

/* placeholder 颜色与 WooCommerce 对齐 */
.ddpay-form input::placeholder {
    color: #8c8f94;
    opacity: 1;
}

/* 在错误状态时给 .is-invalid 类即可变红 */
.ddpay-form input.is-invalid {
    border-color: #d63638;
    background: #fff6f6;
}

.ddpay-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    margin-bottom: 12px;
}

.ddpay-label {
    /*font-weight: 600;*/
    color: #333;
}
.ddpay-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 12px;
}

.ddpay-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ddpay-input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.with-card-icon {
    padding-right: 44px;
}

.ddpay-card-icon-img {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    max-height: 24px;
    width: auto;
    max-width: 40px;
    pointer-events: none;
    display: block;
    object-fit: contain;
}