.discount_labels {
    display: flex;
    flex-direction: row;
    width: max-content;
}
.discount_labels .discount_label {
    background-color: #f4fff7;
    color: #2f2f2f;
    padding: 5px 10px;
    text-align: center;
    margin: 0 10px 10px 0;
    border-radius: 4px;
    border: 1px solid #4ab866;
}
.wc-block-components-sale-badge {
    display: none!important;
}

/* bogo styles */
span.product-bogo-badge {
    border: 1px solid;
    padding: .202em .6180469716em;
    font-size: .875em;
    font-weight: 600;
    display: block;
    margin-bottom: 1em !important;
    border-radius: 3px;
    position: relative;
    width: max-content;
    color: #6d6d6d;
    border-color: #6d6d6d;
    margin: 0 auto;
}

.single-product span.product-bogo-badge {
    display: inline-block;
}

.bogo-avail .content {
    padding: 15px;
}

.bogo-avail .content div.bogo-type-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bogo-avail .content p {
    margin: 0;
}

.bogo-avail .thumb {
    width: 15%;
}

.bogo-avail {
    border: 1px solid;
}

.woocommerce-uses-block-theme .bogo-avail {
    margin-bottom: 15px;
}

.bogo-avail .header {
    background: #333333;
    border-bottom: 1px solid;
}

.bogo-avail .header h3 {
    margin: 0;
    font-weight: 400;
    font-size: 24px;
    margin-left: 15px;
    padding: 7px 0;
    color: white;
}

.bogo-avail .content .bogo-item-product {
    width: 60%;
}

.bogo-avail .content .bogo-item-product p {
    font-size: 20px;
    text-decoration: underline;
    margin: 0;
    margin-bottom: 10px;
}

.bogo-avail .content .bogo-item-product span.bogo-item-badge {
    color: white;
    padding: 5px 20px;
    background: #663399e6;
    border-radius: 5px;
}

.avail-products-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: visible;
    opacity: 1;
    overflow-y: scroll;
    z-index: 99999;
}
.avail-products-overlay:target {
    visibility: visible;
    opacity: 1;
}
.avail-products-popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 80%;
    position: relative;
    transition: all 2s ease-in-out;
    height: max-content;
}
.avail-products-popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    z-index: 9999999;
}
.avail-products-popup .content {
    max-height: 30%;
    overflow: auto;
}

div#availProducts ul.products {
    display: flex;
    flex-wrap: wrap;
}

div#availProducts ul.products li {
    width: 24%;
    margin-right: 10px !important;
}

div#availProducts .related.products h2:not(.woocommerce-loop-product__title) {
    display: none;
}

div#availProducts .added_to_cart {
    color: white !important;
}

div#availProducts a {
    text-decoration: none !important;
}

button.availYProduct.button.alt {
    margin-right: 10px;
}

.woocommerce-uses-block-theme.archive span.product-bogo-badge {
    width: max-content;
    text-align: center;
    padding: 0 10px;
}

.avail-products-popup .product-bogo-badge {
    display: none;
}

.avail-products-popup .bogo-avail,
.avail-products-popup a.reset_variations,
.avail-products-popup .single_variation_wrap {
    display: none;
}

.avail-products-popup li a.add_to_cart_button {
    display: none;
}

a.wc-block-components-product-name .availBogoDiscountSelection {
    margin-top: 10px;
}

.dacfw-display-discount {
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    width: max-content;
    max-width: max-content;
}

/* sticky styles */
#dacfw-sticky-discounts-button {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
}
#dacfw-sticky-discounts-button button {
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    gap: 5px;
    animation: bounce 2s;
}

#dacfw-sticky-discounts-button span {
    font-weight: 500 !important;
    text-transform: none;
}

#dacfw-sticky-discounts-button:hover {
    transform: translateY(-2px);
}


#dacfw-sticky-discounts-button:focus,
#dacfw-sticky-discounts-button span:focus-visible {
    outline: none !important;
}

/* sticky discounts panel */
.dacfw-discounts-sticky-panel {
    cursor: pointer;
    position: fixed;
    transition: all 250ms ease-out;
    border-radius: 50%;
    opacity: 1;
}
.dacfw-discounts-sticky-panel p {
    margin: 0 !important;
}

.dacfw-discounts-sticky-panel.enter:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    opacity: 1;
}
.dacfw-discounts-sticky-panel.enter {
    transform: translateY(0);
    opacity: 0.6;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.14);
}
.dacfw-discounts-sticky-panel.expand {
    width: 330px;
    max-height: 400px;
    height: 400px;
    border-radius: 5px;
    cursor: auto;
    opacity: 1;
}
.dacfw-discounts-sticky-panel :focus {
    outline: 0;
    box-shadow: 0 0 3pt 2pt rgba(14, 200, 121, 0.3);
}
.dacfw-discounts-sticky-panel button {
    background: transparent;
    border: 0;
    color: white;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
}
.dacfw-discounts-sticky-panel .panel-layer {
    display: flex;
    flex-direction: column;
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    transition: all 250ms ease-out;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    overflow-y: auto;
}
.dacfw-discounts-sticky-panel .panel-layer.enter {
    opacity: 1;
    border-radius: 0;
    width: auto;
    height: auto;
    border-radius: 12px;
    padding: 30px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.panel-header h3 {
    margin: 0 !important;
    color: white;
    font-size: 20px;
}

.discount-item {
    display: flex;
    border-radius: 12px;
    padding: 10px 20px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer;
    background-color: white;
}

.discount-item:hover {
    transform: scale(1.02);
}

.panel-body .discount-item .item-description p {
    margin: 0;
    font-weight: 600;
}

.panel-body .discount-item .item-description span {
    font-size: 12px;
    display: block;
}
span.cancel-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

.panel-layer::-webkit-scrollbar {
    width: 5px;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7.5px);
    }
}
