* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #fff;
}

body {
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iframe-page,
.iframe-shell {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
}

.iframe-page {
  overflow-x: hidden;
}

.iframe-shell {
  position: relative;
  overflow: hidden;
  contain: layout paint;
  background: #fff;
}

.education-iframe {
  /* iOS/Safari iframe sizing workaround. */
  position: relative;
  z-index: 1;
  display: block;
  width: 1px;
  min-width: 100%;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  overflow: hidden;
  background: #fff;
  vertical-align: top;
}

.iframe-notice {
  position: fixed;
  z-index: 20;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  font-size: 14px;
  text-align: center;
}

.iframe-notice:not([hidden]) {
  display: flex;
}

.iframe-notice a {
  flex: 0 0 auto;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}

.iframe-error {
  margin: 0;
  padding: 24px;
  text-align: center;
}

.iframe-error a {
  color: inherit;
  font-weight: 700;
}

@media (max-width: 520px) {
  .iframe-notice:not([hidden]) {
    align-items: stretch;
    flex-direction: column;
  }
}
