/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* =========================================================
   NFU Norge — WooCommerce styling
   1. Design tokens
   2. Elementor slide-out (mini) cart
   3. Shared: page heading + block alignment (cart + checkout)
   4. Cart page  (/handlekurv/)
   5. Checkout page (/kassen/) — FIXES ONLY, layout untouched
   6. Global small-screen page gutters

   RESPONSIVE NOTE
   WooCommerce Blocks lays the cart and checkout out with CONTAINER queries
   (both blocks are `container-type: inline-size`) that flip at a 700px
   *container* width — not at a viewport width. So every rule that belongs to
   a particular layout lives in `@container`, matching Woo's own breakpoint.
   Viewport media queries are used only for page-level typography and for the
   mini cart, which sits outside those blocks.

   Breakpoints used here:
     @container (min-width: 700px)  two-column cart / checkout
     @container (max-width: 699px)  stacked layout (tablet + phone)
     @container (max-width: 450px)  phone — line total moves below quantity
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------- */
:root {
  --nfu-purple:      #292242;
  --nfu-purple-soft: #4a4166;
  --nfu-orange:      #f58220;
  --nfu-orange-dark: #d96a0c;
  --nfu-ink:         #1c1830;
  --nfu-muted:       #6d6683;
  --nfu-line:        #e7e3ee;
  --nfu-line-soft:   #f1eef6;
  --nfu-surface:     #ffffff;
  --nfu-surface-alt: #faf8fc;

  --nfu-radius:      12px;
  --nfu-radius-sm:   8px;
  --nfu-shadow:      0 1px 2px rgba(41, 34, 66, .05),
                     0 8px 28px rgba(41, 34, 66, .08);
  --nfu-ease:        .22s cubic-bezier(.2, .7, .3, 1);

  /* Sticky header height — used to offset sticky elements */
  --nfu-header-h:    100px;
  --nfu-sticky-gap:  24px;
}


/* =========================================================
   2. ELEMENTOR SLIDE-OUT CART
   ========================================================= */

/* Overlay */
.elementor-menu-cart__container.elementor-lightbox {
  background-color: rgba(28, 24, 48, .45) !important;
  backdrop-filter: blur(2px);
  transition: opacity var(--nfu-ease);
}

/* Panel */
.elementor-menu-cart__main {
  width: min(420px, 92vw) !important;
  max-width: min(420px, 92vw) !important;
  padding: 28px 26px 26px !important;
  background: var(--nfu-surface) !important;
  border-radius: 0 !important;
  box-shadow: -18px 0 48px rgba(28, 24, 48, .18) !important;
  display: flex;
  flex-direction: column;
}

/* Make the inner column a flex parent too, so the product list is the only
   thing that scrolls and the subtotal/buttons stay pinned at the bottom on
   any screen height (no fixed max-height that breaks on short phones). */
.elementor-menu-cart__main .widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* Panel heading (adds a title above the items) */
.elementor-menu-cart__main .widget_shopping_cart_content::before {
  content: "Handlekurv";
  display: block;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--nfu-purple);
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--nfu-line);
}

/* Close button
   NOTE: Elementor draws this "X" as two rotated bars via ::before/::after,
   coloured with background-color — not `color` — so the pseudo-elements are
   what has to be targeted. No background/backdrop on the button itself. */
.elementor-menu-cart__close-button,
.elementor-menu-cart__close-button:hover,
.elementor-menu-cart__close-button:focus {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: transform var(--nfu-ease);
}
.elementor-menu-cart__close-button::before,
.elementor-menu-cart__close-button::after {
  background-color: var(--nfu-muted) !important;
  transition: background-color var(--nfu-ease);
}
.elementor-menu-cart__close-button:hover { transform: rotate(90deg); }
.elementor-menu-cart__close-button:hover::before,
.elementor-menu-cart__close-button:hover::after {
  background-color: var(--nfu-orange) !important;
}

/* Scrollable product list */
.elementor-menu-cart__products {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -6px;
  scrollbar-width: thin;
  scrollbar-color: var(--nfu-line) transparent;
}
.elementor-menu-cart__products::-webkit-scrollbar { width: 6px; }
.elementor-menu-cart__products::-webkit-scrollbar-thumb {
  background: var(--nfu-line);
  border-radius: 999px;
}

