/* Cykelbutikken – kurv-panel, kurvside og kasse i forsidens stil (cb-handel)
   Ligger oven på Tilpas › Ekstra CSS, derfor body foran og !important hvor den gamle CSS bruger det. */

body {
  --cb-cream: #F6EFE4;
  --cb-sand: #EBDDC7;
  --cb-sand-2: #E2D0B4;
  --cb-ink: #1E1B19;
  --cb-ink-2: #4A403B;
  --cb-orange: #FB5832;
  --cb-orange-d: #C2380F;
  --cb-yellow: #FFCB3D;
  --cb-display: "Source Sans 3", sans-serif;
}

/* ============ fælles knapper ============ */
body .cb-btn-orange,
body.woocommerce-cart .cb-kurv a.checkout-button,
body.woocommerce-checkout .cb-kasse #place_order,
body #astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.checkout {
  background: var(--cb-orange) !important; color: var(--cb-ink) !important; border: 0 !important;
  border-radius: 999px !important; text-transform: none !important; letter-spacing: 0 !important;
  font-weight: 700 !important; font-size: 17px !important; box-shadow: none !important;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .2s !important;
}
body.woocommerce-cart .cb-kurv a.checkout-button:hover,
body.woocommerce-checkout .cb-kasse #place_order:hover,
body #astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.checkout:hover {
  background: #FF6B47 !important; color: var(--cb-ink) !important; transform: translateY(-2px);
}

