/* WPCode 71581 — CT – Mini Basket Styling */
/* ==========================================
   CLASSIC TRANSFERS — MINI BASKET STYLING
   WooCommerce Block Mini-Cart
   ========================================== */

/* Main sliding basket */
.wp-block-woocommerce-mini-cart__drawer
.wc-block-mini-cart__drawer {
    background: #ffffff !important;
    color: #17221c;
}

/* Basket heading */
.wc-block-mini-cart__title {
    color: #17221c !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

/* Product rows */
.wc-block-cart-items__row {
    border-bottom: 1px solid #e8eee9 !important;
}

/* Product names */
.wc-block-components-product-name {
    color: #17221c !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    text-decoration: none !important;
}

.wc-block-components-product-name:hover {
    color: #007a4d !important;
}

/* Product images */
.wc-block-cart-item__image img {
    border-radius: 8px !important;
    object-fit: contain;
}

/* Quantity selector */
.wc-block-components-quantity-selector {
    border: 1px solid #dce7e0 !important;
    border-radius: 7px !important;
    background: #ffffff !important;
}

.wc-block-components-quantity-selector input {
    color: #17221c !important;
}

.wc-block-components-quantity-selector button:hover {
    background: #edf7f1 !important;
    color: #007a4d !important;
}

/* Remove product */
.wc-block-cart-item__remove-link {
    color: #68736e !important;
    text-decoration: none !important;
}

.wc-block-cart-item__remove-link:hover {
    color: #c0392b !important;
}

/* Subtotal section */
.wc-block-mini-cart__footer {
    background: #ffffff !important;
    border-top: 1px solid #e3e8e5 !important;
}

.wc-block-mini-cart__footer-subtotal {
    color: #17221c !important;
    font-weight: 700 !important;
}

/* Footer buttons */
.wc-block-mini-cart__footer-actions {
    display: flex !important;
    gap: 12px !important;
}

/* Both buttons */
.wc-block-mini-cart__footer-actions
.wc-block-components-button {
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    min-height: 46px;
    box-shadow: none !important;
    transition: background .2s ease,
                border-color .2s ease,
                color .2s ease;
}

/* View my basket */
.wc-block-mini-cart__footer-cart {
    background: #ffffff !important;
    color: #007a4d !important;
    border: 1px solid #b8d9c8 !important;
}

.wc-block-mini-cart__footer-cart:hover {
    background: #edf7f1 !important;
    border-color: #007a4d !important;
}

/* Go to checkout */
.wc-block-mini-cart__footer-checkout {
    background: #007a4d !important;
    color: #ffffff !important;
    border: 1px solid #007a4d !important;
}

.wc-block-mini-cart__footer-checkout:hover {
    background: #005b39 !important;
    border-color: #005b39 !important;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .wc-block-mini-cart__title {
        font-size: 21px !important;
    }

    .wc-block-mini-cart__footer-actions {
        gap: 8px !important;
    }

    .wc-block-mini-cart__footer-actions
    .wc-block-components-button {
        font-size: 12px !important;
        padding: 10px !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .wc-block-mini-cart__footer-actions
    .wc-block-components-button {
        transition: none !important;
    }
}

/* MINI BASKET — FIX VIEW BASKET BUTTON TEXT */

.wc-block-mini-cart__footer-cart,
.wc-block-mini-cart__footer-cart:visited,
.wc-block-mini-cart__footer-cart:hover,
.wc-block-mini-cart__footer-cart:focus {
    background: #ffffff !important;
    color: #007a4d !important;
    border: 1px solid #b8d9c8 !important;
    text-decoration: none !important;
}

/* Hover appearance */
.wc-block-mini-cart__footer-cart:hover {
    background: #edf7f1 !important;
    border-color: #007a4d !important;
}

/* Force text inside button to remain visible */
.wc-block-mini-cart__footer-cart *,
.wc-block-mini-cart__footer-cart:hover * {
    color: #007a4d !important;
    opacity: 1 !important;
    visibility: visible !important;
}
