woo-alipay/inc/modules/huabei/css/alipay-installment.css

120 lines
No EOL
2.1 KiB
CSS

/**
* 花呗分期支付样式
*/
.alipay-installment-selector {
margin: 15px 0;
padding: 15px;
background: #f9f9f9;
border: 1px solid #e0e0e0;
border-radius: 4px;
}
.alipay-installment-selector p {
margin: 0 0 10px 0;
font-weight: 600;
color: #333;
}
.installment-periods {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 10px;
}
.installment-periods li {
margin: 0;
padding: 0;
}
.installment-periods label {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 15px;
background: #fff;
border: 2px solid #ddd;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
}
.installment-periods label:hover {
border-color: #1677ff;
background: #f0f7ff;
}
.installment-periods input[type="radio"] {
margin-right: 10px;
width: 18px;
height: 18px;
}
.installment-periods input[type="radio"]:checked + .period-label {
color: #1677ff;
font-weight: 600;
}
.installment-periods label:has(input:checked) {
border-color: #1677ff;
background: #f0f7ff;
box-shadow: 0 0 0 1px #1677ff;
}
.period-label {
flex: 1;
font-size: 15px;
font-weight: 500;
color: #333;
}
.period-amount {
font-size: 14px;
color: #666;
font-weight: 500;
}
.alipay-installment-notice {
padding: 10px 15px;
background: #fff3cd;
border: 1px solid #ffc107;
border-radius: 4px;
color: #856404;
margin: 10px 0;
}
.alipay-badge {
display: inline-block;
padding: 0 6px;
line-height: 18px;
height: 18px;
border-radius: 9px;
font-size: 12px;
font-weight: 600;
margin-left: 6px;
}
.alipay-badge--free {
background: #e8f5e9;
color: #2e7d32;
border: 1px solid #a5d6a7;
}
/* 移动端适配 */
@media (max-width: 768px) {
.installment-periods {
grid-template-columns: 1fr;
}
.installment-periods label {
padding: 10px 12px;
}
.period-label,
.period-amount {
font-size: 14px;
}
}