@import './shared.css';

#nembestil_widget {
    display: block;
    width: 100%;
    background: transparent;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.5, 1, 0.89, 1);
    transform: translateX(-40px);
}

#nembestil_widget.ready {
    opacity: 1;
    transform: translateY(0px);
}

#nembestil_iframe {
    width: 100%;
    display: block;
    height: 1px;
    visibility: hidden;
}

#nembestil_iframe.ready {
    visibility: visible;
}

/* menukort widget */
.nembestil-menukort {
    display: flex;
    flex-direction: column;
}

.nembestil-menukort .product {
    display: flex;
    gap: 30px;
    padding-top: 15px;
    padding-bottom: 15px !important;
    align-items: center;
    position: relative;
}

.nembestil-menukort .product .info {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
}

.nembestil-menukort .product a.wrapper-link,
.nembestil-menukort .product a.wrapper-link-mobile {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.nembestil-menukort .product a.wrapper-link-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nembestil-menukort .product a.wrapper-link {
        display: none;
    }
    .nembestil-menukort .product a.wrapper-link-mobile {
        display: block;
    }
}

.nembestil-menukort .product .product-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.nembestil-menukort .product .product-info {
    flex: 1;
    text-align: left;
}

.nembestil-menukort .product .product-info * {
    margin-top: 0px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .nembestil-menukort .product {
        align-items: flex-start;
    }
    .nembestil-menukort .product .info {
        text-align: left;
        display: block;
    }
    .nembestil-menukort .product .price {
        margin-top: 5px;
    }
    .nembestil-menukort .product .cart {
        display: none !important;
    }
}

/* hide original products */
.nembestil-menukort .original-archive-content .products {
    display: none;
}

/* quick view: hide the default price in the quick view modal */
.product-quick-view .product_title + .price {
    display: none;
}