@charset "UTF-8";
/*!
Theme Name: Nyta Treshold
Theme URI: https://nyta.no
Template: ousia
Author: Lasse Jellum
Author URI: https://jellum.net
Description: The 2023 Nyta child theme ported onto the Ousia 1.0 contract — same brand (Merriweather, gold, oldlace), new spine.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: nyta-treshold
*/
:root {
  /* Ink */
  --text-color: hsl(0, 0%, 1%);
  --text-color-dark: hsl(0, 0%, 0%);
  --text-color-muted: hsl(0, 0%, 38%);
  /* Surfaces — white paper, oldlace as the warm step */
  --bg-color: hsl(0, 0%, 100%);
  --bg-color-light: hsl(0, 0%, 100%);
  --bg-color-hover: oldlace;
  --bg-color-selected: hsl(39, 70%, 88%);
  /* Lines */
  --border-color: hsl(0, 0%, 50%);
  --border-color-light: hsl(0, 0%, 86%);
  /* Paint — the gold. Below AA as text on white; that is the 2023 brand
     as shipped, kept on purpose for the port. */
  --accent-color: hsl(36, 65%, 53%);
  --accent-contrast: hsl(0, 0%, 100%);
  --link-color: hsl(40, 50%, 50%);
  --shadow-color: hsla(0, 0%, 0%, 0.2);
  /* Shape — square, as before */
  --border-radius: 0;
  /* Validation */
  --border-input-danger: hsl(4, 60%, 42%);
  --text-danger: hsl(4, 60%, 42%);
  /* Fluid type + measure, as on the 2023 theme */
  --min-font: 16;
  --max-font: 24;
  --min-fluid-width: 390;
  --max-fluid-width: 1920;
  --inline-width: 42;
  --inline-wide: 62;
}

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/u-440qyriQwlOrhSvowK_l5-fCZMdeX3rg.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/u-4n0qyriQwlOrhSvowK_l521wRZWMf6hPvhPQ.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --font-family-serif: "Merriweather", "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", "Droid Serif", Times, "Source Serif Pro", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-body: var(--font-family-serif);
  --font-family-heading: var(--font-family-serif);
  --font-family-ui: var(--font-family-serif);
}

body {
  font-weight: 300;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6,
.woocommerce-loop-product__title {
  font-weight: 700;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  margin-block: revert;
}

h1 {
  font-size: 1.85em;
}

h2 {
  font-size: 1.64em;
}

h3 {
  font-size: 1.44em;
}

h4 {
  font-size: 1.27em;
}

#header nav .menu-item > a {
  color: var(--text-color);
}

#header nav .menu-item > a:hover {
  color: var(--bg-color);
  background-color: var(--accent-color);
}

#header svg {
  fill: var(--text-color);
  z-index: 15;
}

#footer {
  background: oldlace;
  padding-top: 4em;
  margin-top: 4em;
}
#footer h2 {
  font-size: 1.27em;
  margin: 0;
}
#footer h4 {
  margin: 0;
}
#footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#footer li {
  display: flex;
  justify-content: center;
}
#footer a {
  text-decoration: none;
  color: var(--link-color);
}

#footer .footer-columns {
  display: grid;
  align-items: center;
  gap: 2em;
}

@media (min-width: 768px) {
  #footer .footer-columns {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
#footer .footer-col {
  display: grid;
  justify-items: center;
}

#primary {
  padding-bottom: 4em;
}

.is-type-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
}

fieldset {
  border: none;
}

:is(main, .product) a.button {
  color: var(--button-ink);
}

section#additional_information,
section#tab-additional_information,
.single-product .summary .product_meta,
a.reset_variations {
  display: none !important;
}

.summary.entry-summary {
  padding: 2em 1em 0 4vw;
}
.summary.entry-summary > * {
  max-width: 28em;
}

.summary h1 {
  margin: 0;
  line-height: 1.4em;
  text-underline-offset: 0.25em;
}

.summary > h1 + h2 {
  margin-top: calc(-1 * var(--spacing-2));
}

.summary h2 {
  text-transform: uppercase;
  font-size: 1em;
  letter-spacing: 0.4em;
  font-weight: 300;
  margin: 0 0 0.2em 0;
}

.woocommerce-product-rating {
  padding-top: 0.6em;
}

.woocommerce-product-details__short-description ul {
  padding-left: 0.8em;
}
.woocommerce-product-details__short-description li {
  list-style-position: inside;
  list-style-type: cjk-heavenly-stem;
  padding: 0.2em;
  margin-bottom: 0;
}

.woocommerce-product-gallery > ol {
  gap: 1em;
}
.woocommerce-product-gallery > ol > li img {
  width: 100%;
  object-fit: cover;
  max-height: 8em;
}

.attribute-pa_opprinnelse th.label {
  text-align: left;
}

.woocommerce-variation-add-to-cart {
  flex-wrap: wrap;
  padding-top: 1em;
}

.single_variation_wrap .woocommerce-variation-add-to-cart .button {
  width: 13em;
}

.onbackorder,
.outofstock {
  position: relative;
}

.onbackorder::before,
.outofstock::before {
  content: "tomt på lager";
  position: absolute;
  background-color: var(--bg-color);
  top: 4em;
  z-index: 99;
  padding: 0.1em 0.5em;
}

