/*
 * custom-styles/css/body-start.css  --  nattelyst.dk
 * Migrated from DB (Elementor body-start CSS). Printed at wp_body_open.
 * Conditions noted are NOT yet enforced -- loads site-wide for now.
 */

/* ============================================================
   Snippet #72798 "[CSS] Price By Quantity"  --  was: elementor_body_start, conditions: include/woocommerce/product -- now site-wide
   ============================================================ */

@media (min-width: 1201px) {
    body.single-product #page-title-bar {
        max-width: 1270px !important;
        margin: 0 auto 30px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

body.single-product #page-breadcrumb .page-breadcrumb-wrap {
    display: flex !important;
    justify-content: flex-start !important;
    width: 100%;
}

body.single-product #page-breadcrumb .insight_core_breadcrumb {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    --breadcrumb-align: flex-start !important;
}

body.single-product #page-breadcrumb,
body.single-product #page-breadcrumb .page-breadcrumb-wrap,
body.single-product #page-breadcrumb .insight_core_breadcrumb {
    text-align: left !important;
    --breadcrumb-align: flex-start !important;
}
	
	
	
	.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.dk/wp-content/uploads/2022/08/star.svg');
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 7px;
    font-size: 10px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 8px;
}

span.wpcpq-item-price-val .amount:after {
    content: '/stk';
    font-size: 80%;
    font-weight: 500;
    margin-left: 3px;
    opacity: 0.75;
}
	
	.wpcpq-item-price-val .amount {
		white-space: nowrap;
	}

 .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;
}

/* The fill is skipped across the whole table as soon as any tier carries a gift ribbon, so
   every box on that product reads the same way: selection is shown by the border alone, and
   #E9F1FB never competes with the ribbon's own colour. See .calio-giftrule-strip in head.css. */
.wpcpq-table:not(:has(.calio-giftrule-strip)) .wpcpq-row.wpcpq-item.wpcpq-item-active {
     background-color: #E9F1FB;
}
.wpcpq-item-qty:before {
    order: 2;
    width: 100%;
    font-size: 12px;
        opacity: 0.75;
    font-weight: 500;
	white-space: nowrap;
}
 .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%;
				min-width: 65px;
    }


.wpcpq-table.wpcpq-click-yes .wpcpq-item {
    position: relative;
    overflow: hidden;
}

/* The "Populær" tier badge lives in calio-tier-badge.php, not here: which tier carries it
   is per product (ACF field quantity_tier_recommended), and this file is one cached
   stylesheet shared by every page. The rule it prints is scoped to .postid-<id>. */

.wpcpq-table .wpcpq-item:before {
    height: 50px;
    width: 50px;
    background-position: center;
    background-size: cover;
    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;
    }
}

/* Product titles inherit the theme's uppercase from the Elementor kit; the names read better as
   written. 0,2,0 beats the kit's 0,1,1, so no !important is needed. */
.single-product .entry-title {
    text-transform: unset;
}