#freebieContainer {
    display: none;
}

#freebieContainer.active {
    display: block;
}

.cp_freebie_cont {
    width: 100%;
}

.order_placed_card.freebie_product {
    border: none;
    padding: 0;
}

.cp_freebie,
.freebie_product .placed_prod_card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    background-color: #F8FFFA;
    border: 1px solid #B8CFB9;
}

.checkout_success_product_card_wrap .cp_freebie{
    margin-block: 12px;
}

.cp_freebie_cont .cp_name_row {
    margin-bottom: 8px;
}

.cp_freebie_cont .cp_price_row {
    margin-bottom: 0px;
}

.cp_freebie_img {
    flex: 0 0 auto;
    width: 86px;
    aspect-ratio: 1;
    overflow: hidden;
}

.free_label {
    color: #388E3C;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.freebie_remove_btn {
    flex: 0 0 auto;
    width: 24px;
    aspect-ratio: 1;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: start;
    cursor: pointer;
}

.freebie_container {
    width: 100%;
    padding: 16px;
    margin: 24px 0px;
    background: linear-gradient(90deg, #FBF0F6 0%, #FEFAE7 100%);
}

.freebie_container .checkout_container_heading {
    display: flex;
    align-items: end;
    gap: 8px;
    line-height: normal;
}

.checkout_container_heading img {
    width: 28px;
    aspect-ratio: 1;
}

.freebie_view_btn {
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: underline;
    cursor: pointer;
}

.freebie_card_wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: scroll hidden;
    margin-bottom: 18px;
}

.cp_freebie_card,
.freebie_card {
    flex: 0 0 auto;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #FFFFFF;
}

.cp_freebie_card.locked .freebie_locked_btn {
    opacity: 0.8;
    filter: grayscale(1);
    pointer-events: none;
}

.cp_freebie_img,
.freebie_img {
    flex: 0 0 auto;
    width: 110px;
    aspect-ratio: 1;
}

.cp_freebie_card_details,
.freebie_card_sub_details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cp_freebie_name {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    width: 150px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
}

.cp_freebie_card.locked .cp_freebie_name {
    color: #777777;
}

.cp_freebie_price_row,
.freebie_price_row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cp_freebie_card.locked .free_label {
    mix-blend-mode: Luminosity;
}

.free_label {
    color: #388E3C;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.cp_freebie_price,
.freebie_price {
    color: #777777;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: line-through;
}

.cp_freebie_btn,
.freebie_btn {
    flex: 0 0 auto;
    width: 80px;
    height: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-transform: capitalize;
    border: 1px solid #000000;
    cursor: pointer;
}

.freebie_card.apply .freebie_apply_btn,
.freebie_card.locked .freebie_locked_btn,
.freebie_card.applied .freebie_applied_btn,
.cp_freebie_card.apply .freebie_apply_btn,
.cp_freebie_card.locked .freebie_locked_btn,
.cp_freebie_card.applied .freebie_applied_btn {
    display: flex;
}

.freebie_locked_btn {
    color: #777777;
    border-color: #777777;
    cursor: auto;
}

.freebie_applied_btn {
    color: #388E3C;
    border-color: #388E3C;
    gap: 6px;
}

.freebie_note {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
}

.freebie_popup {
    align-items: center;
    justify-content: center;
}

.freebie_popup .popup_containers_wrap {
    max-width: 752px;
    max-height: 674px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.freebie_popup .popup_containers_content {
    padding: 20px;
    max-height: 670px;
    overflow: hidden scroll;
    scrollbar-width: auto;
    height: 100%;
}

.freebie_popup .popup_containers_content>div:not(:last-child) {
    margin-bottom: 12px;
}

.freebie_popup .popup_containers_content::-webkit-scrollbar {
    display: block;
}

.freebie_category_wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
}

.freebie_category_btn {
    height: 50px;
    flex: 0 1 25%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.freebie_category_btn:has(.freebie_category_radio_btn:checked) {
    color: #FFFFFF;
    background-color: #333333;
}

.freebie_category_radio_btn {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.freebie_status_wrap {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F6F6F6;
}

.freebie_status_card {
    display: none;
    align-items: center;
    gap: 8px;
}

.freebie_card.active,
.freebie_status_card.active {
    display: flex;
}

.freebie_status_icon {
    width: 20px;
    aspect-ratio: 1;
}

.freebie_status_text,
.freebie_status_details {
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.freebie_card_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.freebie_card {
    display: none;
    border: 1px solid #F0F0F0;
}

.freebie_img {
    width: 75px;
}

.freebie_name {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
}

.freebie_card_details {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.freebie_btn {
    width: 90px;
    height: 40px;
}

@media screen and (max-width: 767px) {

    .cp_freebie,
    .freebie_product .placed_prod_card {
        padding: 8px;
        gap: 12px;
    }

    .freebie_product .placed_prod_card {
        align-items: start;
    }

    .freebie_container .checkout_container_header {
        display: flex;
    }

    .freebie_container .checkout_container_heading {
        gap: 2px;
    }

    .checkout_container_heading img {
        width: 18px;
    }

    .freebie_container {
        margin: 16px 0px;
        padding: 8px;
    }

    .freebie_card_wrap {
        margin-bottom: 12px;
    }

    .cp_freebie_card,
    .freebie_card {
        gap: 6px;
        padding: 6px;
    }

    .cp_freebie_img {
        width: 80px;
    }

    .cp_freebie_btn {
        width: 70px;
        height: 25px;
        font-size: 12px;
    }

    .cp_freebie_card_details,
    .freebie_card_sub_details {
        gap: 5px;
    }

    .freebie_view_btn,
    .cp_freebie_name,
    .cp_freebie_price,
    .freebie_price {
        font-size: 12px;
    }

    .free_label,
    .freebie_note,
    .freebie_name {
        font-size: 14px;
    }

    .freebie_remove_btn {
        width: 20px;
    }

    .freebie_img {
        width: 60px;
    }

    .freebie_btn {
        width: 70px;
        height: 30px;
        font-size: 12px;
        gap: 4px;
    }

    .freebie_popup {
        align-items: end;
    }

    .freebie_popup .popup_containers_wrap {
        height: 80%;
        max-width: 100%;
    }

    .freebie_popup .popup_containers_content {
        padding: 12px 10px 10px;
    }

    .freebie_category_wrap {
        gap: 4px;
    }

    .freebie_category_btn {
        height: 40px;
    }

    .freebie_status_wrap {
        padding: 8px;
    }

    .freebie_status_card {
        gap: 4px;
    }

    .freebie_status_icon {
        width: 14px;
    }

    .freebie_status_text,
    .freebie_status_details {
        font-size: 12px;
    }
}

@media screen and (max-width: 359px) {

    .freebie_status_text,
    .freebie_status_details {
        font-size: 10px;
    }
}