/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0.2
Author:	UpSolution
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/

/*Add your own styles here:*/

/* Homepage content-carousel hero cards */
.hero-carousel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 520px;
    height: 520px;
    padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 52px);
    color: #ffffff;
    overflow: hidden;
    isolation: isolate;
    row-gap: 18px;
    transition: transform 0.35s ease;
}
.hero-carousel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000000;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.hero-carousel-card > * {
    position: relative;
    z-index: 1;
}
.hero-carousel__title {
    margin-bottom: 0;
    transition: transform 0.3s ease;
}
.hero-carousel__title .w-text-value {
    display: block;
    font-size: clamp(32px, 3vw, 56px);
    line-height: 1.05;
}
.hero-carousel__body,
.hero-carousel__btn {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
    pointer-events: none;
}
.hero-carousel-card:hover::after,
.hero-carousel-card:focus-within::after {
    opacity: 0.5;
}
.hero-carousel-card:hover .hero-carousel__title,
.hero-carousel-card:focus-within .hero-carousel__title {
    transform: translateY(-12px);
}
.hero-carousel-card:hover .hero-carousel__body,
.hero-carousel-card:hover .hero-carousel__btn,
.hero-carousel-card:focus-within .hero-carousel__body,
.hero-carousel-card:focus-within .hero-carousel__btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Touch devices: keep content visible */
@media (max-width: 1024px) {
    .hero-carousel-card {
        min-height: 360px;
        height: auto;
    }
    .hero-carousel__body,
    .hero-carousel__btn {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .hero-carousel-card::after {
        opacity: 0.35;
    }
    .hero-carousel-card:hover .hero-carousel__title,
    .hero-carousel-card:focus-within .hero-carousel__title {
        transform: none;
    }
}





/* Mini cart drawer styling */
.w-cart-content {
  background: #fdf8ef;
  padding: 44px 42px 32px;
}

.l-subheader.at_middle .w-cart-content,
.w-header .w-cart-content,
.w-cart.type_aside .w-cart-content {
  width: min(540px, 96vw) !important;
  max-width: min(540px, 96vw) !important;
  margin-left: auto;
  margin-right: 0;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
}

/* heading */
.w-cart-content .widget_shopping_cart_content::before {
  content: "DIN HANDLEKURV";
  display: block;
  margin: 0 0 28px;
  color: #111;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

/* close button */
.w-cart-content .w-cart-closer {
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  opacity: 1;
  font-size: 0;
}

.w-cart-content .w-cart-closer::before,
.w-cart-content .w-cart-closer::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 2px;
  width: 2px;
  height: 26px;
  background: #111;
  border-radius: 2px;
}

.w-cart-content .w-cart-closer::before {
  transform: rotate(45deg);
}

.w-cart-content .w-cart-closer::after {
  transform: rotate(-45deg);
}

.w-cart-content .widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.w-cart-content .woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
}

.w-cart-content .woocommerce-mini-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  grid-template-areas:
    "image title remove"
    "image meta remove";
  column-gap: 18px;
  row-gap: 10px;
  align-items: start;
  margin: 0;
  padding: 0 0 20px 0;
  border: 0;
  border-bottom: 1px solid #eadfcd;
}

.w-cart-content .woocommerce-mini-cart-item .remove {
  grid-area: remove;
  position: static;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  text-align: center;
  color: #7a6d5e !important;
  background: transparent;
  border-radius: 0;
  text-decoration: none;
  justify-self: end;
}

.w-cart-content .woocommerce-mini-cart-item > a:not(.remove) {
  display: contents;
  color: #1a1a1a;
  text-decoration: none;
  font-size: initial;
}

.w-cart-content .woocommerce-mini-cart-item > a:not(.remove) img {
  grid-area: image;
  width: 92px !important;
  height: 92px !important;
  min-width: 92px;
  object-fit: cover;
  display: block;
  float: none !important;
  margin: 0 !important;
  border-radius: 4px;
}

.w-cart-content .woocommerce-mini-cart-item > a:not(.remove) {
  grid-area: title;
  align-self: start;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.w-cart-content .woocommerce-mini-cart-item .quantity {
  grid-area: meta;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.w-cart-content .woocommerce-mini-cart-item .quantity .amount {
  font-weight: 700;
  white-space: nowrap;
  margin-left: auto;
  order: 3;
}

.w-cart-content .woocommerce-mini-cart-item .quantity::before {
  content: "stk";
  order: 2;
  margin-left: -6px;
  color: #1a1a1a;
  font-weight: 400;
}

.w-cart-content .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding-top: 6px;
  color: #111;
  font-size: 18px;
  font-weight: 700;
}

.w-cart-content .woocommerce-mini-cart__total strong {
  font-weight: 700;
}

.w-cart-content .woocommerce-mini-cart__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 6px 0 0;
  align-items: start;
}

.w-cart-content .woocommerce-mini-cart__buttons > .button {
  align-self: start !important;
  margin: 0 !important;
  position: relative;
  z-index: 1;
}

.w-cart-content .woocommerce-mini-cart__buttons a.button {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  max-width: 100%;
  overflow: hidden;
}

.w-cart-content .woocommerce-mini-cart__buttons .button.checkout {
  justify-self: stretch;
}

.w-cart-content .woocommerce-mini-cart__buttons .button.checkout {
  position: static;
  top: auto;
}

.w-cart-content .woocommerce-mini-cart__buttons .button,
.w-cart-content .woocommerce-mini-cart__buttons .button:not(.checkout),
.w-cart-content .woocommerce-mini-cart__buttons .button.checkout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 54px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  box-shadow: none;
  white-space: nowrap;
}

.w-cart-content .woocommerce-mini-cart__buttons .button:not(.checkout) {
  background: #4a1f00;
  color: #fff;
}

.w-cart-content .woocommerce-mini-cart__buttons .button.checkout {
  background: #e47d36;
  color: #fff;
}

.w-cart-content .woocommerce-mini-cart__buttons .button:hover {
  opacity: 0.95;
}

.w-cart-content .widget,
.w-cart-content .widget_shopping_cart,
.w-cart-content .woocommerce-mini-cart.cart_list {
  margin-bottom: 0 !important;
}

@media (max-width: 767px) {
  .l-subheader.at_middle .w-cart-content,
  .w-header .w-cart-content,
  .w-cart.type_aside .w-cart-content {
    width: min(440px, 100vw) !important;
    max-width: min(440px, 100vw) !important;
  }

  .w-cart-content {
    padding: 34px 20px 20px;
  }

  .w-cart-content .widget_shopping_cart_content::before {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .w-cart-content .woocommerce-mini-cart-item {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    column-gap: 14px;
  }

  .w-cart-content .woocommerce-mini-cart-item > a:not(.remove) img {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px;
  }

  .w-cart-content .woocommerce-mini-cart__buttons {
    grid-template-columns: 1fr;
  }
}


/* Restrict mini-cart button click areas to actual buttons only */
.w-cart-content .woocommerce-mini-cart__buttons {
  position: relative;
  isolation: isolate;
}

.w-cart-content .woocommerce-mini-cart__buttons::before,
.w-cart-content .woocommerce-mini-cart__buttons::after,
.w-cart-content .woocommerce-mini-cart__buttons .button::before,
.w-cart-content .woocommerce-mini-cart__buttons .button::after {
  pointer-events: none !important;
}

.w-cart-content .woocommerce-mini-cart__buttons a.button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: 50px !important;
  max-height: 50px !important;
  position: relative !important;
  inset: auto !important;
}

