/* Disable add to cart on product page if nero_ad */
body.it_it.base.nero_ad.fresh-product .product-add-form .action.tocart,
body.it_it.base.nero_ad.fresh-product .product-add-form .action.primary.tocart,
body.it_it.base.nero_ad.fresh-product .contentHide.contentShow button {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* Disable add to cart on category page for fresh products */
body.it_it.base.nero_ad .product-item.is-fresh .action.tocart,
body.it_it.base.nero_ad .product-item.is-fresh .action.primary.tocart {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* Highlight fresh products in cart if address is not serviceable */
body.it_it.base.nero_ad .cart.item.is-fresh,
body.it_it.base.nero_ad .cart.item.is-fresh td,
body.it_it.base.nero_ad .cart.item.is-fresh .product-item-details {
    background: #ffeaea !important;
    color: #b30000 !important;
}

.box-tocart-fresh-product .address-details {
    display: none !important;
}

body.it_it.base.nero_ad .minicart-wrapper button#top-cart-btn-checkout {
    display: none !important;
}
button#verify-address-button {
    background: #05a859;
    padding: 0 24px;
}
/* Disable go to checkout on cart/quickcart if needed (JS will add .disable-checkout) */
.disable-checkout {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* Address Verification Component Styling */
.address-verification-container {
    margin: 20px 0;
}

.box-tocart-fresh-product {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.address-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}


.address-input-group .input-text {
    flex: 1;
    min-width: 0;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.address-input-group .input-text:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.address-input-group .verify-address {
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
}

.address-verification-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
}

.address-verification-result .message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
}

.address-verification-result .message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.address-verification-result .message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.address-verification-result .message.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.address-details {
    margin: 10px 0 0 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.address-details dt {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.address-details dd {
    margin-bottom: 10px;
    color: #212529;
}

.address-details dt:last-child,
.address-details dd:last-child {
    margin-bottom: 0;
}

.note {
    margin-top: 8px;
    color: #6c757d;
    font-size: 12px;
}

/* Responsive design */
@media (max-width: 768px) {
    .address-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .address-input-group .verify-address {
        margin-top: 10px;
    }
}
body .content-form-detail .product-content-boxcart {
    background-color: white;
}
.product-info-main .control.custom-qty {
    border: 1px solid #aeaeae;
}
.product-info-main .product-qty {
    margin-top: 20px;
}
.product-info-main .content-form-detail.col-md-12 {
    padding-left: 0;
}
/* Admin menu icon */
.admin__menu .item-dway-gestione-cap-prodotti-freschi-cap > a:before {
    content: '\f0d1'; 
    font-family: 'FontAwesome';
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: 8px;
    text-align: center;
    /* Optional: color: #007bdb; */
}
.header .minicart-wrapper .showcart .minicart-text {
    font-size: 0;
}
@media (min-width: 768px) {
    /* .content-form-detail {
        flex: 0 0 70% !important;
    } */
    .product-info-main .page-title-wrapper{
        width: 100% !important;
    }
    .product-view {
        width: 80% !important;
        margin: auto;
    }
    .breadcrumbs{
        margin-left:10%;
    }
}

/* Checkout Fresh Product Address Validation Styles */
.fresh-product-address-error {
    background-color: #f8d7da !important;
    border: 2px solid #f5c6cb !important;
    border-radius: 6px !important;
    padding: 15px 20px !important;
    color: #721c24 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    margin: 15px 0 !important;
    line-height: 1.6 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15) !important;
}

.fresh-product-address-error:before {
    content: "⚠ ";
    font-weight: bold;
    font-size: 18px;
    margin-right: 5px;
}

.fresh-product-address-error strong {
    color: #721c24 !important;
    font-size: 15px !important;
}
.fresh-product-address-error strong:before {
    display: none !important;
}

/* Disable place order button when address mismatch */
button.action.primary.checkout.disabled,
button.action.primary.checkout[disabled],
button.action.primary.checkout.fresh-product-validation-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #ccc !important;
}

/* Success message for matching address */
.fresh-product-address-success {
    background-color: #d4edda !important;
    border: 2px solid #c3e6cb !important;
    border-radius: 6px !important;
    padding: 15px 20px !important;
    color: #155724 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    margin: 15px 0 !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15) !important;
}