/* Single product row */
.elementor-menu-cart__product {
  padding: 18px 0 !important;
  border-bottom: 1px solid var(--nfu-line-soft) !important;
  align-items: center;
}
.elementor-menu-cart__product:last-child { border-bottom: 0 !important; }

.elementor-menu-cart__product-image {
  width: 68px !important;
  flex: 0 0 auto;
  border: 1px solid var(--nfu-line);
  border-radius: var(--nfu-radius-sm);
  overflow: hidden;
  background: var(--nfu-surface-alt);
}
.elementor-menu-cart__product-image img {
  width: 100%;
  height: 68px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.elementor-menu-cart__product-name,
.elementor-menu-cart__product-name a {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--nfu-purple) !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  transition: color var(--nfu-ease);
}
.elementor-menu-cart__product-name a:hover { color: var(--nfu-orange) !important; }

.elementor-menu-cart__product-price {
  font-size: 14px !important;
  color: var(--nfu-muted) !important;
  margin-top: 4px;
}
.elementor-menu-cart__product-price .amount {
  color: var(--nfu-ink) !important;
  font-weight: 600;
}
.elementor-menu-cart__product-price .product-quantity { color: var(--nfu-muted) !important; }

/* Remove (×) — site orange
   Same story as the close button: the circle is the wrapper's border and the
   "x" is its ::before/::after bars, so colour those, not the <a> inside. */
.elementor-menu-cart__product-remove {
  border-color: var(--nfu-orange) !important;
  transition: background-color var(--nfu-ease), border-color var(--nfu-ease);
}
.elementor-menu-cart__product-remove::before,
.elementor-menu-cart__product-remove::after {
  background-color: var(--nfu-orange) !important;
  transition: background-color var(--nfu-ease);
}
.elementor-menu-cart__product-remove:hover {
  background-color: rgba(245, 130, 32, .12) !important;
  border-color: var(--nfu-orange-dark) !important;
}
.elementor-menu-cart__product-remove:hover::before,
.elementor-menu-cart__product-remove:hover::after {
  background-color: var(--nfu-orange-dark) !important;
}
.elementor-menu-cart__product-remove a,
.elementor-menu-cart__product .remove_from_cart_button {
  color: var(--nfu-orange) !important;
  background: transparent !important;
}

/* Subtotal */
.elementor-menu-cart__subtotal {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 20px 0 18px !important;
  border-top: 1px solid var(--nfu-line) !important;
  border-bottom: 0 !important;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  color: var(--nfu-purple);
}
.elementor-menu-cart__subtotal strong { font-weight: 600; }
.elementor-menu-cart__subtotal .amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--nfu-ink);
  white-space: nowrap;
}

