.combo-wrapper .combo-products-row>.combo-children-wrapper {
  box-sizing: border-box;

}
    .combo-children-wrapper {
    position: relative; /* REQUIRED */
}

/* Overlay border */
.combo-border-overlay {
    position: absolute;
    border: 2px dashed #ddd;
    border-radius: 8px;
    pointer-events: none;
    display: none;
    z-index: 1;
}


    /* FORCE COMBO TO NEW ROW */
.combo-wrapper {
    width: 100%;
    clear: both;
    display: block;
    margin: 40px 0px;
}

/* FIX PRODUCT ROW */
.combo-products-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* FIX EACH ITEM */
.combo-item {
    width: 220px;
    min-width: 220px;
    text-align: center;
    position: relative;
}

/* FIX IMAGE */
.combo-item img {
    max-width: 100%;
    height: auto;
}

/* FIX OPTIONS */
.options {
    margin-top: 10px;
}

.option-group {
    margin-bottom: 10px;
}

/* FIX SIZE/COLOR BUTTONS */
.option {
    border: 1px solid #ccc;
    padding: 6px 10px;
    margin: 4px 4px 0 0;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
}

.option.selected {
    background: #000;
    color: #fff;
}

/* FIX SUMMARY */
/* .combo-summary {
    margin-top: 30px;
    clear: both;
} */

/* PREVENT MAGENTO PDP CSS COLLISION */
.product-info-main .combo-wrapper * {
    box-sizing: border-box;
}

   .combo-products-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.combo-item {
    text-align: center;
    position: relative;
}
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: #fff;
    padding: 4px 6px;
    font-size: 12px;
}
.option {
    border: 1px solid #ccc;
    padding: 4px 8px;
    cursor: pointer;
    margin: 3px;
    display: inline-block;
}
.option.selected {
    background: #000;
    color: #fff;
}

.combo-item {
    width: 220px;
    text-align: center;
    position: relative;
}

.combo-item img {
    max-width: 100%;
}

.combo-item[data-role="main"] {
    border: none !important;
}

.combo-children-wrapper {
    display: flex;
    gap: 30px;
    padding: 30px;
    border-radius: 8px;
}

/* Container stays clean */
.combo-children-wrapper {
    display: flex;
    gap: 30px;
    padding: 0;
}

