/*
 * Nettbutikken (WooCommerce) – lastes av inc/butikk.php, etter bundle.css og Woos stilark.
 * Håndskrevet CSS (ingen byggeverktøy på serveren). Verdiene er de samme som i
 * sass/_theme_variables.scss: blekk #231F20, rubin #AF0E49, aluminium #F1F3F4, linje #D5DADD,
 * stål #565D63, rubin-tint #FBEBF1, feltkant #8A9197, suksess #1E6B45, feil #B3261E.
 */

:root {
  --rv-blekk: #231F20;
  --rv-rubin: #AF0E49;
  --rv-rubin-mork: #8C0B3A;
  --rv-alu: #F1F3F4;
  --rv-linje: #D5DADD;
  --rv-stal: #565D63;
  --rv-tint: #FBEBF1;
  --rv-feltkant: #8A9197;
  --rv-ok: #1E6B45;
  --rv-feil: #B3261E;
  --rv-smal: "Sofia Sans Condensed", "Sofia Sans Condensed Fallback", "Arial Narrow", sans-serif;
  --rv-ekstra: "Sofia Sans Extra Condensed", "Sofia Sans Extra Condensed Fallback", "Arial Narrow", sans-serif;
}

/* ============================================================
   Prisvisning eks./inkl. mva (over headeren) og handlekurv i headeren
   ============================================================ */
.rv-mva {
  background: var(--rv-alu);
  border-bottom: 1px solid var(--rv-linje);
  font-size: .9375rem;
  line-height: 1;
}
.rv-mva__indre {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .25rem;
  min-height: 36px;
}
.rv-mva__tekst { color: var(--rv-stal); margin-right: .25rem; }
.rv-mva__valg {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 .625rem;
  font-weight: 600;
  color: var(--rv-blekk);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: .125rem;
}
a.rv-mva__valg:hover { color: var(--rv-rubin); text-decoration: underline; }
.rv-mva__valg.is-aktiv { background: #fff; border-color: var(--rv-linje); }

.rv-kurv {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 .5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--rv-blekk);
  text-decoration: none;
  white-space: nowrap;
}
.rv-kurv:hover { color: var(--rv-rubin); text-decoration: none; }
.rv-kurv__ikon { flex-shrink: 0; }
.rv-kurv__antall {
  position: absolute;
  top: 4px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--rv-rubin);
  border-radius: 9px;
}
.rv-kurv__antall.is-tom { display: none; }
.rv-kurv__tekst { display: none; }
@media (min-width: 1400px) { .rv-kurv__tekst { display: inline; } }
/* Med «Nettbutikk» som ekstra menypunkt blir headeren trang mellom 992 og 1400 px:
   telefonteksten skjules til xxl og «Kontakt oss» mellom lg og xl (telefonikon og
   kontaktseksjonen nederst finnes fortsatt). Gjelder bare butikken (dette stilarket). */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .rv-header__telefon-tekst { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .rv-header__kontakt { display: none !important; }
  .rv-hovedmeny__liste { gap: 1rem; }
}

/* ============================================================
   Felles: knapper, skjemafelt, varsler, brødsmuler
   ============================================================ */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce-page .button,
.wc-block-components-button:not(.is-link),
.woocommerce-cart .wc-block-components-button:not(.is-link),
.woocommerce-checkout .wc-block-components-button:not(.is-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .5rem 1.375rem;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  background: var(--rv-rubin);
  border: 2px solid var(--rv-rubin);
  border-radius: .125rem;
  box-shadow: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):focus {
  color: #fff;
  background: var(--rv-rubin-mork);
  border-color: var(--rv-rubin-mork);
  box-shadow: none;
}
.wc-block-components-button:not(.is-link):focus-visible { outline: 3px solid var(--rv-rubin); outline-offset: 2px; }
.wc-block-components-button:not(.is-link):disabled,
.wc-block-components-button:not(.is-link):disabled:hover,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce button.button.alt:disabled,
.woocommerce button.button.alt:disabled[disabled],
.woocommerce button.button.alt.disabled {
  color: #fff;
  background: var(--rv-rubin);
  border-color: var(--rv-rubin);
  opacity: .55;
  cursor: not-allowed;
}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { font-weight: 700; }