.w-cart-content .woocommerce-mini-cart__buttons a.button.checkout {
  align-self: start !important;
}

.w-cart-content .woocommerce-mini-cart__buttons * {
  pointer-events: auto;
}


/* WooCommerce product gallery rounded corners */
.woocommerce div.product .woocommerce-product-gallery__image,
.woocommerce div.product .woocommerce-product-gallery__image img,
.woocommerce div.product .flex-control-thumbs li,
.woocommerce div.product .flex-control-thumbs img,
.wp-block-woocommerce-product-image-gallery img {
  border-radius: 10px;
  overflow: hidden;
}


/* WooCommerce product gallery rounded corners – precise slider selectors */
.w-post-elm.product_gallery .woocommerce-product-gallery .flex-viewport,
.w-post-elm.product_gallery .woocommerce-product-gallery .woocommerce-product-gallery__image,
.w-post-elm.product_gallery .woocommerce-product-gallery .woocommerce-product-gallery__image a,
.w-post-elm.product_gallery .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.w-post-elm.product_gallery .woocommerce-product-gallery .flex-control-thumbs li,
.w-post-elm.product_gallery .woocommerce-product-gallery .flex-control-thumbs li img {
  border-radius: 10px !important;
  overflow: hidden;
}

.w-post-elm.product_gallery .woocommerce-product-gallery .flex-control-thumbs li {
  overflow: hidden !important;
}


/* Product gallery arrows */
.w-post-elm.product_gallery .woocommerce-product-gallery {
  position: relative;
}

.w-post-elm.product_gallery .zdev-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  backdrop-filter: blur(4px);
}

.w-post-elm.product_gallery .zdev-gallery-arrow span {
  font-size: 28px;
  line-height: 1;
  position: relative;
  top: -1px;
}

.w-post-elm.product_gallery .zdev-gallery-arrow--prev {
  left: 14px;
}

.w-post-elm.product_gallery .zdev-gallery-arrow--next {
  right: 14px;
}

.w-post-elm.product_gallery .zdev-gallery-arrow:hover {
  background: rgba(255,255,255,0.96);
}

@media (max-width: 767px) {
  .w-post-elm.product_gallery .zdev-gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .w-post-elm.product_gallery .zdev-gallery-arrow--prev {
    left: 10px;
  }

  .w-post-elm.product_gallery .zdev-gallery-arrow--next {
    right: 10px;
  }
}


/* Center gallery arrows vertically on the main image viewport */
.w-post-elm.product_gallery .woocommerce-product-gallery .flex-viewport {
  position: relative;
}

.w-post-elm.product_gallery .woocommerce-product-gallery .flex-viewport + .zdev-gallery-arrow,
.w-post-elm.product_gallery .woocommerce-product-gallery .zdev-gallery-arrow {
  top: calc(50% - 44px) !important;
  transform: translateY(-50%);
}


/* Mini-cart: hide multiplication sign in quantity line */
.w-cart-content .woocommerce-mini-cart-item .quantity {
  font-size: 0;
}

.w-cart-content .woocommerce-mini-cart-item .quantity > * {
  font-size: 16px;
}

.w-cart-content .woocommerce-mini-cart-item .quantity .amount {
  font-size: 16px;
}

/* Cart block: style proceed-to-checkout button like theme buttons */
.wc-block-cart__submit .wc-block-components-button,
.wc-block-cart__submit .wc-block-components-button.wp-element-button,
.wc-block-cart__submit .wc-block-cart__submit-button.contained {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 50px;
  padding: 0 1.8rem !important;
  background: #e47d36 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  transition: opacity .2s ease, background-color .2s ease;
}

.wc-block-cart__submit .wc-block-components-button:hover,
.wc-block-cart__submit .wc-block-components-button:focus,
.wc-block-cart__submit .wc-block-components-button.wp-element-button:hover,
.wc-block-cart__submit .wc-block-components-button.wp-element-button:focus,
.wc-block-cart__submit .wc-block-cart__submit-button.contained:hover,
.wc-block-cart__submit .wc-block-cart__submit-button.contained:focus {
  background: #e47d36 !important;
  color: #ffffff !important;
  opacity: 0.95;
}

.wc-block-cart__submit .wc-block-components-button__text {
  color: inherit;
  font-weight: inherit;
}

/* Cart page: increase visual scale for products/details, slightly reduce checkout button */
.wc-block-cart {
  --zdev-cart-image-size: 180px;
}

.wc-block-cart .wc-block-cart-items th span {
  font-size: 18px;
}

.wc-block-cart .wc-block-cart-items__row {
  font-size: 18px;
}

.wc-block-cart .wc-block-cart-item__image img {
  width: var(--zdev-cart-image-size) !important;
  max-width: var(--zdev-cart-image-size) !important;
  height: auto !important;
  border-radius: 10px;
}

.wc-block-cart .wc-block-components-product-name {
  display: inline-block;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 8px;
}

.wc-block-cart .wc-block-cart-item__prices,
.wc-block-cart .wc-block-components-product-price__value,
.wc-block-cart .wc-block-cart-item__total .wc-block-formatted-money-amount,
.wc-block-cart .wc-block-components-totals-item__value {
  font-size: 20px !important;
  line-height: 1.2;
  font-weight: 700;
}

.wc-block-cart .wc-block-components-product-metadata,
.wc-block-cart .wc-block-components-product-metadata__description,
.wc-block-cart .wc-block-components-product-metadata__description p {
  font-size: 18px;
  line-height: 1.55;
}

.wc-block-cart .wc-block-components-product-metadata__description p {
  margin-bottom: 0.7em;
}

.wc-block-cart .wc-block-components-quantity-selector {
  min-height: 48px;
}

.wc-block-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  font-size: 18px;
  height: 48px;
}

.wc-block-cart .wc-block-cart-item__remove-link {
  font-size: 16px;
}

.wc-block-cart__submit .wc-block-components-button,
.wc-block-cart__submit .wc-block-components-button.wp-element-button,
.wc-block-cart__submit .wc-block-cart__submit-button.contained {
  min-height: 46px;
  padding: 0 1.4rem !important;
  font-size: 15px;
}

@media (max-width: 1024px) {
  .wc-block-cart {
    --zdev-cart-image-size: 140px;
  }

  .wc-block-cart .wc-block-components-product-name {
    font-size: 28px;
  }

  .wc-block-cart .wc-block-cart-item__prices,
  .wc-block-cart .wc-block-components-product-price__value,
  .wc-block-cart .wc-block-cart-item__total .wc-block-formatted-money-amount,
  .wc-block-cart .wc-block-components-totals-item__value {
    font-size: 21px !important;
  }
}

