/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
/* should be sticky */
.selected-fabrics-sticky-desktop {
    position: sticky;
    top: 125px;
}
.selected-fabrics-sticky-mobile {
    display: none;
}
.selected-fabrics .remove-from-cart-fabric {
    cursor: pointer;
}

.selected-fabrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#selected-fabrics-container {
    padding: .75rem 1.25rem
}
.selected-fabrics-sticky {
    position: sticky;
    top: 100px;
}
.selected-fabrics-card .card-header {
    font-size: 16px;
    font-weight: 600;
    color: #121212;
    margin-bottom: 10px;
    background-color: #FFFFFF;
}
.fabrics-selected-product-info {
    display: flex;
    flex-direction: column;
}
.fabrics-selected-product-info .fabrics-product-category {
    font-size: 15px;
    font-weight: 600;
    color: #121212;
}
.fabrics-selected-product-info .fabrics-product-name {
    
    font-size: 13px;
    color: #4F4F4F;
}
.fabrics-product-in-cart {
    background-color: rgb(249 250 251);
    padding: .75rem;
    display: flex;
    gap: .75rem;
    align-items: center;
}

.selected-fabrics-card .card-header{
    display: flex;
    gap: 5px;
}

.selected-fabrics-card .card-header h5{
    font-weight: 700;
}

.selected-fabrics-card .card-header span{
    font-weight: 400;
    color: #4F4F4F;
}
#fabrics-modal-error .modal-header,
#fabrics-modal-error .modal-footer {
    border: none !important;
}
#fabrics-modal-error .modal-header {
    display: flex;
    justify-content: space-between;
}
#fabrics-modal-error .modal-header .close{
    margin-left: auto;
}
#fabrics-modal.modal.in {
    padding-right: 0 !important;
}
#fabrics-modal .modal-dialog{
    width: 985px;
    max-width: 90%;
}
#fabrics-modal .category-name,
#fabrics-modal .category-name-mobile {
    text-align: left;
    color: #121212;
    font-size: 21px;
    font-weight: 600;
}
#fabrics-modal .features-flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

#fabrics-modal .feature-flag img {
    max-width: 50px;
    height: auto;
}
#fabrics-modal .product-featrues {
    display: flex;
    flex-direction: column;
}
#fabrics-modal .product-features .product-features-line {
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    padding: 15px 0;
}
#fabrics-modal .feature-name {
    color: #4F4F4F;
    font-size: 15px;
}

#fabrics-modal .category-name-mobile {
    display: none;
}
#fabrics-modal .feature-value {
    color: #121212;
    font-size: 15px;
    font-weight: 600;
}
#fabrics-modal .selected-fabrics {
    color: #4F4F4F;
    font-size: 13px;
    margin-bottom: 15px;
    margin-top: 25px
}

.submit-selected-fabrics-btn {
    text-transform: unset !important;
}
body#module-fabrics-fabrics .sub-fabric .selected-fabrics {
    padding-top: 10px;
    padding-bottom: 20px;
    font-weight: 600;
}
.fabrics-modal-footer {
    text-align: right;
}
#fabrics-modal .product-feature {
    display: flex;
    justify-content: space-between;
}
.fabric-product-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

body#module-fabrics-fabrics .tooltip-inner {
    background-color: #000000 !important;
    border-radius: 10px;
    padding: 10px;
}
body#module-fabrics-fabrics .fabrics-miniature {
    cursor: pointer;
}

body#module-fabrics-fabrics .sub-fabrics-name {
    color: #121212;
    font-weight: 600;
    font-size: 24px;
}
body#module-fabrics-fabrics .fabrics-miniature-name {
    color: #FFF;
    font-weight: 500;
    font-size: .75rem;
    padding-top: 10px;
    position: absolute;
    bottom: 0;
    max-width: 156px;
    text-align: center;
    width: 100%;
    padding: 5px 0;
    background: rgb(0 0 0 / 0.5);
}
body#module-fabrics-fabrics .fabrics-miniature img{
    width: 156px;
    height: auto;
    border-radius: 10px;
}
body#module-fabrics-fabrics .sub-fabrics-products {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

body#module-fabrics-fabrics h1.test {
    display: none;
}

body#module-fabrics-fabrics .fabrics-description {
    font-size: 21px;
    color: #121212;
    font-weight: 600;
}


/*body#module-fabrics-fabrics .fabrics-helpbox {
    font-size: 26px;
    color: #4F4F4F;
}*/
#module-fabrics-fabrics .free-samples {
    max-width: 1720px;
}
#module-fabrics-fabrics .free-samples .contact-button {
    max-width: 350px;
    width: 100%;
    line-height: 22px;
}
body#module-fabrics-fabrics .sub-fabrics-description {
    color: #4F4F4F;
    font-size: 15px;
    max-width: 1100px;
}

