/* =========================
   GENERELLE WOO-STILER
========================= */

/* Typografi */
.woocommerce h1,
.woocommerce h2,
.woocommerce h3 {
  font-family: "Cormorant", serif !important;
}

.woocommerce input,
.woocommerce textarea,
.woocommerce select {
  font-family: "Montserrat", sans-serif !important;
  background-color: #f6f1eb !important;
  border: 1px solid #ddd !important;
  border-radius: 4px;
}

/* Skjul unødvendige elementer i checkout
   (r47: var .woocommerce-form__label-for-checkbox GLOBALT — det skjulte også
   selve vilkårs-avkryssingen og gjorde kjøp umulig. Nå målrettet mot kun
   opt-in-boksen; vilkårslabelen skal ALDRI skjules.) */
label[data-automation-id="woo-commerce-subscription-opt-in"],
.woocommerce-privacy-policy-text {
  display: none !important;
}

/* Skjul eventuelle chat/whatsapp-knapper */
.whatsapp,
.social-chat,
.sc-whatsapp,
#social-chat,
.whatsapp-button {
  display: none !important;
}


/* =========================
   MIN KONTO – MENY
========================= */

.woocommerce-MyAccount-navigation ul {
  border: none !important;
  background: none !important;
}

.woocommerce-MyAccount-navigation ul li {
  border: none !important;
}


/* =========================
   HANDLEKURV – LAYOUT
========================= */

.woocommerce-cart .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
}

/* Fjern klassisk tabell-look */
.woocommerce-cart table.shop_table {
  border: none !important;
  background: transparent !important;
  border-collapse: collapse !important;
}

/* Skjul overskriftsraden */
.woocommerce-cart table.shop_table thead {
  display: none !important;
}

/* Produktlinjer */
.woocommerce-cart table.shop_table tr {
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

.woocommerce-cart table.shop_table td {
  border: none !important;
  padding: 18px 10px !important;
  background: transparent !important;
  vertical-align: middle;
}

/* Produktbilde */
.woocommerce-cart td.product-thumbnail img {
  width: 90px !important;
  height: auto !important;
  border-radius: 0 !important;
}

/* Produktnavn */
.woocommerce-cart .product-name {
  font-weight: 500;
}

/* Antall-felt */
.woocommerce-cart .quantity .qty {
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  border-radius: 0;
}


/* =========================
   TOTALSUM-BOKS
========================= */

body.woocommerce-cart .cart_totals {
  background: #ffffff !important;
  padding: 18px !important;
  max-width: 420px !important;
  margin-left: auto !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
}

/* Mindre overskrift */
body.woocommerce-cart .cart_totals h2 {
  font-size: 22px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
  line-height: 1.2 !important;
}

/* Strammere rader i totalsum */
body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td {
  padding: 10px 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* Linjer mellom rader */
body.woocommerce-cart .cart_totals .shop_table tr {
  border-bottom: 1px solid rgba(0,0,0,0.10) !important;
}


/* =========================
   CHECKOUT-KNAPP
========================= */

.woocommerce-cart .wc-proceed-to-checkout {
  padding: 12px 0 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: #111 !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 16px !important;
  border-radius: 0 !important;
  font-size: 13px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #333 !important;
}


/* =========================
   ELEMENTOR-MENY FIX
========================= */

/* Elementor: vertikal meny med undermeny */
.elementor-nav-menu--main .sub-menu {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  display: none;
}

.elementor-nav-menu--main li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* =========================
   CHECKOUT – TILBAKE TIL "BILDE 2" (HVITT ORDER REVIEW)
========================= */

/* 1) Behold den beige header-stripen "Ordren din" */
body.woocommerce-checkout #order_review_heading{
  background: transparent !important;
}

/* 2) Gjør SELVE tabellen (produkt/delsum) hvit – dette er "bilde 2" */
body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table{
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 0 !important;
  border-collapse: collapse !important;
}

/* Gi litt luft inni den hvite boksen */
body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table td{
  background: transparent !important;
  padding: 12px 18px !important;
  border: none !important;
}

/* Linjene mellom radene (som i handlekurv-stil) */
body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tr{
  border-bottom: 1px solid rgba(0,0,0,0.10) !important;
}

/* 3) Ikke gjør hele #order_review hvit – la den være "rammen" rundt */
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* 4) Betaling (kortfelt/Stripe etc.) – behold som egen boks under (som på bilde 2) */
body.woocommerce-checkout #payment{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* 5) Place order-knapp – matcher handlekurv-knappen */
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button#place_order,
body.woocommerce-checkout .woocommerce button.button.alt{
  background: #111 !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 14px 16px !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  border: none !important;
}
body.woocommerce-checkout #place_order:hover{
  background: #333 !important;
}

/* =========================
   MINDRE SKRIFT I HELE CHECKOUT
========================= */

/* Generell tekststørrelse */
body.woocommerce-checkout {
  font-size: 14px !important;
}

/* Overskrifter litt mindre */
body.woocommerce-checkout h3,
body.woocommerce-checkout h2 {
  font-size: 18px !important;
}

/* Feltnavn (labels) */
body.woocommerce-checkout .form-row label {
  font-size: 13px !important;
}

/* Input-felt */
body.woocommerce-checkout input,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select {
  font-size: 13px !important;
  padding: 10px 12px !important;
}

