/* ki-password-reveal.css - the stylesheet of KiPasswordReveal v1.2.2 (2026-10-10), copied from the
   CSS string inside ki-password-reveal.js, next to this file.
   The component injects that string as a runtime <style>, which the strict CSP (style-src 'self')
   discards as a style-src-elem violation. The component skips the injection when an element with
   id "ki-password-reveal-style" already exists, so every page links this file with that id.
   Keep the first block identical to the library's CSS when the library version changes. */

.ki-pwd-reveal-wrap { position: relative; display: inline-block; max-width: 100%; }
.ki-pwd-reveal-wrap > input[type="password"],
.ki-pwd-reveal-wrap > input[type="text"][data-ki-reveal] {
    width: 100% !important; box-sizing: border-box !important; padding-right: 44px !important;
}
.ki-pwd-reveal-btn {
    position: absolute; top: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    width: 44px; min-width: 44px; height: 100%; min-height: 44px;
    background: transparent; border: 0; margin: 0; padding: 0;
    cursor: pointer; color: inherit; line-height: 0;
}
.ki-pwd-reveal-btn:focus { outline: 2px solid currentColor; outline-offset: -2px; }
.ki-pwd-reveal-btn svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ki-pwd-reveal-btn::before {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 44px; height: 44px; transform: translate(-50%, -50%);
}

/* Cardly: every password field is a full-width form field, but several sit in a closed <dialog>
   or a hidden tab when the component measures them, and a field with no size reads as
   "intrinsic width". The wrapper is therefore always a full-width block here. */
.ki-pwd-reveal-wrap { display: block !important; width: 100% !important; }
/* The prompt modal's input carries the gap to the buttons as its own margin: inside the wrapper
   that margin would stretch the button below the field, so the wrapper takes it over. */
.ki-pwd-reveal-wrap:has(> .cly-modal-input) { margin-bottom: var(--space-4); }
.ki-pwd-reveal-wrap > .cly-modal-input { margin-bottom: 0; }
