/* 基本按钮样式 */
.gpp-payment-container {
    margin-top: 10px;
}

.gpp-payment-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    transition: background-color 0.3s, opacity 0.3s;
    display: inline-block;
    /* 确保块级行为 */
    width: auto;
    /* 防止宽度变化 */
    box-sizing: border-box;
    /* 包含 padding 在尺寸内 */
}

.gpp-payment-button:hover {
    background-color: #005d87;
}

/* 加载状态样式 */
.gpp-payment-button-loading {
    padding: 10px 20px;
    /* 与正常状态一致 */
    background-color: #cccccc;
    /* 灰色表示加载中 */
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
    font-size: 16px;
    /* 与正常状态一致 */
    line-height: 1.5;
    /* 与正常状态一致 */
    opacity: 0.7;
    /* 降低不透明度表示加载 */
    display: inline-block;
    /* 确保块级行为 */
    width: auto;
    /* 防止宽度变化 */
    box-sizing: border-box;
    /* 包含 padding 在尺寸内 */
    transition: background-color 0.3s, opacity 0.3s;
    /* 平滑过渡 */
}

/* Donation field wrapper */
.gpp-payment-container .gpp-donation-field {
    margin-bottom: 12px;
}

/* Donation label */
.gpp-payment-container .gpp-donation-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* Donation input */
.gpp-payment-container .gpp-donation-field input[type="number"] {
    width: 100%;
    max-width: 220px;
    padding: 8px 10px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-sizing: border-box;
}

/* Focus state */
.gpp-payment-container .gpp-donation-field input[type="number"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px rgba(0, 115, 170, 0.3);
}

.gpp-payment-container input[type="number"]::-webkit-inner-spin-button,
.gpp-payment-container input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