@media (max-width: 767px) {
  .wc-block-cart {
    --zdev-cart-image-size: 110px;
  }

  .wc-block-cart .wc-block-cart-items th span {
    font-size: 15px;
  }

  .wc-block-cart .wc-block-components-product-name {
    font-size: 22px;
  }

  .wc-block-cart .wc-block-cart-item__prices,
  .wc-block-cart .wc-block-components-product-price__value,
  .wc-block-cart .wc-block-cart-item__total .wc-block-formatted-money-amount,
  .wc-block-cart .wc-block-components-totals-item__value {
    font-size: 16px !important;
  }

  .wc-block-cart .wc-block-components-product-metadata,
  .wc-block-cart .wc-block-components-product-metadata__description,
  .wc-block-cart .wc-block-components-product-metadata__description p {
    font-size: 16px;
  }
}

/* Cart page refinement: stronger sizing for WooCommerce cart block */
.wc-block-cart .wc-block-components-sidebar-layout {
  column-gap: 32px;
}

.wc-block-cart .wc-block-cart-items td,
.wc-block-cart .wc-block-cart-items th {
  padding-top: 20px;
  padding-bottom: 20px;
}

.wc-block-cart .wc-block-cart-item__image {
  width: 175px;
}

.wc-block-cart .wc-block-cart-item__image img {
  width: 175px !important;
  max-width: 175px !important;
}

.wc-block-cart .wc-block-cart-item__product {
  padding-right: 12px;
}

.wc-block-cart .wc-block-components-product-name {
  font-size: 30px !important;
  line-height: 1.1 !important;
  margin-bottom: 8px;
}

.wc-block-cart .wc-block-cart-item__prices,
.wc-block-cart .wc-block-components-product-price__value {
  font-size: 22px !important;
}

.wc-block-cart .wc-block-components-product-metadata__description,
.wc-block-cart .wc-block-components-product-metadata__description p {
  font-size: 17px !important;
  line-height: 1.5 !important;
}

.wc-block-cart .wc-block-cart-item__quantity {
  margin-top: 10px;
}

.wc-block-cart .wc-block-components-quantity-selector {
  min-height: 48px;
}

.wc-block-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
.wc-block-cart .wc-block-components-quantity-selector__button {
  font-size: 16px;
  height: 48px;
}

.wc-block-cart .wc-block-cart-item__remove-link {
  width: 34px;
  height: 34px;
}

.wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price__value,
.wc-block-cart .wc-block-components-totals-item__value,
.wc-block-cart .wc-block-components-totals-footer-item-tax-value {
  font-size: 20px !important;
  font-weight: 700;
}

.wc-block-cart .wc-block-cart__totals-title,
.wc-block-cart .wc-block-components-totals-item__label {
  font-size: 20px !important;
  line-height: 1.3;
}

.wc-block-cart .wc-block-components-totals-item__description,
.wc-block-cart .wc-block-components-totals-item__description p,
.wc-block-cart .wc-block-components-totals-footer-item-tax {
  font-size: 15px !important;
}

.wc-block-cart__submit .wc-block-components-button,
.wc-block-cart__submit .wc-block-components-button.wp-element-button,
.wc-block-cart__submit .wc-block-cart__submit-button.contained {
  min-height: 44px;
  padding: 0 1.3rem !important;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .wc-block-cart .wc-block-cart-item__image,
  .wc-block-cart .wc-block-cart-item__image img {
    width: 145px !important;
    max-width: 145px !important;
  }

  .wc-block-cart .wc-block-components-product-name {
    font-size: 26px !important;
  }

  .wc-block-cart .wc-block-cart-item__prices,
  .wc-block-cart .wc-block-components-product-price__value,
  .wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price__value,
  .wc-block-cart .wc-block-components-totals-item__value,
  .wc-block-cart .wc-block-components-totals-footer-item-tax-value {
    font-size: 20px !important;
  }

  .wc-block-cart .wc-block-components-product-metadata__description,
  .wc-block-cart .wc-block-components-product-metadata__description p {
    font-size: 16px !important;
  }
}

@media (max-width: 767px) {
  .wc-block-cart .wc-block-cart-items td,
  .wc-block-cart .wc-block-cart-items th {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .wc-block-cart .wc-block-cart-item__image,
  .wc-block-cart .wc-block-cart-item__image img {
    width: 110px !important;
    max-width: 110px !important;
  }

  .wc-block-cart .wc-block-components-product-name {
    font-size: 20px !important;
  }

  .wc-block-cart .wc-block-cart-item__prices,
  .wc-block-cart .wc-block-components-product-price__value,
  .wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price__value,
  .wc-block-cart .wc-block-components-totals-item__value,
  .wc-block-cart .wc-block-components-totals-footer-item-tax-value {
    font-size: 16px !important;
  }

  .wc-block-cart .wc-block-components-product-metadata__description,
  .wc-block-cart .wc-block-components-product-metadata__description p,
  .wc-block-cart .wc-block-components-totals-item__label,
  .wc-block-cart .wc-block-cart__totals-title {
    font-size: 15px !important;
  }
}

/* Cart page fine-tuning */
.wc-block-cart .wc-block-components-product-name {
  font-size: 22px !important;
  line-height: 1.2 !important;
}

.wc-block-cart .wc-block-cart-items__header .wc-block-cart-items__header-image span {
  display: inline-block;
  color: transparent !important;
  position: relative;
}

.wc-block-cart .wc-block-cart-items__header .wc-block-cart-items__header-image span::before {
  content: "Produkter";
  color: inherit;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.17em;
  font-weight: 700;
  line-height: 1.3;
}

.wc-block-cart .wc-block-cart-items__header span,
.wc-block-cart .wc-block-cart__totals-title {
  font-size: 1.17em !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.wc-block-cart__submit .wc-block-components-button,
.wc-block-cart__submit .wc-block-components-button.wp-element-button,
.wc-block-cart__submit .wc-block-cart__submit-button.contained {
  font-size: 18px !important;
}

/* Cart page fixes: robust Products label + avoid duplicated visible price */
.wc-block-cart .wc-block-cart-items__header .wc-block-cart-items__header-image {
  position: relative;
}

.wc-block-cart .wc-block-cart-items__header .wc-block-cart-items__header-image span {
  opacity: 0 !important;
}

.wc-block-cart .wc-block-cart-items__header .wc-block-cart-items__header-image::after {
  content: "Produkter";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.17em;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
  opacity: 1 !important;
  pointer-events: none;
}

.wc-block-cart .wc-block-cart-item__prices {
  display: none !important;
}

/* Cart page mobile fix: prevent product text overlapping image */
@media (max-width: 767px) {
  .wc-block-cart .wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    grid-template-areas:
      "image product"
      "image total";
    column-gap: 14px;
    row-gap: 10px;
    align-items: start;
  }

  .wc-block-cart .wc-block-cart-item__image {
    grid-area: image;
    width: 96px !important;
    max-width: 96px !important;
  }

  .wc-block-cart .wc-block-cart-item__image img {
    width: 96px !important;
    max-width: 96px !important;
    display: block;
  }

  .wc-block-cart .wc-block-cart-item__product {
    grid-area: product;
    min-width: 0;
    padding-right: 0;
  }

  .wc-block-cart .wc-block-cart-item__total {
    grid-area: total;
    justify-self: start;
    text-align: left;
  }

  .wc-block-cart .wc-block-components-product-name {
    display: block;
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px;
    word-break: break-word;
  }

  .wc-block-cart .wc-block-components-product-metadata__description,
  .wc-block-cart .wc-block-components-product-metadata__description p {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .wc-block-cart .wc-block-cart-item__quantity {
    margin-top: 8px;
  }
}

/* Cart page mobile fix 2: force clean stacked content flow */
@media (max-width: 767px) {
  .wc-block-cart .wc-block-cart-item__wrap,
  .wc-block-cart .wc-block-cart-item__product > * {
    position: static !important;
    float: none !important;
    clear: both;
  }

  .wc-block-cart .wc-block-cart-item__wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
  }

  .wc-block-cart .wc-block-components-product-name {
    order: 1;
    width: 100%;
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere;
  }

  .wc-block-cart .wc-block-components-product-metadata,
  .wc-block-cart .wc-block-components-product-metadata__description {
    order: 2;
    width: 100%;
  }

  .wc-block-cart .wc-block-cart-item__quantity {
    order: 3;
    width: 100%;
  }

  .wc-block-cart .wc-block-cart-item__total {
    margin-top: 4px;
  }

  .wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }
}

