/* Higher specificity + !important so themes cannot force price/button beside images. */
.yith-wfbt-section {
    clear: both;
    margin-top: 1.5em;
}
.woocommerce div.product .yith-wfbt-section .yith-wfbt-form,
.yith-wfbt-section .yith-wfbt-form {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both;
    gap: 0;
    box-sizing: border-box;
}
.yith-wfbt-section .yith-wfbt-images-row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    clear: both !important;
    float: none !important;
    flex: 0 0 auto !important;
    order: 1;
    box-sizing: border-box;
}
.yith-wfbt-section .yith-wfbt-items {
    list-style-type: circle;
    clear: both;
    padding: 0;
    margin-left: 20px;
    margin-top: 10px;
    order: 3;
}
.yith-wfbt-section .yith-wfbt-images {
    margin: 10px 0 !important;
    float: none !important;
    display: table !important;
    border-spacing: 0;
    border-collapse: collapse;
    border: 0;
    width: 100% !important;
    max-width: 100% !important;
}
.woocommerce div.product .yith-wfbt-section .yith-wfbt-submit-block,
.yith-wfbt-section .yith-wfbt-submit-block {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: 0 0 auto !important;
    flex-basis: 100% !important;
    align-self: stretch !important;
    margin: 0.75em 0 0 !important;
    padding: 0 !important;
    order: 2;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75em;
    box-sizing: border-box;
}
.yith-wfbt-section .yith-wfbt-submit-block .price_text {
    margin: 0;
}
.yith-wfbt-section .yith-wfbt-images td {
    border: 0;
    padding: 10px 0;
    vertical-align: middle;
}
.yith-wfbt-section .yith-wfbt-images td img {
    width: 100px;
    height: auto;
}
.yith-wfbt-section .yith-wfbt-images .image_plus,
.yith-wfbt-section .yith-wfbt-images .image_equals {
    width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
    color: inherit;
}
.yith-wfbt-section .yith-wfbt-images .image-td-combo a.yith-wfbt-combo-lightbox {
    display: inline-block;
    cursor: zoom-in;
    line-height: 0;
    vertical-align: middle;
    position: relative;
    z-index: 2;
}
/* Let clicks register on the <a> when themes/plugins style the inner <img>. */
.yith-wfbt-section .yith-wfbt-images .image-td-combo a.yith-wfbt-combo-lightbox img {
    pointer-events: none;
}
.yith-wfbt-section .yith-wfbt-images .image-td-combo a.yith-wfbt-combo-lightbox:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Fullscreen overlay (combo image lightbox). */
.yith-wfbt-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.88);
    animation: yith-wfbt-lb-fade 0.2s ease;
}
@keyframes yith-wfbt-lb-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.yith-wfbt-lightbox-inner {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yith-wfbt-lightbox-inner img {
    max-width: min(96vw, 100%);
    max-height: min(92vh, 100%);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}
.yith-wfbt-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.yith-wfbt-lightbox-close:hover,
.yith-wfbt-lightbox-close:focus {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}
.yith-wfbt-lightbox-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.woocommerce div.product .yith-wfbt-items .price{
    font-size: 18px;
}
.woocommerce div.product .yith-wfbt-items .price del,
.woocommerce div.product .yith-wfbt-items .price ins {
    display: inline-block;
}

