/* ==========================================================================
   Legacy markup compatibility (loaded only when needed).
   Restyles the classic theme's class vocabulary used inside product meta
   fields and older page content, in the new design language.
   Scope: .wpi-legacy (product meta blocks) and .has-legacy-markup content.
   ========================================================================== */
:where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) .wrapper { max-width: 1320px; margin-inline: auto; padding-inline: 0; }
:where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) .row { display: flex; flex-wrap: wrap; row-gap: 1.5rem; margin-inline: -12px; }
:where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) .row + .text-center { margin-top: 2rem; }
:where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) .row > .col, :where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) .row > [class*="col-"] { padding-inline: 12px; box-sizing: border-box; float: none; }
:where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) :where(.col-three, .col-four, .col-five, .col-seven, .col-half) { width: 100%; }
@media (min-width: 768px) {
	:where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) .col-four { width: 50%; }
	:where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) .col-half { width: 50%; }
}
@media (min-width: 992px) {
	:where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) .col-three { width: 33.333%; }
	:where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) .col-four { width: 25%; }
	:where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) .col-five { width: 41.666%; }
	:where(.wpi-legacy, .has-legacy-markup .wp-block-post-content) .col-seven { width: 58.333%; }
}
.wpi-legacy .text-center { text-align: center; }
.wpi-legacy .reset-list-style, .has-legacy-markup .reset-list-style { list-style: none; margin: 0; padding: 0; }
.wpi-legacy .section-header { margin-bottom: clamp(2rem, 4vw, 3rem); }
.wpi-legacy .section-header.desc-pad p { max-width: 62ch; margin-inline: auto; color: var(--muted); font-size: var(--wp--preset--font-size--medium); }
.wpi-legacy :where(.section-title, h2) { font-size: var(--wp--preset--font-size--xx-large); font-weight: 500; line-height: 1.08; margin: 0 0 1rem; }
.wpi-legacy :where(h3) { font-size: var(--wp--preset--font-size--large); font-weight: 500; }
.wpi-legacy .section-title-large { font-size: var(--wp--preset--font-size--colossal); line-height: .95; }
.wpi-legacy p { color: inherit; }
.wpi-legacy img { max-width: 100%; height: auto; border-radius: 12px; }
.wpi-legacy .btn-main, .has-legacy-markup .btn-main { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .75rem 1.35rem; border-radius: 999px; background: var(--ink); color: #fff !important; border: 0; font-size: var(--wp--preset--font-size--small); font-weight: 500; text-transform: none; text-decoration: none; line-height: 1.1; height: auto; margin: 0; transition: background .25s; }
.wpi-legacy .btn-main:hover, .has-legacy-markup .btn-main:hover { background: var(--indigo); }
.wpi-legacy .edd-btn-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.wpi-legacy .features li, .wpi-legacy .list-with-icon { margin-bottom: .5rem; }

/* Comparison tables (wpinterface_post_compare_table) */
.wpi-legacy table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: var(--wp--preset--font-size--small); }
.wpi-legacy :where(th, td) { padding: .9rem 1.1rem; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.wpi-legacy thead :where(th, td), .wpi-legacy tr:first-child th { background: var(--ink); color: #fff; font-weight: 500; }
.wpi-legacy tbody tr:nth-child(even) td { background: var(--mist); }
.wpi-legacy tbody tr:last-child td { border-bottom: 0; }
.wpi-legacy :where(td, th):not(:first-child) { text-align: center; }
.wpi-legacy td img[src*="icon-true"], .wpi-legacy td img[src*="icon-false"] { width: 20px; height: 20px; border-radius: 0; }
.wpi-legacy .single-comparision-table, .wpi-legacy figure.wp-block-table { overflow-x: auto; }
@media (max-width: 700px) { .wpi-legacy table { display: block; overflow-x: auto; white-space: nowrap; } }

/* Feature boxes */
.wpi-legacy .theme-feature-box, .has-legacy-markup .theme-feature-box { box-sizing: border-box; height: 100%; padding: 1.5rem; margin-bottom: 0; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.wpi-legacy .feature-icon img { width: 44px; height: 44px; border-radius: 0; }
.wpi-legacy .pricing-table { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 2rem; }
.is-tone-ink .wpi-legacy table { color: var(--ink); }
.is-tone-ink .wpi-legacy :where(h2, h3, .section-title) { color: #fff; }


@media (min-width: 761px) and (max-width: 1080px) { .wpi-floatbar__title { display: none; } .wp-block-wpinterface-product-floating-nav.wpi-floatbar { padding-left: .35rem; } }