/* ============ KURV-PANEL (Astra, alle sider) ============ */
body #astra-mobile-cart-drawer { background: var(--cb-cream); color: var(--cb-ink); }
body #astra-mobile-cart-drawer .astra-cart-drawer-header { border-bottom: 1px solid var(--cb-sand-2); }
body #astra-mobile-cart-drawer .astra-cart-drawer-title {
  font-family: var(--cb-display); font-weight: 800; font-size: 24px; color: var(--cb-ink); letter-spacing: -.01em;
}
body #astra-mobile-cart-drawer .astra-cart-drawer-close { border-radius: 50%; background: transparent; color: var(--cb-ink); box-shadow: none; }
body #astra-mobile-cart-drawer .astra-cart-drawer-close:hover { background: var(--cb-sand); }
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item {
  background: #fff; border-radius: 18px; padding: 16px 44px 16px 96px !important; margin-bottom: 12px; border: 0;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item img { left: 16px !important; }
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item img { border-radius: 12px; background: #fff; }
body #astra-mobile-cart-drawer .ast-product-name { color: var(--cb-ink); font-weight: 600; line-height: 1.35; }
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item a.remove {
  top: 14px !important; right: 12px !important; color: var(--cb-ink-2) !important; border-color: var(--cb-sand-2) !important;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item a.remove:hover { background: var(--cb-ink) !important; color: #fff !important; border-color: var(--cb-ink) !important; }
body #astra-mobile-cart-drawer .quantity {
  display: inline-flex; align-items: center; border: 1px solid var(--cb-sand-2); border-radius: 999px; overflow: hidden; background: #fff;
}
body #astra-mobile-cart-drawer .quantity .minus,
body #astra-mobile-cart-drawer .quantity .plus {
  border: 0 !important; background: var(--cb-sand) !important; color: var(--cb-ink) !important; width: 36px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
}
body #astra-mobile-cart-drawer .quantity input.qty { border: 0 !important; height: 38px; width: 42px; font-weight: 700; color: var(--cb-ink); background: #fff; }
body #astra-mobile-cart-drawer .ast-mini-cart-price-wrap { font-weight: 700; color: var(--cb-ink); }
body #astra-mobile-cart-drawer .woocommerce-mini-cart__total {
  border-top: 1px solid var(--cb-sand-2) !important; border-bottom: 0 !important; color: var(--cb-ink);
  font-family: var(--cb-display); font-size: 20px;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart__total strong { font-weight: 800; }
body #astra-mobile-cart-drawer .woocommerce-mini-cart__total .amount { font-weight: 800; color: var(--cb-ink); }
body #astra-mobile-cart-drawer .woocommerce-mini-cart__buttons { display: flex; flex-direction: column-reverse; gap: 12px; }
body #astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.button {
  margin: 0 !important; width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.button:not(.checkout) {
  background: transparent !important; color: var(--cb-ink) !important; border: 2px solid var(--cb-ink) !important;
  border-radius: 999px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 700 !important; font-size: 16px !important; box-shadow: none !important;
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.button:not(.checkout):hover { background: var(--cb-ink) !important; color: #fff !important; }
body #astra-mobile-cart-drawer .ast-mini-cart-empty .button {
  background: var(--cb-ink) !important; color: #fff !important; border-radius: 999px !important; text-transform: none !important; border: 0 !important;
}

/* ============ KURVSIDE og KASSE: fælles ============ */
body.woocommerce-cart #content, body.woocommerce-checkout #content,
body.woocommerce-cart #content .ast-container, body.woocommerce-checkout #content .ast-container { background: var(--cb-cream); }
body.woocommerce-cart .elementor-heading-title, body.woocommerce-checkout .elementor-heading-title { font-family: var(--cb-display) !important; font-weight: 800 !important; color: var(--cb-ink) !important; }

/* Beskeder ("… er lagt i kurven") */
body:is(.woocommerce-cart, .woocommerce-checkout) .woocommerce-message,
body:is(.woocommerce-cart, .woocommerce-checkout) .woocommerce-info {
  background: var(--cb-sand) !important; color: var(--cb-ink) !important; border: 0 !important; border-radius: 18px !important;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
body:is(.woocommerce-cart, .woocommerce-checkout) .woocommerce-message::before,
body:is(.woocommerce-cart, .woocommerce-checkout) .woocommerce-info::before { color: var(--cb-orange-d) !important; }
body:is(.woocommerce-cart, .woocommerce-checkout) .woocommerce-message .button,
body:is(.woocommerce-cart, .woocommerce-checkout) .woocommerce-info .button {
  order: 2; background: var(--cb-ink) !important; color: #fff !important; border-radius: 999px !important; border: 0 !important;
  text-transform: none !important; letter-spacing: 0 !important; font-weight: 700 !important; padding: 12px 22px !important; box-shadow: none !important;
}

/* Fragtvalg: den første mulighed fik bredden 0 og blev skubbet ned i en smal søjle */
body:is(.woocommerce-cart, .woocommerce-checkout) ul#shipping_method li { width: 100% !important; padding: 8px 0 !important; }
body:is(.woocommerce-cart, .woocommerce-checkout) ul#shipping_method li input[type=radio] {
  position: static !important; flex: 0 0 auto !important; width: 20px !important; height: 20px !important; margin: 1px 0 0 !important; accent-color: var(--cb-ink) !important;
}
body:is(.woocommerce-cart, .woocommerce-checkout) ul#shipping_method li label {
  flex: 1 1 auto !important; padding: 0 !important; margin: 0 !important; text-indent: 0 !important;
  color: var(--cb-ink) !important; font-size: 15px !important; line-height: 1.4 !important;
}
body:is(.woocommerce-cart, .woocommerce-checkout) ul#shipping_method li label::before,
body:is(.woocommerce-cart, .woocommerce-checkout) ul#shipping_method li label::after { display: none !important; }

/* ============ KURVSIDE ============ */
body.woocommerce-cart .cb-kurv .e-shop-table,
body.woocommerce-cart .cb-kurv .e-cart-totals,
body.woocommerce-cart .cb-kurv .e-cart-section { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
body.woocommerce-cart .cb-kurv table.shop_table.cart {
  background: #fff !important; border: 0 !important; border-radius: 22px !important; overflow: hidden; border-collapse: separate;
}
body.woocommerce-cart .cb-kurv table.shop_table.cart th {
  background: transparent !important; color: var(--cb-ink-2) !important; text-transform: none !important; letter-spacing: 0 !important;
  font-size: 14px !important; font-weight: 600 !important; border: 0 !important; border-bottom: 1px solid var(--cb-sand) !important; padding: 18px 16px !important;
}
body.woocommerce-cart .cb-kurv table.shop_table.cart td { border: 0 !important; border-top: 0 !important; padding: 18px 16px !important; color: var(--cb-ink); }
body.woocommerce-cart .cb-kurv table.shop_table.cart td.actions { padding: 0 !important; }
body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-name a,
body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-name .ast-product-name a { color: var(--cb-ink) !important; font-weight: 700 !important; text-decoration: none; }
body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-name a:hover { color: var(--cb-orange-d) !important; }
body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-subtotal { font-weight: 700; }
body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-remove a.remove { border-color: var(--cb-sand-2) !important; color: var(--cb-ink-2) !important; }
body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-remove a.remove:hover { background: var(--cb-ink) !important; border-color: var(--cb-ink) !important; color: #fff !important; }
body.woocommerce-cart .cb-kurv .quantity { border-color: var(--cb-sand-2) !important; background: #fff; }
body.woocommerce-cart .cb-kurv .quantity .minus,
body.woocommerce-cart .cb-kurv .quantity .plus { background: var(--cb-sand) !important; color: var(--cb-ink) !important; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
body.woocommerce-cart .cb-kurv .quantity input.qty { border: 0 !important; color: var(--cb-ink); background: #fff; box-shadow: none; }

body.woocommerce-cart .cb-kurv .cart_totals {
  background: var(--cb-sand) !important; border: 0 !important; border-radius: 22px !important; padding: 28px !important;
}
body.woocommerce-cart .cb-kurv .cart_totals h2 { font-family: var(--cb-display); font-weight: 800; font-size: 26px !important; color: var(--cb-ink); margin: 0 0 8px !important; }
body.woocommerce-cart .cb-kurv .cart_totals th,
body.woocommerce-cart .cb-kurv .cart_totals td {
  color: var(--cb-ink) !important; border-bottom: 1px solid var(--cb-sand-2) !important; font-size: 15px; background: transparent !important;
}
body.woocommerce-cart .cb-kurv .cart_totals th { font-weight: 600 !important; }
body.woocommerce-cart .cb-kurv .cart_totals tr.woocommerce-shipping-totals th { display: none !important; }
body.woocommerce-cart .cb-kurv .cart_totals tr.woocommerce-shipping-totals td { display: block !important; width: 100% !important; text-align: left !important; }
body.woocommerce-cart .cb-kurv .cart_totals tr.woocommerce-shipping-totals td::before { display: none !important; }
body.woocommerce-cart .cb-kurv .cart_totals .order-total th,
body.woocommerce-cart .cb-kurv .cart_totals .order-total td { border-bottom: 0 !important; padding-top: 18px !important; }
body.woocommerce-cart .cb-kurv .cart_totals .order-total td,
body.woocommerce-cart .cb-kurv .cart_totals .order-total td .amount { font-family: var(--cb-display); font-size: 26px !important; font-weight: 800 !important; color: var(--cb-ink) !important; }
body.woocommerce-cart .cb-kurv .wc-proceed-to-checkout { padding: 8px 0 0 !important; }
body.woocommerce-cart .cb-kurv a.checkout-button { display: flex !important; align-items: center; justify-content: center; min-height: 56px; padding: 16px 28px !important; margin: 0 !important; }

/* ============ KASSE ============ */
body.woocommerce-checkout .cb-kasse .col-1,
body.woocommerce-checkout .cb-kasse .col-2,
body.woocommerce-checkout .cb-kasse .e-checkout__order_review-2 { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
body.woocommerce-checkout .cb-kasse .woocommerce-billing-fields,
body.woocommerce-checkout .cb-kasse .woocommerce-additional-fields,
body.woocommerce-checkout .cb-kasse #payment {
  background: #fff !important; border: 0 !important; border-radius: 22px !important; padding: 28px !important; box-shadow: none !important; margin: 0 0 18px !important;
}
body.woocommerce-checkout .cb-kasse .e-checkout__order_review {
  background: var(--cb-sand) !important; border: 0 !important; border-radius: 22px !important; padding: 28px !important; box-shadow: none !important; margin-bottom: 18px !important;
}
body.woocommerce-checkout .cb-kasse #order_review { background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
body.woocommerce-checkout .cb-kasse h3,
body.woocommerce-checkout .cb-kasse #order_review_heading,
body.woocommerce-checkout .cb-kasse .woocommerce-billing-fields h3 {
  font-family: var(--cb-display) !important; font-weight: 800 !important; font-size: 26px !important; color: var(--cb-ink) !important; margin: 0 0 16px !important;
}
/* Felter */
body.woocommerce-checkout .cb-kasse .form-row input.input-text,
body.woocommerce-checkout .cb-kasse .form-row textarea,
body.woocommerce-checkout .cb-kasse .form-row .select2-selection--single {
  border: 1px solid var(--cb-sand-2) !important; background: #fff !important; border-radius: 12px !important; color: var(--cb-ink);
}
body.woocommerce-checkout .cb-kasse .form-row input.input-text:focus,
body.woocommerce-checkout .cb-kasse .form-row textarea:focus { border-color: var(--cb-ink) !important; box-shadow: 0 0 0 3px rgba(30,27,25,.12) !important; }
body.woocommerce-checkout .cb-kasse .form-row label { color: var(--cb-ink-2) !important; }
/* Ordreoversigt */
body.woocommerce-checkout .cb-kasse table.shop_table { border: 0 !important; background: transparent !important; }
body.woocommerce-checkout .cb-kasse table.shop_table th,
body.woocommerce-checkout .cb-kasse table.shop_table td {
  color: var(--cb-ink) !important; font-size: 15px !important; border: 0 !important; border-bottom: 1px solid var(--cb-sand-2) !important; background: transparent !important; padding: 12px 0 !important;
}
body.woocommerce-checkout .cb-kasse table.shop_table thead th { font-weight: 600 !important; color: var(--cb-ink-2) !important; font-size: 14px !important; }
body.woocommerce-checkout .cb-kasse table.shop_table td.product-name { width: auto !important; font-weight: 600; padding-right: 16px !important; }
body.woocommerce-checkout .cb-kasse table.shop_table td.product-name .product-quantity { font-weight: 700; color: var(--cb-ink-2); }
body.woocommerce-checkout .cb-kasse table.shop_table td.product-total,
body.woocommerce-checkout .cb-kasse table.shop_table tfoot td { text-align: right !important; font-weight: 700; white-space: nowrap; }
body.woocommerce-checkout .cb-kasse table.shop_table tfoot th { font-weight: 600 !important; text-align: left !important; }
body.woocommerce-checkout .cb-kasse tr.woocommerce-shipping-totals th,
body.woocommerce-checkout .cb-kasse tr.woocommerce-shipping-totals td { border-bottom: 0 !important; text-align: left !important; }
body.woocommerce-checkout .cb-kasse tr.woocommerce-shipping-totals { border-bottom: 1px solid var(--cb-sand-2); }
body.woocommerce-checkout .cb-kasse .order-total th,
body.woocommerce-checkout .cb-kasse .order-total td { border-bottom: 0 !important; padding-top: 18px !important; }
body.woocommerce-checkout .cb-kasse .order-total td,
body.woocommerce-checkout .cb-kasse .order-total td .amount { font-family: var(--cb-display); font-size: 26px !important; font-weight: 800 !important; color: var(--cb-ink) !important; }
/* Betaling */
body.woocommerce-checkout .cb-kasse #payment ul.payment_methods li { border-bottom-color: var(--cb-sand) !important; color: var(--cb-ink); }
body.woocommerce-checkout .cb-kasse #payment ul.payment_methods li label { color: var(--cb-ink) !important; }
body.woocommerce-checkout .cb-kasse #payment ul.payment_methods li input[type=radio] { accent-color: var(--cb-ink); }
body.woocommerce-checkout .cb-kasse #payment div.payment_box { background: var(--cb-cream) !important; color: var(--cb-ink-2) !important; border-radius: 14px !important; }
body.woocommerce-checkout .cb-kasse .woocommerce-privacy-policy-text,
body.woocommerce-checkout .cb-kasse .woocommerce-privacy-policy-text a { color: var(--cb-ink-2) !important; }
body.woocommerce-checkout .cb-kasse .woocommerce-terms-and-conditions-wrapper a { color: var(--cb-ink) !important; }
body.woocommerce-checkout .cb-kasse #place_order { width: 100%; min-height: 58px; padding: 16px 28px !important; }

/* Kasse: ordreoversigten må ikke vokse ud over kolonnen */
body.woocommerce-checkout .cb-kasse table.shop_table { table-layout: fixed !important; width: 100% !important; }
body.woocommerce-checkout .cb-kasse table.shop_table td.product-name,
body.woocommerce-checkout .cb-kasse table.shop_table thead th.product-name { width: 68% !important; }
body.woocommerce-checkout .cb-kasse table.shop_table tfoot tr.woocommerce-shipping-totals th,
body.woocommerce-checkout .cb-kasse table.shop_table tfoot tr.woocommerce-shipping-totals td {
  display: block !important; width: 100% !important; text-align: left !important; white-space: normal !important; font-weight: 600 !important;
}
body.woocommerce-checkout .cb-kasse table.shop_table tfoot tr.woocommerce-shipping-totals td { padding-top: 0 !important; }
body.woocommerce-checkout .cb-kasse table.shop_table tfoot tr.woocommerce-shipping-totals { display: block !important; }
body.woocommerce-checkout .cb-kasse ul#shipping_method li label { white-space: normal !important; text-align: left !important; }
body.woocommerce-checkout .cb-kasse a.wc-backward,
body.woocommerce-checkout .cb-kasse .e-checkout__order_review-2 a { color: var(--cb-ink) !important; }

/* Fordelsboksen under kurv og kasse: sand i stedet for et blåt lag */
body:is(.woocommerce-cart, .woocommerce-checkout) .elementor-element-5538d4a::before { display: none !important; }
body:is(.woocommerce-cart, .woocommerce-checkout) .elementor-element-5538d4a > .e-con-inner { background: var(--cb-sand) !important; border-radius: 22px; }
body:is(.woocommerce-cart, .woocommerce-checkout) .elementor-element-5538d4a .uael-icon i,
body:is(.woocommerce-cart, .woocommerce-checkout) .elementor-element-5538d4a .elementor-icon i { color: var(--cb-orange-d) !important; }
body:is(.woocommerce-cart, .woocommerce-checkout) .elementor-element-5538d4a svg { fill: var(--cb-orange-d) !important; }

/* Lukkekrydset: ingen blå fokusring, når panelet åbner (Astra sætter fokus på krydset). Tastaturbrugere ser i stedet en sandfarvet cirkel. */
body #astra-mobile-cart-drawer .astra-cart-drawer-close,
body #astra-mobile-cart-drawer .astra-cart-drawer-close:focus,
body #astra-mobile-cart-drawer .astra-cart-drawer-close:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; }
body #astra-mobile-cart-drawer .astra-cart-drawer-close:focus-visible { background: var(--cb-sand) !important; }

/* Antalvælger: Astra giver +/− og feltet modsatrettede marginer (−38/+38/6 px), så "+" ikke fylder ud til kanten */
body :is(#astra-mobile-cart-drawer, .cb-kurv, .cb-koeb) .quantity { align-items: stretch !important; overflow: hidden !important; }
body :is(#astra-mobile-cart-drawer, .cb-kurv, .cb-koeb) .quantity .minus,
body :is(#astra-mobile-cart-drawer, .cb-kurv, .cb-koeb) .quantity .plus,
body :is(#astra-mobile-cart-drawer, .cb-kurv, .cb-koeb) .quantity input.qty {
  margin: 0 !important; height: auto !important; min-height: 0 !important; flex: 0 0 auto;
  display: inline-flex !important; align-items: center; justify-content: center; line-height: 1 !important;
}
body :is(#astra-mobile-cart-drawer, .cb-kurv, .cb-koeb) .quantity .minus,
body :is(#astra-mobile-cart-drawer, .cb-kurv, .cb-koeb) .quantity .plus { width: 38px !important; text-decoration: none !important; font-size: 18px; }
body :is(#astra-mobile-cart-drawer, .cb-kurv, .cb-koeb) .quantity input.qty { width: 44px !important; padding: 0 !important; text-align: center; -moz-appearance: textfield; }
body :is(#astra-mobile-cart-drawer, .cb-kurv, .cb-koeb) .quantity input.qty::-webkit-outer-spin-button,
body :is(#astra-mobile-cart-drawer, .cb-kurv, .cb-koeb) .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body #astra-mobile-cart-drawer .quantity { height: 40px; }
body .cb-kurv .quantity { height: 44px !important; }
body .cb-koeb form.cart .quantity { height: 52px !important; }
body :is(#astra-mobile-cart-drawer, .cb-kurv, .cb-koeb) .quantity input.qty { height: 100% !important; align-self: stretch !important; max-height: none !important; }

/* Kasse: Astra skjuler ordreoversigten under 922 px (den forventer sin egen mobil-oversigt, som Elementor-kassen ikke har).
   Uden denne regel kan man på mobil og tablet hverken se ordren, vælge afhentning/levering eller se totalen. */
@media (max-width: 921px) {
  body.woocommerce-checkout .cb-kasse #order_review,
  body.woocommerce-checkout .cb-kasse #order_review_heading { display: block !important; }
}

/* Fordelsboksen på kurvsiden har sit eget id */
body.woocommerce-cart .elementor-element-d837c3a::before { display: none !important; }
body.woocommerce-cart .elementor-element-d837c3a > .e-con-inner { background: var(--cb-sand) !important; border-radius: 22px; }
body.woocommerce-cart .elementor-element-d837c3a .uael-icon i { color: var(--cb-orange-d) !important; }
body.woocommerce-cart .elementor-element-d837c3a svg { fill: var(--cb-orange-d) !important; }

/* ============ MOBIL: kurv og kasse ============ */
@media (max-width: 767px) {
  /* Kurvens vare som ét kompakt kort: billede til venstre, navn til højre, antal og pris nederst */
  body.woocommerce-cart .cb-kurv table.shop_table.cart thead { display: none !important; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart,
  body.woocommerce-cart .cb-kurv table.shop_table.cart tbody { display: block !important; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart tr.cart_item {
    position: relative; display: grid !important; grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; row-gap: 12px;
    grid-template-areas: "img name" "qty sub"; align-items: center; padding: 16px 16px 18px !important;
    border-bottom: 1px solid var(--cb-sand) !important;
  }
  body.woocommerce-cart .cb-kurv table.shop_table.cart tr.cart_item td {
    display: block !important; padding: 0 !important; border: 0 !important; text-align: left !important; width: auto !important; min-height: 0 !important; background: transparent !important;
  }
  body.woocommerce-cart .cb-kurv table.shop_table.cart tr.cart_item td::before { display: none !important; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-thumbnail { grid-area: img; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-thumbnail img { width: 84px !important; max-width: none; border-radius: 12px; background: #fff; border: 1px solid var(--cb-sand); }
  body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-name { grid-area: name; padding-right: 30px !important; font-size: 15px; line-height: 1.35; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-price { display: none !important; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-quantity { grid-area: qty; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-subtotal { grid-area: sub; text-align: right !important; font-size: 17px; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-remove { position: absolute; top: 12px; right: 12px; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart tr:not(.cart_item) { display: block; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart td.actions { display: none !important; }
  body.woocommerce-cart .cb-kurv .e-cart__container { gap: 16px !important; }

  /* Totalboks og kasse-kort: mindre luft */
  body.woocommerce-cart .cb-kurv .cart_totals,
  body.woocommerce-checkout .cb-kasse .e-checkout__order_review,
  body.woocommerce-checkout .cb-kasse .woocommerce-billing-fields,
  body.woocommerce-checkout .cb-kasse .woocommerce-additional-fields,
  body.woocommerce-checkout .cb-kasse #payment { padding: 20px 18px !important; border-radius: 18px !important; margin-bottom: 14px !important; }
  body.woocommerce-cart .cb-kurv .cart_totals h2,
  body.woocommerce-checkout .cb-kasse h3,
  body.woocommerce-checkout .cb-kasse #order_review_heading { font-size: 22px !important; }
  body:is(.woocommerce-cart, .woocommerce-checkout) .order-total th { color: var(--cb-ink) !important; font-family: var(--cb-display); font-weight: 800 !important; font-size: 20px !important; }
  body:is(.woocommerce-cart, .woocommerce-checkout) .order-total td,
  body:is(.woocommerce-cart, .woocommerce-checkout) .order-total td .amount { font-size: 22px !important; }
  body.woocommerce-checkout .cb-kasse #payment .form-row.place-order { padding-top: 8px !important; }
  body.woocommerce-checkout .cb-kasse #payment ul.payment_methods { margin-bottom: 8px !important; }
  body.woocommerce-checkout .cb-kasse .e-checkout__container { gap: 0 !important; }

  /* Fordelsboksen: 2 × 2 i stedet for fire høje rækker */
  body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-element-5538d4a, .elementor-element-d837c3a) > .e-con-inner {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px 12px !important; padding: 22px 16px !important;
  }
  body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-element-5538d4a, .elementor-element-d837c3a) > .e-con-inner > .elementor-element { width: auto !important; max-width: none !important; margin: 0 !important; }
  body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-element-5538d4a, .elementor-element-d837c3a) .uael-infobox-title { font-size: 15px !important; margin-bottom: 4px !important; }
  body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-element-5538d4a, .elementor-element-d837c3a) .uael-infobox-text { font-size: 13px !important; line-height: 1.4 !important; }
  body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-element-5538d4a, .elementor-element-d837c3a) .uael-imgicon-wrap { margin-bottom: 6px !important; }
  body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-element-5538d4a, .elementor-element-d837c3a) .uael-icon i { font-size: 22px !important; }
  body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-element-5538d4a, .elementor-element-d837c3a) .uael-icon svg { width: 22px !important; height: 22px !important; }
}
@media (max-width: 767px) {
  body.woocommerce-checkout .cb-kasse table.shop_table td.product-name,
  body.woocommerce-checkout .cb-kasse table.shop_table thead th.product-name { width: 58% !important; }
  body.woocommerce-checkout .cb-kasse table.shop_table tfoot th { width: 42% !important; }
  body.woocommerce-checkout .cb-kasse .order-total td, body.woocommerce-checkout .cb-kasse .order-total td .amount { font-size: 20px !important; }
  body:is(.woocommerce-cart, .woocommerce-checkout) :is(.elementor-element-5538d4a, .elementor-element-d837c3a) { margin-bottom: 40px !important; }
}
@media (max-width: 767px) {
  body.woocommerce-cart .cb-kurv table.shop_table.cart tr.cart_item td.product-price { display: none !important; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart tr.cart_item td.product-remove { position: absolute !important; top: 12px; right: 12px; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart tr.cart_item td.product-subtotal { text-align: right !important; font-weight: 700; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart tbody tr:not(.cart_item) { display: none !important; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart tr.cart_item:last-of-type { border-bottom: 0 !important; }
}

/* Kurv og kasse brugte Elementors Roboto; sitets brødtekst er Inter */
body :is(.cb-kurv, .cb-kasse) :is(table, th, td, label, p, span, bdi, a, input, select, textarea, li, button, strong, small, address) { font-family: "Inter", sans-serif !important; }
body :is(.cb-kurv, .cb-kasse) :is(h2, h3, #order_review_heading),
body :is(.cb-kurv, .cb-kasse) .order-total :is(th, td, td .amount, td bdi, td strong) { font-family: "Source Sans 3", sans-serif !important; }
/* "Total" i fed (Source Sans har kun 500/800 indlæst, 600 blev tegnet svagt) */
body.woocommerce-cart .cb-kurv .cart_totals .order-total th,
body.woocommerce-checkout .cb-kasse table.shop_table tfoot .order-total th { font-weight: 800 !important; color: var(--cb-ink) !important; }

/* Kasse på mobil: ordreoversigten som rækker i stedet for en tabel med faste kolonner */
@media (max-width: 767px) {
  body.woocommerce-checkout .cb-kasse table.shop_table,
  body.woocommerce-checkout .cb-kasse table.shop_table :is(thead, tbody, tfoot) { display: block !important; width: 100% !important; table-layout: auto !important; }
  body.woocommerce-checkout .cb-kasse table.shop_table thead { display: none !important; }
  body.woocommerce-checkout .cb-kasse table.shop_table :is(tbody, tfoot) tr {
    display: flex !important; justify-content: space-between; align-items: baseline; gap: 14px;
    padding: 12px 0 !important; border-bottom: 1px solid var(--cb-sand-2) !important; width: 100% !important;
  }
  body.woocommerce-checkout .cb-kasse table.shop_table :is(tbody, tfoot) tr :is(th, td) {
    display: block !important; width: auto !important; max-width: none !important; padding: 0 !important; border: 0 !important; white-space: normal !important;
  }
  body.woocommerce-checkout .cb-kasse table.shop_table tbody tr td.product-name { flex: 1 1 auto !important; min-width: 0; text-align: left !important; }
  body.woocommerce-checkout .cb-kasse table.shop_table tbody tr td.product-total,
  body.woocommerce-checkout .cb-kasse table.shop_table tfoot tr td { flex: 0 0 auto !important; text-align: right !important; white-space: nowrap !important; }
  body.woocommerce-checkout .cb-kasse table.shop_table tfoot tr.woocommerce-shipping-totals { display: block !important; }
  body.woocommerce-checkout .cb-kasse table.shop_table tfoot tr.woocommerce-shipping-totals :is(th, td) { width: 100% !important; text-align: left !important; white-space: normal !important; }
  body.woocommerce-checkout .cb-kasse table.shop_table tfoot tr.woocommerce-shipping-totals td { margin-top: 8px; }
  body.woocommerce-checkout .cb-kasse table.shop_table tfoot tr.order-total { border-bottom: 0 !important; padding-top: 16px !important; }
  body.woocommerce-checkout .cb-kasse table.shop_table tfoot tr.order-total th { font-size: 20px !important; }
}

/* Header: menulinjen har sandfarven #EBDDC7 (Astra › Header › Primær header › Baggrund).
   Logoet er en hvidbundet png; multiply lader den hvide bund tage headerens farve. */
#masthead .custom-logo { mix-blend-mode: multiply; }

/* 08-10-2026: større produktbilleder i kurv (Jakob) */
@media (min-width: 922px) {
  body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-thumbnail { width: 132px !important; }
  body.woocommerce-cart .cb-kurv table.shop_table.cart td.product-thumbnail img { width: 112px !important; max-width: none !important; height: auto; border-radius: 12px; background: #fff; }
}
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item { padding-left: 112px !important; min-height: 104px; }
body #astra-mobile-cart-drawer .woocommerce-mini-cart-item img { width: 80px !important; height: 80px !important; max-width: none !important; object-fit: contain; }
