/* v0.8.1 — Flatsome-safe surfaces. The theme owns the grid; this module only paints it. */
body.q88wst-card-ui{--wc-card-bg:#fff;--wc-page-bg:#f2f4f7;--wc-card-radius:14px;--wc-card-padding:20px;--wc-card-gap:20px;--wc-card-border:1px solid #e7e9ef;--wc-card-shadow:0 1px 3px rgba(27,31,44,.035);background:var(--wc-page-bg)}
body.q88wst-card-ui .product-container,body.q88wst-card-ui .product-main,body.q88wst-card-ui .product-footer{background:transparent}
/* IMPORTANT: Flatsome's .row uses negative gutters and .col widths. Never override its display, margin or column sizing. */
body.q88wst-card-single.q88wst-card-layout-split .product-main>.row.content-row>.product-gallery,
body.q88wst-card-single.q88wst-card-layout-split .product-main>.row.content-row>.product-info{position:relative;isolation:isolate;min-width:0;background:transparent;border:0;box-shadow:none;margin-bottom:var(--wc-card-gap)}
/* Inset surfaces are separate from the column box. This preserves native 12-column widths, sidebars and sticky gallery. */
body.q88wst-card-single.q88wst-card-layout-split .product-main>.row.content-row>.product-gallery::before,
body.q88wst-card-single.q88wst-card-layout-split .product-main>.row.content-row>.product-info::before{content:"";position:absolute;inset:0 10px;background:var(--wc-card-bg);border:var(--wc-card-border);border-radius:var(--wc-card-radius);box-shadow:var(--wc-card-shadow);z-index:-1;pointer-events:none}
body.q88wst-card-single.q88wst-card-layout-split .product-main>.row.content-row>.product-gallery,
body.q88wst-card-single.q88wst-card-layout-split .product-main>.row.content-row>.product-info{padding-top:var(--wc-card-padding);padding-bottom:var(--wc-card-padding);padding-left:calc(var(--wc-card-padding) + 10px);padding-right:calc(var(--wc-card-padding) + 10px)}
body.q88wst-card-single.q88wst-card-layout-unified .product-main>.row.content-row{background:transparent}
body.q88wst-card-single.q88wst-card-layout-unified .product-main>.row.content-row>.product-gallery,
body.q88wst-card-single.q88wst-card-layout-unified .product-main>.row.content-row>.product-info{background:var(--wc-card-bg);padding-top:var(--wc-card-padding);padding-bottom:var(--wc-card-padding)}
body.q88wst-card-single.q88wst-card-layout-unified .product-main>.row.content-row>.product-gallery{border-radius:var(--wc-card-radius) 0 0 var(--wc-card-radius)}
body.q88wst-card-single.q88wst-card-layout-unified .product-main>.row.content-row>.product-info{border-radius:0 var(--wc-card-radius) var(--wc-card-radius) 0}
/* Product footer: Flatsome renders tab sections and related as siblings under .product-footer>.container. */
body.q88wst-card-single .product-footer>.container{display:flow-root}
body.q88wst-card-single .product-footer>.container>.product-page-sections{display:flex;flex-direction:column;gap:var(--wc-card-gap);margin:0 0 var(--wc-card-gap)}
body.q88wst-card-single .product-footer>.container>.product-page-sections>.product-section,
body.q88wst-card-single .product-footer>.container>:is(.related-products-wrapper,.upsells,.woocommerce-tabs.wc-tabs-wrapper,.q88wst-product-table){background:var(--wc-card-bg);border:var(--wc-card-border);border-radius:var(--wc-card-radius);padding:var(--wc-card-padding);box-shadow:var(--wc-card-shadow);box-sizing:border-box;min-width:0;margin:0 0 var(--wc-card-gap)}
body.q88wst-card-single .product-footer>.container>.product-page-sections>.product-section{margin:0}
/* Remove Flatsome's 2/10 column split ONLY inside each section, never inside the product header. */
body.q88wst-card-single .product-footer .product-page-sections>.product-section>.row{display:block;margin:0}
body.q88wst-card-single .product-footer .product-page-sections>.product-section>.row>.col{width:100%;max-width:100%;padding:0;margin:0}
body.q88wst-card-single .product-footer .product-page-sections>.product-section h5{margin:0 0 16px;font-size:18px;text-transform:none}
body.q88wst-card-single .product-footer .product-page-sections .panel{background:transparent;border:0;box-shadow:none;padding:0;margin:0}
body.q88wst-card-single .product-footer .product-section-title{margin:0 0 16px;padding:0;border:0}
body.q88wst-card-single .product-footer .woocommerce-tabs .woocommerce-Tabs-panel{border:0;box-shadow:none;background:transparent;padding:0}
body.q88wst-card-single .product-info .q88wst-gift-box{background:#f8f9fc;border:1px solid #e7e9ef;border-radius:10px;padding:16px;margin-top:16px;max-width:100%}
body.q88wst-card-archive .shop-container .products .product-small .box{background:var(--wc-card-bg);border-radius:var(--wc-card-radius);overflow:hidden}
body.q88wst-card-archive .shop-container .products .product-small .box-text{padding:12px}
body.q88wst-card-ui :is(.woocommerce-MyAccount-content,.woocommerce-MyAccount-navigation,.cart_totals,.woocommerce-checkout-review-order){background:var(--wc-card-bg);border:var(--wc-card-border);border-radius:var(--wc-card-radius);padding:var(--wc-card-padding);margin-bottom:var(--wc-card-gap)}
@media(max-width:849px){body.q88wst-card-ui{--wc-card-padding:16px}}
@media(max-width:549px){body.q88wst-card-ui{--wc-card-padding:12px}body.q88wst-card-single .product-footer .product-page-sections>.product-section{overflow-wrap:anywhere}body.q88wst-card-single .product-footer .product-page-sections table{display:block;max-width:100%;overflow-x:auto}body.q88wst-card-single.q88wst-card-layout-unified .product-main>.row.content-row>.product-gallery,body.q88wst-card-single.q88wst-card-layout-unified .product-main>.row.content-row>.product-info{border-radius:var(--wc-card-radius);margin-bottom:var(--wc-card-gap)}}

/* v0.8.1.2: Explicit server-rendered section grouping, no DOM mutation. */
body.q88wst-card-single .product-footer>.container>.product-page-sections.q88wst-managed-sections{display:flex;flex-direction:column;gap:var(--wc-card-gap)}
body.q88wst-card-single .q88wst-managed-sections>.q88wst-section-group{display:flex;flex-direction:column;gap:var(--wc-card-gap);min-width:0}
body.q88wst-card-single .product-footer .q88wst-managed-sections .q88wst-section{box-sizing:border-box;min-width:0}
body.q88wst-card-single .product-footer .q88wst-managed-sections .q88wst-section.q88wst-mode-flat{background:transparent;border:0;box-shadow:none;padding:0;border-radius:0}
body.q88wst-card-single .product-footer .q88wst-managed-sections .q88wst-section-group:has(>.q88wst-mode-nested){background:var(--wc-card-bg);border:var(--wc-card-border);border-radius:var(--wc-card-radius);padding:var(--wc-card-padding);box-shadow:var(--wc-card-shadow)}
body.q88wst-card-single .product-footer .q88wst-managed-sections .q88wst-section-group>.q88wst-mode-nested{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0}
body.q88wst-card-single .product-footer .q88wst-managed-sections .q88wst-section-group>.q88wst-mode-nested+.q88wst-mode-nested{padding-top:var(--wc-card-gap);border-top:1px solid #e7e9ef}

body.q88wst-card-single .product-footer .q88wst-managed-sections .q88wst-section>.row{display:block;margin:0}
body.q88wst-card-single .product-footer .q88wst-managed-sections .q88wst-section>.row>.col{width:100%;max-width:100%;padding:0;margin:0}
body.q88wst-card-single .product-footer .q88wst-managed-sections .q88wst-section h5{margin:0 0 16px;font-size:18px;text-transform:none}

/* v0.8.2 — native details FAQ, scoped to managed Woo product sections. */
body.q88wst-card-single .q88wst-managed-sections .q88wst-faq-item{border-bottom:1px solid #e7e9ef;padding:12px 0}
body.q88wst-card-single .q88wst-managed-sections .q88wst-faq-item:last-child{border-bottom:0}
body.q88wst-card-single .q88wst-managed-sections .q88wst-faq-item>summary{cursor:pointer;font-weight:600;list-style-position:inside}
body.q88wst-card-single .q88wst-managed-sections .q88wst-faq-item>p{margin:10px 0 0}
body.q88wst-card-single .q88wst-managed-sections .q88wst-custom-section-content{overflow-wrap:anywhere}


/* v0.9.8.4.14 — Flatsome UX Builder [ux_product_tabs] compatibility.
 * In a custom product layout the shortcode renders .product-page-sections inside
 * an arbitrary UX Builder column, not under .product-footer. Only restyle native
 * product section wrappers while Card Design > Sections is enabled; never touch
 * the surrounding Flatsome .row/.col grid, product gallery or related cards.
 * Managed groups retain their own existing renderer/style rules.
 */
body.q88wst-card-single.q88wst-flatsome-sections .product-page-sections:not(.q88wst-managed-sections){
 display:flex;flex-direction:column;gap:var(--wc-card-gap);min-width:0;
}
body.q88wst-card-single.q88wst-flatsome-sections .product-page-sections:not(.q88wst-managed-sections)>.product-section{
 box-sizing:border-box;min-width:0;margin:0;
 background:var(--wc-card-bg);border:var(--wc-card-border);
 border-radius:var(--wc-card-radius);padding:var(--wc-card-padding);
 box-shadow:var(--wc-card-shadow);
}
body.q88wst-card-single.q88wst-flatsome-sections .product-page-sections:not(.q88wst-managed-sections)>.product-section>.row{
 display:block;margin:0;
}
body.q88wst-card-single.q88wst-flatsome-sections .product-page-sections:not(.q88wst-managed-sections)>.product-section>.row>.col{
 box-sizing:border-box;float:none;flex-basis:100%;max-width:100%;width:100%;padding:0;margin:0;
}
body.q88wst-card-single.q88wst-flatsome-sections .product-page-sections:not(.q88wst-managed-sections)>.product-section h5{
 margin:0 0 16px;font-size:18px;text-transform:none;
}
body.q88wst-card-single.q88wst-flatsome-sections .product-page-sections:not(.q88wst-managed-sections)>.product-section .panel{
 background:transparent;border:0;box-shadow:none;padding:0;margin:0;min-width:0;
}

/* v0.9.8.4.15 — Custom UX product-layout card surfaces.
 * The native product footer rules stay intact. Only target product-page content.
 * Never resize UX Builder rows/columns, image frames or product grid items.
 * Optional builder classes on a specific UX column: q88wst-ux-gallery-card,
 * q88wst-ux-info-card, q88wst-ux-sidebar-card, q88wst-ux-related-card.
 */
body.q88wst-card-single .product-main :is(.related-products-wrapper,.related.products,.upsells.products),
body.q88wst-card-single .product-container :is(.related-products-wrapper,.related.products,.upsells.products),
body.q88wst-card-single .product-main .q88wst-ux-related-card>.col-inner{
 box-sizing:border-box;min-width:0;
 background:var(--wc-card-bg);border:var(--wc-card-border);
 border-radius:var(--wc-card-radius);box-shadow:var(--wc-card-shadow);
 padding:var(--wc-card-padding);margin-bottom:var(--wc-card-gap);
}
/* Existing wrapper styles already handle the standard footer: avoid double cards. */
body.q88wst-card-single .product-footer>.container>:is(.related-products-wrapper,.upsells.products){margin-bottom:var(--wc-card-gap)}
/* UX Builder columns may contain multiple independent shortcodes instead of a
 * single .product-info node. An opt-in class styles the column's own inner box. */
body.q88wst-card-single.q88wst-card-layout-split :is(.q88wst-ux-gallery-card,.q88wst-ux-info-card,.q88wst-ux-sidebar-card)>.col-inner,
body.q88wst-card-single.q88wst-card-layout-split .product-main .col-inner>:is(.product-gallery,.product-info):not(.col){
 box-sizing:border-box;min-width:0;background:var(--wc-card-bg);
 border:var(--wc-card-border);border-radius:var(--wc-card-radius);
 box-shadow:var(--wc-card-shadow);padding:var(--wc-card-padding);
}
/* Do not nest a second card inside a marked UX column. */
body.q88wst-card-single.q88wst-card-layout-split :is(.q88wst-ux-gallery-card,.q88wst-ux-info-card)>.col-inner :is(.product-gallery,.product-info){
 background:transparent;border:0;box-shadow:none;padding:0;
}
/* When an actual Flatsome product sidebar exists, give each widget its own
 * surface. The original widget order/width remains under theme control. */
body.q88wst-card-single .product-main :is(.product-sidebar,.product-sidebar-small) .widget,
body.q88wst-card-single .product-main .q88wst-ux-sidebar-card>.col-inner>.widget{
 box-sizing:border-box;min-width:0;background:var(--wc-card-bg);
 border:var(--wc-card-border);border-radius:var(--wc-card-radius);
 box-shadow:var(--wc-card-shadow);padding:var(--wc-card-padding);
 margin-bottom:var(--wc-card-gap);
}
/* UX Builder product tabs use native or owned sections. Keep both within
 * their parent column: card width is never pushed beyond the theme grid. */
body.q88wst-card-single.q88wst-flatsome-sections .product-main .product-page-sections{min-width:0;max-width:100%}
body.q88wst-card-single.q88wst-flatsome-sections .product-main .product-page-sections>.product-section{overflow-wrap:break-word}
@media(max-width:549px){
 body.q88wst-card-single .product-main :is(.related-products-wrapper,.related.products,.upsells.products){padding:var(--wc-card-padding)}
 body.q88wst-card-single .product-main .q88wst-ux-info-card>.col-inner{overflow-wrap:break-word}
}

/* v0.9.8.4.19 — Custom Layout related and product-list widgets.
 * Mark only explicit UX columns or recognized WooCommerce related/upsell
 * sections and product-list widgets; do not alter the theme's product grid.
 */
body.q88wst-card-single.q88wst-card-layout-split .q88wst-ux-related-card>.col-inner,
body.q88wst-card-single.q88wst-card-layout-split .q88wst-ux-related-surface{
 box-sizing:border-box;min-width:0;max-width:100%;
 background:var(--wc-card-bg);border:var(--wc-card-border);
 border-radius:var(--wc-card-radius);box-shadow:var(--wc-card-shadow);
 padding:var(--wc-card-padding);margin-bottom:var(--wc-card-gap);
}
body.q88wst-card-single.q88wst-card-layout-split .q88wst-ux-related-card>.col-inner>.q88wst-ux-related-surface{
 background:transparent;border:0;box-shadow:none;padding:0;margin:0;
}
body.q88wst-card-single.q88wst-card-layout-split .q88wst-ux-sidebar-widget{
 box-sizing:border-box;min-width:0;max-width:100%;
 background:var(--wc-card-bg);border:var(--wc-card-border);
 border-radius:var(--wc-card-radius);box-shadow:var(--wc-card-shadow);
 padding:var(--wc-card-padding);margin-bottom:var(--wc-card-gap);
}
body.q88wst-card-single.q88wst-card-layout-split .q88wst-ux-sidebar-widget .widget-title{
 margin-top:0;
}
