/* Keep the WPS SDK's full-page wrapper transparent to platform navigation.
 * The visible iframe retains normal pointer handling for slides and controls. */
.web-office-default-container {
  pointer-events: none !important;
}

.web-office-default-container > iframe,
.web-office-default-container > .web-office-iframe {
  pointer-events: auto !important;
}

/* The teaching confirmation lives under #root while the WPS iframe is a later
 * body child.  When that confirmation is visible, let its buttons receive the
 * click instead of the visually covered full-screen iframe. */
body.kxydy-teaching-confirm-open
  .web-office-default-container
  > iframe,
body.kxydy-teaching-confirm-open
  .web-office-default-container
  > .web-office-iframe {
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Keep the confirmation in a deterministic top-level stacking context.  The
 * root itself ignores clicks while only the confirmation restores them. */
body.kxydy-teaching-confirm-open #root {
  z-index: 2147483000 !important;
  pointer-events: none !important;
}

body.kxydy-teaching-confirm-open
  .site-layout-background
  > div
  > div[style*="position: fixed"][style*="inset: 0px"] {
  pointer-events: auto !important;
}