/* Cart page mobile fix 3: explicit table-cell layout to stop overlap */
@media (max-width: 767px) {
  .wc-block-cart .wc-block-cart-items {
    table-layout: fixed;
  }

  .wc-block-cart .wc-block-cart-items__row {
    display: table-row !important;
  }

  .wc-block-cart .wc-block-cart-item__image {
    display: table-cell !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    vertical-align: top;
    padding-right: 12px !important;
  }

  .wc-block-cart .wc-block-cart-item__image img {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: auto !important;
    display: block;
  }

  .wc-block-cart .wc-block-cart-item__product {
    display: table-cell !important;
    width: auto !important;
    vertical-align: top;
    min-width: 0;
    overflow: hidden;
    padding-right: 8px !important;
  }

  .wc-block-cart .wc-block-cart-item__total {
    display: table-cell !important;
    width: 78px !important;
    min-width: 78px !important;
    vertical-align: top;
    text-align: right !important;
    white-space: normal !important;
  }

  .wc-block-cart .wc-block-cart-item__wrap {
    display: block !important;
  }

  .wc-block-cart .wc-block-components-product-name,
  .wc-block-cart .wc-block-components-product-metadata,
  .wc-block-cart .wc-block-components-product-metadata__description,
  .wc-block-cart .wc-block-cart-item__quantity {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .wc-block-cart .wc-block-components-product-name {
    font-size: 17px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }

  .wc-block-cart .wc-block-components-product-metadata__description,
  .wc-block-cart .wc-block-components-product-metadata__description p {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
    display: inline-block;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }
}

/* Mini-cart quantity: show count and stk again */
.w-cart-content .woocommerce-mini-cart-item .quantity {
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.w-cart-content .woocommerce-mini-cart-item .quantity .woocommerce-Price-amount {
  font-size: 16px !important;
}

/* Checkout page polish – round 1 */
.woocommerce-checkout .wp-block-woocommerce-cart,
.woocommerce-checkout .wp-block-woocommerce-checkout,
.woocommerce-checkout .wc-block-checkout,
.woocommerce-checkout .wc-block-components-sidebar-layout {
  color: #1f1a17;
}

.woocommerce-checkout .wc-block-components-sidebar-layout {
  gap: 48px;
  align-items: start;
}

.woocommerce-checkout .wc-block-components-main,
.woocommerce-checkout .wc-block-checkout__main {
  padding-right: 10px;
}

.woocommerce-checkout .wc-block-checkout__sidebar,
.woocommerce-checkout .wc-block-components-sidebar {
  background: #f6ebdf;
  border-radius: 14px;
  padding: 28px 26px;
  box-sizing: border-box;
}

.woocommerce-checkout .wc-block-checkout__sidebar *,
.woocommerce-checkout .wc-block-components-sidebar * {
  color: #1f1a17;
}

.woocommerce-checkout .wc-block-components-title,
.woocommerce-checkout .wc-block-checkout__totals-title,
.woocommerce-checkout .wc-block-components-checkout-step__heading h2,
.woocommerce-checkout .wc-block-components-checkout-step__title,
.woocommerce-checkout h1,
.woocommerce-checkout h2,
.woocommerce-checkout h3 {
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.woocommerce-checkout .wc-block-components-checkout-step__description,
.woocommerce-checkout .wc-block-components-text-input label,
.woocommerce-checkout .wc-block-components-combobox-control label,
.woocommerce-checkout .wc-block-components-textarea label,
.woocommerce-checkout .wc-block-components-checkbox label,
.woocommerce-checkout .wc-block-components-radio-control__option-label,
.woocommerce-checkout .wc-block-components-totals-item__label,
.woocommerce-checkout .wc-block-formatted-money-amount,
.woocommerce-checkout .wc-block-components-product-name {
  font-size: 16px;
  line-height: 1.45;
}

.woocommerce-checkout .wc-block-components-text-input input,
.woocommerce-checkout .wc-block-components-text-input select,
.woocommerce-checkout .wc-block-components-combobox-control .components-combobox-control__input,
.woocommerce-checkout .wc-block-components-textarea textarea,
.woocommerce-checkout .wc-block-components-address-form input,
.woocommerce-checkout .wc-block-components-address-form select,
.woocommerce-checkout .haugli-pickup-panel input,
.woocommerce-checkout .haugli-pickup-panel select {
  min-height: 52px;
  border-radius: 10px !important;
  border: 1px solid #d9c9b8 !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 12px 14px !important;
}

.woocommerce-checkout .wc-block-components-textarea textarea {
  min-height: 120px;
}

.woocommerce-checkout .haugli-pickup-panel-wrap {
  margin-bottom: 28px;
}

.woocommerce-checkout .haugli-pickup-panel {
  border: 1px solid #e4d4c4 !important;
  border-radius: 14px !important;
  background: #fcf6f0 !important;
  padding: 24px !important;
  box-shadow: none !important;
}

.woocommerce-checkout .haugli-pickup-panel h3 {
  margin-bottom: 8px !important;
}

.woocommerce-checkout .haugli-pickup-panel p {
  margin-bottom: 14px;
}

.woocommerce-checkout .haugli-pickup-reasons small,
.woocommerce-checkout .haugli-pickup-status,
.woocommerce-checkout .haugli-pickup-required {
  font-size: 13px !important;
  line-height: 1.5;
}

.woocommerce-checkout .wc-block-components-totals-item,
.woocommerce-checkout .wc-block-components-order-summary-item {
  padding-top: 10px;
  padding-bottom: 10px;
}

.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-formatted-money-amount,
.woocommerce-checkout .wc-block-components-totals-item__value {
  font-size: 20px !important;
  font-weight: 700;
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.woocommerce-checkout .wc-block-components-button,
.woocommerce-checkout .wp-element-button {
  min-height: 52px;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

@media (max-width: 1024px) {
  .woocommerce-checkout .wc-block-components-sidebar-layout {
    gap: 26px;
  }

  .woocommerce-checkout .wc-block-checkout__sidebar,
  .woocommerce-checkout .wc-block-components-sidebar {
    padding: 22px 18px;
  }
}

@media (max-width: 767px) {
  .woocommerce-checkout .wc-block-checkout__sidebar,
  .woocommerce-checkout .wc-block-components-sidebar {
    border-radius: 12px;
    padding: 18px 16px;
  }

  .woocommerce-checkout .wc-block-components-title,
  .woocommerce-checkout .wc-block-checkout__totals-title,
  .woocommerce-checkout .wc-block-components-checkout-step__heading h2,
  .woocommerce-checkout .wc-block-components-checkout-step__title,
  .woocommerce-checkout h1,
  .woocommerce-checkout h2,
  .woocommerce-checkout h3 {
    font-size: 22px !important;
  }

  .woocommerce-checkout .haugli-pickup-panel {
    padding: 18px !important;
  }
}

/* Checkout page polish – round 2 */
.woocommerce-checkout .wc-block-checkout__main::before,
.woocommerce-checkout .wc-block-components-main::before {
  content: "Kasse";
  display: block;
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  color: #1f1a17;
}

.woocommerce-checkout .wc-block-checkout__main::after,
.woocommerce-checkout .wc-block-components-main::after {
  content: "";
  display: block;
  width: 130px;
  height: 3px;
  background: #e47d36;
  border-radius: 999px;
  margin: 0 0 30px;
}

.woocommerce-checkout .haugli-pickup-panel-wrap {
  order: -2;
}

.woocommerce-checkout .haugli-pickup-panel {
  background: transparent !important;
  border: 0 !important;
  padding: 0 0 10px !important;
  margin: 0 0 22px !important;
}

.woocommerce-checkout .haugli-pickup-panel h3,
.woocommerce-checkout .haugli-pickup-panel > p:first-of-type,
body.woocommerce-checkout .haugli-pickup-panel .haugli-pickup-status,
body.woocommerce-checkout .haugli-pickup-panel .haugli-pickup-required,
body.woocommerce-checkout .haugli-pickup-panel .haugli-pickup-reasons {
  display: none !important;
}

.woocommerce-checkout .haugli-pickup-panel > p {
  display: inline-block;
  vertical-align: top;
  width: auto;
  min-width: 200px;
  margin: 0 14px 12px 0;
}

.woocommerce-checkout .haugli-pickup-panel label strong {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.woocommerce-checkout .wc-block-components-checkout-step__heading h2,
.woocommerce-checkout .wc-block-components-checkout-step__title,
.woocommerce-checkout .wc-block-components-title,
.woocommerce-checkout .wc-block-checkout__totals-title,
.woocommerce-checkout .haugli-pickup-panel label strong {
  font-family: 'Open Sans', sans-serif !important;
}

.woocommerce-checkout .wc-block-components-checkout-step__heading h2,
.woocommerce-checkout .wc-block-components-checkout-step__title,
.woocommerce-checkout .wc-block-components-title {
  font-size: 26px !important;
  font-weight: 700 !important;
}

.woocommerce-checkout .wc-block-components-checkout-step__description {
  display: none !important;
}

.woocommerce-checkout .wc-block-components-address-form,
.woocommerce-checkout .wc-block-components-checkout-step {
  background: transparent !important;
}

/* Hide shipping/pickup method block - pickup is chosen via custom selector */
.woocommerce-checkout .wc-block-components-shipping-rates-control,
.woocommerce-checkout .wc-block-checkout__shipping-method,
.woocommerce-checkout .wc-block-checkout__shipping-fields,
.woocommerce-checkout .wc-block-components-checkout-step--shipping-method,
.woocommerce-checkout .wc-block-components-checkout-step--shipping-methods {
  display: none !important;
}

/* Merge contact + address feeling */
.woocommerce-checkout .wc-block-components-checkout-step {
  padding-top: 0;
  margin-top: 0;
  border-top: 0 !important;
}

.woocommerce-checkout .wc-block-components-checkout-step + .wc-block-components-checkout-step {
  margin-top: 18px;
  padding-top: 18px;
}

/* Right summary box */
.woocommerce-checkout .wc-block-checkout__sidebar,
.woocommerce-checkout .wc-block-components-sidebar {
  background: #f1df9f !important;
  border-radius: 16px;
  padding: 30px 28px;
}

.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-image,
.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-product-image,
.woocommerce-checkout .wc-block-checkout__sidebar img,
.woocommerce-checkout .wc-block-components-sidebar img {
  display: none !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__image {
  display: none !important;
}

.woocommerce-checkout .wc-block-components-product-name {
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 600;
}

.woocommerce-checkout .wc-block-checkout__totals-title,
.woocommerce-checkout .wc-block-components-title {
  font-size: 24px !important;
}

@media (max-width: 1024px) {
  .woocommerce-checkout .wc-block-checkout__main::before,
  .woocommerce-checkout .wc-block-components-main::before {
    font-size: 36px;
  }

  .woocommerce-checkout .haugli-pickup-panel > p {
    min-width: 180px;
  }
}

@media (max-width: 767px) {
  .woocommerce-checkout .wc-block-checkout__main::before,
  .woocommerce-checkout .wc-block-components-main::before {
    font-size: 30px;
  }

  .woocommerce-checkout .wc-block-checkout__main::after,
  .woocommerce-checkout .wc-block-components-main::after {
    margin-bottom: 22px;
  }

  .woocommerce-checkout .haugli-pickup-panel > p {
    display: block;
    min-width: 0;
    margin-right: 0;
  }
}

/* Checkout page polish – round 3 (structure-driven) */
.woocommerce-checkout .l-section.height_medium {
  padding-top: 0 !important;
}

.woocommerce-checkout .haugli-pickup-panel-wrap {
  margin: 0 0 22px !important;
}

.woocommerce-checkout .haugli-pickup-panel {
  max-width: 460px;
}

.woocommerce-checkout .haugli-pickup-panel > p {
  display: block !important;
  min-width: 0 !important;
  margin: 0 0 12px !important;
}

.woocommerce-checkout .haugli-pickup-panel label {
  display: block;
  margin-bottom: 6px;
}

.woocommerce-checkout .haugli-pickup-panel label strong {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5a493d;
}

.woocommerce-checkout .haugli-pickup-panel select,
.woocommerce-checkout .haugli-pickup-panel input {
  width: 100% !important;
  max-width: 460px;
}

.woocommerce-checkout .haugli-pickup-required {
  margin-top: 2px !important;
  margin-bottom: 12px !important;
}

.woocommerce-checkout .wc-block-components-main,
.woocommerce-checkout .wc-block-checkout__main {
  max-width: 760px;
}

.woocommerce-checkout .wc-block-components-checkout-step {
  margin-bottom: 28px;
}

.woocommerce-checkout .wc-block-components-checkout-step__heading,
.woocommerce-checkout .wc-block-components-checkout-step__container {
  max-width: 620px;
}

.woocommerce-checkout .wc-block-components-checkout-step__heading h2,
.woocommerce-checkout .wc-block-components-checkout-step__title {
  margin-bottom: 14px !important;
}

.woocommerce-checkout .wc-block-components-address-form {
  max-width: 620px;
}

.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input,
.woocommerce-checkout .wc-block-components-address-form .wc-block-components-combobox-control,
.woocommerce-checkout .wc-block-components-address-form .wc-block-components-textarea {
  margin-bottom: 14px;
}

/* Give summary column more presence */
.woocommerce-checkout .wc-block-checkout__sidebar,
.woocommerce-checkout .wc-block-components-sidebar {
  width: 100%;
  min-width: 360px;
  position: sticky;
  top: 30px;
}

.woocommerce-checkout .wc-block-components-order-summary,
.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  background: transparent !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item {
  align-items: start !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__description {
  padding-left: 0 !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
  font-size: 13px;
  opacity: .8;
}

.woocommerce-checkout .wc-block-components-product-name {
  max-width: 100%;
  font-size: 14px !important;
  font-weight: 600;
}

.woocommerce-checkout .wc-block-components-totals-item__label,
.woocommerce-checkout .wc-block-components-totals-item__value,
.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
  font-size: 15px !important;
}

.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  font-size: 22px !important;
}

/* Hide more Woo visual noise */
.woocommerce-checkout .wc-block-components-panel__button-icon,
.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
  display: none !important;
}

@media (max-width: 1200px) {
  .woocommerce-checkout .wc-block-checkout__sidebar,
  .woocommerce-checkout .wc-block-components-sidebar {
    min-width: 320px;
  }
}

@media (max-width: 1024px) {
  .woocommerce-checkout .wc-block-checkout__sidebar,
  .woocommerce-checkout .wc-block-components-sidebar {
    position: static;
    min-width: 0;
  }
}

/* Checkout page polish – round 4 (markup-specific) */
/* Hide delivery/frakt blocks entirely */
.woocommerce-checkout #shipping-method.wc-block-checkout__shipping-method,
.woocommerce-checkout #shipping-option.wc-block-checkout__shipping-option,
.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-method-block,
.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-methods-block {
  display: none !important;
}

/* Visually merge contact + address */
.woocommerce-checkout #contact-fields,
.woocommerce-checkout #shipping-fields {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
}

.woocommerce-checkout #contact-fields .wc-block-components-checkout-step__heading,
.woocommerce-checkout #shipping-fields .wc-block-components-checkout-step__heading {
  margin-bottom: 12px;
}

.woocommerce-checkout #contact-fields .wc-block-components-checkout-step__title,
.woocommerce-checkout #shipping-fields .wc-block-components-checkout-step__title,
.woocommerce-checkout #payment-method .wc-block-components-checkout-step__title {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.woocommerce-checkout #contact-fields .wc-block-components-checkout-step__content,
.woocommerce-checkout #shipping-fields .wc-block-components-checkout-step__content,
.woocommerce-checkout #payment-method .wc-block-components-checkout-step__content,
.woocommerce-checkout #order-notes .wc-block-components-checkout-step__content {
  max-width: 620px;
}

/* Cleaner form layout */
.woocommerce-checkout .wc-block-components-address-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
  row-gap: 12px;
}

.woocommerce-checkout .wc-block-components-address-form__email,
.woocommerce-checkout .wc-block-components-address-form__address_1,
.woocommerce-checkout .wc-block-components-address-form__country,
.woocommerce-checkout .wc-block-components-address-form__phone {
  grid-column: 1 / -1;
}

.woocommerce-checkout .wc-block-components-address-form__address_2-toggle {
  grid-column: 1 / -1;
  font-size: 14px;
  color: #6c5a4f;
  margin-top: -4px;
}

.woocommerce-checkout .wc-block-checkout__use-address-for-billing {
  margin-top: 10px;
  max-width: 620px;
}

/* Pickup tighter at top */
.woocommerce-checkout .haugli-pickup-panel {
  max-width: 380px;
}

.woocommerce-checkout .haugli-pickup-panel select,
.woocommerce-checkout .haugli-pickup-panel input {
  max-width: 380px;
  min-height: 48px;
}

/* Order notes presentation */
.woocommerce-checkout #order-notes {
  margin-top: 18px;
}