/* Footer buttons */
.elementor-menu-cart__footer-buttons {
  flex: 0 0 auto;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.elementor-menu-cart__footer-buttons .elementor-button {
  border-radius: var(--nfu-radius-sm) !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  text-align: center;
  border: 1px solid transparent;
  transition: all var(--nfu-ease);
}
.elementor-menu-cart__footer-buttons .elementor-button--view-cart {
  background: var(--nfu-surface) !important;
  color: var(--nfu-purple) !important;
  border-color: var(--nfu-line) !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--view-cart:hover {
  background: var(--nfu-surface-alt) !important;
  border-color: var(--nfu-purple) !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--checkout {
  background: var(--nfu-orange) !important;
  color: #fff !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--checkout:hover {
  background: var(--nfu-orange-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 130, 32, .35);
}

/* Empty state */
.elementor-menu-cart__empty-message {
  padding: 48px 0 !important;
  text-align: center;
  color: var(--nfu-muted);
  font-size: 15px;
}

@media (max-width: 480px) {
  .elementor-menu-cart__main { padding: 22px 18px !important; }
  .elementor-menu-cart__footer-buttons { grid-template-columns: 1fr; }
  .elementor-menu-cart__product-image { width: 56px !important; }
  .elementor-menu-cart__product-image img { height: 56px; }
}


/* =========================================================
   3. SHARED — heading + block alignment (cart AND checkout)
   ========================================================= */

/* Alignment fix — both blocks carry `alignwide`, which pulls them 80px left
   and right, but their width stays pinned to the container width, so instead
   of widening they just shift off-axis and stop lining up with the H1.
   Neutralise the pull and let them fill the content column. */
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide,
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: auto !important;
  max-width: 100% !important;
}

/* One heading treatment for both pages */
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout h1.entry-title {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}
body.woocommerce-cart .page-header,
body.woocommerce-checkout .page-header { padding-top: 40px; }

@media (max-width: 782px) {
  body.woocommerce-cart h1.entry-title,
  body.woocommerce-checkout h1.entry-title { font-size: 26px; }
  body.woocommerce-cart .page-header,
  body.woocommerce-checkout .page-header { padding-top: 24px; }
}

/* Nothing in either block may push the page sideways */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout { overflow-x: clip; }

/* Grid/flex children need this or long words force the column wider */
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar { min-width: 0; }


/* =========================================================
   4. CART PAGE  (/handlekurv/)
   ========================================================= */

/* --- Line items table ---
   Transparent body so the page colour shows through; only the frame and the
   header strip are drawn. `!important` on background/border because this file
   loads before the WooCommerce Blocks stylesheets, so plain declarations lose
   the cascade to Woo's own. */
body.woocommerce-cart .wc-block-cart-items {
  background: transparent !important;
  border: 1px solid var(--nfu-line) !important;
  border-top: 0 !important;          /* no rule above the PRODUKT/TOTALT strip */
  border-radius: var(--nfu-radius);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 100%;
}
body.woocommerce-cart .wc-block-cart-items__header {
  background: var(--nfu-surface-alt) !important;
}
body.woocommerce-cart .wc-block-cart-items__header th {
  /* Woo puts a grey rule on the cell, which doubles up with the card's own
     top border. Only the bottom divider should show. */
  border-top: 0 !important;
  border-bottom: 1px solid var(--nfu-line) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nfu-muted);
  padding-top: 14px;
  padding-bottom: 14px;
}
body.woocommerce-cart .wc-block-cart-items__row td {
  border-bottom: 1px solid var(--nfu-line-soft) !important;
}
body.woocommerce-cart .wc-block-cart-items__row:last-child td { border-bottom: 0 !important; }

body.woocommerce-cart .wc-block-cart-item__image img {
  border: 1px solid var(--nfu-line);
  border-radius: var(--nfu-radius-sm);
  background: var(--nfu-surface-alt);
  object-fit: contain;
  padding: 4px;
}

body.woocommerce-cart .wc-block-components-product-name {
  font-size: 17px !important;
  font-weight: 600;
  color: var(--nfu-purple) !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  transition: color var(--nfu-ease);
}
body.woocommerce-cart .wc-block-components-product-name:hover { color: var(--nfu-orange) !important; }

body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-cart-item__prices {
  color: var(--nfu-muted);
  font-size: 14px;
}
body.woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-components-product-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--nfu-ink);
}

/* Quantity stepper */
body.woocommerce-cart .wc-block-components-quantity-selector {
  border: 1px solid var(--nfu-line) !important;
  border-radius: 999px !important;
  overflow: hidden;
  max-width: 100%;
  background: var(--nfu-surface) !important;
}
body.woocommerce-cart .wc-block-components-quantity-selector::after { display: none !important; }
body.woocommerce-cart .wc-block-components-quantity-selector__button {
  color: var(--nfu-purple) !important;
  font-size: 18px !important;
  font-weight: 500;
  transition: background var(--nfu-ease), color var(--nfu-ease);
}
body.woocommerce-cart .wc-block-components-quantity-selector__button:hover:not(:disabled) {
  background: var(--nfu-surface-alt) !important;
  color: var(--nfu-orange) !important;
}
body.woocommerce-cart .wc-block-components-quantity-selector__input {
  font-weight: 600;
  color: var(--nfu-ink) !important;
}

/* Remove link */
body.woocommerce-cart .wc-block-cart-item__remove-link {
  color: var(--nfu-muted) !important;
  font-size: 13px;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: color var(--nfu-ease), border-color var(--nfu-ease);
}
body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  color: #c0392b !important;
  border-bottom-color: currentColor;
}

/* --- Cart sidebar: summary + buttons as one white card --- */
body.woocommerce-cart .wc-block-cart__sidebar {
  background: var(--nfu-surface) !important;
  border: 1px solid var(--nfu-line);
  border-radius: var(--nfu-radius);
  box-shadow: var(--nfu-shadow);
  padding: 8px 22px 22px;
}
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-proceed-to-checkout-block {
  padding-top: 4px;
}
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
  padding: 16px 0;
  border-top-color: var(--nfu-line-soft) !important;
}
body.woocommerce-cart .wc-block-components-totals-item__label { color: var(--nfu-muted); }
body.woocommerce-cart .wc-block-components-totals-item__value { color: var(--nfu-ink); font-weight: 600; }
body.woocommerce-cart .wc-block-components-totals-footer-item { font-size: 18px; }
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--nfu-purple);
}

