[hidden] {
  display: none !important;
}
body.auth-gated {
  height: auto;
  min-height: 100dvh;
  overflow: auto;
}
.auth-gated > .reader,
.auth-gated > footer,
.auth-gated > #notice,
.auth-gated > #price-access,
.auth-gated > #search-bar,
.auth-gated .header-actions {
  display: none !important;
}
#auth-panel {
  flex: 1;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e9edf2;
}
#auth-panel:has([data-auth-view="login"]:not([hidden])) #auth-title,
#auth-panel:has([data-auth-view="login"]:not([hidden])) #auth-description {
  display: none;
}
.auth-external-links {
  display: none;
  align-self: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 22px;
  max-width: 100%;
  margin-top: 12px;
}
.auth-external-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  color: #004600;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}
.auth-external-links a:hover {
  text-decoration: underline;
}
.auth-store-logo {
  width: 54px;
  height: 26px;
  object-fit: contain;
}
.auth-whatsapp-logo {
  width: 21px;
  height: 21px;
}
#auth-panel:has([data-auth-view="login"]:not([hidden])) > .auth-external-links {
  display: flex;
}
@media (max-width: 480px) {
  .auth-external-links {
    flex-direction: column;
    gap: 0;
  }
}
.auth-card {
  width: min(100%, 460px);
  background: #fff;
  border: 1px solid #dce4e8;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 12px 36px #12332d0d;
}
#auth-panel.auth-challenging {
  align-items: center;
}
#auth-panel.auth-challenging .auth-card {
  width: auto;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#auth-panel.auth-challenging .auth-card > .eyebrow,
#auth-panel.auth-challenging #auth-title,
#auth-panel.auth-challenging #auth-description,
#auth-panel.auth-challenging #auth-status {
  display: none;
}
.auth-card h1 {
  font-size: 25px;
  margin: 8px 0 12px;
}
.auth-card p {
  line-height: 1.5;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-card input:not([type="checkbox"]) {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ccd5df;
  border-radius: 7px;
  min-height: 42px;
}
.auth-card label {
  font-size: 14px;
}
.auth-password-field {
  position: relative;
  width: 100%;
}
.auth-card .auth-password-field input {
  padding-right: 48px;
}
.auth-password-field input::-ms-reveal,
.auth-password-field input::-ms-clear {
  display: none;
}
.auth-card .auth-password-reveal {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 42px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.auth-card .auth-password-reveal:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
.auth-password-reveal svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.auth-password-reveal .auth-eye-slash { display: none; }
.auth-password-reveal[aria-pressed="true"] .auth-eye-slash { display: block; }
.auth-card small {
  color: #54665c;
  font-size: 12px;
  line-height: 1.5;
}
.auth-card .primary {
  margin-top: 10px;
  width: 100%;
  min-height: 42px;
}
.auth-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 6px;
  line-height: 1.5;
}
.auth-check input {
  flex: none;
  margin-top: 4px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.auth-links button,
.auth-back {
  border: 0;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  background: transparent;
}
.auth-back {
  margin-top: 18px;
}
#auth-status:empty {
  display: none;
}
#auth-status {
  font-size: 14px;
  background: #eef7f3;
  border-radius: 6px;
  padding: 12px;
}
#auth-status.auth-error {
  color: #9f2424;
  background: #fff0ef;
}
#current-password-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#client-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50dvh;
  overflow: auto;
}
#client-options button {
  text-align: left;
  padding: 5px 15px 5px 15px;
  white-space: normal;
  overflow-wrap: anywhere;
}
#client-options small {
  display: block;
  margin-top: 6px;
}
.account-wrap {
  position: relative;
}
#account-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
}
#account-menu {
  position: absolute;
  z-index: 100;
  right: 0;
  top: calc(100% + 10px);
  width: min(290px, calc(100vw - 24px));
  padding: 12px;
  background: white;
  border: 1px solid #d5dde6;
  box-shadow: 0 8px 30px #0002;
  border-radius: 10px;
}
#account-menu strong,
#account-menu span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  margin: 6px 4px 12px;
}
#account-menu button {
  width: 100%;
  text-align: left;
  max-height: none;
  margin: 3px 0;
  font-weight: 400;
  font-size: 14px;
}
#logout-dialog {
  max-width: 440px;
}
#logout-dialog button {
  margin-top: 10px;
}
.access-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}
.access-options a.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  #auth-panel {
    padding: 20px 12px;
    align-items: flex-start;
  }
  .auth-card {
    padding: 24px 20px;
  }
  header {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-actions {
    gap: 5px;
  }
}
#auth-description {
    font-size: 14px;
}
#auth-title {
    font-size: 23px;
    font-weight: 700;
}
#client-options button strong {
    font-size: 14px;
}