/* Sekundærknapp (blekk-omriss): knapper i produktlister, «Gå tilbake», «Vis»-lenker i konto. */
.woocommerce ul.products li.product .button,
.woocommerce a.button.rv-sekundaer,
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content a.button,
.woocommerce-order .button {
  color: var(--rv-blekk);
  background: #fff;
  border-color: var(--rv-blekk);
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button.rv-sekundaer:hover,
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content a.button:hover,
.woocommerce-order .button:hover {
  color: #fff;
  background: var(--rv-blekk);
  border-color: var(--rv-blekk);
}

/* Skjemafelt (klassiske Woo-skjemaer: innlogging, konto, adresser, omtaler) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row .select2-container .select2-selection--single,
.woocommerce .quantity .qty,
.woocommerce div.product form.cart .variations select,
.woocommerce #review_form #respond textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem .875rem;
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--rv-blekk);
  background: #fff;
  border: 1px solid var(--rv-feltkant);
  border-radius: .125rem;
  box-shadow: none;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce .quantity .qty:focus,
.woocommerce div.product form.cart .variations select:focus { border-color: var(--rv-blekk); outline: 3px solid var(--rv-rubin); outline-offset: 2px; box-shadow: none; }
.woocommerce form .form-row textarea { min-height: 9rem; }
.woocommerce form .form-row label {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: .375rem;
}
.woocommerce form .form-row .required { color: var(--rv-rubin); text-decoration: none; }
.woocommerce form .form-row { margin-bottom: 1rem; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--rv-feil); }
.woocommerce form .form-row.woocommerce-validated input.input-text { border-color: var(--rv-feltkant); }
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon,
.woocommerce form.lost_reset_password {
  max-width: 34rem;
  margin: 0;
  padding: 28px;
  background: #fff;
  border: 0;
  border-top: 6px solid var(--rv-blekk);
  border-radius: 0;
}
.woocommerce form.login .form-row .button,
.woocommerce form.register .form-row .button,
.woocommerce form.lost_reset_password .button { width: 100%; }
.woocommerce form .form-row .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: .5rem; }
.woocommerce form .show-password-input { top: 50%; transform: translateY(-50%); }

/* Varsler (klassiske) */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  margin: 0 0 1.5rem;
  padding: 14px 18px 14px 48px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--rv-blekk);
  background: #fff;
  border: 1px solid var(--rv-linje);
  border-left: 4px solid var(--rv-blekk);
  border-top-width: 1px;
  border-radius: .125rem;
  list-style: none;
}
.woocommerce .woocommerce-error, .woocommerce-error { border-left-color: var(--rv-feil); }
.woocommerce .woocommerce-message, .woocommerce-message { border-left-color: var(--rv-ok); }
.woocommerce .woocommerce-error::before, .woocommerce-error::before { color: var(--rv-feil); top: 15px; left: 18px; }
.woocommerce .woocommerce-info::before, .woocommerce-info::before { color: var(--rv-blekk); top: 15px; left: 18px; }
.woocommerce .woocommerce-message::before, .woocommerce-message::before { color: var(--rv-ok); top: 15px; left: 18px; }
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-error .button,
.woocommerce .woocommerce-info .button { min-height: 40px; padding: .25rem 1rem; margin: -4px 0 0 1rem; font-size: .9375rem; }
.woocommerce .woocommerce-error li, .woocommerce-error li { margin: 0; }
.rv-butikk-prisboks .woocommerce-notices-wrapper:empty { display: none; }
.rv-butikk-prisboks .woocommerce-error,
.rv-butikk-prisboks .woocommerce-info,
.rv-butikk-prisboks .woocommerce-message { margin: 0; }

/* Varsler (blokker) */
.wc-block-components-notice-banner { border-radius: .125rem; font-size: 1rem; }
.wc-block-components-notice-banner.is-error { background: #fff; border-color: var(--rv-feil); }
.wc-block-components-notice-banner.is-info { background: #fff; border-color: var(--rv-blekk); }
.wc-block-components-notice-banner.is-success { background: #fff; border-color: var(--rv-ok); }

/* Brødsmuler: Woo tegner dem i temaets .rv-brodsmuler (se inc/butikk.php) */
.rv-brodsmuler .rv-brodsmuler__skille { color: var(--rv-stal); }

/* ============================================================
   Produktlister (butikksiden, kategorier, relaterte)
   ============================================================ */
.rv-butikk-arkivhode .rv-sidehode__rutenett { margin-bottom: 1.5rem; }
@media (min-width: 992px) { .rv-butikk-arkivhode .rv-sidehode__rutenett { margin-bottom: 28px; } }
.rv-butikk-arkivhode .rv-sidehode__ingress p:last-child { margin-bottom: 0; }

.rv-butikk-kategorier { margin: 0 0 2rem; }
@media (min-width: 992px) { .rv-butikk-kategorier { margin-bottom: 40px; } }
.rv-butikk-kategorier ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv-butikk-kategorier li { margin: 0; }
.rv-butikk-kategorier a:not(.rv-butikk-kategorier__opp) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 1.125rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--rv-blekk);
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--rv-linje);
  border-radius: .125rem;
  transition: border-color .15s, background-color .15s, color .15s;
}
.rv-butikk-kategorier a:not(.rv-butikk-kategorier__opp):hover { border-color: var(--rv-blekk); color: var(--rv-blekk); }
.rv-butikk-kategorier a[aria-current="page"] { color: #fff; background: var(--rv-blekk); border-color: var(--rv-blekk); }
.rv-butikk-kategorier a span { font-weight: 400; font-size: .9375rem; opacity: .75; }
.rv-butikk-kategorier__opp {
  display: inline-block;
  margin-bottom: 10px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--rv-stal);
}
.rv-butikk-kategorier__opp::before { content: "← "; }

.rv-butikk-arkiv .container > .woocommerce-error,
.rv-butikk-arkiv .container > .woocommerce-info,
.rv-butikk-arkiv .container > .woocommerce-message { margin-bottom: 2rem; }

.rv-butikk-verktoy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rv-linje);
}
.woocommerce .rv-butikk-verktoy .woocommerce-result-count { margin: 0; float: none; font-size: .9375rem; color: var(--rv-stal); }
.woocommerce .rv-butikk-verktoy .woocommerce-ordering { margin: 0; float: none; }
.woocommerce .rv-butikk-verktoy .woocommerce-ordering select {
  min-height: 44px;
  padding: .375rem 2.25rem .375rem .875rem;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--rv-blekk);
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23231F20' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right .75rem center / 14px;
  border: 1px solid var(--rv-feltkant);
  border-radius: .125rem;
  appearance: none;
  -webkit-appearance: none;
}

