/* 1.0.2 — only the simple connector's detail output can expand.
 * No theme container, body, header, footer or editor rule is changed.
 * Negative margins keep sticky booking and fixed dialogs intact: no transform,
 * overflow or containing-block changes on their ancestors.
 */
.pwsavs-detail-frame {
  box-sizing:border-box;
  display:flow-root;
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
}
.pwsavs-detail-frame[data-pwsavs-width="1430"] { --pwsavs-target-width:1430px; }

@supports (width:min(1430px,100vw)) {
  .pwsavs-detail-frame[data-pwsavs-width="1430"] {
    --pwsavs-frame-width:min(var(--pwsavs-target-width),calc(100vw - 64px));
    width:var(--pwsavs-frame-width);
    max-width:none;
    margin-left:calc((100% - var(--pwsavs-frame-width)) / 2);
    margin-right:calc((100% - var(--pwsavs-frame-width)) / 2);
  }
  @media (max-width:760px) {
    .pwsavs-detail-frame[data-pwsavs-width="1430"] {
      --pwsavs-frame-width:min(var(--pwsavs-target-width),calc(100vw - 32px));
    }
  }
}

/* Remove the module's 1 430 px cap only inside this expanded detail frame. */
.pwsavs-detail-frame[data-pwsavs-width="1430"] article.pws2-ec-detail {
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
}

/* An intentional multi-column, sidebar or boxed page keeps its own width.
 * These selectors target the PWS frame only, never the theme elements.
 */
:is(.av_one_half,.av_one_third,.av_two_third,.av_one_fourth,.av_three_fourth,
    .av_one_fifth,.av_two_fifth,.av_three_fifth,.av_four_fifth,
    .av_one_sixth,.av_five_sixth,.av-content-small,.sidebar_left,.sidebar_right,.boxed)
  .pwsavs-detail-frame[data-pwsavs-width] {
  width:100%;
  max-width:100%;
  margin-left:0;
  margin-right:0;
}

@media print {
  .pwsavs-detail-frame[data-pwsavs-width] {
    width:100%;
    max-width:100%;
    margin-left:0;
    margin-right:0;
  }
}
