/* =====================================
   📦 Add-On Product Card Base Styles
   ===================================== */
.uwm-addon-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    background: #f9f9f9;
}

.uwm-addon-left {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.uwm-addon-thumb {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    margin-right: 16px;
    flex-shrink: 0;
}

.uwm-addon-thumb img {
    width: 100%;
    height: auto;
}

.uwm-addon-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.uwm-addon-title {
    font-weight: bold;
    font-size: 21px;
    margin-bottom: 6px;
}

.uwm-addon-price {
    font-size: 24px;
    color: #444;
    margin-bottom: 0;
}

/* =====================================
   🎯 Button Styling
   ===================================== */
.uwm-addon-button {
    width: 100%;
    margin-top: 10px;
    text-align: center;
    display: none; /* default state: hidden */
}

.uwm-addon-button .button {
    background: #8713a5;
    color: #fff !important;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    width: 100%;
}

.uwm-addon-button .button:hover {
    background: #05ad48;
}

/* =====================================
   🔓 Show buttons when main product in cart
   ===================================== */
.uwm-addon-card.main-in-cart .uwm-addon-button {
    display: block !important;
}

/* =====================================
   📱 Responsive Fixes
   ===================================== */
@media (max-width: 600px) {
    .uwm-addon-button {
        margin-top: 10px;
    }
}

@media (max-width: 1024px) {
    .uwm-addon-left {
        width: 100%;
    }

    .uwm-addon-button {
        width: 100%;
        margin-top: 12px;
    }

    .uwm-addon-button .button {
        width: 100%;
        padding: 12px;
    }
}