/* Future Island rc.87 — plugin-owned full-screen customer/auth document shell. */
html {
  min-width: 100%;
  min-height: 100%;
  background: #f2f1ec;
}

body.fiis-managed-surface {
  width: 100%;
  min-width: 100%;
  min-height: 100dvh;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: #f2f1ec;
}

body.fiis-managed-surface #wpadminbar,
body.fiis-managed-surface .site-header,
body.fiis-managed-surface .site-footer,
body.fiis-managed-surface .widget-area,
body.fiis-managed-surface .sidebar,
body.fiis-managed-surface .wp-block-template-part {
  display: none !important;
}

body.fiis-managed-surface .fiis-standalone-root {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

body.fiis-managed-surface--auth .fiis-standalone-root {
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.4vw, 34px);
  background:
    radial-gradient(circle at 14% 12%, rgba(36, 87, 230, 0.065), transparent 30%),
    #f2f1ec;
}

body.fiis-managed-surface--auth .fiis-auth,
body.fiis-managed-surface--auth .fiis-auth--register {
  width: min(1280px, 100%);
  margin: 0 auto;
}

body.fiis-managed-surface--shell {
  overflow: hidden;
  background: #f7f7f5;
}

body.fiis-managed-surface--shell .fiis-standalone-root {
  height: 100dvh;
  overflow: hidden;
}

body.fiis-managed-surface--shell .ves-wrap.fi-shell.ves-dashboard-shell {
  --ves-suite-height: 100dvh !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.fiis-managed-surface--account .fiis-standalone-root {
  padding: clamp(18px, 3vw, 42px);
  background: #f7f7f5;
}

body.fiis-managed-surface--account .fiis-customer-account {
  width: min(1180px, 100%);
  margin: 0 auto;
}

@media (max-width: 720px) {
  body.fiis-managed-surface--auth .fiis-standalone-root,
  body.fiis-managed-surface--account .fiis-standalone-root {
    padding: 0;
  }
}

@media (prefers-color-scheme: dark) {
  html,
  body.fiis-managed-surface,
  body.fiis-managed-surface--auth .fiis-standalone-root,
  body.fiis-managed-surface--account .fiis-standalone-root {
    background: #111316;
  }
}

/* rc.87 — payment return is still part of the product journey. Keep the
 * short webhook reconciliation wait inside a clean, theme-free document. */
body.fiis-managed-surface--commerce {
  overflow-x: hidden;
  background: #111316;
}

body.fiis-managed-surface--commerce .fiis-standalone-root {
  min-height: 100dvh;
  background: #111316;
}

body.fiis-managed-surface--commerce .fiis-payment-state {
  min-height: 100dvh;
  margin: 0;
}
