.giftproduct_change_button {
    display: block;
    background: #ebebeb;
    color: #000;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    width: max-content;
    margin: auto;
}

.giftproduct_change_button:after {
    font-family: FontAwesome;
    content: "+"; /*\f067*/
    padding: 0 8px;
}

.giftproduct-popup {
    background: #FFF;
    box-shadow: 0px 4px 19px 0px rgba(0, 0, 0, 0.07);
    padding: 30px;
    max-width: 748px;
    max-height: 598px;
    max-height: fit-content;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 999;
    margin: auto;
    overflow: auto;
}

.giftproduct-popup .close {
    background: none;
    color: unset;
    padding: 0;
    opacity: 1;
    margin: 0 0 0px;
    width: 20px;
    height: 20px;
    display: block;
}

.giftproduct-popup .heading {
    /*display: flex;
    align-items: center;
    align-content: space-between;
    justify-content: center;*/
    display: block;
    text-align: center;
}
.giftproduct-popup .heading h3 {
    margin: 0;
    padding: 0;
    color: #444;
    font-size: 25px;
    display: inline;
}

.all-page {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 99;
    background: rgb(0 0 0 / 51%);
    left: 0;
    top: 0;
}

.giftproduct-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 10px;
}

.custom-radio {
    background: none;
    color: #a6a6a6;
    /* line-height: 40px; */
    min-height: 55px;
    width: 110px;
    cursor: pointer;
    margin: 2px;
    color: #666;
    display: inline-block;
    border-radius: 5px;
    background: #ebebeb;
}
.custom-radio {
    border: 1px solid #a6a6a6;
    padding: 0px;
}

.custom-radio.selected label {
    color: #fff;
}
.custom-radio label {
    line-height: 20px;
    margin: 5px;
    cursor: pointer;
    white-space: normal;
}
.custom-radio input {
    display: none;
}
.custom-radio label .radio-price {
    display: block;
    min-width: 100px;
    font-weight: 600;
}


.giftproduct-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 10px;
    gap: 10px; /* small spacing between sections */
    padding-bottom: 15px;
}


.giftproduct-item .giftproduct-name {
    font-size: 14px;
    color: #444;
    width: 300px;
}

/* Let the image container shrink to fit the image */
.giftproduct-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.giftproduct-item.has-options .giftproduct-name {
    width: 100px !important;
}


.giftproduct-image-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

}

@media only screen and (max-width: 480px) {
    .giftproduct-name {
        flex-shrink: 0;
        width: 100px;
        font-size: 14px;
    }

    .giftproduct-item {
        flex-direction: column;
    }


    .giftproduct-image-name {
        display: flex;
        flex-direction: column;
    }
    .giftproduct-image {
        order: 2;
    }
    .giftproduct-name {
        order: 1;
        text-align: center;
    }

    .giftproduct-image {
        align-items: center;
        flex-direction: column;
    }

    .giftproduct-item.has-options {
        flex-direction: row;
    }


}

.giftproduct-image img {
    display: block;
    height: auto;
    width: auto; /* image decides its own width */
    max-width: 100px; /* optional limit if needed */
}

/* Align custom radios to the left */

/*.giftproduct-item .giftproduct-options {
    justify-content: flex-end;
}*/

.giftproduct-item.has-options .giftproduct-options {
    display: flex;
    flex-direction: row;
    gap: 8px;
    /* justify-content: flex-start; */
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
}




/* Style optional */
.custom-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Keep the action button on the right */
.giftproduct-action {
    flex-shrink: 0;
}

.giftproduct-action button {
    background: #c6168d;
    color: #fff;
}

.giftproduct-action button:hover {
    background: #e03550;
    color: #fff;
}



.custom-radio:hover, .custom-radio.selected {
    background: #a7a7a7;
    border-color: #a7a7a7;
    color: #fff !important;
}

.custom-radio.selected label {
    color: #fff;
}

.custom-radio:hover span.old-price, .custom-radio:hover .radio-price {
    color: #fff !important;
}


.giftproduct_change_button .fa {
    color: #444 !important;
    font-size: 16px;
    margin-right: 5px;
}
.giftproduct-item .radio-price {
    font-weight: 600;
    font-size: 14px;
    line-height: 15px;
    color: #444;
}

.option-prices-container {
    display: flex;
}

.option-prices-container span {
    min-width: 0px !important;
    display: inline !important;
}
.option-prices-container span.old-price, .giftproduct-options span.old-price {
    margin-left: 8px !important;
    /*color: #9f9f9f;*/
    color: #444;
    font-size: 14px !important;
}


