/* Account block */
[data-rest].apc-account { display: inline-block; box-sizing: border-box; cursor: pointer; }
.apc-account[aria-disabled="true"] { opacity: .5; }
/* No theme focus outline on the button, however it was focused. */
[data-rest].apc-account:focus, [data-rest].apc-account:focus-visible { outline: none; }
.apc-account__default-icon { display: inline-flex; line-height: 0; }
.apc-account__default-icon svg { width: 1.5em; height: 1.5em; }
.apc-account.is-logged-in .apc-account__default-icon svg { fill: currentColor; }
/* Show/hide inner blocks by state: add one of these as "Additional CSS class" on an inner block.
   The mercer-bm-* names are the Mercer Bookmarks plugin's, so pages built with it keep working. */
.apc-account:not(.is-logged-in) .apc-when-logged-in, .apc-account:not(.is-logged-in) .mercer-bm-when-logged-in,
.apc-account.is-logged-in .apc-when-logged-out, .apc-account.is-logged-in .mercer-bm-when-logged-out { display: none; }
/* "apc-fill" / "mercer-bm-fill" on an inner icon or SVG block fills it when logged in. */
.apc-account.is-logged-in .apc-fill svg, .apc-account.is-logged-in svg.apc-fill,
.apc-account.is-logged-in .mercer-bm-fill svg, .apc-account.is-logged-in svg.mercer-bm-fill,
.apc-account.is-logged-in .apc-fill svg path, .apc-account.is-logged-in .mercer-bm-fill svg path { fill: currentColor; }

.apc-account__dialog { width: min(24rem, calc(100vw - 2rem)); padding: 1.25rem; border: 0; border-radius: 12px; background: #fff; color: #1d2327; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.apc-account__dialog::backdrop { background: rgba(0, 0, 0, .5); }
.apc-account__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.apc-account__title { margin: 0; font-size: 1.15rem; }
.apc-account__sub { margin: 1rem 0 .25rem; font-size: 1rem; }
.apc-account__close { margin-left: auto; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; }
.apc-account__form { display: flex; flex-direction: column; gap: .75rem; }
.apc-account__field { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.apc-account__field input { padding: .55rem; border: 1px solid #8c8f94; border-radius: 6px; font: inherit; background: #fff; color: #1d2327; }
.apc-account__btn { padding: .6rem 1rem; border: 0; border-radius: 6px; background: #1d2327; color: #fff; font: inherit; cursor: pointer; }
.apc-account__btn:disabled { opacity: .6; cursor: wait; }
.apc-account__list { margin: 0 0 1rem; padding-left: 1.2rem; }
.apc-account__count { margin-left: .4rem; font-size: .85em; opacity: .7; }
.apc-account__error { margin: 0; color: #b32d2e; font-size: .9rem; }
.apc-account__error:empty { display: none; }
