/**
 * Modern Cart Styles
 * Custom styles for T95CC cart with pink color scheme
 */

/* Hide default WooCommerce cart elements */
.woocommerce form.woocommerce-cart-form,
.woocommerce .cart-collaterals,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-notices-wrapper {
    display: none !important;
}

/* Remove number input spinners */
.t95cc-modern-cart input[type="number"]::-webkit-inner-spin-button,
.t95cc-modern-cart input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.t95cc-modern-cart input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Override Elementor styles - only specific properties */
.t95cc-modern-cart button,
.t95cc-modern-cart input,
.t95cc-modern-cart select,
.t95cc-modern-cart textarea {
    /* Reset only problematic Elementor styles */
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
}

/* Button base styles */
.t95cc-modern-cart button[type="button"],
.t95cc-modern-cart button[type="submit"] {
    font-family: inherit !important;
    line-height: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Remove all button defaults */
.t95cc-modern-cart button {
    border: none !important;
    outline: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

/* Quantity controls */
.t95cc-quantity-group {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    background: white !important;
    overflow: hidden !important;
    width: 150px;
}

.t95cc-quantity-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    color: #4b5563 !important;
    background-color: white !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    outline: none !important;
    box-shadow: none !important;
}

.t95cc-quantity-btn:hover {
    background-color: #f3f4f6 !important;
}

.t95cc-quantity-btn.decrease {
    border-right: 1px solid #e5e7eb !important;
}

.t95cc-quantity-btn.increase {
    border-left: 1px solid #e5e7eb !important;
}

/* Quantity input - specific overrides for better height control */
.t95cc-quantity-input {
    border: none!important;
    text-align: center;
    -moz-appearance: textfield !important;
}

/* Remove item button */
.t95cc-remove-item {
    margin-left: 16px !important;
    padding: 8px !important;
    color: #9ca3af !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    outline: none !important;
    box-shadow: none !important;
}

.t95cc-remove-item:hover {
    color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* Coupon form */
.t95cc-coupon-input {
    width: 70% !important;
    padding: 0 12px !important;
    height: 32px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    background-color: white !important;
    color: #111827 !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.2s !important;
}

.t95cc-coupon-input:focus {
    border-color: #FA60D1 !important;
    box-shadow: 0 0 0 2px rgba(250, 96, 209, 0.1) !important;
}

.t95cc-coupon-btn {
    width: 30% !important;
    height: 32px !important;
    padding: 0 16px !important;
    background: linear-gradient(to right, #FA60D1, #E850BB) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 0.375rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    outline: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.t95cc-coupon-btn:hover {
    background: linear-gradient(to right, #E850BB, #D540A5) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Main page width */
body.woocommerce-cart #main {
    width: 1240px !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
}

/* Transitions */
.t95cc-modern-cart * {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Animations */
.scale-75 {
    transform: scale(0.75);
    transition: transform 0.1s;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    /* Smaller quantity group on mobile */
    .t95cc-quantity-group {
        width: 120px !important;
    }
    
    .t95cc-quantity-btn {
        width: 32px !important;
        height: 32px !important;
    }
    
    .t95cc-quantity-input {
        width: 56px !important;
        font-size: 14px !important;
    }
    
    /* Adjust coupon form for mobile */
    .coupon-form .flex {
        flex-direction: column !important;
    }
    
    .t95cc-coupon-input,
    .t95cc-coupon-btn {
        width: 100% !important;
        border-radius: 0.375rem !important;
    }
    
    .t95cc-coupon-input {
        margin-bottom: 0.5rem !important;
    }
    
    /* Full width cart items on mobile */
    .t95cc-modern-cart .sticky {
        position: relative !important;
        top: 0 !important;
    }
    
    /* Better spacing for mobile */
    body.woocommerce-cart #main {
        width: 100% !important;
        padding: 0 !important;
    }
}

/* Print styles */
@media print {
    .t95cc-recommended-products,
    .t95cc-save-cart,
    .t95cc-share-cart,
    .t95cc-gift-wrapping-section,
    .t95cc-loyalty-section {
        display: none !important;
    }
}