/* Rutenettet: CSS grid i stedet for Woos float-kolonner */
.woocommerce ul.products,
.woocommerce ul.products[class*="columns-"],
.woocommerce-page ul.products,
.woocommerce-page ul.products[class*="columns-"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
@media (min-width: 768px) {
  .woocommerce ul.products[class*="columns-"],
  .woocommerce-page ul.products[class*="columns-"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 992px) {
  .woocommerce ul.products.columns-4,
  .woocommerce-page ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}
.woocommerce ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
.woocommerce ul.products[class*="columns-"] li.product.first,
.woocommerce ul.products[class*="columns-"] li.product.last {
  position: relative;
  display: flex;
  flex-direction: column;
  float: none;
  clear: none;
  width: auto;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--rv-linje);
  border-radius: .125rem;
  transition: border-color .15s;
}
.woocommerce ul.products li.product:hover { border-color: var(--rv-blekk); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
}
.woocommerce ul.products li.product a img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid var(--rv-linje);
  box-shadow: none;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  margin: 0;
  padding: 16px 16px 4px;
  font-family: var(--rv-smal);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--rv-blekk);
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title { color: var(--rv-rubin); }
.woocommerce ul.products li.product .price {
  display: block;
  margin: 0;
  padding: 0 16px 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--rv-blekk);
}
.woocommerce ul.products li.product .price .amount { font-weight: 700; white-space: nowrap; }
.woocommerce ul.products li.product .price del { opacity: .6; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .price .woocommerce-price-suffix,
.woocommerce ul.products li.product .price .woocommerce-Price-suffix { display: block; font-size: .875rem; font-weight: 400; color: var(--rv-stal); }
/* Prisvisning fra rv-antallspris.php (stk-pris, pakkepris, mva) – grunnstiler der Woo tegner prisen,
   også i blokk-rutenett som «Nyheter i butikken» på tom handlekurv */
.rv-pris__hoved, .rv-pris__total, .rv-pris__mva { display: block; }
.rv-pris__hoved { font-weight: 700; }
.rv-pris__total { font-weight: 400; }
.rv-pris__mva { font-weight: 400; color: var(--rv-stal); }
/* Pris per skilt som hovedtall på kortet («Fra kr 97,33 per skilt»), pakkeprisen under */
.woocommerce ul.products li.product .price .rv-pris__hoved { display: block; font-size: 1.375rem; font-weight: 700; line-height: 1.2; color: var(--rv-blekk); }
.woocommerce ul.products li.product .price .rv-pris__hoved .amount { font-weight: 800; }
.woocommerce ul.products li.product .price .rv-pris__fra,
.woocommerce ul.products li.product .price .rv-pris__enhet { font-size: 1rem; font-weight: 600; }
.woocommerce ul.products li.product .price .rv-pris__total { display: block; margin-top: 4px; font-size: .9375rem; font-weight: 400; line-height: 1.4; color: var(--rv-blekk); }
.woocommerce ul.products li.product .price .rv-pris__total .amount { font-weight: 700; }
.woocommerce ul.products li.product .price .rv-pris__mva { display: block; font-size: .875rem; font-weight: 400; color: var(--rv-stal); }
.woocommerce ul.products li.product .button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto 16px 16px;
  min-height: 44px;
  padding: .25rem 1rem;
  font-size: .9375rem;
}
.woocommerce ul.products li.product .button.loading { opacity: .6; }
.woocommerce ul.products li.product .added_to_cart {
  margin: 0 16px 16px;
  font-size: .9375rem;
  font-weight: 600;
}
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  top: 12px;
  left: 12px;
  right: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 4px 10px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background: var(--rv-rubin);
  border-radius: .125rem;
}
.woocommerce ul.products li.product .star-rating { margin: 0 16px 8px; }

