.aq-account-shell {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 510;
}

.aq-account-shell .wc-block-customer-account__link {
  cursor: pointer;
}

.aq-am-positioner[hidden] { display: none !important; }

.aq-am-positioner {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(670px, calc(100vw - 24px));
  padding-top: 10px;
  z-index: 1000;
  color: #242424;
  font-family: inherit;
  text-align: left;
}

.aq-am-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 415px;
  max-height: min(690px, calc(100vh - 100px));
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(17, 17, 17, .16);
  font-size: 14px;
  line-height: 1.35;
}

.aq-am-recent-column,
.aq-am-account-column { min-width: 0; padding: 18px; }
.aq-am-recent-column { border-right: 1px solid #ededed; overflow-y: auto; }
.aq-am-account-column { overflow-y: auto; }

.aq-am-column-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.aq-am-column-heading h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.2; }
.aq-am-column-heading span { font-size: 24px; line-height: 1; }
.aq-am-empty { margin: 18px 0; color: #6a6a6a; font-size: 13px; }
.aq-am-recent-list { display: grid; gap: 12px; }

.aq-am-product { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: start; }
.aq-am-product-image { display: block; width: 76px; height: 76px; border-radius: 6px; overflow: hidden; background: #f6f6f6; }
.aq-am-product-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.aq-am-product-name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #242424 !important; text-decoration: none !important; font-size: 12px; font-weight: 600; line-height: 1.35; }
.aq-am-product-name:hover { text-decoration: underline !important; }
.aq-am-product-price { display: block; margin: 3px 0 5px; color: #151515; font-weight: 700; font-size: 13px; }
.aq-am-product-view { display: inline-block; padding: 4px 9px; border: 1px solid #ddd; border-radius: 999px; color: #242424 !important; text-decoration: none !important; font-size: 11px; line-height: 1.1; }
.aq-am-product-view:hover { border-color: #111; }

.aq-am-greeting { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.aq-am-avatar { flex: 0 0 46px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid white; outline: 2px solid #46a867; background: #4aa15f; color: #fff; font-size: 22px; font-weight: 700; }
.aq-am-greeting > div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.aq-am-greeting-small { color: #777; font-size: 11px; }
.aq-am-greeting strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; line-height: 1.3; }
.aq-am-close { margin-left: auto; align-self: flex-start; padding: 0 4px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #555 !important; font-size: 23px !important; line-height: 1 !important; cursor: pointer; }
.aq-am-feature { display: grid; gap: 5px; margin-bottom: 14px; padding: 16px; border-radius: 6px; background: #292929; color: #fff; }
.aq-am-feature strong { font-size: 14px; }
.aq-am-feature span { color: #e5e5e5; font-size: 12px; }
.aq-am-links { display: grid; gap: 1px; }
.aq-am-link { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 8px; border-radius: 6px; color: #292929 !important; text-decoration: none !important; font-size: 13px; }
.aq-am-link:hover, .aq-am-link:focus-visible { background: #f3f4f5; color: #111 !important; }
.aq-am-link svg { flex: 0 0 18px; width: 18px; height: 18px; }
.aq-am-link-divider { height: 1px; margin: 7px 0; background: #e8e8e8; }
.aq-am-primary-link { font-weight: 700; }

@media (max-width: 700px) {
  .aq-am-positioner { position: fixed; top: var(--aq-account-menu-top, 70px); right: 12px; width: calc(100vw - 24px); padding-top: 0; }
  .aq-am-panel { grid-template-columns: 1fr; max-height: calc(100dvh - var(--aq-account-menu-top, 70px) - 16px); overflow-y: auto; }
  .aq-am-account-column { grid-row: 1; overflow: visible; }
  .aq-am-recent-column { grid-row: 2; border-right: 0; border-top: 1px solid #ededed; overflow: visible; }
}

/* Header account identity and primary-link cleanup. */
.site-header nav.aq-lego-menu { display: none !important; }
.aq-account-shell .wc-block-customer-account__link { cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; max-width: 184px; padding: 3px 4px; color: #fff; text-decoration: none; }
.aq-account-shell .wc-block-customer-account__visual { display: none !important; }
.aq-am-trigger-identity { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.aq-am-trigger-avatar { box-sizing: border-box; flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #fff; outline: 1px solid #e34154; border-radius: 50%; background: #4aa15f; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.aq-am-trigger-name { display: block; max-width: 106px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: inherit; font-size: 13px; font-weight: 600; }
.aq-am-trigger-chevron { flex: 0 0 11px; width: 11px; height: 11px; color: inherit; }
.aq-account-shell .wc-block-customer-account__link:hover .aq-am-trigger-name, .aq-account-shell .wc-block-customer-account__link:focus-visible .aq-am-trigger-name { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .aq-am-trigger-name { max-width: 72px; font-size: 12px; } }
@media (max-width: 360px) { .aq-am-trigger-name { max-width: 48px; } }

.site-header .hostinger-ai-menu-wrapper nav.aq-lego-menu { display: none !important; }

body .wp-site-blocks header.wp-block-template-part nav.aq-lego-menu { display: none !important; }
