/* Account menu styles for pages that don't load style.css (seller dashboard).
   Copied from style.css (the account menu rules + colour tokens), plus the
   few Bootstrap dropdown rules the menu needs. If the menu's look changes in
   style.css, copy the change here too. */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; z-index: 1000; display: none; min-width: 10rem; margin: 0; padding: 0.5rem 0; text-align: left; list-style: none; background-color: var(--color-bg); background-clip: padding-box; }
.dropdown-menu.show { display: block; }
.dropdown-menu-end { right: 0; left: auto; }
.d-none { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
:root { --color-bg: #ffffff; --color-surface: #ffffff; --color-surface-alt: #f5f5f5; --color-input-bg: #f1f3f4; --color-text: #212529; --color-text-strong: #111111; --color-text-muted: #6b7079; --color-text-muted-2: #6c757d; --color-text-subtle: #495057; --color-text-body: #333333; --color-border: #eee; --color-border-medium: #d8d8d8; --color-border-strong: #adb5bd; --color-border-input: #ced4da; --color-border-thumb-hover: #b8b8b8; --color-hover: #fafafa; --color-icon: #000000; --color-overlay: rgba(255, 255, 255, 0.9); --color-overlay-hover: #ffffff; --color-ink-bg: #212529; --color-ink-bg-hover: #000000; --color-ink-text: #ffffff; --color-ink-overlay-hover: rgba(255, 255, 255, 0.15); --color-primary: #EDF67D; color-scheme: light; }
.header-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem; border: none; background-color: transparent; border-radius: 50%; color: var(--color-icon); font-size: 1.55rem; cursor: pointer; }
.header-icon-btn:hover { background-color: var(--color-hover); }
.header-icon-btn.dropdown-toggle::after { display: none; }
.account-nav { position: relative; }
.account-avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; object-fit: cover; }
.account-dropdown { border: none; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08); padding: 0.75rem; min-width: 270px; }
.account-panel { list-style: none; }
.account-dropdown-heading { font-size: 0.85rem; color: var(--color-text-muted-2); margin: 0 0 0.75rem; padding: 0 0.25rem; }
.account-dropdown-name { font-size: 0.95rem; font-weight: 600; color: var(--color-text-strong); margin: 0 0 0.1rem; padding: 0 0.25rem; }
.account-dropdown-email { font-size: 0.8rem; color: var(--color-text-muted-2); margin: 0 0 0.75rem; padding: 0 0.25rem; word-break: break-all; }
.account-provider-btn { display: flex; align-items: center; gap: 0.6rem; width: 100%; background-color: transparent; border: 1px solid var(--color-border-medium); border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.9rem; font-weight: 500; color: var(--color-text); cursor: pointer; margin-bottom: 0.5rem; text-align: left; text-decoration: none; }
.account-provider-btn:hover { color: var(--color-text); }
.account-provider-btn:last-child { margin-bottom: 0; }
.account-provider-btn:hover { background-color: var(--color-hover); }
.account-provider-btn .bi { font-size: 1.05rem; }
.account-error { font-size: 0.8rem; color: #dc3545; margin: 0.6rem 0 0; padding: 0 0.25rem; }
@media (max-width: 768px) {
  .header-icon-btn { width: 2.6rem; height: 2.6rem; font-size: 1.3rem; }
}
#themeToggle .bi-sun-fill { display: none; }
html[data-theme="dark"] #themeToggle .bi-moon { display: none; }
html[data-theme="dark"] #themeToggle .bi-sun-fill { display: inline-block; }
a.header-icon-btn { text-decoration: none; }
.account-menu-count { margin-left: auto; min-width: 1.3rem; padding: 0 0.4rem; border-radius: 999px; background: #e03131; color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1.3rem; text-align: center; }
#accountSignedIn .account-provider-btn { border: none; border-radius: 10px; margin-bottom: 0.1rem; padding: 0.6rem 0.7rem; font-size: 0.95rem; transition: background-color 0.12s ease; }
#accountSignedIn .account-provider-btn:hover { background-color: var(--color-hover); }
#accountSignedIn .account-provider-btn > .bi { width: 1.2rem; text-align: center; font-size: 1.05rem; }
#accountSignedIn .account-dropdown-email { margin-bottom: 0.6rem; }
.account-theme { list-style: none; margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px solid var(--color-border); }
.account-theme-btn { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.6rem 0.7rem; border: none; border-radius: 10px; background: transparent; color: var(--color-text); font-size: 0.95rem; font-weight: 500; text-align: left; cursor: pointer; }
.account-theme-btn:hover { background-color: var(--color-hover); }
.account-theme-btn > .bi { width: 1.2rem; text-align: center; font-size: 1.05rem; }
.account-theme-label { flex: 1 1 auto; }
.account-switch { position: relative; flex: 0 0 auto; width: 2.3rem; height: 1.35rem; border-radius: 999px; background: var(--color-border-medium); transition: background-color 0.18s ease; }
.account-switch::after { content: ""; position: absolute; top: 0.15rem; left: 0.15rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.18s ease; }
html[data-theme="dark"] .account-switch { background: var(--color-primary); }
html[data-theme="dark"] .account-switch::after { transform: translateX(0.95rem); background: #111; }
.account-menu-pill { margin-left: auto; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--color-primary); color: #212529; font-size: 0.7rem; font-weight: 600; }
.account-dropdown:has(.acct:not(.d-none)) { width: 19.5rem; padding: 0.6rem; }
.acct-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.35rem 0.4rem 0.75rem; }
.acct-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--color-primary) center / cover no-repeat; color: #212529; font-weight: 700; font-size: 1.05rem; }
.acct-who { min-width: 0; }
.acct .account-dropdown-name { margin: 0; padding: 0; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .account-dropdown-email, #accountSignedIn.acct .account-dropdown-email { margin: 0; padding: 0; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
.acct-rows { display: flex; flex-direction: column; gap: 0.05rem; }
.acct-head { border-bottom: 1px solid var(--color-border); margin-bottom: 0.35rem; }
#accountSignedIn .acct-group-btn { width: 100%; background: transparent; border: 0; color: var(--color-text); font: inherit; font-size: 0.92rem; font-weight: 500; }
.acct-chevron { margin-left: auto; font-size: 0.8rem !important; color: var(--color-text-muted-2); transition: transform 0.18s ease; }
.acct-group-btn[aria-expanded="true"] .acct-chevron { transform: rotate(180deg); }
.acct-sub { display: flex; flex-direction: column; gap: 0.05rem; margin: 0.1rem 0 0.25rem 1.3rem; padding-left: 0.6rem; border-left: 1.5px solid var(--color-border); }
.acct-sub[hidden] { display: none; }
#accountSignedIn .acct-subrow { padding: 0.45rem 0.6rem; font-size: 0.9rem; }
#accountSignedIn .acct-subrow > .bi { font-size: 0.98rem; color: var(--color-text-muted-2); }
#accountSignedIn .acct-subrow[aria-current="page"] { background: var(--color-surface-alt); font-weight: 600; }
#accountSignedIn .acct-row .account-menu-count { margin-left: auto; }
@media (prefers-reduced-motion: reduce) {
  .acct-chevron { transition: none; }
}
#accountSignedIn .acct-row { margin: 0; padding: 0.55rem 0.6rem; font-size: 0.92rem; }
#accountSignedIn .acct-row.d-none { display: none; }
.account-menu-pill.is-join { background: var(--color-surface-alt); color: var(--color-text-strong); }
.account-dropdown .acct-foot { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.4rem; padding-top: 0.4rem; }
.acct-foot .account-theme-btn { flex: 1 1 auto; width: auto; padding: 0.5rem 0.6rem; font-size: 0.9rem; }
.acct-signout { display: inline-flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; padding: 0.5rem 0.65rem; border: 0; border-radius: 10px; background: transparent; color: var(--color-text-muted-2); font: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer; }
.acct-signout:hover { background: var(--color-hover); color: var(--color-text-strong); }
.acct-signout[hidden] { display: none; }
@media (max-width: 420px) {
  .account-dropdown:has(.acct:not(.d-none)) { width: min(18.5rem, calc(100vw - 1.5rem)); }
}
#accountSignedIn .acct-row .acct-bal { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--color-text-strong); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .cart-page .account-page-heading { margin-bottom: 1rem; }
}
@media (max-width: 768px) {
  .site-header .header-icon-btn { width: 2.35rem; height: 2.35rem; font-size: 1.25rem; }
}

/* Lime only for the brand and main buttons */
html[data-theme="dark"] .account-switch { background: #e4e6eb; }
.account-menu-pill { background: var(--color-surface-alt); color: var(--color-text-strong); }
.acct-avatar { background-color: var(--color-surface-alt); color: var(--color-text-strong); }