.woocommerce-checkout #order-notes .wc-block-components-checkbox__label {
  font-size: 16px;
  font-weight: 600;
}

/* Right box - closer to reference */
.woocommerce-checkout .wc-block-checkout__sidebar,
.woocommerce-checkout .wc-block-components-sidebar {
  background: #ead18d !important;
  border-radius: 18px;
  padding: 32px 30px;
}

.woocommerce-checkout .wc-block-components-checkout-order-summary__title {
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(31,26,23,.12);
  margin-bottom: 14px;
}

.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

.woocommerce-checkout .wc-block-components-checkout-order-summary__title-price {
  font-size: 20px !important;
  font-weight: 700;
}

.woocommerce-checkout .wc-block-components-checkout-order-summary__title-icon {
  display: none !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item {
  grid-template-columns: 1fr auto !important;
  padding: 12px 0;
  border-bottom: 1px solid rgba(31,26,23,.08);
}

.woocommerce-checkout .wc-block-components-order-summary-item__image {
  display: none !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__description {
  padding-left: 0 !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
  padding-left: 16px;
  text-align: right;
}

.woocommerce-checkout .wc-block-components-product-name {
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 600;
}

.woocommerce-checkout .wc-block-components-order-summary-item__individual-prices,
.woocommerce-checkout .wc-block-components-order-summary-item__individual-price {
  font-size: 13px !important;
  opacity: .8;
}

.woocommerce-checkout .wc-block-components-totals-item,
.woocommerce-checkout .wc-block-components-totals-footer-item {
  padding: 10px 0;
}

.woocommerce-checkout .wc-block-components-totals-footer-item {
  border-top: 1px solid rgba(31,26,23,.14);
  margin-top: 8px;
  padding-top: 16px;
}

.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 18px !important;
  font-weight: 700;
}

@media (max-width: 767px) {
  .woocommerce-checkout .wc-block-components-address-form {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout .haugli-pickup-panel,
  .woocommerce-checkout .haugli-pickup-panel select,
  .woocommerce-checkout .haugli-pickup-panel input {
    max-width: 100%;
  }
}

/* Checkout page polish – round 5 corrections */
/* Bring billing/details fields back */
.woocommerce-checkout #shipping-fields.wc-block-checkout__shipping-fields,
.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-address-block {
  display: block !important;
}

/* Keep summary in right column, not at bottom */
.woocommerce-checkout .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 380px !important;
  align-items: start !important;
}

.woocommerce-checkout .wc-block-checkout__main,
.woocommerce-checkout .wc-block-components-main {
  grid-column: 1;
}

.woocommerce-checkout .wc-block-checkout__sidebar,
.woocommerce-checkout .wc-block-components-sidebar {
  grid-column: 2;
  align-self: start;
}

/* Move pickup panel down under H1 instead of under header */
.woocommerce-checkout .l-section.height_medium > .haugli-pickup-panel-wrap {
  margin-top: 14px !important;
  margin-bottom: 20px !important;
  max-width: 420px;
}

.woocommerce-checkout .haugli-pickup-panel {
  max-width: 420px;
  padding-top: 0 !important;
}

.woocommerce-checkout .haugli-pickup-panel > p {
  margin-bottom: 10px !important;
}

.woocommerce-checkout .haugli-pickup-panel select,
.woocommerce-checkout .haugli-pickup-panel input {
  max-width: 420px;
  min-height: 44px;
  font-size: 14px !important;
  padding: 10px 12px !important;
}

.woocommerce-checkout .haugli-pickup-panel label strong {
  font-size: 11px;
}

/* Address form should feel like fakturadetaljer block */
.woocommerce-checkout #contact-fields,
.woocommerce-checkout #shipping-fields {
  margin-bottom: 22px !important;
}