/* Ordre-sammendrag tabell */
body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
  font-size: 13px !important;
  padding: 10px 14px !important;
}

/* Totalsum-tittel */
body.woocommerce-checkout #order_review_heading {
  font-size: 18px !important;
}

/* Betalingsområde */
body.woocommerce-checkout #payment {
  font-size: 13px !important;
}

/* Place order-knapp litt mer kompakt */
body.woocommerce-checkout #place_order {
  font-size: 12px !important;
  padding: 12px 14px !important;
}

/* Gjør typografien i checkout-tabellen lik totalsum i handlekurven */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table,
.woocommerce-checkout #order_review {
  font-family: "Cormorant", serif !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}

/* Produktnavn i checkout – samme stil som i cart */
.woocommerce-checkout-review-order-table .product-name {
  font-weight: 400 !important;
}

/* Overskrifter i checkout-tabellen */
.woocommerce-checkout-review-order-table th {
  font-size: 15px !important;
  font-weight: 500 !important;
}

/* Mindre og mer elegant total-linje */
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  font-size: 16px !important;
  font-weight: 400 !important;
}

/* Ultimate Member knapper - beige stil */
.um .um-button {
    background-color: #B1A296 !important; /* din profilfarge */
    border-color: #B1A296 !important;
    color: #ffffff !important;
    border-radius: 6px;
}

/* Hover-effekt */
.um .um-button:hover {
    background-color: #773F1A !important; /* mørkere brun fra profilen din */
    border-color: #773F1A !important;
    color: #ffffff !important;
}

/* Sekundær knapp (registrer-knapp) */
.um .um-alt {
    background-color: #F0ECE6 !important; /* lys bakgrunnsfarge */
    border-color: #B1A296 !important;
    color: #773F1A !important;
}

/* Hover på sekundær knapp */
.um .um-alt:hover {
    background-color: #B1A296 !important;
    color: #ffffff !important;
}



body:not(.logged-in) .site-content {
  padding-top: 0 !important;
}

/* === HEADER SYNLIG FOR BESØKENDE ===*/
body:not(.logged-in) header.site-header,
body:not(.logged-in) #masthead,
body:not(.logged-in) .main-header-bar,
body:not(.logged-in) .ast-primary-header-bar {
  background: #FAF8F5 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 9999 !important;
}
body:not(.logged-in) .main-header-bar a,
body:not(.logged-in) .ast-builder-menu a,
body:not(.logged-in) .main-navigation a,
body:not(.logged-in) .site-title a {
  color: #ffffff !important;
}
body:not(.logged-in) .main-header-bar .menu-item > a,
body:not(.logged-in) .ast-builder-menu .menu-item > a {
  color: #ffffff !important;
  font-size: 14px !important;
}
body:not(.logged-in) .site-header .custom-logo {
  opacity: 1 !important;
  visibility: visible !important;
}

/* eliora-home-header-loggedin */
body.logged-in.home header.site-header,
body.logged-in.home #masthead,
body.logged-in.home .main-header-bar,
body.logged-in.home .ast-primary-header-bar,
body.logged-in.home .ast-hfb-header{display:block !important;visibility:visible !important;opacity:1 !important;background:#FAF8F5 !important;}
body.logged-in.home:not(.ast-header-break-point) #ast-desktop-header{display:block !important;}
body.logged-in.home.ast-header-break-point #ast-mobile-header{display:block !important;}
body.logged-in.home.ast-header-break-point #ast-desktop-header{display:none !important;}
body.logged-in.home .main-header-bar a,
body.logged-in.home .ast-builder-menu a,
body.logged-in.home .site-title a{color:#ffffff !important;}
body.logged-in.home .main-header-bar .menu-item > a,
body.logged-in.home .ast-builder-menu .menu-item > a{color:#ffffff !important;font-size:14px !important;}

/* eliora-account-hide-header */
body.woocommerce-account header.site-header,body.woocommerce-account #masthead,body.woocommerce-account .main-header-bar,body.woocommerce-account .ast-primary-header-bar,body.woocommerce-account .ast-hfb-header,body.woocommerce-account #ast-desktop-header,body.woocommerce-account #ast-mobile-header,body.woocommerce-account .ast-above-header,body.woocommerce-account .ast-below-header{display:none!important;}
body.woocommerce-account #main,body.woocommerce-account .site-main,body.woocommerce-account .ast-article-single{margin-top:0!important;}


/* === eliora-home-header-transparent: gjennomsiktig header PÅ FORSIDEN (både innlogget og utlogget), ingen strek === */
body.home.logged-in header.site-header, body.home:not(.logged-in) header.site-header,
body.home.logged-in #masthead, body.home:not(.logged-in) #masthead,
body.home.logged-in .main-header-bar, body.home:not(.logged-in) .main-header-bar,
body.home.logged-in .ast-primary-header-bar, body.home:not(.logged-in) .ast-primary-header-bar,
body.home.logged-in .ast-hfb-header, body.home:not(.logged-in) .ast-hfb-header{
  background:transparent !important; box-shadow:none !important; border:0 !important;
}
body.home.logged-in #masthead, body.home:not(.logged-in) #masthead{
  position:absolute !important; left:0; right:0; top:0; z-index:9999 !important;
}
