/*
Theme Name: porte in kit Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/
@media (min-width: 1470px) {
#main.main-boxed {
  max-width: 100vw;
}
}

.wpcpo-option.wpcpo-option-image-radio .form-row label {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
}

.wpcpo-option {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: #0002 0px 0px 11px;
}

.wooco-cart-child {
  display: none;
}

/* Product Selection Monitor Validation Styles */
.wpcpo-error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wpcpo-error-message::before {
    content: "!";
    flex-shrink: 0;
    font-weight: bold;
}

.wpcpo-success-message {
    color: #2e7d32;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wpcpo-success-message::before {
    content: "✓";
    flex-shrink: 0;
    font-weight: bold;
}

.wpcpo-has-error input[type="text"],
.wpcpo-has-error input[type="number"] {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.wpcpo-has-success input[type="text"],
.wpcpo-has-success input[type="number"] {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
}

.wpcpo-has-error input[type="text"]:focus,
.wpcpo-has-error input[type="number"]:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

.wpcpo-has-success input[type="text"]:focus,
.wpcpo-has-success input[type="number"]:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2) !important;
}

.wpcpo-field-wrapper {
    position: relative;
}

.wpcpo-field-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    z-index: 10;
    pointer-events: none;
}

.wpcpo-field-icon.error {
    color: #dc2626;
}

.wpcpo-field-icon.success {
    color: #16a34a;
}

.single_add_to_cart_button.validation-errors-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.single_add_to_cart_button.validation-errors-disabled::after {
    content: "Correggi gli errori di validazione";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.single_add_to_cart_button.validation-errors-disabled:hover::after {
    opacity: 1;
}

/* Required Fields Styling */
.wpcpo-required-field {
    color: #dc2626;
    font-weight: 500;
    font-size: 0.9em;
}

/* Cart Remove Button Styling */
.cart-item-remove-btn {
    margin-top: 0.5rem;
}

.cart-item-remove-btn .remove-from-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-item-remove-btn .remove-from-cart:hover {
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.cart-item-remove-btn .remove-from-cart:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(220, 53, 69, 0.3);
}

.cart-item-remove-btn .remove-from-cart i {
    font-size: 0.7rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-item-remove-btn {
        margin-top: 0.25rem;
    }
    
    .cart-item-remove-btn .remove-from-cart {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}