/* Nagłówek zapisu „Odkryj więcej…” pod wpisami i w LearnDash */
.wp-block-group:has(> .wp-block-group .wp-block-jetpack-subscriptions) > h3.wp-block-heading {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
}


/* Ukryj sekcję zapisu dla subskrybentów rozpoznanych przez Jetpack. */
.wp-block-group:has(> h3.wp-block-heading):has(> .wp-block-group .wp-block-jetpack-subscriptions__container:not(.is-not-subscriber)) {
  display: none;
}

/* Kolory Przestrzeni w LearnDash: krem, ciepły róż i grafit. */
.learndash-wrapper .ld-course-status.ld-course-status-enrolled,
.learndash-wrapper .ld-breadcrumbs { background-color: #FAEDF5; }
.learndash-wrapper .ld-item-list .ld-item-list-item,
.learndash-wrapper .ld-table-list,
.learndash-wrapper .ld-table-list .ld-table-list-item,
.learndash-wrapper .ld-content-actions { border-color: #E6D5DE; }
.learndash-wrapper .ld-status-icon.ld-status-incomplete { border-color: #D1C3CB; }
.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name,
.learndash-wrapper .ld-table-list-item-preview { color: #242321; }
.learndash-wrapper .ld-progress-steps,
.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat > span { color: #70656B; }
.learndash-wrapper .ld-item-list .ld-item-list-item.ld-is-next { border-color: #A83279; }
.learndash-wrapper .ld-button:focus-visible,
.learndash-wrapper .ld-expand-button:focus-visible,
.learndash-wrapper .learndash_mark_complete_button:focus-visible { opacity: 1 !important; outline: 3px solid #87285F; outline-offset: 3px; }
.learndash-wrapper .ld-button:hover:not([disabled]),
.learndash-wrapper .ld-expand-button:hover:not([disabled]) { opacity: 1; }

/* Ramki zawartości szkoleń — spójne z kartami w Moim koncie. */
body.learndash-cpt .learndash-wrapper .ld-item-list .ld-item-list-items { display: grid; gap: 12px; }
body.learndash-cpt .learndash-wrapper .ld-item-list .ld-item-list-items > .ld-item-list-item { margin: 0; padding: 0; border: 1px solid #E6D5DE; border-radius: 13px; background: #fff; }
body.learndash-cpt .learndash-wrapper .ld-item-list .ld-item-list-items > .ld-item-list-item:hover { border-color: #C786AA; }
body.learndash-cpt .learndash-wrapper .ld-item-list .ld-item-list-items > .ld-item-list-item > .ld-item-list-item-preview { padding: 20px 22px; border-radius: 12px; }
body.learndash-cpt .learndash-wrapper .ld-item-list .ld-item-list-items > .ld-item-list-item > .ld-item-list-item-expanded { border-radius: 0 0 12px 12px; overflow: hidden; }
@media (max-width: 600px) {
 body.learndash-cpt .learndash-wrapper .ld-item-list .ld-item-list-items > .ld-item-list-item > .ld-item-list-item-preview { padding: 18px; }
}

/* Paginacja profilu: usuń limit 180px i ucinanie prawego przycisku. */
body.page-id-88.woocommerce-account #ld-profile > .ld-pagination-page-profile .ld-pages { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 16px; flex: 1 1 auto; width: 100%; min-width: 0; max-width: none; overflow: visible; }
body.page-id-88.woocommerce-account #ld-profile > .ld-pagination-page-profile .ld-pages > a { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; white-space: nowrap; }
body.page-id-88.woocommerce-account #ld-profile > .ld-pagination-page-profile .ld-pages > a:first-child { justify-self: start; }
body.page-id-88.woocommerce-account #ld-profile > .ld-pagination-page-profile .ld-pages > a:last-child { justify-self: end; }
body.page-id-88.woocommerce-account #ld-profile > .ld-pagination-page-profile .ld-pages > span { justify-self: center; text-align: center; white-space: nowrap; }
@media (max-width: 600px) {
 body.page-id-88.woocommerce-account #ld-profile > .ld-pagination-page-profile .ld-pages { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
 body.page-id-88.woocommerce-account #ld-profile > .ld-pagination-page-profile .ld-pages > span { grid-column: 1 / -1; grid-row: 1; }
 body.page-id-88.woocommerce-account #ld-profile > .ld-pagination-page-profile .ld-pages > a:first-child { grid-column: 1; grid-row: 2; }
 body.page-id-88.woocommerce-account #ld-profile > .ld-pagination-page-profile .ld-pages > a:last-child { grid-column: 2; grid-row: 2; }
 body.page-id-88.woocommerce-account #ld-profile > .ld-pagination-page-profile .ld-pages > a { min-width: 0; align-self: stretch; padding: 10px 12px; font-size: 12px; text-align: center; white-space: normal; }
}

/* Przestrzeń — palette sampled from the owner's reference graphics. */
:root {
  --lo-brand-lime: #d9dc33;
  --lo-brand-orange: #e95c02;
  --lo-brand-purple: #500355;
  --lo-brand-ink: #201624;
  --lo-brand-soft: #f6f1f8;
  --lo-brand-border: #d9cbe0;
}

/* Primary actions. Payment-provider widgets keep their own branding. */
body :is(.wp-element-button, .wp-block-button__link, .button, .wc-block-components-button) {
  border-radius: 8px;
  font-weight: 600;
  text-transform: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) :is(.wp-element-button, .wp-block-button__link, .button, .wc-block-components-button) {
  background-color: var(--lo-brand-lime) !important;
  color: var(--lo-brand-ink) !important;
  border-color: var(--lo-brand-lime) !important;
}
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) :is(.wp-element-button, .wp-block-button__link, .button, .wc-block-components-button):where(:hover:not(:disabled):not(.disabled)) {
  background-color: var(--lo-brand-orange) !important;
  border-color: var(--lo-brand-orange) !important;
  color: var(--lo-brand-ink) !important;
}

/* Secondary and outlined actions. */
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .is-style-outline > .wp-block-button__link,
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .lo-outlet-book-links a {
  background-color: #fff !important;
  color: var(--lo-brand-purple) !important;
  border-color: #baa0c1 !important;
}
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .is-style-outline > .wp-block-button__link:hover,
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .lo-outlet-book-links a:hover {
  background-color: var(--lo-brand-lime) !important;
  border-color: var(--lo-brand-purple) !important;
  color: var(--lo-brand-ink) !important;
}
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .products a.button:not(.add_to_cart_button),
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .products a.product_type_variable,
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .lo-cart-page button[name="update_cart"],
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .learndash-wrapper :is(.ld-button, .ld-expand-button) {
  background-color: var(--lo-brand-purple) !important;
  color: #fff !important;
  border-color: var(--lo-brand-purple) !important;
}
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .products a.button:not(.add_to_cart_button):hover,
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .products a.product_type_variable:hover,
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .lo-cart-page button[name="update_cart"]:hover:not(:disabled),
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .learndash-wrapper :is(.ld-button, .ld-expand-button):hover:not(:disabled) {
  background-color: #701d75 !important;
  color: #fff !important;
  border-color: #701d75 !important;
}
/* Original colour of the main Academy navigation button. */
body .przestrzen-main-nav .przestrzen-nav-academy > a {
  border-radius: 8px;
  background-color: #A83279 !important;
  color: #fff !important;
  border-color: #A83279 !important;
}
body .przestrzen-main-nav .przestrzen-nav-academy > a:hover {
  background-color: #87285F !important;
  color: #fff !important;
  border-color: #87285F !important;
}

/* Orange accents: search and applying a discount code. */
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .wp-block-search__button,
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .lo-cart-page button[name="apply_coupon"] {
  background-color: var(--lo-brand-orange) !important;
  color: var(--lo-brand-ink) !important;
  border-color: var(--lo-brand-orange) !important;
}
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .wp-block-search__button:hover,
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) .lo-cart-page button[name="apply_coupon"]:hover {
  background-color: #f07523 !important;
  color: var(--lo-brand-ink) !important;
  border-color: #f07523 !important;
}
body .wp-block-search__button svg { fill: currentColor; }

/* Keep unavailable actions visually distinct. */
body:not(:where(.woocommerce, .woocommerce-cart, .woocommerce-checkout)) :is(.wp-element-button, .wp-block-button__link, .button, .wc-block-components-button):is(:disabled, .disabled, [aria-disabled="true"]) {
  background-color: #ece8ee !important;
  color: #716775 !important;
  border-color: #d5cdd9 !important;
}

/* Readable focus states and cart details in the same palette. */
body :is(.wp-element-button, .wp-block-button__link, .button, .wc-block-components-button, .lo-outlet-book-links a, .lo-cart-coupon summary):focus-visible,
body .learndash-wrapper :is(.ld-button, .ld-expand-button, .learndash_mark_complete_button):focus-visible {
  outline: 3px solid var(--lo-brand-orange) !important;
  outline-offset: 3px;
}
body .lo-cart-page :is(a, button, input):focus-visible { outline-color: var(--lo-brand-orange) !important; }
body .lo-cart-page .lo-cart-steps span { border-color: var(--lo-brand-border); }
body .lo-cart-page .lo-cart-steps [aria-current="step"] { color: #7b2b5c; }
body .lo-cart-page .lo-cart-steps [aria-current="step"] span {
  background: #ad2d7e;
  border-color: #ad2d7e;
  color: #fff;
}
body .lo-cart-page :is(.lo-cart-heading a, .lo-cart-coupon summary) { color: #7b2b5c; }
body .lo-cart-page .lo-cart-coupon summary::marker { color: #ad2d7e; }
body .lo-cart-page :is(table.shop_table, .cart_totals, .quantity .qty, #coupon_code) { border-color: var(--lo-brand-border); }
body .lo-cart-page table.cart th { background: #f7f8e7; color: var(--lo-brand-purple); }
body .lo-cart-page table.cart td.actions { background: var(--lo-brand-soft); }
body :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--lo-brand-purple); }
body :is(.przestrzen-site-header, .lo-shop-header) .wp-block-navigation__responsive-container-open {
  color: var(--lo-brand-purple) !important;
  border-color: var(--lo-brand-border) !important;
}

/* Larger, crisp original logo on the main site and in the shop. */
body :is(.przestrzen-site-header, .lo-shop-header) .wp-block-site-logo {
  width: 104px !important;
  max-width: 104px !important;
  flex: 0 0 104px;
}
body :is(.przestrzen-site-header, .lo-shop-header) .wp-block-site-logo img {
  display: block;
  width: 104px !important;
  max-width: 104px !important;
  height: auto !important;
}
@media (max-width: 782px) {
  body :is(.przestrzen-site-header, .lo-shop-header) .wp-block-site-logo {
    width: 88px !important;
    max-width: 88px !important;
    flex-basis: 88px;
  }
  body :is(.przestrzen-site-header, .lo-shop-header) .wp-block-site-logo img {
    width: 88px !important;
    max-width: 88px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body :is(.wp-element-button, .wp-block-button__link, .button, .wc-block-components-button) { transition: none; }
}


/* Przywrócenie wcześniejszego różowego akcentu etapów zamówienia i kuponu. */
body.woocommerce-checkout .lo-checkout-steps li[aria-current="step"] {
  background: #ad2d7e;
  border-color: #ad2d7e;
  color: #fff;
}
body.woocommerce-checkout .lo-checkout-page .woocommerce-info::before {
  color: #ad2d7e;
}
body.woocommerce-checkout .lo-checkout-page .woocommerce-form-coupon-toggle .wc-block-components-notice-banner.is-info > svg {
  background: #ad2d7e !important;
  fill: #fff !important;
}
body.woocommerce-checkout .lo-checkout-page :is(.lo-checkout-heading a, .woocommerce-info a, .showcoupon, .lo-checkout-notes summary) {
  color: #7b2b5c;
}
body.woocommerce-checkout .lo-checkout-page :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: #ad2d7e;
}

/* Szerszy obszar Akademii: kursy, zagadnienia, tematy i quizy. */
body.learndash-cpt .wp-block-post-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 1300px;
}

/* Instagram gallery — shared site width, aligned with the main header. */
body .wp-site-blocks .wp-block-jetpack-instagram-gallery {
  box-sizing: border-box;
  display: grid !important;
  width: calc(100% - 48px);
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  --latest-instagram-posts-spacing: 16px !important;
}
body .wp-site-blocks .wp-block-jetpack-instagram-gallery img {
  display: block;
  width: 100%;
  height: auto;
}
body .wp-site-blocks .wp-block-jetpack-instagram-gallery > a:focus-visible {
  outline: 3px solid #87285F;
  outline-offset: 1px;
}
@media (max-width: 760px) {
  body .wp-site-blocks .wp-block-jetpack-instagram-gallery {
    width: calc(100% - 40px);
    padding: 4px 4px 12px;
    grid-template-columns: none !important;
    grid-template-rows: auto;
    grid-auto-flow: column;
    grid-auto-columns: clamp(144px, 42vw, 190px);
    align-items: start;
    gap: 12px !important;
    --latest-instagram-posts-spacing: 12px !important;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-left: 4px;
    scrollbar-width: thin;
  }
  body .wp-site-blocks .wp-block-jetpack-instagram-gallery > a {
    min-width: 0;
    scroll-snap-align: start;
  }
}

/* Czytelne tytuły Akademii na telefonach i w wąskim podglądzie. */
@media (max-width: 782px) {
  body.learndash-cpt main > .wp-block-columns:has(h1.wp-block-post-title) {
    display: block;
    gap: 0;
  }
  body.learndash-cpt main > .wp-block-columns:has(h1.wp-block-post-title) > .wp-block-column {
    width: 100%;
    min-width: 0;
  }
  body.learndash-cpt main > .wp-block-columns:has(h1.wp-block-post-title) > .wp-block-column:empty {
    display: none;
  }
  body.learndash-cpt .wp-block-cover:has(h1.wp-block-post-title) {
    min-height: 0 !important;
    height: auto;
    padding: 28px 20px !important;
  }
  body.learndash-cpt .wp-block-cover:has(h1.wp-block-post-title) .wp-block-cover__inner-container {
    min-width: 0;
    width: 100%;
  }
  body.learndash-cpt h1.wp-block-post-title {
    max-width: 100%;
    margin-top: .4em;
    margin-bottom: 0;
    font-size: clamp(22px, 5.5vw, 28px) !important;
    text-transform: none !important;
    white-space: normal;
    line-height: 1.25 !important;
    letter-spacing: -.015em;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    text-wrap: balance;
  }
  body.learndash-cpt .wp-block-cover:has(h1.wp-block-post-title) .wp-block-post-date {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* Zwarty nagłówek Akademii na komputerze — bez pustego ekranu 80vh. */
@media (min-width: 783px) {
  body.learndash-cpt main > .wp-block-columns:has(h1.wp-block-post-title) {
    align-items: stretch;
    gap: 0;
  }
  body.learndash-cpt main > .wp-block-columns:has(h1.wp-block-post-title) > .wp-block-column {
    align-self: stretch;
    min-width: 0;
  }
  body.learndash-cpt main > .wp-block-columns:has(h1.wp-block-post-title) .wp-block-cover {
    min-height: 0 !important;
    height: 100%;
  }
  body.learndash-cpt .wp-block-cover:has(h1.wp-block-post-title) {
    padding: 36px max(24px, calc((100% - 1300px) / 2)) 40px !important;
  }
  body.learndash-cpt main > .wp-block-columns:has(h1.wp-block-post-title):has(> .wp-block-column:empty) {
    display: block;
  }
  body.learndash-cpt main > .wp-block-columns:has(h1.wp-block-post-title):has(> .wp-block-column:empty) > .wp-block-column:empty {
    display: none;
  }
  body.learndash-cpt .wp-block-cover:has(h1.wp-block-post-title) .wp-block-cover__inner-container {
    width: 100%;
    max-width: 1300px;
    min-width: 0;
    margin-inline: auto;
  }
  body.learndash-cpt h1.wp-block-post-title {
    margin-top: .4em;
    margin-bottom: 0;
    font-size: clamp(30px, 3vw, 44px) !important;
    line-height: 1.2 !important;
    letter-spacing: -.015em;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: balance;
  }
  body.learndash-cpt .wp-block-cover:has(h1.wp-block-post-title) .wp-block-post-date {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* Blog listings and article frames align with the main header. */
body .wp-block-newspack-blocks-homepage-articles {
  box-sizing: border-box;
  width: 100%;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}
body:is(.single-post, .blog, .category, .tag) .wp-site-blocks > main {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  --wp--style--root--padding-left: 0px;
  --wp--style--root--padding-right: 0px;
}

/* Editorial section: shared rhythm, readable article cards and topic navigation. */
body:is(.page-id-895, .page-id-704) .wp-site-blocks > main {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  --wp--style--root--padding-left: 0px;
  --wp--style--root--padding-right: 0px;
}
body:is(.page-id-895, .page-id-704) main > .wp-block-group:first-child,
body:is(.page-id-895, .page-id-704) main > .wp-block-spacer,
body:is(.page-id-895, .page-id-704) .wp-site-blocks > main + .wp-block-spacer { display: none; }
body:is(.page-id-895, .page-id-704) main > .entry-content { margin-top: 0; padding-left: 0; padding-right: 0; }
body.page-id-895 .entry-content > .wp-block-jetpack-layout-grid { width: 100%; max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0; padding-right: 0; }
body:is(.page-id-895, .page-id-704) .lo-editorial-intro { box-sizing: border-box; max-width: 1480px; margin: 0 0 36px !important; padding: 28px 0 0; text-align: left; }
body:is(.page-id-895, .page-id-704) .lo-editorial-intro h1 { margin: 0 0 14px; color: #242321; font-size: clamp(32px, 3.2vw, 46px); font-weight: 650; line-height: 1.18; letter-spacing: -.025em; }
body:is(.page-id-895, .page-id-704) .lo-editorial-intro p { max-width: 760px; margin: 0; color: #514A50; font-size: 18px; line-height: 1.65; }
body:is(.page-id-895, .page-id-704) .sharedaddy { max-width: 1480px !important; margin-top: 36px !important; }
body:is(.page-id-895, .page-id-704) .sharedaddy h3.sd-title { color: #6C6068; font-size: 13px; font-weight: 500; }
body:is(.page-id-895, .page-id-704) .wp-site-blocks > main + .wp-block-spacer + .wp-block-jetpack-instagram-gallery { margin-top: 64px; }

/* Native Newspack data, image links and load-more remain in place. */
body .lo-editorial-articles > div[data-posts] { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
body .lo-editorial-articles > div[data-posts] > article { box-sizing: border-box; display: flex !important; flex-direction: column; float: none !important; width: auto !important; min-width: 0; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden; background: #FFF; border: 1px solid #E4CCDA; border-radius: 14px; color: #242321; box-shadow: none; }
body .lo-editorial-articles article .post-thumbnail { position: relative !important; inset: auto !important; display: block; flex: none; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; margin: 0 !important; overflow: hidden; background: #F4EEF2; }
body .lo-editorial-articles article .post-thumbnail::after { display: none !important; }
body .lo-editorial-articles article .post-thumbnail > a { display: block; width: 100%; height: 100%; }
body .lo-editorial-articles article .post-thumbnail img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; object-position: center; }
body .lo-editorial-articles article .entry-wrapper { box-sizing: border-box; position: relative !important; display: flex !important; flex: 1; flex-direction: column; width: 100% !important; padding: 24px !important; background: transparent !important; color: #242321 !important; }
body .lo-editorial-articles article .entry-title { margin: 0 0 12px !important; color: #242321 !important; font-size: 24px !important; font-weight: 650; line-height: 1.3 !important; }
body .lo-editorial-articles article .entry-title a { color: #242321 !important; text-decoration: none; }
body .lo-editorial-articles article .entry-title a:hover { color: #A83279 !important; text-decoration: underline; text-underline-offset: 3px; }
body .lo-editorial-articles article .entry-wrapper > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 0 0 20px !important; color: #514A50 !important; font-size: 16px !important; line-height: 1.65 !important; }
body .lo-editorial-articles article .entry-meta { margin-top: auto !important; padding-top: 12px; border-top: 1px solid #EEE4EB; color: #6C6068 !important; font-size: 13px !important; line-height: 1.5; }
body .lo-editorial-articles article:not(.post-has-image) { border-top: 5px solid #D984B8; background: #F8EAF3; }
body .lo-editorial-articles article:focus-within { border-color: #A83279; }
body .lo-editorial-articles a:focus-visible,
body .lo-editorial-articles button:focus-visible { outline: 3px solid #87285F; outline-offset: 3px; }
body .lo-editorial-articles button { min-height: 46px; margin: 32px auto 0; padding: 12px 24px; border: 1px solid #A83279 !important; border-radius: 999px; background: #D984B8 !important; color: #111 !important; font: inherit; font-weight: 600; }
body .lo-editorial-articles button:hover { background: #C96BA5 !important; color: #111 !important; }

/* Pogadanki: nine existing destinations, each with a clear whole-card link. */
body.page-id-704 .lo-talks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1480px; margin: 0 !important; }
body.page-id-704 .lo-talk-topic { box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 164px; padding: 26px; border: 1px solid #E4CCDA; border-radius: 14px; background: #FFF; color: #242321; text-decoration: none; }
body.page-id-704 .lo-topic-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
body.page-id-704 .lo-topic-title { color: #242321; font-size: 23px; font-weight: 650; line-height: 1.3; }
body.page-id-704 .lo-topic-arrow { flex: none; color: #A83279; font-size: 24px; line-height: 1.2; }
body.page-id-704 .lo-topic-description { color: #514A50; font-size: 16px; line-height: 1.6; }
body.page-id-704 .lo-talk-topic:hover { border-color: #A83279; background: #F8EAF3; }
body.page-id-704 .lo-talk-topic:hover .lo-topic-title { color: #87285F; }
body.page-id-704 .lo-talk-topic:focus-visible { outline: 3px solid #87285F; outline-offset: 3px; }
@media (max-width: 1100px) {
  body .lo-editorial-articles > div[data-posts], body.page-id-704 .lo-talks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  body .lo-editorial-articles article .entry-title { font-size: 22px !important; }
  body.page-id-704 .lo-topic-title { font-size: 21px; }
}
@media (max-width: 640px) {
  body .lo-editorial-articles > div[data-posts], body.page-id-704 .lo-talks-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body:is(.page-id-895, .page-id-704) .lo-editorial-intro { margin-bottom: 26px !important; padding-top: 18px; }
  body:is(.page-id-895, .page-id-704) .lo-editorial-intro p { font-size: 17px; }
  body .lo-editorial-articles article .entry-wrapper { padding: 20px !important; }
  body.page-id-704 .lo-talk-topic { min-height: 0; padding: 20px; gap: 10px; }
  body.page-id-704 .lo-topic-description { font-size: 15px; }
}

/* Wspólna wysokość grafiki w nagłówkach LearnDash. */
body.learndash-cpt main > .wp-block-columns:has(h1.wp-block-post-title) .wp-block-post-featured-image {
  margin: 0;
}
body.learndash-cpt main > .wp-block-columns:has(h1.wp-block-post-title) .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: clamp(180px, 22vw, 300px) !important;
  object-fit: cover;
}


/* Hide installment teasers on product cards; keep the main product and checkout widgets. */
body :is(li.product, li.wc-block-product, .wc-block-grid__product) [id^="installment-mini-"],
body :is(li.product, li.wc-block-product, .wc-block-grid__product) div:has(> [id^="installment-mini-"]) {
  display: none !important;
}
