/**
 * WooCommerce Reservation Deposits - Frontend Styles
 */

/* Product Page Deposit Info */
.wrd-deposit-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.wrd-deposit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.wrd-deposit-row:last-child {
    border-bottom: none;
}

.wrd-deposit-row .wrd-label {
    font-weight: 500;
    color: #495057;
}

.wrd-deposit-row .wrd-value {
    font-weight: 600;
    color: #212529;
}

.wrd-deposit-row.wrd-deposit-amount {
    background: #fff;
    margin: 5px -10px;
    padding: 12px 10px;
    border-radius: 4px;
}

.wrd-deposit-row.wrd-deposit-amount .wrd-highlight {
    color: #AA7615;
    font-size: 1.1em;
}

.wrd-deposit-row.wrd-remaining .wrd-value {
    color: #6c757d;
}

/* Cart Table Styles */
.wrd-cart-price,
.wrd-cart-subtotal {
    display: block;
    font-weight: 600;
}

.wrd-cart-full-price,
.wrd-cart-full-subtotal {
    display: block;
    color: #6c757d;
    font-size: 0.85em;
    text-decoration: line-through;
    margin-top: 3px;
}

/* ===================== */
/* Cart & Checkout Breakdown - Georgian Layout */
/* ===================== */

/* Section Headers */
.wrd-section-header th {
    background: #2c3e50 !important;
    color: #fff !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wrd-section-header.wrd-section-reservation th {
    background: #AA7615 !important;
    margin-top: 10px;
}

/* General breakdown rows */
.wrd-breakdown th,
.wrd-breakdown td {
    padding: 10px 15px !important;
    border-bottom: 1px solid #eee !important;
    background: #fafafa;
}

.wrd-breakdown th {
    font-weight: 500;
    color: #555;
}

/* Regular price - muted */
.wrd-breakdown.wrd-regular-price td {
    color: #888;
    text-decoration: line-through;
}

/* Sale price - highlighted with brand color */
.wrd-breakdown.wrd-sale-price td {
    color: #AA7615;
    font-size: 1.1em;
}

.wrd-breakdown.wrd-sale-price td strong {
    color: #AA7615;
}

/* Notice text */
.wrd-breakdown.wrd-notice td {
    font-style: italic;
    color: #666;
    font-size: 13px;
    padding: 8px 15px !important;
    background: #f0f0f0;
}

/* Reservation fee */
.wrd-breakdown.wrd-reservation-fee td {
    color: #333;
}

/* Remaining balance */
.wrd-breakdown.wrd-remaining-balance {
    background: #fff8e6 !important;
}

.wrd-breakdown.wrd-remaining-balance th,
.wrd-breakdown.wrd-remaining-balance td {
    background: #fff8e6 !important;
    color: #AA7615;
}

/* Hide default WooCommerce rows when cart has deposit products */
body.wrd-has-deposits .cart_totals .cart-subtotal,
body.wrd-has-deposits .woocommerce-checkout-review-order-table .cart-subtotal,
body.wrd-has-deposits .cart_totals .fee,
body.wrd-has-deposits .woocommerce-checkout-review-order-table .fee {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .wrd-deposit-info {
        padding: 12px 15px;
    }
    
    .wrd-deposit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .wrd-deposit-row .wrd-value {
        align-self: flex-end;
    }
    
    .wrd-section-header th,
    .wrd-breakdown th,
    .wrd-breakdown td {
        padding: 10px !important;
        font-size: 13px;
    }
}
