/*
Theme Name: Mellistipset
Theme URI: https://wp-themes.com/twentytwenty
Author: ChildThemeWP.com
Author URI: https://childthemewp.com
Description: My WordPress Twenty Twenty child theme.
Template: twentytwenty
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Version: 1.0.0
Text Domain: mellistipset
*/

/* =========================
   TYPOGRAFI – GLOBALT
   ========================= */

/* Ladda Jost globalt (temat + formulär/kontroller) */
html, body, button, input, select, textarea, .comment-content p {
  font-family: 'Jost', sans-serif !important;
  letter-spacing: 0;
}

/* Bevara ikonfonter (annars blir pilar & symboler fyrkanter) */
.dashicons, .dashicons-before:before { font-family: dashicons !important; }
.primary-menu .icon { font-family: 'twentytwenty-icons' !important; }
.woocommerce .star-rating:before,
.woocommerce .star-rating span:before { font-family: star !important; }

/* Sätt Twenty Twenty-variabler till Jost */
:root{
  --global--font-primary: 'Jost', sans-serif !important;   /* rubriker */
  --global--font-secondary: 'Jost', sans-serif !important; /* brödtext */
}

/* Bastext */
body, p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: #000;
  margin-top: 1.5;
}

/* Rubriker – matchar dina val */
h1 { font-size: 42px; font-weight: 700; letter-spacing: 0; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: 0; line-height: 30px; color:#000; margin-top:25px; margin-bottom:7px; }

/* =========================
   H3 – SPACING
   ========================= */

h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 0;          /* hoppar inte ner om inget finns ovan */
  line-height: 1.35;
  margin-bottom: 0.1em;
}

/* Luft bara när H3 kommer efter brödtext/listor/bilder etc */
p + h3,
ul + h3,
ol + h3,
figure + h3,
.wp-block-image + h3,
.wp-block-gallery + h3,
.wp-block-group + h3,
.wp-block-columns + h3 {
  margin-top: 1.2em;
}

/* Ta bort extra toppmarginal på första elementet efter H3 */
h3 + p,
h3 + ul,
h3 + ol,
h3 + div,
h3 + .wp-block-list { margin-top: 0; }

/* Säkerställ samma beteende i Gutenberg/Elementor */
.entry-content h3 {
  margin-top: 0;
  margin-bottom: 0.1em;
  line-height: 1.35;
}
.elementor-widget-heading h3.elementor-heading-title {
  margin-top: 0;
  margin-bottom: 0.1em;
  line-height: 1.35;
}

/* =========================
   LISTOR – LUFT EFTER LISTA (FIX)
   ========================= */

/* Luft under listan (funkar även om nästa text inte är <p> eller om det ligger wrappers emellan) */
.entry-content ul,
.entry-content ol,
.entry-content .wp-block-list,
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
  margin-top: 0.6em;
  margin-bottom: 1.2em !important;  /* JUSTERA här vid behov */
}

/* Fallback: om nästa element är ett syskon direkt efter listan */
.entry-content ul + *,
.entry-content ol + *,
.entry-content .wp-block-list + *,
.elementor-widget-text-editor ul + *,
.elementor-widget-text-editor ol + * {
  margin-top: 0.9em !important;
}

h4 { font-size: 20px; font-weight: 300; letter-spacing: 0; margin-top: 20px; }
h5 { font-size: 16px; font-weight: 700; letter-spacing: normal; margin: 0; padding: 0; }
h6 { font-size: 10px; font-weight: 300; letter-spacing: 0; margin-top: 0; text-transform: none !important; }

/* (VIKTIGT) — INTE längre någon .woocommerce * { font-family: … } här */

/* =========================
   ALLMÄNT / NYTTA
   ========================= */

html, body { overflow-x: hidden; letter-spacing: 0; }

.elementor-widget-testimonial-carousel .elementor-testimonial__name,
.entry-content p,
.entry-content span,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.elementor-widget-testimonial-carousel .elementor-testimonial__text,
.entry-content,
input, textarea, button, .button, .faux-button, .faux-button.more-link,
.wp-block-button__link, .wp-block-file__button,
.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text p,
.wc_payment_method input.input-radio[name=payment_method]+label,
#site-content .woocommerce-error, #site-content .woocommerce-info,
.woocommerce-checkout form .col2-set label,
h2.woocommerce-loop-product__title,
.related.products h2,
.woocommerce-error, .woocommerce-info, .woocommerce-message,
.elementor-11 .elementor-element.elementor-element-ce4045c a.elementor-post__read-more,
.theme-twentytwenty a,
#sp-page h1,
.cart_totals .woocommerce-shipping-destination {
  font-style: normal;
  word-break: keep-all;
  letter-spacing: 0;
}

