/* V10.10 local review: account, nested menus, responsive pagination. */
.account-menu {
  right: 0;
  width: min(340px, calc(100vw - 24px));
  max-height: min(72vh, 560px);
  overflow-y: auto;
  padding: 19px;
  border-radius: 12px;
}
.account-menu button,
.account-menu .account-menu-group summary { min-height: 44px; }
.account-menu .account-menu-group {
  margin-top: 8px;
  border: 1px solid #e5ece8;
  border-radius: 7px;
  overflow: hidden;
}
.account-menu .account-menu-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  color: #274b5f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.account-menu .account-menu-group summary::-webkit-details-marker,
.category-group > summary::-webkit-details-marker { display: none; }
.account-menu .account-menu-group summary::after,
.category-group > summary::after {
  content: "+";
  color: #198a68;
  font-size: 19px;
  font-weight: 500;
}
.account-menu .account-menu-group[open] > summary::after,
.category-group[open] > summary::after { content: "−"; }
.account-menu .account-menu-group-links { display: grid; gap: 5px; padding: 0 8px 8px; }
.account-menu .account-menu-group-links a {
  justify-content: flex-start;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  text-align: left;
}
.account-menu .account-menu-group > p {
  margin: 0;
  padding: 0 11px 11px;
  color: #677b84;
  font-size: 12px;
  line-height: 1.45;
}

.category-drawer-nav { display: grid; gap: 0; padding-block: 12px; }
.category-drawer-nav .category-group { border-bottom: 1px solid #e9eeec; }
.category-group > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 5px;
  color: #74838d;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.category-group[open] > summary { color: #17694f; }
.category-group-links { display: grid; padding: 0 0 8px; }
.category-drawer-nav .category-group-links a {
  min-height: 44px;
  padding-inline: 10px;
  border-bottom: 0;
}
.category-drawer-nav .category-group-links a:hover { background: #f0f7f3; }
.category-group > summary:focus-visible,
.account-menu .account-menu-group summary:focus-visible {
  outline: 3px solid #e46c0b;
  outline-offset: -2px;
  border-radius: 5px;
}

.account-dialog {
  width: min(900px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90dvh, 760px);
  margin: auto;
  padding: clamp(20px, 3vw, 36px);
  overflow: auto;
  border: 1px solid #dfe9e4;
  border-radius: 16px;
  background: #f7faf8;
  color: #18334a;
  box-shadow: 0 24px 80px #102d3d45;
}
.account-dialog::backdrop { background: rgb(13 34 46 / 58%); backdrop-filter: blur(2px); }
.account-dialog[open] { animation: account-dialog-enter .16s ease-out; }
@keyframes account-dialog-enter {
  from { opacity: .55; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.account-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.account-dialog .account-intro { margin: 0; }
.account-dialog .account-intro .section-kicker { margin: 0 0 5px; color: #198a68; }
.account-dialog .account-intro h2 {
  margin: 0;
  color: #174d76;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.12;
}
.account-dialog .account-intro .subtle { margin: 7px 0 0; color: #667781; font-size: 13px; }
.account-dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid #dce7e2;
  border-radius: 50%;
  background: #fff;
  color: #24536b;
  font-size: 27px;
  line-height: 1;
}
.account-dialog-close:hover { background: #eef7f2; }
.account-dialog .account-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-dialog .account-login-card,
.account-dialog .account-create-card {
  min-height: 0;
  padding: clamp(16px, 2.3vw, 24px);
  border-color: #e1e9e5;
  border-radius: 10px;
}
.account-dialog .account-login-card h3,
.account-dialog .account-create-card h3 { color: #315768; font-size: 20px; }
.account-dialog .account-login-card > p,
.account-dialog .account-create-card > p { margin-bottom: 13px; }
.account-dialog #before-account { display: grid; gap: 8px; }
.account-dialog #before-account label {
  margin: 2px 0 0;
  color: #4d6570;
  font-size: 12px;
  font-weight: 750;
}
.account-dialog #login-code { width: 100%; min-width: 0; margin: 0; }
.account-dialog #before-account .account-submit,
.account-dialog .account-create-card .account-submit {
  min-height: 46px;
  justify-self: start;
  margin-top: 2px;
  padding: 10px 18px;
  border: 1px solid #198a68;
  border-radius: 6px;
  background: #198a68;
  color: #fff;
  font-weight: 760;
}
.account-dialog #before-account .account-submit:hover,
.account-dialog .account-create-card .account-submit:hover { background: #137455; }
.account-dialog .account-create-card ul { gap: 7px; margin-bottom: 15px; }
.account-dialog #after-account:not([hidden]) { display: grid; gap: 11px; }
.account-dialog #after-account > p,
.account-dialog #after-account > a { margin: 0; }
.account-dialog #after-account > a { color: #198a68; font-weight: 750; }
.account-dialog #after-account > button { justify-self: start; }
.account-dialog .account-local-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 15px 0 0;
  color: #667781;
  font-size: 12px;
  line-height: 1.45;
}
.account-dialog .account-local-note strong { color: #17694f; }
.account-dialog #access-code,
.account-dialog #account-feedback {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: #526c76;
  font-size: 12px;
  line-height: 1.45;
}
.account-dialog #account-feedback:empty { display: none; }

/* The account view lives in a dialog, so the lab has no phantom first row. */
#laboratorio .purchase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#laboratorio .purchase-grid > .cart-panel,
#laboratorio .purchase-grid > .checkout-panel { grid-column: auto; grid-row: auto; }

.recommendation-dots {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 0 0;
}
.recommendation-dots[hidden] { display: none !important; }
.recommendation-dots button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.recommendation-dots button::before {
  width: 8px;
  height: 8px;
  border: 1px solid #198a68;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform .16s ease, background-color .16s ease;
}
.recommendation-dots button[aria-current="true"]::before {
  transform: scale(1.35);
  background: #198a68;
}
.recommendation-dots button:hover::before { background: #f1872c; border-color: #f1872c; }
.recommendation-dots button:focus-visible { outline: 3px solid #e46c0b; outline-offset: -2px; }

@media (max-width: 800px) {
  #laboratorio .purchase-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .category-drawer { width: min(420px, 92vw); }
  .head-account .account-menu {
    position: fixed;
    top: var(--account-menu-top, 82px);
    right: 10px;
    left: auto;
    width: min(340px, calc(100vw - 20px));
    max-height: 68dvh;
  }
  .head-account .account-menu::before { right: 65px; }
  .account-dialog {
    width: calc(100vw - 24px);
    max-height: 92dvh;
    padding: 18px 16px;
    border-radius: 12px;
  }
  .account-dialog-head { gap: 12px; margin-bottom: 14px; }
  .account-dialog .account-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .account-dialog .account-login-card,
  .account-dialog .account-create-card { padding: 16px; }
  .account-dialog #before-account .account-submit,
  .account-dialog .account-create-card .account-submit { width: 100%; justify-self: stretch; }
  .account-dialog .account-local-note { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-dialog[open] { animation: none; }
  .recommendation-dots button::before { transition: none; }
}
