.ksa-service-addons {
    margin: 18px 0 20px;
}

.ksa-service-addons .ksa-heading {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
}

.ksa-addon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.ksa-addon-card {
    position: relative;
    width: 138px;
    min-height: 198px;
    padding: 9px;
    border: 2px solid #8224e3;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
    box-sizing: border-box;
}

.ksa-addon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(130, 36, 227, 0.18);
}

.ksa-addon-card.is-selected {
    border-color: #8224e3;
    box-shadow: 0 0 0 3px rgba(130, 36, 227, 0.16), 0 12px 28px rgba(130, 36, 227, 0.22);
    background: #fbf7ff;
}

.ksa-addon-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ksa-selected-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8224e3;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    opacity: 0;
    transform: scale(.75);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 2;
}

.ksa-addon-card.is-selected .ksa-selected-dot {
    opacity: 1;
    transform: scale(1);
}

.ksa-image-wrap {
    width: 116px;
    height: 116px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: #f5f5f5;
    flex: 0 0 auto;
}

.ksa-image-wrap img {
    width: 116px !important;
    height: 116px !important;
    object-fit: cover;
    display: block;
}

.ksa-addon-name {
    display: block;
    width: 100%;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    color: #111;
    overflow-wrap: anywhere;
}

.ksa-addon-price {
    display: block;
    width: 100%;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    color: #8224e3;
}

.ksa-addon-price .amount {
    color: #8224e3;
}

/* Hide add-ons from Ecomus sticky add-to-cart/footer bar */
.ecomus-sticky-add-to-cart .ksa-service-addons,
.single-product-extra-content .ksa-service-addons,
.product-summary-sticky .ksa-service-addons,
.sticky-atc .ksa-service-addons,
.em-sticky-atc .ksa-service-addons,
[class*="sticky"] .ksa-service-addons {
    display: none !important;
}

@media (max-width: 600px) {
    .ksa-addon-grid {
        gap: 10px;
    }

    .ksa-addon-card {
    position: relative;
    width: 138px;
    min-height: 198px;
    padding: 9px;
    border: 2px solid #8224e3;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
    box-sizing: border-box;
}


/* v2.0 Ecomus checkout display fix:
   Hide only the theme's internal split unit price shown directly under product name.
   This does not affect totals, add-on names, add-on prices, cart totals, or emails. */
.woocommerce-checkout-review-order-table .cart_item .product-name > .woocommerce-Price-amount,
.woocommerce-checkout-review-order-table .cart_item .product-name > .amount {
    display: none !important;
}


/* v2.1 Ecomus exact checkout split-price fix.
   This hides the internal calculated unit price shown under the checkout product title only. */
.woocommerce-checkout-review-order-table span.checkout-review-product-price.price,
.woocommerce-checkout-review-order-table .checkout-review-product-price.price {
    display: none !important;
}


/* v2.2 checkout loaded CSS fix */
form.checkout table.shop_table .cart_item .product-name .checkout-review-product-price.price,
form.checkout table.shop_table .cart_item .product-name span.checkout-review-product-price.price,
#order_review .cart_item .product-name .checkout-review-product-price.price,
#order_review .cart_item .product-name span.checkout-review-product-price.price {
    display: none !important;
}


/* v2.3 stronger Ecomus checkout internal split-price hide */
body.woocommerce-checkout #order_review span.checkout-review-product-price.price,
body.woocommerce-checkout #order_review .checkout-review-product-price.price,
body.woocommerce-checkout form.checkout span.checkout-review-product-price.price,
body.woocommerce-checkout form.checkout .checkout-review-product-price.price {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
