/* The framework shell fills the viewport. */
html, body {
    margin: 0;
    min-height: 100%;
}

/* Mobile browsers magnify small editors on focus. Keep pinch-to-zoom available. */
@media (max-width: 767px), (any-pointer: coarse) {
    .cwe-account .cwe-field__input {
        /* cwe-style-allow CWE0506: The 16px floor prevents iOS focus zoom while preserving larger theme text. */
        font-size: max(16px, var(--cwe-text-control));
    }
}

/* CWE 0.52.0 appends this button to body without positioning styles.
   Keep the framework-owned control outside document flow, including on static login. */
#cx-pwa-install-button {
    position: fixed;
    inset-inline-end: max(var(--cwe-space-4), env(safe-area-inset-right));
    bottom: max(var(--cwe-space-4), env(safe-area-inset-bottom));
    max-inline-size: calc(100% - 2 * var(--cwe-space-4));
    box-sizing: border-box;
    z-index: 100;
    padding: var(--cwe-space-3) var(--cwe-space-4);
    border: var(--cwe-border-width) solid var(--cwe-palette-primary);
    border-radius: var(--cwe-radius-md);
    background: var(--cwe-palette-primary);
    color: var(--cwe-palette-primary-text);
    font: inherit;
    cursor: pointer;
}
#cx-pwa-install-button[hidden] { display: none; }
#cx-pwa-install-button:disabled { cursor: wait; }