.woocommerce-checkout #shipping-fields .wc-block-components-checkout-step__title::before {
  content: 'Fakturadetaljer';
  display: inline;
}

.woocommerce-checkout #shipping-fields .wc-block-components-checkout-step__title {
  font-size: 0 !important;
}

.woocommerce-checkout #shipping-fields .wc-block-components-checkout-step__title::before {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

/* Keep contact info visually connected to billing */
.woocommerce-checkout #contact-fields .wc-block-components-checkout-step__heading {
  margin-bottom: 10px;
}

.woocommerce-checkout #shipping-fields .wc-block-components-checkout-step__heading {
  margin-top: 6px;
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  .woocommerce-checkout .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-checkout .wc-block-checkout__sidebar,
  .woocommerce-checkout .wc-block-components-sidebar {
    grid-column: 1;
  }
}

/* Checkout page polish – round 6 sizing + pickup positioning */
.woocommerce-checkout .wc-block-components-sidebar-layout {
  grid-template-columns: minmax(0, 1fr) 430px !important;
  gap: 54px !important;
}

.woocommerce-checkout .wc-block-checkout__sidebar,
.woocommerce-checkout .wc-block-components-sidebar {
  min-width: 430px;
  padding: 36px 34px !important;
}

.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
  font-size: 32px !important;
}