/* Sidetall – som rv-sidetall på hovedsiden */
.woocommerce nav.woocommerce-pagination { margin-top: 3rem; text-align: left; }
.woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; float: none; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--rv-blekk);
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--rv-linje);
  border-radius: .125rem;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus { color: var(--rv-blekk); background: #fff; border-color: var(--rv-blekk); }
.woocommerce nav.woocommerce-pagination ul li span.current { color: #fff; background: var(--rv-blekk); border-color: var(--rv-blekk); }

.woocommerce .woocommerce-no-products-found .woocommerce-info { max-width: 45rem; }

/* ============================================================
   Produktside
   ============================================================ */
.rv-butikk-h1 { font-size: clamp(2.75rem, 5.2vw, 4.75rem); line-height: .92; }
.rv-butikk-produkt .rv-sidehode__rutenett { margin-bottom: 2rem; }
@media (min-width: 992px) { .rv-butikk-produkt .rv-sidehode__rutenett { margin-bottom: 48px; } }
.rv-butikk-produkt .rv-sidehode__ingress p:last-child { margin-bottom: 0; }

.rv-butikk-kjop {
  background: var(--rv-alu);
  padding: 40px 0 56px;
}
@media (min-width: 992px) { .rv-butikk-kjop { padding: 64px 0 80px; } }

/* Bildegalleriet: Woos flytende kolonner slås av; ramme og lys bunn */
.woocommerce div.product .rv-butikk-kjop div.images,
.woocommerce div.product .rv-butikk-kjop div.summary,
.woocommerce #content div.product .rv-butikk-kjop div.images,
.woocommerce #content div.product .rv-butikk-kjop div.summary {
  float: none;
  width: 100%;
  margin-bottom: 0;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  margin: 0;
  background: #fff;
  border: 1px solid var(--rv-linje);
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img,
.woocommerce div.product div.images img { display: block; width: 100%; height: auto; padding: 16px; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--rv-linje);
  border-radius: .125rem;
  box-shadow: none;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before { border-color: var(--rv-blekk); top: 12px; left: 12px; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after { background: var(--rv-blekk); top: 25px; left: 25px; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.woocommerce div.product div.images .flex-control-thumbs li {
  width: calc(25% - 6px);
  float: none;
  margin: 0;
  background: #fff;
  border: 1px solid var(--rv-linje);
  border-radius: .125rem;
}
.woocommerce div.product div.images .flex-control-thumbs li img { padding: 6px; opacity: 1; border: 0; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { border: 0; }
.woocommerce div.product div.images .flex-control-thumbs li:has(img.flex-active) { border-color: var(--rv-blekk); box-shadow: inset 0 0 0 1px var(--rv-blekk); }
.woocommerce div.product div.images .flex-control-thumbs li:hover { border-color: var(--rv-blekk); }

/* Prisboksen: samme som på kalkulatorsidene (.rv-prisboks i bundle.css) + Woos innhold */
.rv-butikk-prisboks { gap: 18px; }
.rv-butikk-prisboks p { margin: 0; }
.rv-butikk-prisboks .rv-prisboks__tittel { font-size: 1.375rem; font-family: var(--rv-smal); font-weight: 700; }
.woocommerce div.product .rv-butikk-prisboks p.price,
.woocommerce div.product .rv-butikk-prisboks span.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  font-size: 1rem;
  color: var(--rv-blekk);
}
.woocommerce div.product .rv-butikk-prisboks p.price .amount,
.woocommerce div.product .rv-butikk-prisboks span.price .amount {
  font-family: var(--rv-ekstra);
  font-weight: 800;
  font-size: clamp(3rem, 4.6vw, 4.25rem);
  line-height: .9;
  color: var(--rv-blekk);
  font-variant-numeric: tabular-nums;
}
.woocommerce div.product .rv-butikk-prisboks p.price .woocommerce-Price-currencySymbol { font-size: .5em; font-weight: 800; vertical-align: .35em; margin-right: .1em; }
.woocommerce div.product .rv-butikk-prisboks p.price del { opacity: .55; }
.woocommerce div.product .rv-butikk-prisboks p.price del .amount { font-size: 1.5rem; }
.woocommerce div.product .rv-butikk-prisboks p.price ins { text-decoration: none; }
.woocommerce div.product .rv-butikk-prisboks p.price .woocommerce-price-suffix,
.woocommerce div.product .rv-butikk-prisboks p.price .woocommerce-Price-suffix { font-size: 1rem; font-weight: 400; color: var(--rv-stal); }
.rv-butikk-prisboks small { font-size: 1rem; }
/* Prisen i boksen (tegnes av rv-antallspris.php): etikett «Pakke med 9 skilt», stk-prisen som
   hovedtall, totalen for pakken(e) i en egen rad under, mengderabatt i grønt (som kalkulatorene). */
.woocommerce div.product .rv-butikk-prisboks p.price { flex-direction: column; align-items: stretch; gap: 8px; }
.rv-butikk-prisboks p.price .rv-pris__etikett {
  font-family: var(--rv-smal);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--rv-blekk);
}
.rv-butikk-prisboks p.price .rv-pris__hoved { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rv-butikk-prisboks p.price .rv-pris__fra { font-size: 1.375rem; font-weight: 700; }
.rv-butikk-prisboks p.price .rv-pris__enhet { font-size: 1.25rem; font-weight: 700; color: var(--rv-blekk); }
.rv-butikk-prisboks p.price .rv-pris__total {
  display: block;
  margin-top: 4px;
  padding: 10px 14px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--rv-blekk);
  background: var(--rv-alu);
  border-left: 4px solid var(--rv-blekk);
}
.rv-butikk-prisboks p.price .rv-pris__total b { font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.rv-butikk-prisboks p.price .rv-pris__total .amount { font-family: inherit; font-size: 1.25rem; font-weight: 800; line-height: inherit; }
.rv-butikk-prisboks p.price .rv-pris__total .amount .woocommerce-Price-currencySymbol { font-size: inherit; vertical-align: baseline; }
.rv-butikk-prisboks p.price .rv-pris__mva { display: block; font-size: .9375rem; font-weight: 400; color: var(--rv-stal); }
.rv-butikk-prisboks p.price .rv-pris__total .rv-pris__mva { display: inline; }
.rv-butikk-prisboks p.price .rv-pris__total .rv-pris__mva::before { content: "· "; }
.rv-butikk-prisboks p.price .rv-pris__spar { font-size: .9375rem; font-weight: 600; color: var(--rv-ok); }

/* Varianter: etikett over feltet */
.woocommerce div.product .rv-butikk-prisboks form.cart { margin: 0; }
.woocommerce div.product .rv-butikk-prisboks form.cart table.variations { display: block; margin: 0; }
.woocommerce div.product .rv-butikk-prisboks form.cart table.variations tbody { display: flex; flex-direction: column; gap: 14px; }
.woocommerce div.product .rv-butikk-prisboks form.cart table.variations tr { display: flex; flex-direction: column; gap: 4px; }
.woocommerce div.product .rv-butikk-prisboks form.cart table.variations th,
.woocommerce div.product .rv-butikk-prisboks form.cart table.variations td { display: block; padding: 0; line-height: 1.4; border: 0; }
.woocommerce div.product .rv-butikk-prisboks form.cart table.variations th label { font-size: .9375rem; font-weight: 600; margin: 0; }
.woocommerce div.product .rv-butikk-prisboks form.cart table.variations select,
.woocommerce div.product .rv-butikk-prisboks form.cart table.variations select.form-select {
  max-width: none;
  min-width: 0;
  margin: 0;
  padding-right: 2.5rem;
  font-weight: 600;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23231F20' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  background-size: 14px;
  appearance: none;
  -webkit-appearance: none;
}
.woocommerce div.product .rv-butikk-prisboks form.cart .reset_variations {
  display: inline-block;
  margin-top: 6px;
  font-size: .875rem;
  color: var(--rv-stal);
}
.rv-butikk-prisboks .rv-montering { margin: 10px 0 0 !important; font-size: .9375rem !important; line-height: 1.45; color: var(--rv-stal) !important; }
.woocommerce div.product .rv-butikk-prisboks form.cart .single_variation_wrap { margin-top: 18px; }
.woocommerce div.product .rv-butikk-prisboks form.cart .woocommerce-variation.single_variation { margin-bottom: 0; }
.woocommerce div.product .rv-butikk-prisboks .woocommerce-variation-description p:last-child { margin-bottom: 1rem; }
.woocommerce div.product .rv-butikk-prisboks .woocommerce-variation-availability p.stock { margin: 0 0 .75rem; font-size: .9375rem; }
.woocommerce div.product .rv-butikk-prisboks .stock.in-stock { color: var(--rv-ok); }
.woocommerce div.product .rv-butikk-prisboks .stock.out-of-stock { color: var(--rv-feil); }

/* Antall + knapp */
.woocommerce div.product .rv-butikk-prisboks form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product .rv-butikk-prisboks form.cart:not(.variations_form) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
}
.woocommerce div.product .rv-butikk-prisboks form.cart .woocommerce-variation-add-to-cart.woocommerce-variation-add-to-cart-disabled { opacity: .55; }
.woocommerce div.product .rv-butikk-prisboks form.cart .rv-antall-etikett {
  grid-column: 1 / -1;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
}
.woocommerce div.product .rv-butikk-prisboks form.cart div.quantity {
  float: none;
  margin: 0;
  width: 6rem;
}
.woocommerce div.product .rv-butikk-prisboks form.cart div.quantity .qty {
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
}
.rv-butikk-prisboks .rv-enhet { margin: 0 !important; font-size: .9375rem !important; color: var(--rv-stal) !important; }
.woocommerce div.product .rv-butikk-prisboks form.cart .button,
.woocommerce div.product .rv-butikk-prisboks form.cart .single_add_to_cart_button {
  grid-column: 1 / -1;
  float: none;
  width: 100%;
  margin-top: 6px;
  min-height: 56px;
  font-size: 1.125rem;
}
.rv-butikk-prisboks .rv-antall-info {
  margin: 0 !important;
  padding: 10px 12px;
  font-size: .9375rem !important;
  line-height: 1.45;
  color: var(--rv-blekk) !important;
  background: var(--rv-tint);
}
.rv-butikk-prisboks .rv-antall-info a { color: var(--rv-blekk); }

/* Hva som er inkludert, og produktinformasjon (nummer, kategori) */
.rv-butikk-prisboks .product_meta {
  padding-top: 14px;
  border-top: 1px solid var(--rv-linje);
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--rv-stal);
}
.rv-butikk-prisboks .product_meta > span { display: block; }
.rv-butikk-prisboks .product_meta a { color: var(--rv-blekk); }

/* Beskrivelse, tilleggsinformasjon, omtaler */
.rv-butikk-info { padding: 56px 0 104px; }
@media (min-width: 992px) { .rv-butikk-info { padding: 88px 0 152px; } }
.rv-butikk-info:has(+ .rv-butikk-relatert) { padding-bottom: 56px; }
@media (min-width: 992px) { .rv-butikk-info:has(+ .rv-butikk-relatert) { padding-bottom: 88px; } }
.rv-butikk-info__del + .rv-butikk-info__del { margin-top: 3rem; }
@media (min-width: 992px) { .rv-butikk-info__del + .rv-butikk-info__del { margin-top: 64px; } }
.rv-butikk-info .rv-sidekolonne { margin-top: 2.5rem; }
@media (min-width: 992px) { .rv-butikk-info .rv-sidekolonne { margin-top: 0; } }
.rv-butikk-info .rv-innhold > :last-child { margin-bottom: 0; }

.woocommerce .rv-butikk-info table.woocommerce-product-attributes,
.woocommerce table.shop_attributes {
  width: 100%;
  max-width: 45rem;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--rv-linje);
  border-collapse: collapse;
  font-size: 1rem;
}
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
  padding: .75rem 1rem .75rem 0;
  font-family: inherit;
  font-style: normal;
  line-height: 1.5;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rv-linje);
}
.woocommerce table.shop_attributes th { width: 12rem; font-weight: 700; color: var(--rv-blekk); }
.woocommerce table.shop_attributes td p { margin: 0; padding: 0; }
.woocommerce table.shop_attributes tr:nth-child(even) td,
.woocommerce table.shop_attributes tr:nth-child(even) th { background: transparent; }