body#module-fabrics-fabrics .fabrics-miniature {
    display: flex;
    flex-direction: column;
    width: fit-content;
    text-align: center;
    max-width: calc(50% - 15px);
}


body#module-fabrics-fabrics .fabrics-miniature-image {
    position: relative;
    max-width: 180px;
}

body#module-fabrics-fabrics .fabrics-miniature-image .zoom-imagen {
    position: absolute;
    color: #f7f7f7;
    background-color: transparent;
    border: none;
    display: none;
    pointer-events: none;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}
body#module-fabrics-fabrics .fabrics-miniature-image .zoom-imagen svg {
    filter:
    drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.4)) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}
.fabrics-product-in-cart {
    display: flex;
}

.fabrics-product-in-cart img {
    width: 60px;
    height: auto;
    border: none;
}


body#module-fabrics-fabrics .fabrics-miniature-image:hover .zoom-imagen {
    display: block;
}


body#module-fabrics-fabrics .fabrics-miniature-image a {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 20px;
    border-radius: 40px;
    border: 1px solid #121212;
    display: none;
}


body#module-fabrics-fabrics .fabrics-miniature-image.not-in-cart:hover .add-to-cart-fabric:not(.mobile){
    background: #000000 0% 0% no-repeat padding-box;
    color: white !important;
    display: block;
}

body#module-fabrics-fabrics .fabrics-miniature-image.in-cart .remove-from-cart-fabric:not(.mobile){
    background: #FFFFFF 0% 0% no-repeat padding-box;
    display: block;
}


body#module-fabrics-fabrics .fabrics-miniature-image.in-cart .add-to-cart-fabric {
    display: none !important;
}

body#module-fabrics-fabrics .fabrics-miniature-image.not-in-cart .remove-from-cart-fabric {
    display: none !important;
}

body#module-fabrics-fabrics button.close {
    font-size: 35px;
}
body#module-fabrics-fabrics button.close:hover {
    background-color: rgba(255, 255, 255, .15);
    color: #121212;
}
body#module-fabrics-fabrics .product-features {
    margin-top: 0;
}
#module-fabrics-fabrics .sub-fabrics {
    max-width: 1720px;
    margin: 0 auto;
}
body#module-fabrics-fabrics .fabrics-disclaimer {
    max-width: 900px;
    margin: 0 auto;
}

body#module-fabrics-fabrics .fabrics-disclaimer p {
    font-size: 11px;
    line-height: 20px;
    font-weight: 600;
}

/*STICKY BAR FABRICS*/
body#module-fabrics-fabrics .sticky-bar-fabrics {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #d2d2d2;
    box-shadow: 0 0 80px 0 rgba(0, 0, 0, 0.32);
    padding: 16px 20px;
    gap: 12px;
    z-index: 99;
}

body#module-fabrics-fabrics .sticky-bar-fabrics-box {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

body#module-fabrics-fabrics .sticky-bar-fabrics-price {
    font-size: 32px;
    line-height: 28px;
}

body#module-fabrics-fabrics .sticky-bar-fabrics-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}
body#module-fabrics-fabrics .sticky-bar-fabrics-delivery {
    font-size: 12px;
    line-height: 11px;
    text-transform: uppercase;
    color: #333;
}
body#module-fabrics-fabrics .sticky-bar-fabrics-action .btn.btn-primary {
    border: 1px solid #232323;
    pointer-events: auto;
}
body#module-fabrics-fabrics .tooltip {
    z-index: 1000000000 !important;
}


/*END STICKY BAR FABRICS*/


body#module-fabrics-fabrics #tidio-chat-iframe {
    margin-bottom: 73px !important;
}

body.disable-not-in-cart .fabrics-miniature-image.not-in-cart::after {
    content: "";
    position: absolute;
    inset: 0;                 
    background: rgba(255, 255, 255, 0.6);
    z-index: 999;
    pointer-events: all;     
    cursor: not-allowed;
}

/* Dla urządzeń dotykowych – brak hover i pointer coarse */
@media (hover: none) and (pointer: coarse) {
    body#module-fabrics-fabrics .fabrics-miniature-image .zoom-imagen {
        display: block;
    }

    body#module-fabrics-fabrics .fabrics-miniature-image a.mobile {
        display: block;
    }

    body#module-fabrics-fabrics .fabrics-miniature-image a:not(.mobile) {
        display: none !important;
    }

    body#module-fabrics-fabrics .fabrics-miniature-image a.remove-from-cart-fabric.mobile {
        background-color: white;
        color: black;
        border-radius: 50%;
        right: 10px;
        bottom: 17px;
        left: unset;
        transform: unset;
        width: 35px;
        height: 35px;
        font-size: 28px;
        align-items: center;
        padding: 9px;
        display: flex;
        justify-content: center;
    }

    
    body#module-fabrics-fabrics #tidio-chat-iframe {
        margin-bottom: 0 !important;
    }
    body#module-fabrics-fabrics .sticky-bar-fabrics-action {
        align-items: flex-start;
    }
    body#module-fabrics-fabrics .sticky-bar-fabrics-action .btn.btn-primary {
        width: 82% !important;
    }
    body#module-fabrics-fabrics .sticky-bar-fabrics-box .selected-fabrics {
        padding-bottom: 10px;
    }

}
@media (max-width: 1200px) {
    body#module-fabrics-fabrics #wrapper .breadcrumb {
        margin-bottom: 0 !important;
        margin-top: 140px !important;
    }
}