/* ONLY selected child gets border */
/* .combo-item[data-role="child"].active {
    border: 2px dashed #ddd;
    padding: 15px;
    border-radius: 8px;
} */
/* ❌ OLD per-item border – disabled safely */
.combo-item[data-role="child"].active {
    border: none;
    padding: 0;
}
/* ✅ GROUPED BORDER FOR SELECTED CHILD ITEMS */
.combo-selected-group {
    display: none;
    gap: 30px;
    padding: 30px;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

.combo-selected-group.active {
    display: flex;
}

/* Unchecked child = no border */
.combo-item[data-role="child"]:not(.active) {
    border: none;
}

.combo-item[data-role="child"]::before {
    content: '+';
    position: absolute;
    left: -48px;
    top: 50%;
    font-size: 35px;
    color: #aaa;
    transform: translateY(-50%);
}
.combo-item[data-role="child"]:first-child::before {
    display: none;
}

.discount-badge {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: #fff;
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 4px;
}

.option {
    border: 1px solid #ccc;
    padding: 6px 10px;
    margin: 4px;
    cursor: pointer;
    display: inline-block;
}

.option.selected {
    background: #000;
    color: #fff;
}
.combo-wrapper .old-price {
    text-decoration: line-through;
    color: #999;
}

.final-price {
    font-size: 28px;
    font-weight: bold;
    color: red;
}
/* COMBO HEADER */
.combo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.combo-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.combo-main-discount {
    color: #d32f2f;
    font-weight: 700;
    margin-left: 6px;
}

.combo-view-all {
    font-size: 14px;
    color: #1976d2;
    text-decoration: underline;
    cursor: pointer;
}
.save-info {
    font-size: 13px;
    color: #388e3c;
    margin-top: 6px;
}
.combo-equals {
    font-size: 36px;
    font-weight: 600;
    color: #999;
    display: none;
}
.combo-summary {
    margin-left: auto;          /* 🔥 pushes summary to right */
    min-width: 220px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.combo-timer {
    margin-left: 10px;
    font-size: 14px;
    color: #d32f2f;
    font-weight: 600;
}

.combo-timer.small {
    font-size: 12px;
    margin-right: 10px;
}

.combo-timer.small:empty {
    display: none;
}

#add-all-to-cart:disabled,
.add-all-to-cart:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


.option-values {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.option {
    padding: 6px 10px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 13px;
}

.option.selected {
    border: 2px solid #000;
}

.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    padding: 0;
}

.color-swatch.selected {
    outline: 2px solid #000;
}
.combo-wrapper .combo-header {
    justify-content: flex-start;
}

.combo-wrapper .combo-header .combo-header-right {
    max-width: calc(100% - 500px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.combo-wrapper .combo-header .combo-header-right span#combo-timer-right {
    font-size: 16px;
    padding: 10px 15px;
    color: #fff;
    background: #d32f2f;
    border-radius: 4px;
    box-shadow: 0px 0px 4px #d32f2f;
}

.combo-wrapper .combo-header .combo-header-left {
    max-width: 550px;
    width: 100%;
}

.combo-wrapper .combo-header .combo-header-right a.combo-view-all {
    border: 1px solid #ddd;
    padding: 10px 14px;
    box-shadow: 0px 0px  4px #ddd;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    border-radius: 6px;
}

.combo-wrapper .combo-products-row {
     gap: 45px;
}
.combo-wrapper .combo-products-row>.combo-item {
    width: 100%;
    max-width: 260px;
    border: 1px solid #ddd !important;
    box-shadow: 0px 0px 3px #ccc;
    padding: 7px 10px;
    box-sizing: border-box;
    min-height: 460px;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper {
    gap: 40px;
    width: 100%;
    max-width: 650px;
    height: 100%;
    padding: 10px;
    min-height: 415px;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item {
    max-width: calc(100%/3 - 30px);
    width: 100%;
    position: relative;
    min-width: unset;
}
.combo-wrapper .combo-products-row .combo-summary {
    text-align: left;
    align-items: center;
    min-width: 200px;
}
.combo-wrapper .combo-products-row .combo-item h4 {
    text-align: left;
    margin: 0 0 7px;
}
.combo-wrapper .combo-products-row .combo-item h4 a {
    font-size: 16px;
    color: #000;
}

.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item span.discount-badge {
    right: 0;
    left: unset;
    top: 0;
}
.combo-wrapper .combo-products-row .combo-item h4>a {
    min-height: 40px;
    display: block;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item input.combo-checkbox {
    position: absolute;
    left: 0;
    top: 0;
    width: 19px;
    height: 19px;
}

.combo-wrapper .combo-products-row>.combo-item span.discount-badge {
    right: 4px;
    left: unset;
    top: 4px;
}

.combo-wrapper .combo-products-row .combo-item p.price {
    text-align: left;
    font-size: 18px;
}

.combo-wrapper .combo-products-row .combo-item img {
    height: 200px;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper div#combo-border-overlay {
    top: 2px !important;
    left: 0px !important;
    height: 457px !important;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item:nth-child(2)::before {
    display: none;
}

.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item:nth-child(2)::before {
    display: none;
}

.combo-wrapper .combo-products-row>.combo-item:after {
    content: '+';
    position: absolute;
    right: -33px;
    top: 50%;
    font-size: 35px;
    color: #aaa;
    transform: translateY(-50%);
}
.combo-wrapper .combo-products-row .combo-summary p#total-price {
    font-size: 18px;
    margin: 0;
    color: hsl(220deg 9% 46% / 60%);
    text-decoration-color: red;
}

.combo-wrapper .combo-products-row .combo-summary p#discounted-price {
    margin: 0;
}  

.combo-wrapper .combo-products-row .combo-summary button#add-all-to-cart {
    color: #fff;
    font-size: 16px;
    padding: 16px 19px;
    background: #388e3c;
    height: auto;
    transition: all 0.4s ease;
}
.combo-wrapper .combo-products-row .combo-summary button#add-all-to-cart:hover {
       background: #388e3cbd;
} 
.option-group .option-values span.option:first-child {
    margin-left: 0;
}

.option-group .option-values span.option.selected {background: #fff;border: 2px solid #fff;color: #000;outline: 1px solid #ff5501;border-radius: 0;}
   .combo-wrapper .combo-products-row .combo-item .options .option-values {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: auto;
    padding: 0 0 0 1px;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper.child-2 {
    max-width: 500px;
}

.combo-wrapper .combo-products-row>.combo-children-wrapper.child-2 .combo-item {
    max-width: calc(100% / 2 - 20px);
}

/* .combo-wrapper .combo-products-row .combo-item .options .option-values span.option {aspect-ratio: 1;} */
.combo-wrapper .combo-products-row>.combo-children-wrapper.child-1 {
    max-width: 250px;
}

.combo-wrapper .combo-products-row>.combo-children-wrapper.child-1 .combo-item {
    max-width: 100%;
}

.combo-wrapper .combo-products-row>.combo-children-wrapper.child-1 div#combo-border-overlay {
    width: 250px !important;
}

.combo-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combo-loader-inner {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.combo-loader .spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #ddd;
    border-top-color: #000;
    border-radius: 50%;
    animation: comboSpin 0.8s linear infinite;
    margin: 0 auto 10px;
}

@keyframes comboSpin {
    to { transform: rotate(360deg); }
}
.combo-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.combo-success-inner {
    background: #28a745;
    color: #fff;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    animation: comboFadeIn 0.3s ease-out;
}

@keyframes comboFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.combo-wrapper .combo-products-row .combo-item h4 span.combo-brand {
    display: block;
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 500;
    color: #000;
}
.combo-wrapper .combo-products-row .combo-item .options .option-values span.option.color-swatch {
    border-radius: 40px;
}
.combo-wrapper .combo-products-row .combo-item p.price span.old-price {
    text-decoration-color: red;
}

.combo-wrapper .combo-products-row .combo-item p.price {
    display: flex;
    align-items: center;
    gap: 6px;
}
.combo-wrapper .combo-products-row .combo-item p.price span.special-price {
    color: red;
}
.combo-wrapper .combo-products-row .combo-item h4 span.combo-brand {
    display: block;
    min-height: 22px;
}
.combo-wrapper .combo-products-row .combo-item .options .option-values {
    padding-bottom: 6px;
}

/*hyva css*/


.combo-wrapper .combo-products-row.hyva .combo-children-wrapper {
    max-width: 800px;
}

.combo-wrapper .combo-products-row.hyva .combo-item {
    max-width: 310px;
}
.combo-products-row.hyva .combo-children-wrapper.child-3 {
    min-height: 460px;
    box-sizing: border-box;
}

.combo-item-info span.old-price::after {
    display: none;
}

.combo-summary p::after {
    display: none;
}

.combo-products-row.hyva .combo-children-wrapper.child-3 .combo-border-overlay {
    max-width: 830px;
    width: 100%;
}


.combo-products-row.hyva .combo-children-wrapper.child-1 {
    min-height: 460px;
}
.combo-products-row.hyva .combo-children-wrapper.child-1 .combo-border-overlay {
    max-width: 830px;
    width: 100%;
}
.combo-products-row.hyva .combo-children-wrapper.child-1 {
    max-width: 250px;

}


.combo-products-row.hyva .combo-children-wrapper.child-2 {
    min-height: 460px;
    max-width: 500px;
}
    
    .combo-products-row.hyva .combo-children-wrapper.child-2 div#combo-border-overlay {
    max-width: 500px;
}

/*hyva  css end*/
@media(max-width:991px){


.combo-wrapper .combo-products-row>.combo-item {
    max-width: 180px;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper {
    max-width: 270px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item {
    max-width: 100%;
    width: 100%;
    position: relative;
    min-width: unset;
}
.combo-wrapper .combo-products-row .combo-summary {
    text-align: left;
    align-items: center;
    min-width: 150px;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item {
    max-width: 100%;
    width: 100%;
    position: relative;
    min-width: unset;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item>a {
    max-width: 80px;
    width: 100%;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item .combo-item-info {
    max-width: calc(100% - 80px);
}
.combo-wrapper .combo-products-row {
    flex-wrap: wrap;
    justify-content: center;
}
.combo-wrapper .combo-products-row .combo-summary {
    margin: 20px auto;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper {
    max-width: calc(100% - 270px);
    display: block;
    width: 100%;
}
.combo-wrapper .combo-products-row .combo-item h4>a {
    min-height: auto;
    display: block;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item {
    display: flex;
    align-items: self-start;
    border: 1px solid #dddd;
    margin: 0 0  30px;
    padding: 10px;
    box-sizing: border-box;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper div#combo-border-overlay {
    width: 100% !important;
}
.combo-wrapper .combo-products-row .combo-item img {
    height: auto;
}
.combo-wrapper .combo-products-row>.combo-item:after {
    display: none;
}
.combo-item[data-role="child"]::before {
    content: '+';
    position: absolute;
    left: -33px;
    top: 50%;
    font-size: 35px;
    color: #aaa;
    transform: translateY(-50%);
}
.combo-wrapper .combo-products-row .combo-item {
    max-width: 100%;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper {
    max-width: 100%;
    display: block;
    width: 100%;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper div#combo-border-overlay {
    height: 100% !important;
}
.combo-wrapper .combo-products-row .combo-item {
    display: flex;
    height: auto;
    min-height: auto;
}
.combo-wrapper .combo-products-row {
    gap: 10px;
}
.combo-item[data-role="child"]::before {
    top: -42px;
    transform: translateX(-50%);
    left: 50%;
}
.combo-wrapper .combo-products-row .combo-item>a {
    max-width: 80px;
}
.combo-wrapper .combo-products-row .combo-item>.combo-item-info {
    max-width: calc(100% - 100px);
    width: 100%;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item input.combo-checkbox {
    left: 5px;
    top: 5px;
}
.combo-wrapper .combo-products-row>.combo-children-wrapper .combo-item span.discount-badge {
    right: 10px;
    top: 10px;
}
.combo-wrapper .combo-header {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.combo-wrapper .combo-header .combo-header-right {
    display: contents;
}

.combo-wrapper .combo-header .combo-header-right span#combo-timer-right {
    order: 2;
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
    text-align: center;
}

.combo-wrapper .combo-header .combo-header-right a.combo-view-all {
    order: 1;
}

/*hyva css*/
.combo-wrapper .combo-products-row.hyva .combo-item {
    max-width: 100%;
}
    
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-1 #combo-border-overlay {
    width: 100% !important;
    max-width: 100% !important;
}
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-1 {
    max-width: 100%;
}
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-1 {
    min-height: auto;
}

.combo-products-row.hyva .combo-children-wrapper.child-2 {
    max-width: 100%;
}
.combo-products-row.hyva .combo-children-wrapper.child-2 div#combo-border-overlay {
    max-width: 100%;
}
.combo-products-row.hyva .combo-children-wrapper.child-2 .combo-item {
    max-width: 100%;
}
/*hyva css end*/
}

@media(max-width:516px){
    .combo-wrapper .combo-header .combo-header-right a.combo-view-all {
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.combo-wrapper .combo-header .combo-header-left h3.combo-title {
    text-align: center;
}
}

 .combo-unavailable-wrapper {
    margin: 20px 0;
}
.combo-unavailable-box {
    padding: 15px 20px;
    border: 1px  #d6d6d6;
    background: #fafafa;

}

.combo-unavailable-box strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}

.combo-unavailable-box p {
    margin: 0;
    font-size: 14px;
    color: #666;
}
.combo-wrapper .combo-products-row .combo-summary button.add-all-to-cart {
    color: #fff;
    font-size: 16px;
    padding: 16px 19px;
    background: #388e3c;
    height: auto;
    transition: all 0.4s ease;
}
.combo-wrapper .combo-products-row .combo-summary button.add-all-to-cart:hover {
       background: #388e3cbd;
} 
.combo-wrapper .combo-products-row .combo-item img {
    margin: 0 auto;
}   
.combo-wrapper .combo-products-row.hyva .combo-item .combo-item-info h4 {
    margin-top: 12px;
    text-transform: uppercase;
    color: #000;
}
/* .combo-wrapper .combo-products-row .combo-item .options .option-values span.option {
    min-width: 38px;
} */

/* ===== Admin design tokens (Stores > Config > Combo deal > Design & Colors) ===== */
.combo-wrapper {
    background: var(--mh-combo-section-background, #f7f7f7);
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

.combo-wrapper .combo-title {
    color: var(--mh-combo-heading-color, #1a1a1a);
}

.combo-wrapper .combo-main-discount {
    color: var(--mh-combo-discount-text-color, #d32f2f);
}

.combo-wrapper .combo-header .combo-header-right span#combo-timer-right,
.combo-wrapper .combo-timer.small {
    background: var(--mh-combo-timer-background, #d32f2f);
    color: var(--mh-combo-timer-text-color, #ffffff);
    box-shadow: 0 0 4px var(--mh-combo-timer-background, #d32f2f);
}

.combo-wrapper .discount-badge,
.combo-wrapper .combo-products-row .combo-item span.discount-badge {
    background: var(--mh-combo-badge-background, #d32f2f);
    color: var(--mh-combo-badge-text-color, #ffffff);
}

.combo-wrapper .combo-products-row > .combo-item,
.combo-wrapper .combo-products-row > .combo-children-wrapper .combo-item {
    background: var(--mh-combo-card-background, #ffffff);
    border-color: var(--mh-combo-card-border-color, #dddddd) !important;
}

.combo-wrapper .option,
.combo-wrapper .option-group .option-values span.option {
    border-color: var(--mh-combo-option-border-color, #cccccc);
}

.combo-wrapper .option-group .option-values span.option.selected,
.combo-wrapper .option.selected {
    background: var(--mh-combo-option-selected-background, #ffffff);
    color: var(--mh-combo-option-selected-text, #000000);
    border-color: var(--mh-combo-option-selected-background, #ffffff);
    outline: 1px solid var(--mh-combo-option-selected-outline, #ff5501);
}

.combo-wrapper .color-swatch.selected {
    outline: 2px solid var(--mh-combo-option-selected-outline, #ff5501);
}

.combo-wrapper .old-price,
.combo-wrapper .combo-products-row .combo-summary p#total-price {
    color: var(--mh-combo-old-price-color, #999999);
}

.combo-wrapper .final-price,
.combo-wrapper .combo-products-row .combo-summary p#discounted-price {
    color: var(--mh-combo-final-price-color, #d32f2f);
}

.combo-wrapper .save-info {
    color: var(--mh-combo-save-info-color, #388e3c);
}

.combo-wrapper .combo-header .combo-header-right a.combo-view-all {
    background: var(--mh-combo-view-all-background, #ffffff);
    color: var(--mh-combo-view-all-text-color, #000000);
    border-color: var(--mh-combo-view-all-border-color, #dddddd);
    box-shadow: 0 0 4px var(--mh-combo-view-all-border-color, #dddddd);
}

.combo-wrapper .combo-products-row .combo-summary button#add-all-to-cart,
.combo-wrapper .combo-products-row .combo-summary button.add-all-to-cart {
    background: var(--mh-combo-button-background, #388e3c);
    color: var(--mh-combo-button-text-color, #ffffff);
    border: var(--mh-combo-button-border-width, 0px) solid var(--mh-combo-button-border-color, #388e3c);
    border-radius: var(--mh-combo-button-border-radius, 4px);
    font-size: var(--mh-combo-button-font-size, 16px);
    line-height: var(--mh-combo-button-line-height, 1.25);
    padding: var(--mh-combo-button-padding-y, 16px) var(--mh-combo-button-padding-x, 19px);
}

.combo-wrapper .combo-products-row .combo-summary button#add-all-to-cart:hover,
.combo-wrapper .combo-products-row .combo-summary button.add-all-to-cart:hover {
    background: var(--mh-combo-button-hover-background, #2e7d32);
}
