/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

:root {
  --button-base: #dfecc1;
  --button-hover: #bcd483;
  --focus: #006a3232;
  --text-main: #0f2c15;
  --text-bright: var(--text-main);
  --form-text: var(--text-main);
  interpolate-size: allow-keywords;
}

main, footer {
  position: relative;
  z-index: 0;
}





/* ---------- */
/* TYPOGRAPHY */
/* ---------- */

body p, body .post-content p  {
  /* hyphens: auto; */
  margin-bottom: .5em;
}

p:last-child,
.fusion-post-content p:last-child,
.post-content p:last-child {
  margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: .3em;
}

blockquote,
#wrapper .post-content blockquote,
.fusion-body blockquote {
  border: none;
  background: transparent;
  font-size: 1.5em;
  font-family: 'Noto Serif';
  text-align: center;
  margin: 1em 2em;
}

i, em {
  font-family: "Noto Serif"
}

blockquote::after, blockquote::before {
  content: "~";
}

mark {
  background: linear-gradient(transparent 62%,var(--awb-color6) 62%,var(--awb-color6) 92%,transparent 92%);
  padding: 0 .1em;
}

.text-mini    { font-size: .5em; }
.text-smaller { font-size: .7em; }
.text-bigger  { font-size: 1.3em; }
.text-2em     { font-size: 2em !important; }
.text-3em     { font-size: 3em !important; }
@media screen and (min-width: 500px) {
  .text-4em   { font-size: 4em; }
  .text-5em   { font-size: 5em; }
}

.text-right { text-align: right; }

.smalltext,
.smalltext .menu-text {
    font-size: .8em !important;
    line-height: 1.4;
}

.largetext,
.largetext p {
    font-size: 1.3rem;
}

.img-contain img {
    object-fit: contain !important;
}

.white, .white p, .white h1, .white h2, .white h3, .white h4, .white h5, .white h6 {
    color: white;
}

.green        { color: var(--awb-color2) }
.color-3,
p.color-3     { color: var(--awb-color3) }
.kale    { color: var(--awb-color5) }
.lime, 
a.lime:hover  { color: var(--awb-color6) }

.opacity-4  { opacity: .4; }
.opacity-5  { opacity: .5; }
.opacity-6  { opacity: .6; }
.opacity-7,
.weak       { opacity: .7; }
.opacity-8  { opacity: .8; }
.opacity-9  { opacity: .9; }

hr {
  display: block;
  height: 2px;
  border: 0;
  border-top: 2px solid var(--awb-color4);
  margin: 1em 0;
  padding: 0;
}

.pre-line { white-space: pre-line; }

.presenting {
  font-size: .8em;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}





/* ------ */
/* COLORS */
/* ------ */

.bg-2 { background: var(--awb-color2); } /* Green */
.bg-3 { background: var(--awb-color3); } /* Light Grey */
.bg-5 { background: var(--awb-color5); } /* Kale */





/* ------- */
/* BUTTONS */
/* ------- */

button,
.button.smalltext {
    border: 2px solid var(--awb-color3);
    border-radius: 500px;
    background: var(--awb-color3);
    color: var(--awb-color2);
    cursor: pointer;
    display: inline-block;
    padding: .3em .9em;
    white-space: nowrap;
    width: fit-content;
}

button.green:not(:hover) {
    border-color: var(--awb-color2);
    background: var(--awb-color2);
    color: var(--awb-color6);
}

button.darker:not(:hover) {
    border-color: var(--awb-color4);
    background: var(--awb-color4);
}

.white button:hover {
    border-color: var(--awb-color6);
}

button:hover,
.button.smalltext:hover {
    border-color: var(--awb-color2);
    background: var(--awb-color6);
}

.largetext button,
.fusion-post-cards .fusion-load-more-button {
  background: var(--awb-color2);
  font-size: .8em;
  padding: .6em 1.2em;
  color: var(--awb-color6);
  border-color: var(--awb-color2);
}

.largetext button:hover,
.fusion-post-cards .fusion-load-more-button:hover {
  background: var(--awb-color6);
  color: var(--awb-color2);
}

button.span { border-radius: 0; }


button:disabled {
  opacity: .2;
  pointer-events: none;
  cursor: wait;
}





/* ------ */
/* LAYOUT */
/* ------ */