/* Coupon accordion */
body.woocommerce-cart .wc-block-components-panel__button {
  color: var(--nfu-purple) !important;
  font-weight: 600;
}
body.woocommerce-cart .wc-block-components-panel__button:hover { color: var(--nfu-orange) !important; }

/* Proceed to checkout button */
body.woocommerce-cart .wc-block-cart__submit-button {
  background: var(--nfu-purple) !important;
  color: #fff !important;
  border-radius: var(--nfu-radius-sm) !important;
  padding: 16px 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all var(--nfu-ease);
}
body.woocommerce-cart .wc-block-cart__submit-button:hover {
  background: var(--nfu-purple-soft) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(41, 34, 66, .25);
}

/* Empty cart */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block { text-align: center; padding: 40px 0 64px; }

/* --- Two-column (wide) layout only ---
   Woo switches this block to a stacked grid below a 700px CONTAINER width.
   Horizontal cell padding forced at narrow widths overflows that grid and
   pushes the row off-screen, so the insets live here. */
@container (min-width: 700px) {
  body.woocommerce-cart .wc-block-cart-items__header th {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.woocommerce-cart .wc-block-cart-items__row td {
    padding: 22px 18px !important;
    vertical-align: top;
  }
  body.woocommerce-cart .wc-block-components-quantity-selector { min-width: 118px; }
}

/* --- Stacked layout: tablet + phone --- */
@container (max-width: 699px) {
  /* Inset the row itself, not its cells — Woo turns the row into a grid here
     and per-cell padding blows the track widths past the container. */
  body.woocommerce-cart .wc-block-cart-items__row {
    padding: 18px 14px !important;
    box-sizing: border-box;
  }
  body.woocommerce-cart .wc-block-cart__sidebar {
    margin-top: 24px;
    padding: 4px 16px 18px;
  }
  /* Woo hides the "Totalt i handlekurven" title here, which leaves the coupon
     row's divider stranded as a stray line across the top of the card. */
  body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-coupon-form-block {
    border-top: 0 !important;
  }
}

/* --- Phone: line total drops below the quantity stepper ---
   At this width the three-column row (image | product | total) has no room
   left for padding, and the price ends up jammed against the card edge. */
@container (max-width: 450px) {
  body.woocommerce-cart .wc-block-cart-items__row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    column-gap: 14px !important;
    row-gap: 0 !important;
  }
  body.woocommerce-cart .wc-block-cart-item__image {
    grid-area: auto !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 72px !important;
    padding: 0 !important;
  }
  body.woocommerce-cart .wc-block-cart-item__product {
    grid-area: auto !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 0 !important;
  }
  body.woocommerce-cart .wc-block-cart-item__total {
    grid-area: auto !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    padding: 10px 0 0 !important;
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
}


/* =========================================================
   5. CHECKOUT PAGE  (/kassen/)
   Layout left untouched — targeted fixes only
   ========================================================= */

/* 5.1  "Ordresammendrag" box → white card, with more padding at the top */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  background: var(--nfu-surface) !important;
  border: 1px solid var(--nfu-line);
  border-radius: var(--nfu-radius);
  box-shadow: var(--nfu-shadow);
  padding: 28px 24px 22px;
}

/* No stray rule across the top of the card. Woo renders this summary two
   different ways (plain heading when wide, collapsible panel when narrow) and
   both carry a top border that reads as a line floating above the title. */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block > *:first-child,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-step__heading,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .checkout-order-summary-block-fill {
/*   border-top: 0 !important; */
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title {
  margin-top: 0;
  padding-top: 20px;
}
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--nfu-purple);
}
body.woocommerce-checkout .wc-block-components-totals-wrapper {
  padding-left: 0;
  padding-right: 0;
  border-top-color: var(--nfu-line-soft) !important;
}
body.woocommerce-checkout .wc-block-components-totals-wrapper:first-of-type { border-top: 0 !important; }
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--nfu-purple);
}

/* 5.2  Extra breathing room above the form */
body.woocommerce-checkout .wp-block-woocommerce-checkout { padding-top: 8px; }

