/* ===== 余额与购买 ===== */

.cart-balance {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 12px;
    border-bottom: 1px dashed rgba(77, 34, 213, 0.3);
    font-size: 13px;
    color: #7a5cd6;
}

.cart-balance strong {
    font-size: 15px;
    color: #4d22d5;
}

.cart-note a {
    color: #c2185b;
    font-weight: bold;
    text-decoration: none;
}

.cart-note a:hover {
    text-decoration: underline;
}

.purchase-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(77, 34, 213, 0.2);
    font-size: 14px;
}

.purchase-line strong {
    font-size: 16px;
    color: #4d22d5;
}

.purchase-note {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.7;
    color: #7a5cd6;
}

.purchase-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.purchase-actions .primary-button {
    flex: 1;
    margin-top: 0;
    text-align: center;
}

.purchase-cancel {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #4d22d5;
    background: #fff8fe;
    color: #4d22d5;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.purchase-cancel:hover {
    background: #f1d3f2;
}

.purchase-icon {
    margin: 16px 0 4px;
    font-size: 44px;
    text-align: center;
}

#purchase-success h3,
#purchase-error h3 {
    margin-bottom: 12px;
    text-align: center;
    font-size: 20px;
}

.purchase-error-desc {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.7;
    color: #c2185b;
    text-align: center;
}

.purchase-done {
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.purchase-link {
    display: block;
    flex: 1;
    margin-top: 0;
    text-align: center;
    text-decoration: none;
}

.order-link {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #c2185b;
    text-decoration: none;
}

.order-link:hover {
    text-decoration: underline;
}
