/* Container Styling */
.wc-product-addons-existing {
    margin-top: 30px;
    /* Removed padding, border, border-radius, and background-color as per your request */
}

/* Add-On Box Styling */
.addon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    padding: 10px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    text-align: center;
}

.addon-box:hover {
    border-color: #0071a1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.addon-box.selected {
    border-color: #28a745; /* Green border when selected */
    /* Removed box-shadow as per your request */
}

/* Add-On Image Styling */
img.addon-image {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Add-On Details Styling */
.addon-details {
    flex-grow: 1;
}

h4.addon-title {
    font-size: 16px;
    margin-bottom: 5px;
}

div.wc-product-addons-existing > div > div > div > span > span > bdi {
    font-size: 14px;
}

/* Grand Total Styling */
.grand-total {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: right;
}
/* frontend-style.css */

.wc-product-addons-existing {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #eee;
}

.addons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.addon-box {
    border: 1px solid #ddd;
    padding: 10px;
    width: 150px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.addon-box.selected {
    border-color: #0071a1;
    background-color: #f0f8ff;
}

.remove-addon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
}
