/*
 * custom-styles/css/body-start.css  --  nattelyst.no
 * Migrated from DB (Elementor body-start CSS snippet).
 * Printed at wp_body_open via custom-styles/main.php.
 * Conditions noted are NOT yet enforced -- loads site-wide for now.
 */

/* ============================================================
   Snippet #72798 '[CSS] Price By Quantity'  --  was: elementor_body_start, conditions: product pages only -- now site-wide
   ============================================================ */

.wpcpq-table:only-child::after, .wpcpq-table:nth-last-child(2):last-child::after {
    content: '';
    flex: auto;
}
	
	 .wpcpq-row.wpcpq-head {
     display: none;
}

 .wpcpq-table.wpcpq-items {
     flex-wrap: wrap;
     justify-content: space-between;
     gap: 10px;
}
@media only screen and (max-width: 768px) {
    .wpcpq-table.wpcpq-items {
        flex-wrap: nowrap;
    }
}
 .wpcpq-table .wpcpq-row > div {
     flex: unset;
     width: unset;
}
 .wpcpq-table .wpcpq-row {
     flex-direction: row !important;
     margin-bottom: 10px;
     background-color: #f6f6f6;
     line-height: 1.4;
     font-size: 90%;
     padding: 10px 20px;
     border-radius: 10px;
     justify-content: space-between;
         border: 2px solid #f6f6f6;
}
@media only screen and (min-width: 769px) and (max-width: 1140px) {
     .wpcpq-table .wpcpq-row {
         flex-basis: 31%;
     }
}
span.wpcpq-item-text span {
     color: #19345C;
     text-transform: uppercase;
     font-size: 0.75rem;
     font-weight: bold;
}

span.wpcpq-item-text {
    margin-right: 20px;
    width: 50px;
    height: 50px;
    text-align: center;
    background-image: url(https://nattelyst.no/wp-content/uploads/2022/08/star.svg);
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 10px;
    font-size: 10px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 9px;
}

span.wpcpq-item-price-val .amount:after {
    content: '/stk';
    font-size: 80%;
    font-weight: 500;
    margin-left: 3px;
    opacity: 0.75;
}

 .wpcpq-table .wpcpq-row.wpcpq-foot {
     display: none;
}
 .wpcpq-table .wpcpq-item-active {
     color: var(--minimog-color-heading);
}
 span.wpcpq-item-price-val span {
     font-weight: bold !important;
     font-size: 1.2rem;
}
 .wpcpq-item-price {
     display: flex;
     flex-direction: column;
     text-align: center;
     margin-top: 6px;
     text-align: left;
         flex-direction: row-reverse;
    align-items: center;
}
 .wpcpq-wrap {
     margin-bottom: 15px;
}

.single-pane > .wpcpq-wrap {
    margin-bottom: 0;
}
.wpcpq-item-default {
    min-height: 65px;
}
 .wpcpq-row.wpcpq-item.wpcpq-item-active {
     border: 2px solid;
     background-color: #E9F1FB;
}
.wpcpq-item-qty:before {
    order: 2;
    width: 100%;
    font-size: 12px;
        opacity: 0.75;
    font-weight: 500;
}
 .wpcpq-item-qty:after {
     content: ' stk';
     margin-left: 4px;
}

.wpcpq-item-qty {
    font-weight: 600;
    font-size: 18px;
    display: flex;
    flex-wrap: wrap;
}


    .wpcpq-item-qty {
        max-width: 35%;
    }


.wpcpq-table.wpcpq-click-yes .wpcpq-item {
    position: relative;
    overflow: hidden;
}

.wpcpq-item.wpcpq-item-2:after {
    content: 'Populær';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--e-global-color-secondary);
    border-bottom-left-radius: 4px;
    padding: 3px 5px;
    font-size: 70%;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.wpcpq-table .wpcpq-item:before {
    height: 50px;
    width: 50px;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    position: absolute;
    left: 10px;
}

.wpcpq-row[data-qty="1"] {
    padding-top: 20px;
    padding-bottom: 20px;
}

.wpcpq-row[data-qty="1"] .wpcpq-item-text {
    display: none;
}
	
	.page-id-12376 .wpcpq-wrap,
.page-id-12376 .entry-product-quantity-wrapper {
    display: none !important;
}
	
	@media only screen and (max-width: 768px) {

    .wpcpq-table .wpcpq-row {
        padding: 10px 15px !important;
    }
    
    .wpcpq-table .wpcpq-item:before {
        left: 5px !important;
        height: 40px;
        width: 40px;
    }
    
    .wpcpq-table .wpcpq-item[data-qty="2"] .wpcpq-item-qty {
        margin-left: 30px;
    }
}