/* Shared outer frame. Readable text/form columns may be narrower inside it. */
:root {
  --asfar-content-width: var(--wp--custom--layout--frame-width, 1440px);
  --asfar-page-gutter: var(--wp--custom--layout--gutter, 32px);
  --asfar-frame-width: min(var(--asfar-content-width), calc(100% - 2 * var(--asfar-page-gutter)));
}
@media (max-width: 739px) { :root { --asfar-page-gutter: var(--wp--custom--layout--mobile-gutter, 16px); } }
:is(.asfar-frame,.asfar-header-inner,.asfar-footer-inner,.asfar-commerce-content,.asfar-instant-inner) {
  box-sizing: border-box; width: var(--asfar-frame-width); max-width: var(--asfar-content-width); margin-inline: auto !important;
}
/* Unbuilt page content uses the same frame; Elementor backgrounds can remain full bleed. */
.asfar-page-content > .wp-block-post-content:not(:has(> .elementor)) {
  width: var(--asfar-frame-width); max-width: var(--asfar-content-width); margin-inline: auto;
}
/* Transitional bridge for outer Elementor containers only, never every nested widget. */
:is(.asfar-page-content .wp-block-post-content > .elementor,body > .elementor-location-single) > .elementor-top-section {
  padding-inline: 0;
}
:is(.asfar-page-content .wp-block-post-content > .elementor,body > .elementor-location-single) > .elementor-top-section > .elementor-container {
  width: var(--asfar-frame-width); max-width: var(--asfar-content-width);
}
:is(.asfar-page-content .wp-block-post-content > .elementor,body > .elementor-location-single) > .e-con-boxed {
  --padding-left: 0px; --padding-right: 0px;
}
:is(.asfar-page-content .wp-block-post-content > .elementor,body > .elementor-location-single) > .e-con-boxed > .e-con-inner {
  width: var(--asfar-frame-width); max-width: var(--asfar-content-width); margin-inline: auto;
}
/* Legacy single-column wrappers add their own 10px gutters: the frame owns these. */
:is(.asfar-page-content .wp-block-post-content > .elementor,body > .elementor-location-single) > .elementor-top-section > .elementor-container > .elementor-col-100 > .elementor-widget-wrap {
  padding-inline: 0;
}
/* The homepage's full-bleed hero keeps its background; both loading and loaded
   content share the same edges as the rest of the store. Inline legacy styles
   require this scoped bridge until that widget is migrated. */
#arabic-hero-root :is(.skeleton-wrapper,.asfar-hero-content) {
  box-sizing: border-box; width: var(--asfar-frame-width); max-width: var(--asfar-content-width); margin-inline: auto; padding-inline: 0;
}
#arabic-hero-root .asfar-hero-content { max-width: var(--asfar-content-width) !important; padding-inline: 0 !important; }
.asfar-reading-column { max-width: 760px !important; margin-inline: auto; }

.asfar-frame { padding-inline: 0; }
.asfar-frame > :where(:not(.alignleft):not(.alignright):not(.asfar-reading-column)),.asfar-commerce-content > .wp-block-post-title { max-width: 100%; }