.woocommerce #reviews #comments ol.commentlist li .comment-text { border-color: var(--rv-linje); border-radius: .125rem; }
.woocommerce #reviews #comments ol.commentlist li img.avatar { border-color: var(--rv-linje); background: #fff; }
.woocommerce .star-rating span::before, .woocommerce .star-rating::before { color: var(--rv-blekk); }

.rv-butikk-kategoriboks .rv-guideboks__liste a[aria-current="page"] { color: var(--rv-rubin); text-decoration: none; }

/* Relaterte produkter */
.rv-butikk-relatert {
  padding: 56px 0 104px;
  background: var(--rv-alu);
}
@media (min-width: 992px) { .rv-butikk-relatert { padding: 80px 0 152px; } }
.woocommerce .rv-butikk-relatert section.related > h2,
.woocommerce .rv-butikk-relatert section.upsells > h2 {
  margin: 0 0 1.5rem;
  font-family: var(--rv-ekstra);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.2vw, 3.5rem);
  line-height: .95;
  text-transform: uppercase;
}
@media (min-width: 992px) { .woocommerce .rv-butikk-relatert section.related > h2 { margin-bottom: 32px; } }

/* ============================================================
   Handlekurv og kasse (WooCommerce-blokker) – på aluminium i page.php
   ============================================================ */