.woocommerce-checkout .wc-block-components-checkout-order-summary__title-price {
  font-size: 22px !important;
}

.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  font-size: 26px !important;
}

.woocommerce-checkout .l-section.height_medium > .haugli-pickup-panel-wrap {
  margin-top: 36px !important;
  margin-bottom: 26px !important;
}

.woocommerce-checkout .wc-block-checkout__main::after,
.woocommerce-checkout .wc-block-components-main::after {
  margin-bottom: 34px !important;
}

.woocommerce-checkout .haugli-pickup-panel {
  margin-top: 6px !important;
}

@media (max-width: 1200px) {
  .woocommerce-checkout .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(0, 1fr) 390px !important;
  }

  .woocommerce-checkout .wc-block-checkout__sidebar,
  .woocommerce-checkout .wc-block-components-sidebar {
    min-width: 390px;
    padding: 30px 26px !important;
  }
}

/* Checkout page polish – round 7 after structural pickup move */
.woocommerce-checkout .wc-block-checkout__main > .haugli-pickup-panel-wrap,
.woocommerce-checkout .wc-block-components-main > .haugli-pickup-panel-wrap {
  margin-top: 26px !important;
  margin-bottom: 24px !important;
  max-width: 430px;
}

.woocommerce-checkout .wc-block-checkout__main > .haugli-pickup-panel-wrap .haugli-pickup-panel,
.woocommerce-checkout .wc-block-components-main > .haugli-pickup-panel-wrap .haugli-pickup-panel {
  max-width: 430px;
}

.woocommerce-checkout .wc-block-components-sidebar-layout {
  grid-template-columns: minmax(0, 1fr) 470px !important;
}

.woocommerce-checkout .wc-block-checkout__sidebar,
.woocommerce-checkout .wc-block-components-sidebar {
  min-width: 470px;
  max-width: 470px;
}

@media (max-width: 1200px) {
  .woocommerce-checkout .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(0, 1fr) 410px !important;
  }

  .woocommerce-checkout .wc-block-checkout__sidebar,
  .woocommerce-checkout .wc-block-components-sidebar {
    min-width: 410px;
    max-width: 410px;
  }
}

/* Checkout: contact cards spacing and typography */
body.woocommerce-checkout .wc-block-components-address-card {
  padding: 18px 22px !important;
}

body.woocommerce-checkout .wc-block-components-address-card address {
  margin: 0 !important;
  padding-left: 0 !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  color: #222222;
}

body.woocommerce-checkout .wc-block-components-address-card .wc-block-components-address-card__address-section {
  margin: 0 !important;
}

