/* DHK Zakelijke Klant Manager - Frontend Styles */

/* Discount Badge for Prices */
.dhk-zk-discount-badge {
    background: #28a745;
    color: white;
    padding: 3px 10px 5px 10px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease-in;
    line-height:1;
}

/* Ensure modified prices look good */
.woocommerce-variation-price:has(.dhk-zk-modified) {
    display:flex;
    flex-direction: column;
    justify-content: center;
}
.dhk-zk-modified .price {
    display: block;
    margin-bottom: 10px;
    font-size: 2.8rem;
    font-weight: 700;
    font-family: "Bitter", sans-serif;
}
.dhk-zk-modified * {
    font-size: 2.8rem;
    font-weight: 700;
    font-family: "Bitter", sans-serif;
}
.dhk-zk-modified del {
    color:#e5e5e5;
    opacity:1 !important;
    font-size: 2rem;
}

.dhk-zk-modified ins {
    color: #28a745;
    font-weight: bold;
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loop Discount Badge */
.dhk-zk-loop-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 3px 10px 5px 10px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9em;
    z-index: 10;
    line-height:1;
}

.dhk-zk-loop-discount-badge .discount-percentage {
    display: block;
    text-align: center;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Cart Price Display - Elegant and Subtle */
.dhk-zk-price-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
}

.dhk-zk-price-comparison {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    margin-bottom: 4px;
}

.dhk-zk-price-comparison .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.85em;
}

.dhk-zk-price-comparison .current-price {
    font-weight: 600;
    color: #28a745;
}

/* Cart Subtotal Display - Elegant and Subtle */
.dhk-zk-subtotal-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
}

.dhk-zk-subtotal-comparison {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    margin-bottom: 4px;
}

.dhk-zk-subtotal-comparison .original-subtotal .woocommerce-Price-amount {
    color: #999;
    text-decoration: line-through;
    font-size: 14px !important;
}

.dhk-zk-subtotal-comparison .current-subtotal {
    font-weight: 600;
    color: #28a745;
}

.discount-badge {
    background: #28a745;
    color: white;
    padding: 3px 10px 5px 10px;
    border-radius: 50px;
    font-size: 0.75em;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
    line-height:1;
    margin-right:10px;
}

/* Cart Savings Row - Elegant and Subtle */
.dhk-zk-cart-savings td {
    color: #28a745;
    font-weight: 600;
    font-size: 0.95em;
}

/* Order Summary - Elegant and Subtle */
.dhk-zk-order-summary {
    padding: 30px;
    background: #e5e5e5;
    padding: 16px;
    margin: 16px 0;
}

.dhk-zk-order-summary h3 {
    color: #495057;
    margin: 0 0 12px 0;
    font-size: 1.1em;
    font-weight: 500;
}

.dhk-zk-order-summary p {
    margin: 6px 0;
    color: #1f1a3a;
    font-size: 0.95em;
}



/* Responsive Design */
@media (max-width: 768px) {
    .dhk-zk-discount-badge {
        font-size: 0.7em;
        padding: 3px 6px;
        margin-left: 8px;
    }
    
    .dhk-zk-loop-discount-badge {
        top: 5px;
        right: 5px;
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .dhk-zk-price-comparison,
    .dhk-zk-subtotal-comparison {
        gap: 6px;
        margin-bottom: 3px;
    }
    
    .dhk-zk-price-comparison .original-price,
    .dhk-zk-subtotal-comparison .original-subtotal {
        font-size: 0.8em;
    }
    
    .dhk-zk-price-wrapper .discount-badge,
    .dhk-zk-subtotal-wrapper .discount-badge {
        font-size: 0.7em;
        padding: 1px 5px;
    }
    
    .dhk-zk-order-summary {
        padding: 12px;
        margin: 12px 0;
    }
    
    .dhk-zk-cart-savings {
        margin: 6px 0;
    }
}

/* Hover Effects */
.dhk-zk-discount-badge:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.dhk-zk-loop-discount-badge:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.dhk-zk-order-summary:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

/* Print Styles */
@media print {
    .dhk-zk-loop-discount-badge,
    .dhk-zk-discount-badge {
        display: none;
    }
}
