/**
 * 1800 Doorbell - Cart & Checkout Styles
 * 
 * Extracted from Code Snippets Pro for better performance
 * Original location: code-snippets-styles.css Sections 5 & 9
 * Condition: is_cart() || is_checkout()
 * 
 * CONTENTS:
 * - SKU display styling
 * - Product name formatting
 * - Backorder notices
 * - Block checkout compatibility
 * 
 * @package 1800doorbell
 * @version 2.0.0
 */

/* ========================================
   CART/CHECKOUT SKU STYLES
   ======================================== */

.woocommerce-cart-form__cart-item .product-name a,
.woocommerce-checkout-review-order-table .product-name,
.wc-block-cart-items__row .wc-block-components-product-name,
.wc-block-checkout-order-summary-item__name,
.wc-block-components-product-name {
    font-family: monospace;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

/* Hide product title span - Works with wrapSKUsOnly() JavaScript */
.wc-block-components-product-name .product-title-hide {
    display: none !important;
}

.wc-block-components-product-name .sku-only {
    font-family: monospace;
    font-weight: 600;
    font-size: 1.1em;
}

/* Data attribute method - Works with addSKUDataAttribute() JavaScript */
.wc-block-components-product-name.has-sku-data {
    font-size: 0 !important;
}

.wc-block-components-product-name.has-sku-data::before {
    content: attr(data-sku-only);
    font-size: 1.1rem;
    font-family: monospace;
    font-weight: 600;
}

/* Hide product descriptions and metadata in blocks */
.wc-block-components-product-metadata__description,
.wc-block-components-product-details,
.wc-block-components-product-metadata {
    display: none !important;
}

.wc-block-components-product-name.sku-processed {
    font-family: monospace !important;
    font-weight: 600 !important;
    font-size: 1.1em !important;
}

/* ========================================
   BACKORDER CART/CHECKOUT NOTICE
   ======================================== */

.backorder-cart-notice {
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
    border: 2px solid #ff6b6b;
    border-left: 5px solid #ff6b6b;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.15);
    width: 100%;
    box-sizing: border-box;
}

.backorder-cart-notice h4 {
    margin: 0 0 15px 0;
    color: #c53030;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.backorder-cart-notice .backorder-icon {
    font-size: 22px;
}

.backorder-cart-notice ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.backorder-cart-notice li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    font-size: 15px;
    color: #333;
    border-left: 3px solid #ff6b6b;
}

.backorder-cart-notice li:last-child {
    margin-bottom: 0;
}

.backorder-cart-notice li strong {
    color: #c53030;
    font-weight: 600;
}

@media (max-width: 768px) {
    .backorder-cart-notice {
        padding: 15px 18px;
        margin-bottom: 20px;
    }
    
    .backorder-cart-notice h4 {
        font-size: 16px;
    }
    
    .backorder-cart-notice li {
        font-size: 14px;
        padding: 8px 12px;
    }
}