.select2-results { font-weight: 300 !important; }
* { letter-spacing: 0; }

.dashicons, .dashicons-before:before { font-family: dashicons !important; }
.broken_link, a.broken_link { text-decoration: none !important; }

.woocommerce-price-suffix { color: #000; font-weight: 300; display: block; }
.woocommerce-Price-amount { color:#e4606d; }

.elementor-button-text { font-weight: 700; }
.elementor-field-group .elementor-field-textual { font-size: 15px; font-weight: 300; }

.elementor-widget-text-editor { color: #000; }

.theme-twentytwenty a { color: #000; text-decoration: none; font-weight: 400; }
.theme-twentytwenty a:hover { text-decoration: underline; }

/* =========================
   HEADER / NAV
   ========================= */

.header-inner { height: 200px; max-width: 100vw; width: 99vw; }

body:not(.overlay-header) .primary-menu > li > a,
body:not(.overlay-header) .primary-menu > li > .icon,
.modal-menu a, .footer-menu a, .footer-widgets a,
#site-footer .wp-block-button.is-style-outline,
.wp-block-pullquote:before,
.singular:not(.overlay-header) .entry-header a,
.archive-header a,
.header-footer-group .color-accent,
.header-footer-group .color-accent-hover:hover,
.color-accent, .color-accent-hover:hover, .color-accent-hover:focus,
:root .has-accent-color,
.has-drop-cap:not(:focus):first-letter,
.wp-block-button.is-style-outline { color: #000 !important; }

.elementor-widget-posts .elementor-post__title a,
.elementor-widget-posts .elementor-post__read-more { color: #000 !important; }

.primary-menu > li { margin-right: 25px; }
.elementor-kit-5 button.sub-menu-toggle { background-color: #fff; }

body:not(.overlay-header) .primary-menu > li > a { text-transform: uppercase; }
ul.primary-menu { justify-content: flex-start; }
.primary-menu-wrapper { width: 90vw; margin: auto; }
ul.primary-menu { justify-content: center; }

.header-navigation-wrapper {
  width: 100vw; margin: auto; padding: 20px 0;
  -webkit-box-shadow: 5px 5px 5px 2px rgba(0,0,0,0.025);
  -moz-box-shadow: 5px 5px 5px 2px rgba(0,0,0,0.025);
  box-shadow: 5px 5px 5px 2px rgba(0,0,0,0.025);
  border: 0.5px solid #000; border-left: none; border-right: none;
}

.instagram { display: block; text-align: right; margin-top: -25px; }
.instagram-wrap { position: absolute; right: 0; }
a.instagram { color: #000; text-decoration: none; }

.header-text { max-width: 800px; }

.elementor-kit-5 button.mobile-nav-toggle,
.elementor-kit-5 button.close-nav-toggle { background-color: transparent; }

.toppbanner { background: #e22658; padding: 1% 10%; line-height: 38px; color: #fff; }
.toppbanner a { float: right; color: #fff; background: #f392a8; padding: 5px 50px 10px; border-radius: 5px; line-height: 20px; }

/* =========================
   FOOTER
   ========================= */

.footer-top-visible .footer-nav-widgets-wrapper,
.footer-top-hidden #site-footer { margin-top: 0; background: #F6EEE8; }

.footer-credits p, a.to-the-top, .footer-copyright a {
  font-size: 14px; color: #000 !important; text-decoration: underline;
}

/* =========================
   STARTSIDA
   ========================= */

.elementor-testimonial__image { display: none; }
.elementor-testimonial--layout-image_above .elementor-testimonial__image+cite,
.elementor-testimonial--layout-image_inline .elementor-testimonial__image+cite { margin-left: 0 !important; }
.elementor-testimonial__title { display: none; }
.elementor-testimonial__text:before { content: '"'; font-family: Georgia; display: block; font-size: 50px; }

.elementor-portfolio__filter { background: #f7f3ed; padding: 10px 30px !important; }
.elementor-widget-portfolio .elementor-portfolio__filter.elementor-active { text-decoration: underline; }

.elementor-widget-testimonial-carousel .elementor-testimonial__text,
.elementor-portfolio__filter {
  font-weight: 300 !important; font-style: normal !important; font-size: 15px !important;
}

#ajaxsearchlite2 .probox .proinput input,
div.asl_w .probox .proinput input, input.orig {
  font-size: 15px !important; font-weight: 300 !important;
}

.page-id-3830 .elementor-portfolio__filters li:nth-child(1):after { visibility: visible; content: " recept"; }
.footer-bella { width: 60%; }

/* =========================
   RECEPTLISTA
   ========================= */

.elementor-portfolio-item__overlay { opacity: 1 !important; }

.recept .elementor-post__thumbnail__link { height: calc(24vw + 90px); position: relative; }
.recept-wrap-column { width: 31%; float: left; margin: 1%; }
.recept-wrap-column .receptwrap { height: 100%; position: relative; }

.content-wrap-recept { height: 550px; }
.recept-title { color: #000; }

.recept .elementor-portfolio-item__overlay,
.recept .elementor-widget-portfolio a .elementor-portfolio-item__overlay {
  position: absolute; bottom: 0; background-color: rgba(247, 244, 237) !important;
  padding: 45px 20px; width: 100%; height: 40px; top: 24vw;
}
.recept h3.elementor-portfolio-item__title { width: 100%; line-height: 1.5; margin: auto; }

.recept .elementor-portfolio__filter,
.elementor-widget-portfolio .elementor-portfolio__filter.elementor-active {
  color: #000 !important; font-size: 25px; font-weight: 700 !important;
}

.recept .elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail img {
  object-fit: cover; height: auto; transition: all .2s ease-in-out;
}
.recept .elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail img:hover { opacity: 0.7; }

.recept h3.elementor-portfolio-item__title {
  font-size: 16px !important; line-height: 1.2; letter-spacing: normal; font-weight: 700 !important;
}
.elementor-portfolio-item__img { height: 24vw; }
.elementor-portfolio__filter { width: 15%; padding: 10px 5px !important; text-align: center; margin-bottom: 10px !important; }

.archive .rating-wrap { text-align: center; }

/* =========================
   RECEPTSIDA
   ========================= */

.theme-twentytwenty a.comment-reply-link { color: #fff; }
.photo-credit { text-transform: uppercase; color: #fff; font-weight: bold; text-align: center; font-size: 1.3rem; }
.featured-img-recept a:hover { text-decoration: none; }

.recept-template-default .rating-wrap .yasr-star-rating,
.search-results .yasr-star-rating { transform: scale(70%); margin: auto; display: block; }

.recept-template-default .yasr-vv-second-row-container { line-height: normal; display: block; margin: auto; width: fit-content; }

.recept-template-default .rating-wrap-footer .yasr-visitor-votes { margin:auto; display: block; width: fit-content; }
.recept-template-default .rating-wrap-footer { margin-top: 40px; }

.recept-template-default .recept-info-wrapper .yasr-visitor-votes { display: none; }
.recept-template-default.singular .entry-header { display: none; }
.recept-template-default.singular .entry-header { padding-top: 0; }

.recept-template-default.singular .featured-media-inner { overflow: hidden; width: 100%; display: inline-block; left: auto; }
.recept-template-default.singular .featured-media-inner img {
  object-fit: cover; object-position: center; margin-top: 50%; transform: translate(0, -50%);
}

.recept-content-wrapper { margin: auto; }
.recept-content, .recept-title-single { width: 60vw; margin: auto; }
.recept-info-wrapper { display: block; }
.recept-overlay { background: rgba(0,0,0,0.4); padding: 9rem 0; }

.recept-template-default #site-content { padding-top: 0; width: 100vw; }
a.recept-category { font-weight: 200; }
.recept-category:before { content: "•"; }
img.recept-img { margin: 40px auto 0; width: 100%; max-width: 580px; }
.featured-img-recept { background-size: cover; background-position: center; margin-bottom: 20px; }

.recept-title-single h1, .recept-title-single h6 { color: #fff; text-align: center; }

.featured-img { padding: 0; height: 100%; width: 100%; }
.featured-img img { width: 100%; margin-bottom: 40px; }

.recept-ingredienser { background: #f7f3ed; padding: 30px; }
.recept .post-date { display: none; }

/* =========================
   ÖVRIGT
   ========================= */

.instagram-wrap a.instagram {
  width: 100%; text-align: center; margin-top: 20px; z-index: 99; position: relative;
  background: #fff; padding: 10px;
  -webkit-box-shadow: 5px 5px 5px 2px rgba(0,0,0,0.025);
  -moz-box-shadow: 5px 5px 5px 2px rgba(0,0,0,0.025);
  box-shadow: 5px 5px 5px 2px rgba(0,0,0,0.025);
}

.header-navigation-wrapper div[id*='ajaxsearchlite'].wpdreams_asl_container {
  width: 40%; position: absolute; right: 0; transform: translate(-30px, -25px); z-index: 99999;
}

.info-wrap {
  background-image: url(Banner-bild-mellistipset.png);
  background-size: cover; padding: 100px 50px; width: calc(25% - 20px); margin: 10px; float: left; min-height: 500px;
}
.info-wrap .entry-title { font-size: 40px; }
.info-wrap .entry-content > *{ margin-left: 0; margin-top: 30px; }
.inforutor { width: 90vw; margin: auto; max-width: none; min-height: 50vh; }
.pagination-single.section-inner { width: 90vw; margin-top: 100px; }
.section-inner { max-width: none; }

.category-block { margin-top: 40px; }

/* =========================
   POST
   ========================= */

section.elementor-top-section { padding: 4rem 0; }
.singular .featured-media { margin-bottom: 50px; }

#site-content { width: 60vw; margin: auto; padding-top: 50px; }

.entry-header .section-inner { width: 100%; }
.entry-header h1 { text-align: left; }
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) { max-width: none; width: 100%; }
.post-inner .elementor-column-gap-wider>.elementor-column>.elementor-element-populated { padding: 0; }
.singular .entry-header { padding: 10px; }

.singular .featured-media-inner { position: relative; left: 0; width: 100%; }
.pagination-single.section-inner { width: 100%; }

/* =========================
   PRODUKT / WOO
   ========================= */

.woocommerce-breadcrumb { display: none; }
.single-product div.product .product_meta { display: none; }
.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images { display: inline-block; float: none; }

.woocommerce-message { background: #F7F3ED; }

a.button { color: #fff !important; }
.woocommerce { margin: auto; }

.woocommerce-checkout #site-content .woocommerce { padding: 40px 0; max-width: 100%; }

.woocommerce-checkout form .col2-set,
.woocommerce-checkout form #order_review,
.woocommerce-checkout form #order_review_heading {
  width: 100%; padding-left: 0;
}

.payment_method_klarna_payments_pay_now a,
.payment_method_klarna_payments_pay_later a { line-height: 20px !important; margin-right: 10px; }

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  float: none; width: 48%; margin: auto;
}

.cart_totals h2 { font-size: 30px; }

.woocommerce-shop .woocommerce-products-header__title,
.archive .woocommerce-products-header__title { display: none; }

.woocommerce-result-count, .woocommerce-ordering { display: none; }

.product-template-default h1 { font-size: 4rem; }
.product-template-default h2 { font-size: 2.5rem; }

.woocommerce-cart-form .actions .input-text {
  padding-top: 1.1rem; padding-bottom: 1.1rem; margin-right: 10px;
}

.woocommerce-Price-amount { font-weight: 600; }
.woocommerce-additional-fields { display: block; }

/* =========================
   COMMENTS
   ========================= */

.comment-respond .comment-form-author,
.comment-respond .comment-form-email,
.comment-respond p:not(.comment-notes) { width: 100%; }

/* =========================
   SEARCH RESULT
   ========================= */

.search-results .recept-content,
.search-results .rating-wrap-footer,
.search-results .entry-header-inner,
.search-results .post-separator { display: none; }

/* =========================
   RESPONSIVT
   ========================= */

@media (min-width: 100px) {
  .header-titles-wrapper { margin: auto; }
  .start-hero { margin-left: 10%; }
}
@media (min-width: 700px) {
  .site-logo img { max-height: 140px; }
}
@media (max-width: 998px) {
  .elementor-16923 .elementor-element.elementor-element-36b07820>.elementor-widget-container { padding: 1%; }
  .recept-content, .featured-img { width: 100%; padding: 10px; margin-bottom: 50px; }
  .recept-info-wrapper { display: block; }
  .recept-content-wrapper { width: 95vw; }
  .site-logo img { max-height: 130px; }
  .elementor-13 .elementor-element.elementor-element-7086819 { }
  .elementor-13 .elementor-element.elementor-element-7086819:not(.elementor-motion-effects-element-type-background),
  .elementor-13 .elementor-element.elementor-element-7086819 > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-position: 72% !important; }
  .modal-menu li { border: none; }
  .modal-menu > li > a, .modal-menu > li > .ancestor-wrapper > a { font-weight: 300; }
  .instagram-wrap { position: relative; }
  .recept .elementor-post__thumbnail__link { height: calc(38vw + 90px); }
  .elementor-portfolio-item__img { height: 38vw; }
  .recept .elementor-portfolio-item__overlay,
  .recept .elementor-widget-portfolio a .elementor-portfolio-item__overlay { top: 38vw; }
  #site-content { width: 90vw; margin: auto; padding-top: 50px; }
  h1 { font-size: 2.8rem; margin-left: 30px; }
  li.menu-item-has-children { background: rgb(246, 238, 232, 0.3); border-top: 1px solid #fff; }
  li.menu-item { padding: 0 20px; }
  .elementor-kit-5 button.sub-menu-toggle { background-color: transparent; }
}

/* Mobil: ändra storlek/radavstånd – behåll spacing-logiken ovan */
@media (max-width: 740px) {
  h3 { font-size:1.55rem; line-height: 1.3; margin-top: 0; margin-bottom: 0.1em; }
  h1 { font-size: 4rem; }
  h2, .heading-size-2 { font-size: 2.6rem; }
  .elementor-13 .elementor-element.elementor-element-7086819 { padding: 200px 0 0 0 !important; }
  .elementor-13 .elementor-element.elementor-element-9d4f64f > .elementor-element-populated { padding-bottom: 5%; }
  .elementor-13 .elementor-element.elementor-element-7086819:not(.elementor-motion-effects-element-type-background),
  .elementor-13 .elementor-element.elementor-element-7086819 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-size: 180% !important; background-repeat: no-repeat !important; background-position: top right !important;
  }
  .elementor-13 .elementor-element.elementor-element-7805f54 { padding: 0 !important; }
  .elementor-widget-testimonial-carousel .swiper-slide { padding: 10px 5px !important; }
  .start-hero .elementor-column { background: #f7f3ed; }
  .elementor-13 .elementor-element.elementor-element-7086819 { padding: 350px 0 0 0 !important; }
  .start-hero .elementor-element-populated { padding: 20px 40px 40px 40px !important; }
  .start-hero { transform: translate(0, 300px); background: #f7f3ed; padding: 0 25px 25px; margin-left: 0; }
  .hero-img { margin-bottom: 210px; }
  .elementor-portfolio__filter { width: 47%; }
  .recept .elementor-post__thumbnail__link { height: calc(45vw + 90px); }
  .elementor-portfolio-item__img { height: 45vw; }
  .recept .elementor-portfolio-item__overlay,
  .recept .elementor-widget-portfolio a .elementor-portfolio-item__overlay { top: 45vw; }
  .site-logo img { max-height: 80px; }
  .header-inner { height: 120px; padding: 20px; }
  .recept .elementor-portfolio-item__overlay,
  .recept .elementor-widget-portfolio a .elementor-portfolio-item__overlay { padding: 45px 10px; }
  .toppbanner { text-align: center; line-height: 20px; padding: 5%; }
  .toppbanner a { float: none; position: relative; display: block; margin-top: 10px; }
  .toggle-inner .toggle-text { top: calc(100% + 0.1rem); }
  h1 { font-size: 3rem; margin-left: 0; }
  .recept-title-single { width: 80vw; }
  h5 { margin-top: 0; }
  .woocommerce-cart-form table td.product-thumbnail,
  .woocommerce table.shop_table_responsive tr .product-thumbnail img,
  .woocommerce-page table.shop_table_responsive tr .product-thumbnail img,
  .woocommerce #content table.cart td.actions .coupon .button,
  .woocommerce #content table.cart td.actions .coupon .input-text,
  .woocommerce #content table.cart td.actions .coupon input,
  .woocommerce table.cart td.actions .coupon .button,
  .woocommerce table.cart td.actions .coupon .input-text,
  .woocommerce table.cart td.actions .coupon input,
  .woocommerce-page #content table.cart td.actions .coupon .button,
  .woocommerce-page #content table.cart td.actions .coupon .input-text,
  .woocommerce-page #content table.cart td.actions .coupon .input-text,
  .woocommerce-page #content table.cart td.actions .coupon input {
    width: 100%;
  }
  .woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 95%; }
}

@media (max-width: 420px) {
  .recept .elementor-post__thumbnail__link { height: calc(45vw + 90px); }
  .elementor-portfolio-item__img { height: 45vw; }
  .recept .elementor-portfolio-item__overlay,
  .recept .elementor-widget-portfolio a .elementor-portfolio-item__overlay { top: 45vw; }
  #site-content { width: 90vw; margin: auto; padding-top: 50px; }
  h3 { font-size: 1.8rem; line-height: 1.3; margin-top: 0; margin-bottom: 0.1em; }
}

/* ---- Ikonpilar & zoom på produktsida (single product) ---- */

/* 0) Viktigt: se till att INTE ha kvar en global regel som sätter
      .woocommerce, .woocommerce * { font-family: 'Jost' !important; }
   Om den finns – ta bort den. */

/* 1) Menyns pilar även på produktsidor */
.single-product .site-header .primary-menu .icon,
.single-product .site-header .primary-menu .icon:before,
.product-template-default .site-header .primary-menu .icon,
.product-template-default .site-header .primary-menu .icon:before {
  font-family: 'twentytwenty-icons','dashicons','eicons','flexslider-icon' !important;
  font-weight: normal !important;
  font-style: normal !important;
}

/* 2) WooCommerce bildgalleri – nästa/föregående pilar */
.woocommerce div.product div.images .flex-direction-nav a:before {
  font-family: 'flexslider-icon','twentytwenty-icons','dashicons','eicons' !important;
  font-weight: normal !important;
  font-style: normal !important;
}

/* 3) WooCommerce zoom-ikon (liten “förstoringsglas”-knapp) */
.woocommerce-product-gallery__trigger:before {
  font-family: 'flexslider-icon','dashicons','twentytwenty-icons','eicons' !important;
  font-weight: normal !important;
  font-style: normal !important;
}

/* 4) Om något fortfarande råkar tvinga Jost på pilarna inne på produktsidan,
      nollställ font på själva headern inom single-product. */
.single-product .site-header,
.product-template-default .site-header {
  font-family: inherit !important;
}
/* =========================
   FIX: Luft efter listor (Gutenberg + Elementor)
   Lägg detta LÄNGST NER i style.css
   ========================= */

/* 1) Luft under själva listan (täcker även Elementor Icon List) */
.entry-content ul,
.entry-content ol,
.entry-content .wp-block-list,
.entry-content .wp-block-list ul,
.entry-content .wp-block-list ol,
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol,
.elementor-icon-list,
.elementor-icon-list-items {
  margin-bottom: 1.2em !important;
}

/* 2) Luft ovanför första texten som kommer efter listan (oavsett om det är p/div/annan widget) */
.entry-content ul + *,
.entry-content ol + *,
.entry-content .wp-block-list + *,
.entry-content .wp-block-list ul + *,
.entry-content .wp-block-list ol + *,
.elementor-widget-text-editor ul + *,
.elementor-widget-text-editor ol + *,
.elementor-widget-icon-list + *,
.elementor-icon-list + * {
  margin-top: 0.9em !important;
}

/* 3) Extra fallback om texten efter listan ligger i en wrapper/div */
.entry-content ul + div > p:first-child,
.entry-content ol + div > p:first-child,
.elementor-widget-text-editor ul + div > p:first-child,
.elementor-widget-text-editor ol + div > p:first-child,
.elementor-widget-icon-list + div > p:first-child {
  margin-top: 0.9em !important;
}