/* Anchor links / validation scroll shouldn't land under the fixed header */
body.woocommerce-checkout .wc-block-checkout {
  scroll-padding-top: calc(var(--nfu-header-h) + 20px);
}

/* Fields must never widen their column */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-address-form input { max-width: 100%; }

/* 5.3  Sticky sidebar was sliding under the fixed Elementor header.
        Offset it by the header height (+ WP admin bar when present) — but
        ONLY while the sidebar is actually beside the form. Woo drops to a
        single column below a 700px container width, where sticky is wrong. */
@container (min-width: 700px) {
  body.woocommerce-checkout .wc-block-checkout__sidebar.is-sticky {
    top: calc(var(--nfu-header-h) + var(--nfu-sticky-gap)) !important;
    /* keep it scrollable if the summary is taller than the viewport */
    max-height: calc(100vh - var(--nfu-header-h) - (var(--nfu-sticky-gap) * 2));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--nfu-line) transparent;
  }
  body.admin-bar.woocommerce-checkout .wc-block-checkout__sidebar.is-sticky {
    top: calc(var(--nfu-header-h) + var(--nfu-sticky-gap) + 32px) !important;
    max-height: calc(100vh - var(--nfu-header-h) - 32px - (var(--nfu-sticky-gap) * 2));
  }
}

/* --- Stacked layout: tablet + phone --- */
@container (max-width: 699px) {
  body.woocommerce-checkout .wc-block-checkout__sidebar.is-sticky {
    position: static !important;
    max-height: none;
    overflow: visible;
  }
  body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
    padding: 20px 16px 16px;
    margin-bottom: 20px;
  }
  body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
    font-size: 17px;
  }
  body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 20px;
  }
}

/* 5.4  Nicer hover on the Vipps "Kjøp nå" express button.
        The stock hover fills the wrapper with a hard magenta block (#c36) —
        this removes that, then adds a lift + warm glow instead.
        The button itself lives in shadow DOM, so the effect is applied to
        its wrapper link; drop-shadow follows the real pill shape. */
.vipps-express-container {
  display: flex;
  justify-content: center;
}

/* Kill the stock magenta box/border on the custom element */
a.vipps-express-checkout vipps-mobilepay-button,
a.vipps-express-checkout:hover vipps-mobilepay-button,
a.vipps-express-checkout:focus vipps-mobilepay-button {
  display: block;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

a.vipps-express-checkout {
  display: inline-block !important;
  max-width: 100%;
  line-height: 0;
  border-radius: 8px;
  outline: none;
  text-decoration: none !important;
  transition: transform var(--nfu-ease), filter var(--nfu-ease);
  will-change: transform, filter;
}

a.vipps-express-checkout:hover {
  transform: translateY(-2px);
  filter: saturate(1.25) brightness(.97)
          drop-shadow(0 8px 16px rgba(255, 91, 45, .42));
}

a.vipps-express-checkout:active {
  transform: translateY(0);
  filter: saturate(1.15) brightness(.93)
          drop-shadow(0 3px 7px rgba(255, 91, 45, .32));
  transition-duration: .06s;
}

a.vipps-express-checkout:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--nfu-orange);
}

@media (prefers-reduced-motion: reduce) {
  a.vipps-express-checkout,
  a.vipps-express-checkout:hover,
  a.vipps-express-checkout:active { transform: none; }
}


/* =========================================================
   6. GLOBAL — small-screen page gutters
   Site-wide (header, footer, main), not just cart/checkout.
   Hello Elementor sets `padding-inline: 10px` on this whole group below
   575px, which is tight and also double-indents the H1 (the title is in the
   same list AND sits inside .site-main). This widens the page gutter to 20px
   and zeroes the title's own inline padding so it lines up with the content
   beneath it. No !important needed — the child style.css loads after
   hello-elementor/assets/css/theme.css, so source order wins.
   ========================================================= */

@media (max-width: 575px) {
  .site-footer .footer-inner,
  .site-footer:not(.dynamic-footer),
  .site-header .header-inner,
  .site-header:not(.dynamic-header),
  body:not([class*=elementor-page-]) .site-main {
    padding-inline-end: 20px;
    padding-inline-start: 20px;
  }
}

@media (max-width: 575px) {
  .page-header .entry-title {
    padding-inline-end: 0;
    padding-inline-start: 0;
  }
}