/**
 * Frontend styles for WooCommerce BOGO Discount
 *
 * @package WooBOGODiscount
 */

/* Promotional message styling */
.bogo-promo-message {
    background-color: #000000 !important;
    color: white !important;
    border-color: #333333 !important;
    padding: 10px 20px !important;
    margin-bottom: 20px !important;
    border-radius: 5px !important;
    border-left: 4px solid #333333 !important;
}

.bogo-promo-message strong {
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
}

.bogo-promo-message small {
    font-size: 12px;
    opacity: 0.9;
}

/* Mini cart message */
.bogo-mini-cart-message {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
}

.bogo-mini-cart-message strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

/* Discount amount shown in checkout/review-order subtotal column */
.bogo-discount-amount {
    color: #4CAF50;
    font-weight: 700;
    margin-left: 8px;
    font-size: 13px;
}

/* Use pure black for discounted price text in checkout review order */
.woocommerce-checkout-review-order .product-total ins,
.woocommerce-checkout .product-total ins,
.woocommerce-checkout-review-order .product-subtotal ins,
.woocommerce-checkout .product-subtotal ins {
    color: #000 !important;
}

/* Discount note in subtotal */
.bogo-discount-note {
    color: #4CAF50;
    font-weight: 600;
    display: inline-block;
    margin-top: 3px;
}

/* Price display enhancements - Cart and Checkout */
.woocommerce-cart-form__cart-item .product-price del,
.woocommerce-cart-form__cart-item .product-subtotal del,
.woocommerce table.shop_table .product-price del,
.woocommerce table.shop_table .product-subtotal del,
.woocommerce-checkout-review-order .product-total del {
    opacity: 1;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    margin-left: 6px;
    color: #7B7B79;
    font-family: 'Titillium Web', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    display: inline-block;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
}

.woocommerce-cart-form__cart-item .product-price ins,
.woocommerce-cart-form__cart-item .product-subtotal ins,
.woocommerce table.shop_table .product-price ins,
.woocommerce table.shop_table .product-subtotal ins,
.woocommerce-checkout-review-order .product-total ins {
    background: transparent;
    color: #1B1B1B;
    font-family: 'Titillium Web', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    display: inline-block;
}

/* Make strikethrough more visible in all cart contexts */
.cart_item del,
.woocommerce-cart del,
.woocommerce-checkout del {
    position: relative;
}

/* SAVE 50% badge for discounted items */
.bogo-save-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1B1B1B;
    border-radius: 4px;
    padding: 5px 8px;
    margin-left: 8px;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #1B1B1B;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Checkout page styling */
.woocommerce-checkout .bogo-promo-message {
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bogo-promo-message {
        padding: 8px 15px !important;
    }

    .bogo-promo-message strong {
        font-size: 13px;
    }

    .bogo-promo-message small {
        font-size: 11px;
    }
}

/* (Mobile alignment reverted) */

/* Animation for promotional message */
@keyframes bogo-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bogo-promo-message {
    animation: bogo-fade-in 0.3s ease-in-out;
}
