/* iWater - Lagt i kurv popup */
.iw-atc-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:flex-start;justify-content:center;padding:24px 16px;background:rgba(4,26,39,.55);overflow-y:auto;font-family:'Quicksand',var(--global-body-font-family,sans-serif);}
.iw-atc-overlay[hidden]{display:none;}
.iw-atc-modal{position:relative;background:#fff;border-radius:18px;overflow:hidden;max-width:700px;width:100%;margin:auto;box-shadow:0 24px 60px rgba(4,26,39,.25);outline:none;}
.iw-atc-modal *{box-sizing:border-box;}
.iw-atc-close{position:absolute;top:14px;right:14px;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:var(--global-palette3,#041a27);font-size:24px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 1px rgba(4,26,39,.12);z-index:2;}
.iw-atc-close:hover{background:rgba(4,26,39,.06);}
/* Neutralize the theme's generic button padding (Kadence sets button{padding:0.6em 1.5em}); at this button's 24px font-size that becomes 36px side padding and stretches the fixed 40x40 circle into an oval. Overlay scope = specificity (0,2,0), so it wins without !important. */
.iw-atc-overlay .iw-atc-close{padding:0;}
.iw-atc-content{padding:28px;}
.iw-atc-content.iw-atc-loading{opacity:.45;}

/* Header */
.iw-atc-head{display:flex;align-items:center;gap:14px;background:rgba(61,182,151,.10);border-radius:14px;padding:16px 18px;margin:0 0 22px;}
.iw-atc-check{flex:0 0 auto;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--global-palette11,#3db697);border:2px solid var(--global-palette11,#3db697);}
.iw-atc-check svg{width:24px;height:24px;}
.iw-atc-head h2{margin:0;font-size:20px;font-weight:600;color:var(--global-palette1,#041a27);line-height:1.2;}
.iw-atc-sub{margin:2px 0 0;font-size:14px;color:var(--global-palette5,#516571);}

/* Product row */
.iw-atc-product{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:16px;padding-bottom:22px;border-bottom:1px solid rgba(4,26,39,.10);}
.iw-atc-thumb img{display:block;width:72px;height:72px;object-fit:cover;border-radius:10px;background:var(--global-palette8,#e8e4e1);}
.iw-atc-info{min-width:0;}
.iw-atc-name{display:block;font-size:16px;font-weight:600;color:var(--global-palette3,#041a27);line-height:1.3;}
.iw-atc-cat{display:block;font-size:13px;color:var(--global-palette5,#516571);margin-top:2px;}
.iw-atc-qty{display:inline-flex;align-items:stretch;border:1px solid rgba(4,26,39,.18);border-radius:10px;overflow:hidden;background:#fff;}
.iw-atc-qty.iw-atc-busy{opacity:.5;pointer-events:none;}
.iw-atc-qty-static{border:0;padding:0;background:transparent;min-height:44px;font-size:16px;font-weight:600;color:var(--global-palette3,#041a27);display:inline-flex;align-items:center;}
.iw-atc-step{appearance:none;-webkit-appearance:none;border:0;background:transparent;width:38px;min-height:44px;font-size:18px;line-height:1;color:var(--global-palette1,#041a27);cursor:pointer;}
.iw-atc-step:hover{background:rgba(4,26,39,.06);color:#000 !important;}
.iw-atc-qtyval{width:42px;min-height:44px;border:0px solid #fff !important;text-align:center;font-size:15px;font-weight:600;color:var(--global-palette3,#041a27);background:transparent;padding:0;-moz-appearance:textfield;}
.iw-atc-qtyval::-webkit-outer-spin-button,.iw-atc-qtyval::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.iw-atc-price{font-size:18px;font-weight:600;color:var(--global-palette1,#041a27);white-space:nowrap;text-align:right;}
/* Keep the popup line price dark even when a global .iw-atc-price{color:#fff} rule (for the dark "Læg i kurv" button) is active. Scoped to the overlay so it wins here without affecting the button. */
.iw-atc-overlay .iw-atc-price{color:var(--global-palette1,#041a27) !important;}

/* Add-ons added together with a bundle */
.iw-atc-addons{margin:18px 0 0;}
.iw-atc-addons-head{display:block;font-size:13px;font-weight:600;color:var(--global-palette5,#516571);margin:0 0 8px;}
.iw-atc-addon-line{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px solid rgba(4,26,39,.08);}
.iw-atc-addon-thumb img{display:block;width:44px;height:44px;object-fit:cover;border-radius:8px;background:var(--global-palette8,#e8e4e1);}
.iw-atc-addon-name{flex:1 1 auto;min-width:0;font-size:14px;font-weight:600;color:var(--global-palette3,#041a27);}
.iw-atc-addon-price{flex:0 0 auto;font-size:14px;font-weight:600;color:var(--global-palette1,#041a27);white-space:nowrap;}

/* Actions */
.iw-atc-actions{display:flex;gap:12px;margin:22px 0 6px;}
.iw-atc-btn{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:.7em 1em;border-radius:10px;font-size:15px;font-weight:600;text-align:center;text-decoration:none;cursor:pointer;border:1.5px solid var(--global-palette1,#041a27);transition:background .15s ease,color .15s ease;font-family:inherit;}
.iw-atc-btn-outline{background:#fff;color:var(--global-palette1,#041a27);}
.iw-atc-btn-outline:hover{background:rgba(4,26,39,.06);color:var(--global-palette1,#041a27);}
.iw-atc-btn-primary{background:var(--global-palette1,#041a27);color:#fff;}
.iw-atc-btn-primary:hover{background:var(--global-palette2,#123f5a);border-color:var(--global-palette2,#123f5a);color:#fff;}
.iw-atc-btn svg{width:18px;height:18px;flex:0 0 auto;}

/* Recommendations */
.iw-atc-recs{margin-top:26px;}
.iw-atc-recs h3{margin:0 0 14px;font-size:16px;font-weight:600;color:var(--global-palette1,#041a27);}
.iw-atc-rec-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.iw-atc-rec-grid .iw-atc-card:nth-child(4){display:none;}
.iw-atc-card{display:flex;flex-direction:column;border:1px solid rgba(4,26,39,.10);border-radius:12px;padding:12px;background:#fff;}
.iw-atc-card-img{display:block;}
.iw-atc-card-img img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:8px;margin-bottom:10px;background:var(--global-palette8,#e8e4e1);}
.iw-atc-card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:600;color:var(--global-palette3,#041a27);line-height:1.3;text-decoration:none;margin-bottom:6px;min-height:2.6em;}
.iw-atc-card-price{font-size:14px;font-weight:600;color:var(--global-palette1,#041a27);margin-bottom:10px;}
.iw-atc-card-price del{opacity:.5;font-weight:400;margin-right:4px;}
.iw-atc-card-price ins{text-decoration:none;}
.iw-atc-card-add{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:.4em .6em;border-radius:8px;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;border:1.5px solid var(--global-palette1,#041a27);background:#fff;color:var(--global-palette1,#041a27);transition:background .15s ease,color .15s ease;text-align:center;}
.iw-atc-card-add:hover{background:var(--global-palette1,#041a27);color:#fff;}
.iw-atc-card-add.loading,.iw-atc-card-add.added{opacity:.7;}
.button.add_to_cart_button.ajax_add_to_cart.iw-atc-card-add{width:100%;}

/* Trust bar */
.iw-atc-trust{display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between;margin:26px -28px -28px;padding:18px 28px;background:var(--global-palette8,#e8e4e1);border-radius:0 0 18px 18px;}
.iw-atc-trust-item{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:var(--global-palette4,#334651);flex:1 1 28%;min-width:150px;line-height:1.4;}
.iw-atc-trust-item svg{width:20px;height:20px;flex:0 0 auto;color:var(--global-palette1,#041a27);margin-top:1px;}
.iw-atc-trust-item strong{display:block;font-size:13px;font-weight:600;color:var(--global-palette3,#041a27);margin-bottom:3px;}

/* Hide snippet 26 inline "Se kurv" link (popup replaces it) */
.kwt-add-to-cart-single a.added_to_cart{display:none !important;}

/* Scroll lock */
html.iw-atc-locked,html.iw-atc-locked body{overflow:hidden !important;}

/* Mobile */
@media (max-width:560px){
	.iw-atc-overlay{padding:0;}
	.iw-atc-modal{border-radius:10px;max-width:calc(100% - 20px);min-height:calc(100% - 20px);margin:10px;}
	.iw-atc-head h2{font-size:18px;}
	.iw-atc-content{padding:20px;}
	.iw-atc-product{grid-template-columns:auto 1fr;grid-template-areas:'thumb info' 'meta meta';row-gap:16px;column-gap:14px;}
	.iw-atc-thumb{grid-area:thumb;} .iw-atc-info{grid-area:info;}
	.iw-atc-qty{grid-area:meta;justify-self:start;align-self:center;} .iw-atc-price{grid-area:meta;justify-self:end;align-self:center;}
	.iw-atc-actions{flex-direction:column;}
	.iw-atc-rec-grid{grid-template-columns:1fr 1fr;}
	.iw-atc-rec-grid .iw-atc-card:nth-child(4){display:flex;}
	.iw-atc-trust{margin:22px -20px -20px;padding:16px 20px;border-radius:0;flex-direction:column;gap:12px;}
}
@media (max-width:360px){
	.iw-atc-rec-grid{grid-template-columns:1fr;}
}
@media (prefers-reduced-motion:no-preference){
	.iw-atc-modal{animation:iw-atc-in .2s ease;}
	@keyframes iw-atc-in{from{opacity:0;transform:translateY(12px);}to{opacity:1;transform:none;}}
}