body.woocommerce-checkout .wc-block-components-address-card .wc-block-components-address-card__edit {
  font-size: 16px !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step__description,
body.woocommerce-checkout .wc-block-components-address-card__label,
body.woocommerce-checkout .wc-block-components-address-card__title {
  font-size: 16px !important;
  line-height: 1.45 !important;
}

body.woocommerce-checkout .wc-block-components-address-card.is-editing,
body.woocommerce-checkout .wc-block-components-address-card.is-selected {
  padding-left: 22px !important;
}

body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-address-form {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-text-input {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-text-input input {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-text-input label {
  left: 0 !important;
  right: auto !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  transform-origin: left center !important;
}

body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-text-input.is-active label,
body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-text-input.has-value label {
  transform: translateY(-28px) scale(.85) !important;
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-address-card .wc-block-components-address-card__address-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
  }

  body.woocommerce-checkout .wc-block-components-address-card .wc-block-components-address-card__address-section > div,
  body.woocommerce-checkout .wc-block-components-address-card .wc-block-components-address-card__address-section > p,
  body.woocommerce-checkout .wc-block-components-address-card .wc-block-components-address-card__address-section > span {
    margin: 0 !important;
  }

  body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-text-input input {
    min-height: 60px;
  }
}

/* Checkout: improve spacing between floating labels and field values */
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input input {
  padding-top: 28px !important;
  padding-bottom: 12px !important;
}

body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input label {
  top: 10px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

/* Checkout: align field labels and values on same left margin (exclude email field) */
body.woocommerce-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-text-input input {
  padding-left: 18px !important;
  padding-right: 16px !important;
}

body.woocommerce-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-text-input label {
  left: 18px !important;
}

/* Checkout: normalize email field spacing */
body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-text-input input {
  min-height: 60px !important;
  padding-top: 18px !important;
  padding-bottom: 14px !important;
  padding-left: 18px !important;
  padding-right: 16px !important;
  line-height: 1.35 !important;
}

body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-text-input label {
  left: 18px !important;
  top: 10px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
}

/* Checkout: hide duplicate payment method helper content */
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content {
  display: none !important;
}

/* Checkout: billing fields same clean style as contact fields */
body.woocommerce-checkout #billing-fields .wc-block-components-address-card,
body.woocommerce-checkout #billing-fields .wc-block-components-address-form-wrapper,
body.woocommerce-checkout #billing-fields .wc-block-components-address-address-wrapper,
body.woocommerce-checkout #billing-fields .wc-block-components-text-input,
body.woocommerce-checkout #billing-fields .wc-blocks-components-select__container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Checkout: remove outer billing address box, keep inner fields */
body.woocommerce-checkout #billing-fields .wc-block-components-address-address-wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.woocommerce-checkout #billing-fields .wc-block-components-address-form-wrapper {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Checkout: hide billing summary card while billing form is open */
body.woocommerce-checkout #billing-fields .wc-block-components-address-address-wrapper.is-editing .wc-block-components-address-card-wrapper {
  display: none !important;
}

/* Checkout: hide billing address summary card while editing */
body.woocommerce-checkout #billing-fields .wc-block-components-address-address-wrapper.is-editing > .wc-block-components-address-card-wrapper {
  display: none !important;
}





/* Checkout mobile layout */
@media (max-width: 767px) {
  body.woocommerce-checkout .wc-block-checkout,
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }

  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-checkout .wc-block-components-checkout-step,
  body.woocommerce-checkout .wc-block-components-totals-wrapper,
  body.woocommerce-checkout .wc-block-components-order-summary,
  body.woocommerce-checkout .haugli-pickup-panel,
  body.woocommerce-checkout .wc-block-components-address-card,
  body.woocommerce-checkout .wc-block-components-address-form-wrapper,
  body.woocommerce-checkout .wc-block-components-address-address-wrapper {
    margin: 0 0 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-checkout .wc-block-components-checkout-step__content,
  body.woocommerce-checkout .wc-block-components-order-summary,
  body.woocommerce-checkout .haugli-pickup-panel {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.woocommerce-checkout .wc-block-components-title,
  body.woocommerce-checkout .wc-block-components-checkout-step__title,
  body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  body.woocommerce-checkout .wc-block-components-text-input,
  body.woocommerce-checkout .wc-blocks-components-select,
  body.woocommerce-checkout .wc-blocks-components-select__container,
  body.woocommerce-checkout .wc-blocks-components-select__select,
  body.woocommerce-checkout .wc-block-components-text-input input,
  body.woocommerce-checkout .wc-block-components-checkbox,
  body.woocommerce-checkout .wc-block-components-radio-control__option,
  body.woocommerce-checkout .wc-block-components-payment-method-label,
  body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-checkout .wc-block-components-text-input input,
  body.woocommerce-checkout .wc-blocks-components-select__select {
    min-height: 54px !important;
    font-size: 16px !important;
  }

  body.woocommerce-checkout .wc-block-components-checkbox__label,
  body.woocommerce-checkout .wc-block-components-radio-control__label,
  body.woocommerce-checkout .wc-block-components-radio-control__secondary-label,
  body.woocommerce-checkout .wc-block-components-payment-method-label,
  body.woocommerce-checkout .wc-block-checkout__terms {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  body.woocommerce-checkout .wc-block-checkout__actions_row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button,
  body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
  body.woocommerce-checkout .wc-block-components-button {
    width: 100% !important;
    justify-content: center !important;
  }
}




/* ============================================================
   Cart page: Cross-sells "Du er kanskje interessert i…"
   Match the Impreza WPBakery product grid layout (layout_22401)
   ============================================================ */

/* Container: grid layout matching cols_4 on desktop */
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-product-template {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Section heading style */
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] > h2,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-heading {
  font-size: 28px !important;
  font-weight: 700 !important;
  font-family: var(--font-family) !important;
  margin-bottom: 1.2rem !important;
  text-align: left;
}

/* Each product card */
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-product-template > li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent;
}

/* Product image: square ratio with rounded corners (matching usg_post_image_1) */
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-image,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-woocommerce-product-image {
  position: relative;
  width: 100%;
  padding-bottom: 100% !important; /* 1:1 aspect ratio */
  overflow: hidden;
  border-radius: 10px !important;
  margin-bottom: 30px !important;
  background: #f5f5f5;
}

.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-image a,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-woocommerce-product-image a {
  position: absolute;
  inset: 0;
  display: block;
}

.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-image img,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-woocommerce-product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 10px !important;
}

/* Product title: matching usg_post_title_1 */
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-post-title,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-name {
  font-size: 22px !important;
  font-family: var(--font-family) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  margin: 0 15px 0.4em 15px !important;
  padding: 0 !important;
  color: inherit;
}

.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-post-title a,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-name a {
  color: inherit !important;
  text-decoration: none !important;
}

/* Product price: matching usg_product_field_1 */
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-woocommerce-product-price,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-price {
  font-size: 18px !important;
  font-family: var(--font-family) !important;
  font-weight: 400 !important;
  text-align: left !important;
  margin: 0 15px 0.6em 15px !important;
  padding: 0 !important;
}

/* Add to cart button: styled like the grid's circle/icon button */
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-woocommerce-product-button,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-button {
  text-align: left !important;
  margin: 0 15px 0 15px !important;
  padding: 0 !important;
}

.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-woocommerce-product-button .wp-element-button,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-button .wp-element-button,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-woocommerce-product-button .wc-block-components-product-button__button,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-button .wc-block-components-product-button__button,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px;
  padding: 0 1.4em !important;
  border-radius: 4px !important;
  background: var(--color-content-primary, #e47d36) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: 0 !important;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-element-button:hover,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-button__button:hover,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .add_to_cart_button:hover {
  opacity: 0.9;
}

/* Hide sale badge in cross-sells (matching product grid which uses custom badge) */
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-sale-badge,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-woocommerce-product-sale-badge {
  display: none !important;
}

/* Hide navigation arrows/prev-next buttons */
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-product-collection__pagination,
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] [data-wp-on--click*="Previous"],
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] [data-wp-on--click*="Next"],
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-product-collection__arrow {
  display: none !important;
}

/* ---- Responsive: tablet (2 columns) ---- */
@media (max-width: 1024px) {
  .wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-product-template {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ---- Responsive: mobile (1 column) ---- */
@media (max-width: 600px) {
  .wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-product-template {
    grid-template-columns: 1fr !important;
  }

  .wp-block-woocommerce-product-collection[data-collection*="cross-sells"] > h2,
  .wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-heading {
    font-size: 24px !important;
  }

  .wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-post-title,
  .wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-name {
    font-size: 20px !important;
  }

  .wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wp-block-woocommerce-product-price,
  .wp-block-woocommerce-product-collection[data-collection*="cross-sells"] .wc-block-components-product-price {
    font-size: 16px !important;
  }
}

/* ---- Spacing: separate cross-sells from cart items ---- */
.wp-block-woocommerce-product-collection[data-collection*="cross-sells"] {
  margin-top: 50px !important;
  padding-top: 30px !important;
  border-top: 1px solid #eadfcd;
}


.woocommerce-checkout .haugli-pickup-reasons {
  display: none !important;
}

@media (max-width: 767px) {
  .wc-block-cart .wc-block-cart-item__quantity {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  .wc-block-cart .wc-block-cart-item__remove-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  .wc-block-cart .wc-block-cart-items {
    border-collapse: separate !important;
    border-spacing: 0 20px !important;
  }
}