.single_add_to_cart_button {
  border-width: 0.5em;
  padding-block: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  transition: background-color 0.6s ease;
}
.single_add_to_cart_button::after {
  background: var(--bg-color);
  content: "";
  height: 6em;
  left: -3em;
  opacity: 0.2;
  position: absolute;
  top: -2em;
  transform: rotate(35deg);
  transition: transform 550ms cubic-bezier(0.19, 1, 0.22, 1);
  width: 1.5em;
  z-index: 10;
}
.single_add_to_cart_button:hover::after {
  transform: translate(18em) rotate(35deg);
}
.single_add_to_cart_button:active {
  box-shadow: 2px 2px 5px 2px var(--shadow-color) inset;
}

.summary .button:hover,
[type=submit]:hover,
.checkout-button:hover,
.single_add_to_cart_button:hover {
  border-style: outset !important;
}

small.wcsatt-sub-options,
.wcsatt-options-prompt-text-label,
img.avatar.photo {
  display: none;
}

label.wcsatt-add-to-subscription-action-label {
  font-size: 0.6em;
}

input.wcsatt-add-cart-to-subscription-action-input {
  position: unset !important;
}

.woocommerce-variation-price .price {
  font-weight: 300;
}

.summary .stock {
  font-size: 0.8em;
  color: var(--text-color);
}

.single_add_to_cart_button {
  text-transform: uppercase;
  font-weight: 400;
}

.ousia-tiles {
  gap: 0;
}
.ousia-tiles > label > div {
  flex-direction: column;
  gap: 0.2em;
  padding: 0.6em;
  border: 0.2em solid var(--accent-color);
  border-radius: 0;
  background: var(--bg-color);
  box-shadow: none;
}
.ousia-tiles > label:hover > div {
  background: var(--bg-color-hover);
}
.ousia-tiles > label input:checked + div {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--accent-contrast);
  box-shadow: none;
}

.ousia-tiles > label:has(input[value=kapsler]) > div::before,
.ousia-tiles > label:has(input[value=pulver]) > div::before {
  content: "";
  width: 2em;
  height: 2em;
  background-color: var(--accent-color);
  mask: var(--tile-icon) center/contain no-repeat;
}

.ousia-tiles > label:has(input[value=kapsler]) {
  --tile-icon: url("img/kapsler.svg");
}

.ousia-tiles > label:has(input[value=pulver]) {
  --tile-icon: url("img/pulver.svg");
}

.ousia-tiles > label input:checked + div::before {
  background-color: var(--accent-contrast);
}

.variations tr:has(.attribute-pa_variant) th.label {
  display: none;
}

.wcsatt-options-product {
  --plan-option-flex: 0 1 auto;
  --plan-list-gap: 0;
}
.wcsatt-options-product label {
  display: flex;
  align-items: center;
  padding: 0.6em 1em;
  border: 0.1em solid var(--accent-color);
  border-radius: 0;
  background: var(--bg-color);
}
.wcsatt-options-product label:hover {
  background: var(--bg-color-hover);
}
.wcsatt-options-product label:has(input:checked) {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--accent-contrast);
}
.wcsatt-options-product .plan {
  column-gap: 1em;
}
.wcsatt-options-product .plan-save {
  font-size: 0.85em;
}

.archive .products {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1em;
}
.archive .products > .product a {
  padding-bottom: 0;
}

.archive .product.type-product:hover {
  box-shadow: 0 -3px 50px -15px rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--time);
}

img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
  height: auto;
  object-fit: cover;
  padding-bottom: 0.5em;
}

.archive .star-rating {
  height: 1.3em;
  margin: 0;
}

.wc-block-grid__products .star-rating {
  float: none;
}

.product a:hover {
  text-decoration: none;
}

.woocommerce-ordering {
  padding-bottom: 1em;
}

nav.woocommerce-pagination {
  display: none;
}

.woocommerce-MyAccount-navigation-link--downloads,
.billing_company_field {
  display: none;
}

ul.woocommerce-SavedPaymentMethods.wc-saved-payment-methods {
  list-style: none;
}

.woocommerce-order > * {
  max-width: var(--max-width);
  margin: auto;
  padding-top: 3em;
}

body .wfacp_main_form .button#place_order,
body .wfacp_main_form .wfacp_next_page_button {
  background-color: var(--link-color);
}

body .wfacp_main_form .woocommerce-checkout .button.button#place_order:hover,
body .wfacp_main_form .woocommerce-checkout .button.wfacp_next_page_button:hover {
  background-color: var(--accent-color);
}

form#wfacp_checkout_form a {
  color: var(--link-color) !important;
}
form#wfacp_checkout_form a:hover {
  color: var(--accent-color) !important;
}

body #fkcart-floating-toggler {
  bottom: 0;
  right: 0;
  width: 3.5em;
  height: 3.5em;
  --fkcart-toggle-bg-color: var(--accent-color);
}

@media (max-width: 760px) {
  #fkwcs-stripe-elements-wrapper .fkwcs-tooltip::after {
    margin-left: -10.75em !important;
  }
}
.rank-math-list {
  padding-inline: 2em;
  padding-block: 1em;
  border: 0.5em dashed hsl(47, 80%, 84%);
  font-size: 0.85em;
  background-color: hsl(47, 80%, 95%);
}

h3.rank-math-question {
  font-style: italic;
}

#vipps-classic-checkout-submit.vipps-submit-wrapper.hidden,
#place_order.hidden {
  display: none !important;
}
