/* Container & List Styles */
.cwa-addons-container {
    margin: 30px 0;
    padding: 15px;
    border: 1px solid #ddd;
}

.cwa-addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cwa-addon-item:last-child {
    border-bottom: none;
}

.cwa-addon-info a, 
.cwa-addon-info a .woocommerce-Price-amount {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
}

/* 2. Hide the "View Cart" link that WooCommerce injects automatically */
.cwa-addon-action .added_to_cart {
    display: none !important;
}

/* 3. Adjust the button padding so the icon looks centered and clean */
.cwa-addon-action .cwa-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
}

/* Optional: Make the SVG icon inherit the text color of the button */
.cwa-addon-action .cwa-icon-btn svg {
    stroke: currentColor;
}

/* Modal/Popup Styles */
.cwa-popup-hidden {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cwa-popup-inner {
    background: #fff;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cwa-close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    color: #888;
}

.cwa-close-popup:hover {
    color: #000;
}

/* Force ABSOLUTELY ALL text inside the popup to be black */
.cwa-popup-inner,
.cwa-popup-inner * {
    color: #000000 !important;
}

/* Ensure the close button stays grey and visible */
.cwa-close-popup {
    color: #888888 !important;
}

.cwa-close-popup:hover {
    color: #ff0000 !important; /* Turns red on hover so users know they can click it */
}


/* Toggle Button Base Styling (White Background) */
.cwa-addon-action .cwa-toggle-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background-color: #ffffff !important; /* Forces the white background */
    border: 1px solid #dddddd; /* Adds a subtle border so it doesn't blend into the page */
    border-radius: 4px; /* Rounds the corners slightly */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effect so users know it's clickable */
.cwa-addon-action .cwa-toggle-cart-btn:hover {
    background-color: #f5f5f5 !important;
}

/* Color when item is NOT in the cart (Makes the Cart Icon Dark) */
.cwa-addon-action .cwa-not-in-cart {
    color: #333333 !important; 
}

/* Color when item IS in the cart (Makes the Checkmark Green) */
.cwa-addon-action .cwa-in-cart {
    color: #4CAF50 !important; 
}

/* Make sure the SVG inherits the assigned colors */
.cwa-addon-action .cwa-toggle-cart-btn svg {
    stroke: currentColor;
}