/**
 * V3RTECH WC Discounts - Public CSS
 * 
 * @package V3rtech_WC_Discounts
 * @since 1.0.0
 */

/* ============================================================
   PREÇOS
   ============================================================ */

.v3rtech-wcd-price-wrapper {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.v3rtech-wcd-original-price {
    color: #999;
    font-size: 0.9em;
    text-decoration: line-through;
}

.v3rtech-wcd-final-price {
    color: #2b8a3e;
    font-weight: 600;
    text-decoration: none;
}

/* Badges */
.v3rtech-wcd-discount-badge {
    display: inline-block;
    background: #d3f9d8;
    color: #2b8a3e;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
}

.v3rtech-wcd-penalty-badge {
    display: inline-block;
    background: #ffe3e3;
    color: #c92a2a;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
}

/* ============================================================
   TABELA DE DESCONTOS
   ============================================================ */

.v3rtech-wcd-discount-table-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.v3rtech-wcd-table-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.v3rtech-wcd-discount-table,
.v3rtech-wcd-penalty-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: #ffffff;
}

.v3rtech-wcd-discount-table th,
.v3rtech-wcd-discount-table td,
.v3rtech-wcd-penalty-table th,
.v3rtech-wcd-penalty-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.v3rtech-wcd-discount-table th,
.v3rtech-wcd-penalty-table th {
    background: #ffffff;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.v3rtech-wcd-discount-table tbody tr,
.v3rtech-wcd-penalty-table tbody tr {
    background: #ffffff;
}

.v3rtech-wcd-discount-table tbody tr:hover,
.v3rtech-wcd-penalty-table tbody tr:hover {
    background: #fafafa;
}

.v3rtech-wcd-discount-table tbody tr:last-child td,
.v3rtech-wcd-penalty-table tbody tr:last-child td {
    border-bottom: none;
}

.v3rtech-wcd-discount-value {
    color: #2b8a3e;
    font-weight: 600;
    font-size: 15px;
}

.v3rtech-wcd-penalty-title {
    margin: 20px 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #c92a2a;
}

.v3rtech-wcd-penalty-value {
    color: #c92a2a;
    font-weight: 600;
    font-size: 15px;
}

/* ============================================================
   CONTAGEM REGRESSIVA
   ============================================================ */

.v3rtech-wcd-countdown {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.v3rtech-wcd-countdown.v3rtech-wcd-urgent {
    background: #f8d7da;
    color: #721c24;
    animation: v3rtech-wcd-pulse 1.5s infinite;
}

@keyframes v3rtech-wcd-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============================================================
   CARRINHO
   ============================================================ */

.v3rtech-wcd-cart-price,
.v3rtech-wcd-cart-subtotal {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.v3rtech-wcd-cart-price del,
.v3rtech-wcd-cart-subtotal del {
    color: #999;
    font-size: 0.85em;
}

.v3rtech-wcd-cart-price ins,
.v3rtech-wcd-cart-subtotal ins {
    color: #2b8a3e;
    font-weight: 600;
    text-decoration: none;
}

/* Fees no carrinho */
.cart-discount .woocommerce-Price-amount,
.fee .woocommerce-Price-amount {
    font-weight: 600;
}

/* Desconto (negativo) */
.cart-discount .woocommerce-Price-amount {
    color: #2b8a3e;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media screen and (max-width: 768px) {
    .v3rtech-wcd-discount-table-wrapper {
        padding: 15px;
    }
    
    .v3rtech-wcd-discount-table th,
    .v3rtech-wcd-discount-table td,
    .v3rtech-wcd-penalty-table th,
    .v3rtech-wcd-penalty-table td {
        padding: 10px;
        font-size: 13px;
    }
    
    .v3rtech-wcd-price-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