.max-400  { max-width: 400px !important; margin-left: auto !important; margin-right: auto !important; }
.max-600  { max-width: 600px !important; margin-left: auto !important; margin-right: auto !important; }
.max-800  { max-width: 800px !important; margin-left: auto !important; margin-right: auto !important; }
.max-1000 { max-width: 1000px !important; margin-left: auto !important; margin-right: auto !important; }

.card {
  background-color: white;
  border: 2px solid var(--awb-color4);
  padding: .7em .8em;
}

@media screen and (min-width: 700px) {
  #results {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .6rem;
  }
  .challenge {
    max-width: calc(50% - 0.3rem);
  }
}

img {
  max-width: 100%;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.span {
  width: 100%;
}

.p-0 { padding: 0 }
.p-1 { padding: 1rem }
.p-2 { padding: 2rem }
.p-3 { padding: 3rem }
.p-4 { padding: 4rem }

.p-2-percent  { padding: 2% }
.p-6-percent  { padding: 6% }
.p-12-percent { padding: 12% }

.pb-05  { padding-bottom: .5em; }

.pt-05  { padding-top: .5em; }

.px-1 { padding-left: 1rem; padding-right: 1rem; }
.px-2 { padding-left: 2rem; padding-right: 2rem; }
.px-3 { padding-left: 3rem; padding-right: 3rem; }
.px-4 { padding-left: 4rem; padding-right: 4rem; }

.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

.m-0    { margin: 0 !important; }

.mt-0   { margin-top: 0 !important; }
.mt-05  { margin-top: .5em !important; }
.mt-1   { margin-top: 1em !important; }
.mt-2   { margin-top: 2em !important; }
.mt-3   { margin-top: 3em !important; }
.mt-4   { margin-top: 4em !important; }
.mt-5   { margin-top: 5em !important; }
.mt-10  { margin-top: 10px !important; }
.mt-20  { margin-top: 20px !important; }

.mb-0   { margin-bottom: 0 !important; }
.mb-02  { margin-bottom: .2em !important; }
.mb-05  { margin-bottom: .5em !important; }
.mb-1   { margin-bottom: 1em !important; }
.mb-1em { margin-bottom: 1em; }
.mb-2   { margin-bottom: 2em !important; }
.mb-3   { margin-bottom: 3em !important; }
.mb-4   { margin-bottom: 4em !important; }
.mb-5   { margin-bottom: 5em !important; }
.mb-60  { margin-bottom: 60px; }

.my-0  { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-05 { margin-top: 0.5em !important; margin-bottom: 0.5em !important; }
.my-1  { margin-top: 1em !important; margin-bottom: 1em !important; }
.my-2  { margin-top: 2em !important; margin-bottom: 2em !important; }
.my-3  { margin-top: 3em !important; margin-bottom: 3em !important; }
.my-30 { margin-top: 30px; margin-bottom: 30px; }

.ml--02,
[data-add-to-cart]  { margin-left: -.2em !important; }
.ml--05             { margin-left: -.5em !important; }
.mr--02             { margin-right: -.2em !important; }

.right {
  text-align: right;
  white-space: nowrap;
}

.absolutely-right {
  position: absolute;
  right: 0;
  translate: -100%;
}

.fullwidth {
  width: 100%;
}

.max-fit-content {
  max-width: fit-content;
}

#results .challenge {
  border-radius: 5px;
  box-sizing: border-box;
  flex: 1 1 calc(50% - 0.3rem);
  margin-bottom: .6rem;
}

.name, .completedCheckpoints, .latestCheckpointAddedOn {
  margin: 0 0 .2em;
}

.latestCheckpointAddedOn {
  font-size: .7em;
  opacity: .7;
  margin: 0;
}





/* -------- */
/* ARTICLES */
/* -------- */

/* ARTICLE GRID */

.fusion-filter {
  margin-right: .5em !important;
  margin-bottom: .5em !important;
}

.fusion-filter a {
  background-color: var(--awb-color3);
  font-size: .8em;
  line-height: 1 !important;
  padding: .6em .9em;
}

.fusion-filter a:hover {
  background-color: var(--awb-color6);
}

.fusion-filter.fusion-active a {
  background-color: var(--awb-color2);
  color: var(--awb-color6) !important;
}

.article-card {
  cursor: pointer !important;
}

.article-card:has(.fusion-column-anchor:hover) h3 {
  color: var(--awb-color5) !important;
  text-decoration: underline;
}

.article-card:has(.fusion-column-anchor:hover) a.fusion-button {
  background: var(--awb-color6);
}

.article-card:has(.fusion-column-anchor:hover) a.fusion-button i {
  color: var(--awb-color2) !important;
}



/* SINGLE ARTICLE*/

.gestalt {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.gestalt > div {
  flex-grow: var(--ratio);
  flex-shrink: 1;
  flex-basis: 0;
  aspect-ratio: attr(data-ratio number); /* fallback */
  display: flex;
}

.gestalt img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.single-post .woocommerce {
  padding: 2em 0;
}

@media screen and (min-width: 1000px) {
  .single-post .woocommerce,
  .post-content p.gestalt {
    margin-left: -40%;
    margin-right: -40%;
    width: 180%;
  }
}


/* OPPSKRIFT */
body:not(.single-oppskrift) .sk-oppskrift-only { display: none !important; }





/* ----- */
/* FORMS */
/* ----- */

in

button[type=submit] {
  display: block;
}

form div {
  display: flex;
  gap: 10px;
}

form label {
  margin-top: .5em;
}

form label {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

form fieldset {
  flex-basis: 100%;
}

/* Checkbox + radio */
input:is([type=checkbox], [type=radio]) {
  appearance: none;
  display: inline-grid;
  place-content: center;
  width: 1.25em;
  height: 1.25em;
  margin: 0 .4em 0 0;
  vertical-align: middle;
  background: var(--awb-color3);
  border: 2px solid var(--awb-color4);
  border-radius: none;
  margin-top: -.2em;
}
input[type=radio] { border-radius: 50%; }
label:has(> input:is([type=checkbox], [type=radio])) { cursor: pointer; }
label:has(> input:is([type=checkbox], [type=radio]):checked) {
  font-weight: 600;
  letter-spacing: -.005em;
}
@media (hover: hover) {
  :is(input:hover, label:hover input):is([type=checkbox], [type=radio]):not(:checked) { border-color: var(--awb-color2); }
}
input:checked:is([type=checkbox], [type=radio]) {
  background: var(--awb-color2);
  border-color: var(--awb-color2);
  box-shadow: inset 0 0 0 .25em var(--awb-color6);
}
input[type=checkbox]:checked {
  background: var(--awb-color6);
  box-shadow: none;
}
input[type=checkbox]:checked::after {
  content: "";
  width: .3em;
  height: .6em;
  margin-top: -.15em;
  border: solid var(--awb-color2);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}





/* ------ */
/* TABLES */
/* ------ */

table {
  width: 100%;
  margin-bottom: 1em;
}

table tr th, table tr td {
  border: 2px solid;
  border-color: var(--text-main);
  font-variant-numeric: tabular-nums;
  padding: 10px;
}





/* ---------- */
/* NAVIGATION */
/* ---------- */

.awb-menu__main-li > ul.awb-menu__sub-ul {
  border-top: none;
}

.awb-menu__sub-li:not(:last-child), .awb-menu.collapse-enabled li {
  border-width: 2px !important;
}

.awb-menu__open-nav-submenu-hover {
  font-size: 14px;
}

.awb-menu__main-a_regular > .awb-menu__open-nav-submenu-hover {
  display: none !important;
}

.awb-menu_expand-right .awb-menu__sub-ul_grand, .ltr .awb-menu_expand-center .awb-menu__sub-ul_grand {
  top: -2px !important;
}

.awb-menu__sub-a {
  line-height: 16px !important;
}

/* Tall category dropdowns columnised by js/menu-columns.js (desktop only) */
@media screen and (min-width: 1025px) {
  .awb-menu__sub-ul {
    background: var(--awb-submenu-bg);
  }
  .awb-menu__sub-ul.sk-cols {
    display: grid !important;
    grid-auto-flow: column;
    width: max-content !important;
    max-width: 95vw;
  }
  .awb-menu__sub-ul.sk-cols .awb-menu__sub-a {
    white-space: nowrap;
  }
  .awb-menu__sub-ul.sk-cols > li {
    border-bottom: 2px solid var(--awb-submenu-sep-color) !important;
  }
  .awb-menu__sub-ul.sk-cols > li.sk-row-bottom {
    border-bottom: none !important;
  }
  .awb-menu__sub-ul.sk-cols > li.sk-col-edge {
    border-right: 2px solid var(--awb-submenu-sep-color);
  }
  nav[aria-label="Produktkategorier"] .awb-menu__sub-ul:has(> li:hover > ul.awb-menu__sub-ul_grand) > li:not(:hover) > .awb-menu__sub-a {
    opacity: .3;
  }
}


.icon-button { max-width: 39px; }

.cart-badge {
  background: var(--awb-color2);
  border: 2px solid #fff;
  border-radius: 5em;
  color: var(--awb-color6);
  font-size: .6em;
  line-height: 1;
  font-weight: 600;
  min-width: 2em;
  padding: 0.3em;
  position: absolute;
  right: -1.2em;
  top: -1em;
  text-align: center;
}




/* ------ */
/* FOOTER */
/* ------ */

footer .smalltext p {
  margin-bottom: 0;
  margin-top: 0;
}





/* -------- */
/* PRODUCTS */
/* -------- */

/*-- PRODUCT GRID --*/
.post-content .product-grid-item p,
.product-grid-item p {
  hyphens: manual;
  line-height: 1.2;
  /* margin-bottom: .2em; */
}

.product-grid-item a {
  color: var(--text-main);
  text-decoration: none !important;
}

.cart-loading i {
  background-color: #006a32;
}

.product-grid-item .product-image:hover {
  outline: 2px solid var(--awb-color4);
}

.product-image.square-ratio {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.product-image.square-ratio a {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.product-image.square-ratio img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.product-grid-item .labels {
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.product-grid-item .labels .label {
  background: var(--awb-color2);
  color: var(--awb-color6);
  display: inline-block;
  font-size: .7em;
  line-height: 1;
  padding: .2em .4em;
}

.product-grid-item .label:empty,
.product-grid-item .label:has(> p:empty) {
  display: none;
}

.label p {
  display: inline;
}

.woocommerce .post-content .price {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
}

.single-post .woocommerce .woocommerce-Price-amount {
  font-weight: 700;
  padding-right: .5em;
}

.single-post .woocommerce del .woocommerce-Price-amount {
  font-weight: 400;
}

.fusion-onsale {
  border-width: 2px !important;
  font-weight: 600 !important;
}

.woocommerce .button-container a {
  background-color: var(--awb-color3);
  border: 1px solid var(--awb-color3);
  color: var(--awb-color2);
  padding: .3em 1em;
  font-size: .8em;
  border-radius: 5em;
  margin-top: .5em;
  margin-left: -.2em;
}

.woocommerce .button-container a:hover {
  background-color: var(--awb-color6);
  border-color: var(--awb-color2);
}

.cart-stepper {
  display: inline-flex;
  align-items: stretch;
  position: relative;
  z-index: 1;
  touch-action: manipulation; /* no double-tap zoom on rapid taps */
  -webkit-user-select: none;
  user-select: none;
}

.stepper-qty {
  align-items: center;
  border: 2px solid var(--awb-color3);
  border-left: none;
  border-right: none;
  display: flex;
  justify-content: center;
  margin: 0 -1.2em;
  position: relative;
  text-align: center;
  width: 4.6em; 
  z-index: -1;
}

.largetext .stepper-qty {
  background-color: var(--awb-color6);
  border-color: var(--awb-color2);
  color: var(--awb-color2);
}

/* -- PRODUCT ARCHIVES -- */

.awb-woo-filters .widget_layered_nav_filters li.chosen {
  margin: 0 .5em 0 0 !important;
}

.wc-layered-nav-term.chosen .awb-woo-attr-wrapper {
  font-weight: 600;
}

.widget_product_categories ul li {
  display: inline;
  float: left;
}

.widget_product_categories ul li:not(:last-child) a::after {
  content: ', ';
}

/* -- PRODUCT SINGLE -- */
.single-product .fusion-imageframe.has-aspect-ratio img {
  object-fit: contain;
  width: 100%;
  padding: 10%;
}

.single-product .post-content .brand {
  font-family: "Noto Serif";
  font-style: italic;
  font-weight: 700;
}

/* -- PRODUCT LIST -- */

.product-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-list .product {
  align-items: center;
  display: flex;
  gap: .6em;
  margin-bottom: .5em;
}

.product-list .product .img-container {
  align-items: center;
  background: #fff;
  border: 2px solid var(--awb-color4);
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  overflow: hidden;
  padding: .1em;
  width: 80px; height: 80px;
}

.product-list .product .img-container:hover { border-color: var(--awb-color6); }

.product-list .product .img-container.no-image {
  border: none;
  height: 0;
}

.product-list .product img {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-list .item-info {
    line-height: 1.1;
    margin-right: auto;
}

.product-list .item-info p {
  margin-bottom: .3em;
}

.product-list .item-info .brand a,
.product-list .item-info .name a {
  color: var(--body_typography-color);
  cursor: pointer;
  text-decoration: none !important;
}

.product-list .item-info a:not(.button):hover {
  text-decoration: underline;
}

.product-list .qty, .product-list .price { flex-shrink: 0; }

.product-list .product .price {
  font-weight: 600;
  margin: 0;
  min-width: 70px;
  text-align: right;
}

.product-list .member-hint { color: var(--awb-color2); white-space: normal; }

[data-sk-recommendations] .product-list {
  background-color: var(--awb-color3);
  border: 2px solid var(--awb-color4);
  padding: .5em;
}

.product-list .product.sk-reco {
  margin-bottom: 0;
  position: relative;
}

.sk-reco-dismiss {
  color: var(--body_typography-color);
  font-size: 1.3em;
  line-height: 1;
  opacity: .5;
  position: absolute;
  right: 0;
  text-decoration: none !important;
  top: 0;
}

.sk-reco-dismiss:hover { opacity: 1; }





/* -------- */
/* CHECKOUT */
/* -------- */

/* [data-sk-complete-order] {
  border: 2px solid var(--awb-color4);
  min-height: 3em;
} */

[data-sk-checkout-mode] {
  background: var(--awb-color3);
  border: 2px solid var(--awb-color4);
  display: flex;
  gap: 2px;
  padding: 2px;
  width: fit-content;
  margin: 0 auto;
}
[data-sk-checkout-mode] input {
  display: none;
}
[data-sk-checkout-mode] label {
  border: 2px solid var(--awb-color3);
  cursor: pointer;
  display: inline-block;
  padding: .3em .5em;
  transition: all .1s ease-in-out;
}
[data-sk-checkout-mode] label:has(input:checked) {
  background: white;
  border-color: var(--awb-color4);
  color: var(--awb-color2);
  padding: .3em .8em;
}
[data-sk-checkout-mode] label:hover {
  background: var(--awb-color4);
  border-color: var(--awb-color4);
}

.sk-pickup-fields{
  background: var(--awb-color3);
  padding: .5em;
  border: 2px solid var(--awb-color4);
  font-weight: 600;
}

.cart-summary {
  border-bottom: 2px solid var(--awb-color4);
  display: flex;
  flex-direction: column;
  margin: 1em 0;
  margin-left: auto;
  padding-bottom: 1em;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
}

/* Kustom sizes its iframe as width:1px + min-width:100%, which needs a parent with a definite width. */
[data-sk-complete-order],
.sk-kco {
  width: 100%;
}






/* ------- */
/* BANNERS */
/* ------- */

.fusion-layout-column.banner  {
  aspect-ratio: 1;
  --banner-veil: linear-gradient(4deg, #6d766d 0, #aeb4ae 3em, white 10em);
}
.fusion-layout-column.banner .fusion-content-tb {
  font-size: 1.2em;
  line-height: 1.2;
  padding: .5rem;
}

.fusion-layout-column.banner :is(p, h1, h2, h3, h4, h5, h6, li) {
  margin: 0;
  line-height: 1;
}

.fusion-layout-column.banner :is(p) {
  font-size: .75em;
  line-height: 1.2
}

.fusion-layout-column.banner p.smalltext {
  font-size: .6em !important;
}


@media screen and (min-width: 1025px) {
  .fusion-layout-column.banner  {
    aspect-ratio: 1;
  }
  .fusion-grid-1 .fusion-layout-column.banner  {
    aspect-ratio: 2.1;
  }
  .fusion-layout-column.banner .fusion-content-tb {
    padding: 1rem;
    font-size: 1.7em;
  }
}

.banner:not(:has(.fusion-column-wrapper :is(p, h1, h2, h3, h4, h5, h6, li))) {
  --banner-veil: none;
}

.banner .fusion-column-wrapper {
  overflow: hidden !important;
  position: relative;
}

.banner:not(.fusion-column-inner-bg-wrapper) .fusion-column-wrapper::after,
.banner.fusion-column-inner-bg-wrapper .fusion-column-inner-bg-image::after,
.banner:has(.fusion-video) .fusion-column-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: var(--banner-veil);
}

.banner .fusion-content-tb {
  position: relative;
  z-index: 1;
}

/* Video-element i Post Card (kilde: banner_video) som bakgrunnslag over bildet, under sløret og teksten. */
.banner .fusion-video {
  position: absolute;
  inset: 0;
}
.banner .fusion-video :is(.video-wrapper, video) {
  display: block;
  height: 100%;
  max-width: none;
}





/* ---------- */
/* MY PROFILE */
/* ---------- */

/* -- Orders -- */
details.sk-order {
  background: var(--awb-color3);
  border: 2px solid var(--awb-color4);
  margin-bottom: .5em;
  padding: .5em 1em;
}

details.sk-order summary {
  margin: -.5em -1em;
  padding: .5em 1em;
}

details.sk-order:hover, details.sk-order:open {
  background: #fdfffc;
}

details[open].sk-order summary {
  display: none;
}

.sk-order summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.2em;
}

.sk-order-date, .sk-order-total {
  text-align: right;
}

.sk-order-status {
  border: 2px solid var(--awb-color2);
  padding: .2em .6em;
  color: var(--awb-color2);
  /* border-radius: .4em; */
  font-weight: 600;
}

.sk-order-status.good {
  border-color: var(--awb-color2);
  color: var(--awb-color2);
}

.sk-order-total {
  display: inline-block;
  min-width: 70px;
}

.sk-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* -- Stamps -- */
.sk-stamp {
  background: #006a32;
  border-radius: .5em;
  color: #fff;
  overflow: hidden;
  position: relative;
  padding: 1em 1.5em .5em;
  margin-bottom: 1em;
}

.sk-stamp-name {
  color: #fff !important;
}

.sk-stamp-dots {
  display: flex;
  gap: .5em;
  margin: .5em -.3em;
}

.sk-stamp-dot {
  height: 2em;
  width: 2em;
  border: 2px solid #fff;
  border-radius: 3em;
}

.sk-stamp-dot--filled {
  background: #fff;
}

.sk-stamp-logo-container {
  position: absolute;
  width: 25%;
  bottom: -1px;
  right: 1em;
}

.sk-stamp--coupon {
  background: var(--awb-color3);
  color: var(--awb-color2);
  padding-bottom: 1em;
}

.sk-stamp--coupon .sk-stamp-name { color: var(--awb-color2) !important; }
.sk-stamp--coupon .st0 { fill: var(--awb-color2); }

.sk-coupons { margin-top: 1em; }
.sk-coupon-grid .sk-stamp { margin-bottom: 0; }
.sk-stamp--used { background: var(--awb-color6); }
.sk-coupon-actions { display: flex; gap: .8em; align-items: center; }
.sk-coupon-actions button:disabled { opacity: .5; }
.sk-coupon-actions a { color: var(--awb-color2); text-decoration: underline; }
.sk-stamp.loading { pointer-events: none; }
@media screen and (min-width: 700px) {
  .sk-coupon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
  }
}
@media screen and (max-width: 699px) {
  .sk-coupon-grid .sk-coupon + .sk-coupon { margin-top: 1em; }
}


/*------ */
/* MODAL */
/* ----- */

.modal.is-open {
  align-items: center;
  background: rgba(0, 0, 0, .5);
  display: flex;
  justify-content: center;
}
.modal-box {
  background: #fff;
  max-height: 90vh;
  overflow: auto;
  padding: 1em;
  position: relative;
  width: 90%;
}
.modal-error,
.sk-form-error {
  color: var(--awb-color8);
  margin: .5rem 0 0;
}
.modal-error:empty { display: none; }
.modal-close {
  position: absolute;
  top: .5em;
  right: .5em;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/*------- */
/* STORES */
/* ------ */

.sk-sp {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sk-sp-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  justify-content: center;
  width: 100%;
}
.sk-sp-controls input {
  flex: 1 1 100%; 
}
.sk-sp-body {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.sk-sp-list {
  flex: 1 1 20rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
}
.sk-sp-map {
  flex: 1 1 20rem;
  height: 40rem;
  position: sticky;
  top:5em;
}
.sk-sp-item {
  background: var(--awb-color3);
  border: 2px solid var(--awb-color4);
  padding: .75rem 1rem;
}
.sk-sp-item.is-selected {
  border-color: #1a7f37;
  box-shadow: 0 0 0 1px #1a7f37;
}
.sk-sp-name {
  font-weight: 600;
}
.sk-sp-row {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: baseline;
}
.sk-sp-row > :first-child { min-width: 0; }   /* left cell (name / address) may wrap */
.sk-sp-aside {                                 /* right cell (distance / open status) */
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.sk-sp-open   { color: var(--awb-color2); }
.sk-sp-closed { opacity: .7; }
.sk-sp-actions {
  margin-top: .5rem;
  align-items: center;
}
.sk-sp-empty {
  color: #666;
  padding: 1rem;
}
.sk-avail-line { margin-right: 1em; }
.sk-dot { 
  background: currentColor; 
  border-radius: 50%; 
  display: inline-block; 
  margin-right: .3em; 
  margin-bottom: .15em;
  vertical-align: middle; 
  width: .55em; height: .55em; 
}
.sk-dot-ok, .sk-dot-low   { color: var(--awb-color2); }
.sk-dot-none { color: var(--awb-color8); }

/* ------ */

.sk-search {
  position: relative;
  max-width: 600px;
  width: 100%;
}
.sk-search-input {
  border: 2px solid var(--awb-color4);
  background-color: var(--awb-bg-color);
  color: var(--awb-text-color);
  font-size: var(--awb-text-size);
  height: var(--awb-input-height);
  padding: .5em 1em;
  width: 100%;
}
.sk-search-drop {
  background: var(--awb-color1);
  border: 2px solid var(--awb-color4);
  border-top: none;
  left: 0; right: 0;
  max-height: 70vh;
  overflow-y: auto;
  padding: .5em;
  position: absolute;
  top: 100%;
  z-index: 50;
}
.sk-search-head {
  font-weight: 600;
  margin: 0 0 .5em;
}
.product-list + .sk-search-head,
.sk-search-more + .sk-search-head {
  margin-top: .5em;
}
.product.sk-search-row {
  color: inherit;
  padding: .25em;
  text-decoration: none !important;
  margin-bottom: 0;
}
.product.sk-search-row .img-container {
  border: none;
  height: 30px !important;
  width: 30px !important; 
}
.sk-search-row.is-sel {
  background: var(--awb-color3);
}
.sk-search-row p {
  margin: .2em 0;
}
@media (hover: hover) {                        /* uten dette henger uthevingen igjen på touch */
  .sk-search-row:hover { background: var(--awb-color3); }
}
.sk-search-empty {
  margin: 0;
  padding: .5em;
}
.sk-search-more {
  margin: 0;
  padding: 1em;
  text-align: center;
}
.sk-search-more button,
.sk-search-more button:hover {
  background: none;
  border: 0;
  color: var(--awb-color2);
  padding: 0;
}
.sk-search-more button:hover {
  text-decoration: underline;
}


.sk-search-drop .articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5em;
}
.sk-search-drop .article {
  align-items: center;
  background-color: var(--awb-color3);
  display: flex;
  text-decoration: none !important;
}
.sk-search-drop .article:hover {
  background-color: var(--awb-color4);
}
.sk-search-drop .article .img-container {
  flex: 0 0 60px;
  align-self: flex-start;
  aspect-ratio: 1;
  overflow: hidden;
}
.sk-search-drop .article .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sk-search-drop .article .item-info {
  font-size: .9em;
  line-height: 1.2;
  padding: 0 .4em;
}


@media (max-width: 640px) {
  .sk-sp-body {
    flex-direction: column;
  }
  .sk-sp-map {
    width: 100%;
  }
  .sk-search-drop {
    max-height: 60vh;
  }
}





/* ------- */
/* STYLIZE */
/* ------- */

.glass {
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(5px) contrast(1);
}

.glass-border {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100vw;
  height: 2px;
  background: red;
  backdrop-filter: blur(25px) contrast(1.7) saturate(80%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 11;
}

.image-overlay {
  position: relative;
  display: inline-block;
}

.image-overlay::after {
  background-color: var(--awb-color3);
  content: "";
  position: absolute;
  left: 0;
  mix-blend-mode: darken;
  opacity: .5;
  pointer-events: none;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}





/* --------- */
/* FUN STUFF */
/* --------- */

[data-sk-cart-items] {
  display: flex;
  flex-direction: column;
  transition: height 1s ease-in-out;
  width: 100%;
}

/* -- CART BADGE -- */
.cart-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #006a32;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.cart-badge.updated::after {
  animation: badge-local-pulse 700ms ease-out forwards;
}


button.loading {
  animation: loading-glow 500ms ease-out infinite alternate;
  background: var(--awb-color6);
  border-color: var(--awb-color2);
  color: var(--awb-color2);
}

@keyframes blink { 50% { opacity: 0 } }

@keyframes badge-local-pulse {
  0%   { opacity: 1; box-shadow: 0 0 0 0 var(--awb-color2); }
  100% { opacity: 0; box-shadow: 0 0 3em 0 var(--awb-color2); }
}

@keyframes loading-glow {
  0% { box-shadow: 0 0 0 -1px var(--awb-color2); }
  100% { box-shadow: 0 1px 10px -1px var(--awb-color2); }
}





/* ----------------------- */
/* GENERAL ELEMENT STYLING */
/* ----------------------- */

.relative { position: relative; }

details {
  interpolate-size: allow-keywords; /* enables height: auto transitions */
}

details summary {
  cursor: pointer;
}

details::details-content {
  transition: block-size 0.2s ease, content-visibility 0.2s allow-discrete;
  block-size: 0;
  overflow: hidden;
}

details[open]::details-content {
  block-size: auto;
}

dialog {
  border: 2px solid var(--awb-color5);
  max-width: 100%;
  width: 676px;
}

dialog::backdrop {
  background: var(--awb-color5);
  opacity: .2;
}





/* ------ */
/* @MEDIA */
/* ------ */

/* -- UNDER 640PX -- */
@media screen and (max-width: 640px) {
  .no-mobile,
  .fusion-post-cards .fusion-onsale {
    display: none;
  }

  table tr th, table tr td {
    font-size: .7em;
    padding: 3px;
  }

  dialog {
    border: none;
    margin: 0;
    box-shadow: 0 19px 58px -20px rgba(15,44,21,0.40), 0 15px 22px -10px rgba(15,44,21,0.30);
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }

  dialog::after {
    content: " ";
    display: block;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, white, transparent);;
    flex-shrink: 0; 
    position: sticky;
    bottom: 0;
  }

  #search-column {
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none; 
  }
  #search-column:has(input:focus),
  #search-column:has(.sk-search-drop:not([hidden])) {   /* mobil: lista må overleve at tastaturet skjules */
    opacity: 1;
    pointer-events: all; 
  }
}

/* -- UNDER 1024PX -- */
@media only screen and (max-width: 1024px) {
  nav.fusion-sticky-container { border-bottom: 2px solid var(--awb-color4); }
  html .awb-menu.collapse-enabled.mobile-size-full-absolute .awb-menu__main-ul {
    box-shadow: 
      0 45vh 55vh -10vh rgba(0,22,10,.6),
      0 5vh 10vh -5vh rgba(0,22,10,.4);
    top: 34px;
  }
  nav { background-color: white !important; }
  .icon-button { max-width: 30px; }
  .woocommerce .products .product-grid-item { width: 50% !important; }
  .large-only { display: none !important }
  nav input#fusion-live-search-input-0 {
    height:1.8em;
  }
}


/* -- OVER 800PX */
@media screen and (min-width: 1025px) {
  ul.awb-menu__sub-ul {
    border: 2px solid var(--awb-color4);
  }

  .sk-pickup-fields {
    display: flex;
    gap: .5em;
  }
}


/* ---- */
/* AUTH */
/* ---- */

html:not(.sunkost-auth-in) .sunkost-logged-in,
html.sunkost-auth-in .sunkost-logged-out { display: none !important; }



/* ------- */
/* UNSTYLE */
/* ------- */

.awb-woo-filters .widget_layered_nav_filters li a,
.product_list_widget li a, .widget_layered_nav li a,
.fusion-woo-sorting a {
  text-decoration: none !important;
}

a,
.awb-menu__main-li, .awb-menu__main-li span .awb-menu__sub-li, .awb-menu__sub-ul,
.awb-woo-filters .widget_layered_nav_filters li.chosen a::before {
  transition: none !important;
}
