.iskra-footer-notice {
  box-sizing: border-box;
  position: fixed;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 100px);
  overflow: auto;
  padding: 18px;
  border: var(--fn-border-width, 2px) solid var(--fn-border, #111);
  border-radius: 12px;
  background: var(--fn-background, #ffeb3b);
  color: var(--fn-text, #111);
  box-shadow: 0 6px 28px rgb(0 0 0 / 15%);
  font: 400 16px/1.5 system-ui, sans-serif;
}
.iskra-footer-notice[hidden] { display: none !important; }
.iskra-footer-notice[data-corner="bottom-right"] { bottom: 16px; right: 16px; }
.iskra-footer-notice[data-corner="bottom-left"] { bottom: 16px; left: 16px; }
.iskra-footer-notice[data-corner="top-right"] { top: 16px; right: 16px; }
.iskra-footer-notice[data-corner="top-left"] { top: 16px; left: 16px; }
body.admin-bar .iskra-footer-notice[data-corner^="top-"] { top: 48px; }
.iskra-footer-notice .iskra-footer-notice__message {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.iskra-footer-notice .iskra-footer-notice__dismiss {
  flex-shrink: 0;
  align-self: center;
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 600 13px/1.4 system-ui, sans-serif;
  text-transform: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.iskra-footer-notice__dismiss:hover { text-decoration: underline; }
.iskra-footer-notice__dismiss:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.iskra-fn-admin { max-width: 1000px; }
.iskra-fn-admin input[type="number"] { width: 80px; }
.iskra-fn-preview-stage { position: relative; min-height: 300px; background: #fff; border: 1px solid #c3c4c7; border-radius: 8px; }
.iskra-fn-preview-stage .iskra-fn-preview { position: absolute; max-width: min(420px, calc(100% - 32px)); max-height: 265px; }
@media (max-width: 782px) {
  body.admin-bar .iskra-footer-notice[data-corner^="top-"] { top: 62px; }
  .iskra-fn-admin select { max-width: 100%; }
}

/* Rounded actions, scoped to this plugin's settings screen. */
.iskra-fn-admin .button { border-radius: 999px; padding-inline: 14px; border-color: transparent; background: #edf0f4; color: #435164; box-shadow: none; }
.iskra-fn-admin .button:hover:not(:disabled):not(.disabled) { border-color: transparent; background: #dfe5ed; color: #263342; }
.iskra-fn-admin .button.button-primary { border-color: #263342; background: #263342; color: #fff; }
.iskra-fn-admin .button.button-primary:hover:not(:disabled):not(.disabled) { border-color: #111c28; background: #111c28; color: #fff; }
.iskra-fn-admin .button:focus-visible { outline: 2px solid #2271b1; outline-offset: 3px; }
.iskra-fn-admin .button:disabled, .iskra-fn-admin .button.disabled { opacity: .6; cursor: default; }