.woocommerce-cart .rv-sideinnhold .rv-innhold,
.woocommerce-checkout .rv-sideinnhold .rv-innhold,
.woocommerce-account .rv-sideinnhold .rv-innhold { max-width: none; }

.wc-block-components-sidebar,
.wc-block-cart .wc-block-components-sidebar,
.wc-block-checkout .wc-block-components-sidebar {
  padding: 24px;
  background: #fff;
  border-top: 6px solid var(--rv-blekk);
  box-shadow: 0 18px 40px -24px rgba(35, 31, 32, .45);
}
@media (min-width: 700px) {
  .wc-block-components-sidebar-layout .wc-block-components-sidebar { padding: 28px; }
}
.wc-block-cart .wc-block-cart__totals-title,
.wc-block-components-sidebar .wc-block-components-totals-item__label,
.wc-block-components-order-summary__title-text,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: var(--rv-smal);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.wc-block-cart .wc-block-cart__totals-title { font-size: 1.375rem; text-align: left; padding-bottom: 12px; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: var(--rv-ekstra);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}
.wc-block-components-totals-item { font-size: 1rem; }
.wc-block-components-totals-item__description { color: var(--rv-stal); }
.wc-block-components-product-name { color: var(--rv-blekk); font-weight: 600; text-decoration: none; }
.wc-block-components-product-name:hover { color: var(--rv-rubin); text-decoration: underline; }
.wc-block-components-product-metadata, .wc-block-components-product-details__name, .wc-block-components-product-details__value { color: var(--rv-stal); font-size: .875rem; }
.wc-block-cart-items__header { font-size: .875rem; font-weight: 600; color: var(--rv-stal); text-transform: none; }
.wc-block-cart-item__image img { background: #fff; border: 1px solid var(--rv-linje); padding: 4px; }
.wc-block-components-quantity-selector { border-radius: .125rem; }
.wc-block-components-quantity-selector::after { border-color: var(--rv-feltkant); border-radius: .125rem; }
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { font-weight: 700; }
.wc-block-cart-item__remove-link { color: var(--rv-stal); font-size: .875rem; }
.wc-block-cart-item__remove-link:hover { color: var(--rv-rubin); }
.wc-block-components-product-price, .wc-block-cart-item__total .wc-block-components-product-price { font-weight: 700; }
/* Prisen per pakke under varenavnet skjules: kunden ser antall pakker, «Innhold» og «Per skilt»
   (woocommerce_get_item_data i rv-antallspris.php) og linjetotalen til høyre. */
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices,
.wc-block-components-order-summary-item .wc-block-components-order-summary-item__individual-prices { display: none; }
.wc-block-components-product-details { margin-top: 6px; }
.wc-block-components-product-details__item { font-size: .9375rem; }
.wc-block-components-product-details__name { font-weight: 600; }
.wc-block-components-totals-wrapper { border-color: var(--rv-linje); }
.wc-block-components-totals-coupon .wc-block-components-panel__button { font-size: .9375rem; }
.wc-block-cart__submit-container .wc-block-components-button { width: 100%; }
.wc-block-components-button.wc-block-cart__submit-button { min-height: 56px; font-size: 1.125rem; }
.wc-block-components-shipping-calculator-address__button, .wc-block-components-totals-shipping__change-address__link { font-size: .9375rem; }

.wc-block-checkout__main .wc-block-components-checkout-step__title,
.wc-block-components-checkout-step__title {
  font-family: var(--rv-smal);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 8px;
}
.wc-block-components-checkout-step__description { color: var(--rv-stal); font-size: .9375rem; }
.wc-block-components-checkout-step { padding-left: 0; }
.wc-block-components-checkout-step__heading { margin-top: 0; }
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-text-input input[type="url"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-text-input input[type="text"],
.wc-block-components-form .wc-block-components-text-input input[type="email"],
.wc-block-components-form .wc-block-components-text-input input[type="tel"],
.wc-block-components-select .components-custom-select-control__button,
.wc-block-components-country-input input,
.wc-block-components-state-input input,
.wc-block-components-state-input select,
.wc-block-components-select .components-custom-select-control__button.components-button {
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--rv-blekk);
  background: #fff;
  border: 1px solid var(--rv-feltkant);
  border-radius: .125rem;
  box-shadow: none;
}
.wc-block-components-text-input input[type="text"]:focus,
.wc-block-components-text-input input[type="email"]:focus,
.wc-block-components-text-input input[type="tel"]:focus,
.wc-block-components-text-input input[type="password"]:focus,
.wc-block-components-textarea:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
.wc-block-components-select .components-custom-select-control__button:focus,
.wc-block-components-state-input select:focus {
  border-color: var(--rv-blekk);
  outline: 3px solid var(--rv-rubin);
  outline-offset: 2px;
  box-shadow: none;
}
.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label,
.wc-block-components-select .components-custom-select-control__label,
.wc-block-components-state-input label,
.wc-block-components-country-input label { color: var(--rv-stal); }
.wc-block-components-text-input.has-error input { border-color: var(--rv-feil); }
.wc-block-components-validation-error p { color: var(--rv-feil); font-size: .875rem; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
  border: 1px solid var(--rv-feltkant);
  border-radius: .125rem;
}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--rv-blekk); border-color: var(--rv-blekk); }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { color: #fff; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus { outline: 3px solid var(--rv-rubin); outline-offset: 2px; box-shadow: none; }
.wc-block-components-radio-control .wc-block-components-radio-control__option { font-size: 1rem; }
.wc-block-components-radio-control__input { border-color: var(--rv-feltkant); }
.wc-block-components-radio-control__input:checked { border-color: var(--rv-blekk); }
.wc-block-components-radio-control__input:checked::before { background: var(--rv-blekk); }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked { box-shadow: inset 0 0 0 2px var(--rv-blekk); border-radius: .125rem; }
.wc-block-components-radio-control--highlight-checked::after, .wc-block-components-radio-control--highlight-checked::before { border-color: var(--rv-linje); }
.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__option { border-color: var(--rv-linje); }
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
  width: 100%;
  min-height: 56px;
  font-size: 1.125rem;
}
.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button { color: var(--rv-blekk); font-weight: 600; }
.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button:hover { color: var(--rv-rubin); }
.wc-block-components-checkout-policies, .wc-block-checkout__terms { font-size: .9375rem; color: var(--rv-stal); }
.wc-block-checkout__terms a, .wc-block-components-checkout-policies a { color: var(--rv-blekk); }
.wc-block-components-order-summary .wc-block-components-order-summary-item__description { font-size: .9375rem; }
.wc-block-components-panel__button { font-weight: 600; }
.wc-block-components-express-payment-continue-rule, .wc-block-components-express-payment__title { color: var(--rv-stal); }
.wc-block-components-express-payment__event-buttons { gap: 8px; }
.wc-block-components-payment-method-label { font-weight: 600; }
.wc-block-components-order-summary-item__quantity {
  background: var(--rv-blekk);
  border-color: var(--rv-blekk);
  box-shadow: none;
}
.wc-block-components-totals-item__value, .wc-block-components-formatted-money-amount { font-weight: 600; }
.wc-block-cart__empty-cart__title { font-family: var(--rv-smal); font-weight: 700; font-size: 1.75rem; }
.wc-block-cart-empty .wp-block-button__link,
.wp-block-button.wc-block-cart__empty-cart__button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .5rem 1.375rem;
  font-weight: 700;
  color: #fff;
  background: var(--rv-rubin);
  border: 2px solid var(--rv-rubin);
  border-radius: .125rem;
  text-decoration: none;
}
.wc-block-cart-empty .wp-block-button__link:hover { background: var(--rv-rubin-mork); border-color: var(--rv-rubin-mork); color: #fff; }
.wc-block-components-checkout-order-summary__title { font-family: var(--rv-smal); font-weight: 700; font-size: 1.25rem; }
/* Ingen ekstra ramme inne i prisboksen i kassen */
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary,
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper:first-child { border-left: 0; border-right: 0; border-radius: 0; }
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary { border-top: 0; border-bottom: 0; }
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { border: 0; border-radius: 0; }
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title { padding-left: 0; padding-right: 0; }
.wc-block-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary__title-text { font-size: 1.25rem; }

/* ============================================================
   Takkesiden (ordre mottatt) og klassiske tabeller
   ============================================================ */
.woocommerce-order .woocommerce-notice,
.woocommerce-order .woocommerce-thankyou-order-received {
  margin: 0 0 1.5rem;
  padding: 28px;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 600;
  background: #fff;
  border-top: 6px solid var(--rv-ok);
}
.woocommerce ul.order_details,
.woocommerce-order ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.woocommerce ul.order_details::before, .woocommerce ul.order_details::after { display: none; }
.woocommerce ul.order_details li {
  float: none;
  margin: 0;
  padding: 12px 0 0;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--rv-stal);
  text-transform: none;
  border: 0;
  border-top: 3px solid var(--rv-blekk);
}
.woocommerce ul.order_details li strong { display: block; margin-top: 4px; font-size: 1.125rem; font-weight: 700; color: var(--rv-blekk); text-transform: none; }
.woocommerce-order h2, .woocommerce-order h3,
.woocommerce-order .woocommerce-order-details__title,
.woocommerce-order .woocommerce-column__title {
  font-family: var(--rv-smal);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 2rem 0 .75rem;
}
.woocommerce table.shop_table,
.woocommerce table.woocommerce-table {
  width: 100%;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  background: #fff;
  border: 1px solid var(--rv-linje);
  border-radius: .125rem;
  border-collapse: collapse;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: .875rem 1rem;
  line-height: 1.5;
  border: 0;
  border-top: 1px solid var(--rv-linje);
}
.woocommerce table.shop_table thead th { border-top: 0; font-family: var(--rv-smal); font-weight: 700; font-size: 1.125rem; }
.woocommerce table.shop_table tfoot th, .woocommerce table.shop_table tfoot td { font-weight: 700; }
.woocommerce table.shop_table tfoot tr:last-child th, .woocommerce table.shop_table tfoot tr:last-child td { font-size: 1.125rem; }
.woocommerce table.shop_table td.product-name .wc-item-meta { font-size: .875rem; color: var(--rv-stal); }
.woocommerce-order .woocommerce-customer-details address {
  padding: 20px 24px;
  font-style: normal;
  line-height: 1.6;
  background: #fff;
  border: 1px solid var(--rv-linje);
  border-radius: .125rem;
}
.woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-customer-details .woocommerce-customer-details--email { margin: .5rem 0 0; padding: 0; }
.woocommerce-customer-details .woocommerce-customer-details--phone::before,
.woocommerce-customer-details .woocommerce-customer-details--email::before { display: none; }

