/* ioann-karpovka «payment_widget» block shell (tasks 8, 43). Page shell only: the widget itself (iframe,
   public/widget/) is shared and untouched. Do NOT set transform/filter/perspective/contain on .ik-pw or
   its ancestors: inline-embed.js expands the iframe with position:fixed. Breakpoint: see tokens.css
   (mobile = not all and (min-width: 768px), desktop = min-width: 768px; never max-width).

   Grid alignment (task 43): the widget content (title, tabs, cards) must start at the same x as the page text
   (.ik-container = max --content-max + --gutter). .ik-pw's content box therefore equals the container box, and
   the iframe host is offset by (--gutter - --ik-pw-pad) on each side, where --ik-pw-pad mirrors the inline
   padding of .mpw-main in public/widget/widget.css for the IFRAME width: 40px >= 1024, 20px 640-1023, 16px <= 639.
   (If widget.css changes, update --ik-pw-pad; IoannKarpovkaPaymentWidgetBlockTest guards the coupling.)
   Boxed widget content is <= 1160px wide, so at >= 1240 only the left edge lines up; right edge matches below that.
   At 1024-1255 the host overhangs the viewport by up to 8px per side (only widget padding/bar backgrounds):
   overflow-x: clip hides it (NOT hidden/contain: clip is no containing block, the fixed modal stays full-screen). */
.ik-pw {
    --ik-pw-pad: 16px;
    background: var(--surface-page);
    padding-block: 8px 64px;
    padding-inline: max(0px, calc((100% - var(--content-max)) / 2));
    overflow-x: clip;
}
.ik-pw .mpw-native {
    max-width: var(--content-max);
    margin-inline: calc(var(--gutter) - var(--ik-pw-pad));
}

@media (min-width: 640px) {
    .ik-pw { --ik-pw-pad: 20px; }
}
@media (min-width: 1024px) {
    .ik-pw { --ik-pw-pad: 40px; }
}
@media not all and (min-width: 768px) {
    .ik-pw { padding-block: 0 40px; }
}
