/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* === MIGRATION FIX 2026-06-11: woodmart per-page CSS map empty after clone =>
   elem-opt-collapsible-content.css part not enqueued => collapsible overflowed
   into footer (visible on long category descriptions e.g. /c/dobavki/).
   Restore the theme rule globally until per-page CSS regenerates. === */
.wd-collapsible-content.e-con,
.wd-collapsible-content.elementor-column > .elementor-widget-wrap { overflow: hidden; }

/* === MIGRATION FIX COMPLETE 2026-06-11:
   Full Woodmart collapsible-content behavior. The previous partial fix restored
   overflow only, leaving opened descriptions locked at their initial height. === */
.wd-collapsible-content.elementor-column:not(.wd-opened) .elementor-widget-wd_button:last-child { position: static; }
.wd-collapsible-content.elementor-column:not(.wd-opened) .elementor-widget-wd_button:last-child .wd-collapsible-button { position: absolute; inset-inline: 10px; bottom: 10px; z-index: 11; }
.wd-collapsible-content.e-con:not(.wd-opened) .elementor-widget-wd_button:last-child { padding-inline-start: var(--padding-inline-start); padding-inline-end: var(--padding-inline-end); position: absolute; inset-inline: 0; bottom: var(--padding-block-end, 0); z-index: 11; }
.wd-collapsible-content.e-con:not(.wd-opened):not(.e-con-full) .elementor-widget-wd_button:last-child > * { margin-inline: auto; max-width: var(--content-width); }
.wd-collapsible-content.elementor-column > .elementor-widget-wrap,
.wd-collapsible-content.e-con { overflow: hidden; }
.wd-collapsible-content.elementor-column.wd-opened > .elementor-widget-wrap,
.wd-collapsible-content.e-con.wd-opened { max-height: 100% !important; }
.wd-collapsible-content.elementor-column:not(.wd-opened) > .elementor-widget-wrap:after,
.wd-collapsible-content.e-con:not(.wd-opened):after { content: ""; position: absolute; inset-inline: 0; bottom: 0; z-index: 10; height: calc(100px + var(--padding-block-end, .001px)); background: linear-gradient(to bottom, transparent 0, currentColor 45px); color: #fff; }
