/*!
Conditional Free Product for WooCommerce
Frontend styles for changing free product
*/

#cfp-change-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cfp-change-content {
    background: white;
    padding: 20px;
    max-width: 600px;
    border-radius: 8px;
    max-height: 80%;
    overflow-y: auto;
}
#replacement-products {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: center;
}
#replacement-products-container{
    text-align: center;
    display: block;
}
.price-crossed-out-item span.cfp-product-item.price-crossed-out-item.optional {
    display: none;
}
.replacement-option {
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ccc;
    transition: background 0.3s;
}
.replacement-option:hover {
    background: #f9f9f9;
}
a.cfp-change-button {
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    font-weight: 400;
    padding: 0 .3em;
    border: 1px solid #31000075;
    border-radius: 4px;
    display: inline-block;
    line-height: 19px;
    background-color: #cccccc4f;
}
#replacement-products .price-crossed-out-item .price-crossed-out-value {
    text-decoration: line-through 2px #FF000050;
}
.cfp-change-content h3 {
    margin: 10px 0;
}
.replacement-option:hover {
    background: #bebebe36;
}
.replacement-option img {
    margin: 0 auto;
    display: block;
}
.replacement-option .label-txt {
    text-align: center;
    width: 100%;
    display: block;
}
.wc-block-components-sale-badge{
    display: none;
}
.wc-block-cart-item__quantity button {
    margin-right: 10px !important;
}
button.btn.cfp-change-button {
    cursor: pointer;
}
.product-name button.btn.cfp-change-button {
    border: none !important;
    background: transparent;
    padding: 5px 0;
    margin: 0;
    text-decoration: underline;
    font-size: .95em;
    font-family: inherit;
    font-weight: 400;
    position: absolute;
}
.product-name button.btn.cfp-change-button:hover{
    text-decoration: none;
}