/* 折扣相关样式 */
.discount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 8px 12px;
    background-color: #fff8e1;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.discount-badge {
    background-color: #ff5722;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.final-price {
    font-size: 24px;
    font-weight: bold;
    color: #ff5722;
}

.original-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
}

/* .discount-amount {
    color: #ff5722;
    font-weight: bold;
    margin-left: 5px;
} */

/* 加载提示样式 */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.loading-spinner {
    margin-bottom: 15px;
}

.loading-spinner .fa-spinner {
    font-size: 40px;
    color: #ff5722;
}

.loading-text {
    font-size: 16px;
    color: #666;
    text-align: center;
}

/* 折扣行样式 */
.discount-row {
    background-color: #fff8e1;
    padding: 10px 15px !important;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    margin: 12px 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.discount-row span:first-child {
    font-weight: 500;
    color: #333;
}

/* 折扣金额样式 */
.discount-amount {
    color: #ff5722;
    font-weight: bold;
    font-size: 16px;
}

/* 折扣徽章样式 */
.discount-badge {
    background-color: #ff5722;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    margin-left: 8px;
    display: inline-block;
}

/* 新用户提示样式 */
.new-user-notice {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 10px 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    color: #2e7d32;
    font-size: 14px;
}

.new-user-notice i {
    margin-right: 10px;
    color: #4caf50;
}

/* 价格明细样式增强 */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    padding: 15px 0;
    border-top: 2px solid #eee;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

/* 价格数字样式 */
#totalOriginalPrice,
#discountAmount,
#shippingAmount,
#totalPrice {
    font-weight: 600;
    color: #333;
}

#totalPrice {
    font-size: 24px;
    color: #ff5722;
}

/* 原始价格（折扣前的价格） */
.original-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

/* 最终价格（折扣后的价格） */
.final-price {
    font-size: 24px;
    font-weight: bold;
    color: #ff5722;
}

/* 价格明细容器样式 */
.price-breakdown {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #eee;
}

.price-breakdown .breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.price-breakdown .breakdown-row.total {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* 运费行样式 */
.shipping-row {
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .summary-row {
        font-size: 14px;
    }
    
    .summary-row.total {
        font-size: 16px;
    }
    
    #totalPrice {
        font-size: 20px;
    }
    
    .discount-badge {
        font-size: 12px;
        padding: 3px 8px;
    }
}