@media (max-width: 991px) {
    body#module-fabrics-fabrics .row.fabrics {
        display: flex;
        flex-direction: column;
    }

    body#module-fabrics-fabrics .col-md-6.fabrics-picture {
        width: 100%;
    }

    body#module-fabrics-fabrics .col-md-6.fabrics-information {
        width: 100%;
    }

    #fabrics-modal .category-name-mobile {
        display: block;
        padding-top: 2px;
        padding-bottom: 10px;
        padding-left: 5px;
    }

    #fabrics-modal .category-name {
        display: none;
    }

    #fabrics-modal .modal-body-header {
        display: flex;
        justify-content: space-between;
    }

    #fabrics-modal .modal-dialog {
        max-width: 65%;
    }
    body#module-fabrics-fabrics #tidio-chat-iframe {
        margin-bottom: 0 !important;
    }
    body#module-fabrics-fabrics .sticky-bar-fabrics-action {
        align-items: flex-start;
    }
    body#module-fabrics-fabrics .sticky-bar-fabrics-action .btn.btn-primary {
        width: 82% !important;
    }
    
    body#module-fabrics-fabrics .sticky-bar-fabrics-box .selected-fabrics {
        padding-bottom: 10px;
    }
}

@media (max-width: 768px) {
    #fabrics-modal .category-name-mobile{
        display: block;
    }
    body#module-fabrics-fabrics .fabrics-miniature-image .zoom-imagen {
        display: block;
    }
    body#module-fabrics-fabrics .fabrics-miniature-image .zoom-imagen svg {
        width: 25px;
        height: 25px;
    }
    #fabrics-modal .category-name{
        display: none;
    }
    #fabrics-modal .features-flags {
        justify-content: center;
    }
    #fabrics-modal .btn-primary,
    #fabrics-modal-error .btn-primary {
        width: 100%;
    }

    #fabrics-modal .selected-fabrics {
        text-align: center;
    }

    #fabrics-modal .modal-body-header {
        display: flex;
        justify-content: space-between;
    }

    body#module-fabrics-fabrics .fabrics-miniature-image a.mobile {
        display: block;
    }

    body#module-fabrics-fabrics .fabrics-miniature-image a:not(.mobile) {
        display: none !important;
    }

    body#module-fabrics-fabrics .sub-fabrics-products {
        justify-content: center;
    }

    

    body#module-fabrics-fabrics .fabrics-miniature-image a.add-to-cart-fabric.mobile {
        background-color: black;
        color: white;
        border-radius: 50%;
        right: 10px;
        bottom: 17px;
        left: unset;
        transform: unset;
        width: 35px;
        height: 35px;
        font-size: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body#module-fabrics-fabrics .fabrics-miniature img{
        width: 156px;
    }
    #fabrics-modal .modal-dialog {
        max-width: 75%;
    }
    body#module-fabrics-fabrics .sticky-bar-fabrics {
        flex-direction: column;
        padding: 12px 20px;
    }
    
    body#module-fabrics-fabrics .sticky-bar-fabrics-box {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    body#module-fabrics-fabrics .sticky-bar-fabrics-price {
        font-size: 25px;
        line-height: 21px;
    }
    
    body#module-fabrics-fabrics .sticky-bar-fabrics-box .selected-fabrics {
        font-size: 15px;
    }
    body#module-fabrics-fabrics .sticky-bar-fabrics-delivery {
        font-size: 11px;
    }
    body#module-fabrics-fabrics .sticky-bar-fabrics-action {
        align-items: flex-start;
        width: 100%;
    }
    body#module-fabrics-fabrics .sticky-bar-fabrics-action .btn.btn-primary {
        width: 100%;
    }
    #scrollToTopContainer {
        bottom: 140px;
    }
    body#module-fabrics-fabrics .free-samples {
        padding-bottom: 0;
    }
}

@media (max-width: 576px) {
    .selected-fabrics-sticky-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px;
        background-color: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .selected-fabrics-toggle {
        width: 100%;
        background: #f8f9fa;
        border: none;
        padding: 12px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
    }

    .selected-fabrics-sticky-mobile.open .selected-fabrics-content {
        max-height: 300px; /* enough for list */
    }
    .selected-fabrics-sticky-desktop {
        display: none;
    }
    
}

@media (max-width: 420px) {
    body#module-fabrics-fabrics .fabrics-miniature img{
        width: 135px;
    }
}
