/**
 * WooCommerce Registration Product Quantity Disable Styles
 */

/* Disabled quantity display */
.wcrqd-quantity-disabled {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 600;
    color: #666;
    text-align: center;
    min-width: 40px;
    cursor: not-allowed;
}

/* Small notice below quantity */
.wcrqd-quantity-notice {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

/* Cart table - hide quantity controls for registration products */
.woocommerce-cart-form .cart_item .wcrqd-quantity-disabled {
    margin-right: 10px;
}

/* Mini cart adjustments */
.woocommerce-mini-cart .wcrqd-quantity-disabled {
    font-size: 14px;
    padding: 4px 10px;
}

.woocommerce-mini-cart .wcrqd-quantity-notice {
    font-size: 10px;
}

/* Make quantity column look consistent */
.woocommerce-cart-form__cart-item .product-quantity {
    vertical-align: middle;
}

/* Single product page - hide quantity field */
.wcrqd-quantity-wrapper.wcrqd-hidden {
    display: none !important;
}

/* Single product page - quantity notice */
.wcrqd-quantity-notice-product {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    margin: 10px 0;
}

/* Registration product page body class styling */
.wcrqd-registration-product-page .quantity {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wcrqd-quantity-disabled {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .wcrqd-quantity-notice {
        font-size: 10px;
    }
    
    .wcrqd-quantity-notice-product {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Block-based cart compatibility */
.wc-block-cart .wcrqd-quantity-disabled {
    background-color: #f0f0f0;
    border-radius: 3px;
    padding: 6px 12px;
}

/* Checkout block cart summary */
.wc-block-components-order-summary .wcrqd-quantity-disabled {
    font-size: 12px;
    padding: 2px 8px;
}