/* ============================================================
   Min konto
   ============================================================ */
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: none;
  width: 100%;
  margin-bottom: 2rem;
}
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; }
@media (min-width: 992px) {
  .woocommerce-account .rv-innhold .woocommerce { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; align-items: start; }
  .woocommerce-account .woocommerce-MyAccount-navigation { margin-bottom: 0; }
  .woocommerce-account .rv-innhold .woocommerce > .woocommerce-notices-wrapper,
  .woocommerce-account .rv-innhold .woocommerce > .woocommerce-message,
  .woocommerce-account .rv-innhold .woocommerce > .woocommerce-error,
  .woocommerce-account .rv-innhold .woocommerce > .woocommerce-info { grid-column: 1 / -1; }
  .woocommerce-account .rv-innhold .woocommerce > form.login,
  .woocommerce-account .rv-innhold .woocommerce > form.register,
  .woocommerce-account .rv-innhold .woocommerce > .u-columns,
  .woocommerce-account .rv-innhold .woocommerce > form.lost_reset_password { grid-column: 1 / -1; }
}
.woocommerce-MyAccount-navigation .list-group { border: 0; }
.woocommerce-MyAccount-navigation .list-group-item,
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 0 12px 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--rv-blekk);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rv-linje);
  border-left: 3px solid transparent;
  border-radius: 0;
}
.woocommerce-MyAccount-navigation .list-group-item:last-child { border-bottom: 1px solid var(--rv-linje); }
.woocommerce-MyAccount-navigation .list-group-item:hover { color: var(--rv-rubin); background: transparent; }
.woocommerce-MyAccount-navigation .list-group-item.active,
.woocommerce-MyAccount-navigation .is-active a { color: var(--rv-rubin); border-left-color: var(--rv-rubin); }
.woocommerce-MyAccount-content > p:first-child { font-size: 1.125rem; }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3, .woocommerce-MyAccount-content legend {
  font-family: var(--rv-smal);
  font-weight: 700;
  font-size: 1.5rem;
}
.woocommerce-MyAccount-content fieldset { margin: 2rem 0 0; }
.woocommerce-MyAccount-content .woocommerce-Address { padding: 20px 24px; background: #fff; border: 1px solid var(--rv-linje); }
.woocommerce-MyAccount-content .woocommerce-Address-title h2, .woocommerce-MyAccount-content .woocommerce-Address-title h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.woocommerce-MyAccount-content .woocommerce-Address-title .edit { font-size: .9375rem; font-weight: 600; }
.woocommerce-MyAccount-content address { font-style: normal; line-height: 1.6; }
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button { margin: 0 8px 4px 0; min-height: 40px; padding: .25rem .875rem; font-size: .9375rem; }
.woocommerce-account .u-columns .col-1, .woocommerce-account .u-columns .col-2 { float: none; width: auto; }
.woocommerce-account .u-columns { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .woocommerce-account .u-columns { grid-template-columns: 1fr 1fr; } }
.woocommerce-account .u-columns h2 { font-family: var(--rv-smal); font-size: 1.5rem; margin-bottom: .75rem; }
.woocommerce-privacy-policy-text { font-size: .9375rem; color: var(--rv-stal); }

/* Kontaktseksjonen nederst (uten CF7) */
.rv-kontakt__butikk {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .25);
}
@media (min-width: 992px) { .rv-kontakt__butikk { padding: 40px; } }
.rv-kontakt__butikk p { margin: 0; }
.rv-kontakt__butikk-tittel {
  font-family: var(--rv-smal);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.15;
}
.rv-kontakt__telefon {
  font-family: var(--rv-ekstra);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.rv-mork .rv-kontakt__telefon:hover { color: #fff; text-decoration: underline; }
.rv-kontakt__epost { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.rv-kontakt__butikk-tekst { font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .85); max-width: 28rem; }
.rv-kontakt__butikk .btn { margin-top: 8px; }

/* Diverse */
.woocommerce .blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }
.woocommerce-store-notice, p.demo_store { background: var(--rv-blekk); color: #fff; }
.woocommerce .select2-container .select2-selection--single { height: 50px; border: 1px solid var(--rv-feltkant); border-radius: .125rem; }
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 48px; color: var(--rv-blekk); }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 48px; }
.select2-dropdown { border-color: var(--rv-feltkant); border-radius: .125rem; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--rv-alu); color: var(--rv-blekk); }

@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product, .rv-butikk-kategorier a, .wc-block-components-button { transition: none; }
}
