/**
 * Phonecase Designer v1.42.1 — sidopanel-varukorg quantity controls.
 * Ersätter WC:s "3 × 39 kr"-textrad med kompakta +/- knappar.
 * Skopat till .phonecase-qty-* så det inte kolliderar med tema/Elementor-styles.
 */
.phonecase-qty-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.phonecase-qty-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d0d0;
    background: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #0d1220;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.phonecase-qty-btn:hover:not(:disabled),
.phonecase-qty-btn:focus:not(:disabled) {
    background: #f5f5f5;
    border-color: #0d1220;
    outline: none;
}

.phonecase-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.phonecase-qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: inherit;
}

.phonecase-qty-price {
    color: #666;
    font-size: 13px;
}

@media (max-width: 480px) {
    .phonecase-qty-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .phonecase-qty-wrapper {
        gap: 8px;
    }
}

/**
 * v1.42.2 — v1.24-defense: hard-block Hello Elementor's magenta hover-leak
 * on the WC mini-cart X-remove link (<a class="remove remove_from_cart_button">).
 * Applies inside any WC mini-cart / Elementor menu-cart panel.
 */
.woocommerce-mini-cart-item a.remove,
.mini_cart_item a.remove,
a.remove_from_cart_button {
    color: #999 !important;
    background: transparent !important;
    background-color: transparent !important;
    transition: color 0.15s ease, background 0.15s ease;
}

.woocommerce-mini-cart-item a.remove:hover,
.woocommerce-mini-cart-item a.remove:focus,
.woocommerce-mini-cart-item a.remove:focus-visible,
.mini_cart_item a.remove:hover,
.mini_cart_item a.remove:focus,
.mini_cart_item a.remove:focus-visible,
a.remove_from_cart_button:hover,
a.remove_from_cart_button:focus,
a.remove_from_cart_button:focus-visible {
    color: #0d1220 !important;
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    outline: none !important;
    text-decoration: none !important;
}
