/* Tela Shopee: cabeçalho, busca e navegação da referência do Clube. */
body:has(#shopee.active) {
  --sh-navy: #071b55;
  --sh-blue: #004db6;
  --sh-gold: #ffc627;
  --sh-orange: #ff7900;
  --sh-line: #dce1ed;
  --sh-bg: #f6f7fb;
  --sh-nav-offset: calc(78px + env(safe-area-inset-bottom));
  background: var(--sh-bg) !important;
}
body:has(#shopee.active) header.ach-branded-header {
  height: clamp(122px, 29vw, 181px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(165deg, #f98a00 35%, #ffbf1c 66%, #ffe06b 95%) !important;
  box-shadow: none !important;
}
body:has(#shopee.active) header.ach-branded-header::before {
  inset: -105% -13% 10px -17%;
  height: auto;
  border-radius: 0 0 51% 52% / 0 0 24% 25%;
  background: radial-gradient(ellipse at 48% 80%, #0960c4 0%, #06379b 40%, #071d6e 77%);
  box-shadow: 0 2px 0 #fff3a4, 0 7px 12px #cf5b0065;
  transform: rotate(-3deg);
  z-index: 0;
}
body:has(#shopee.active) header.ach-branded-header::after {
  inset: auto -4% -17px -4%;
  height: 23px;
  border-radius: 50% 50% 0 0;
  background: var(--sh-bg);
  transform: none;
  z-index: 1;
}
body:has(#shopee.active) .ach-r35-brand-logo {
  top: 4px;
  width: clamp(101px, 25.2vw, 151px);
  height: clamp(101px, 25.2vw, 151px);
}
body:has(#shopee.active) .ach-r35-menu { display: none !important; }
body:has(#shopee.active) main { padding-top: 10px !important; min-height: 0 !important; }
body:has(#shopee.active)::after {
  left: -10%; right: -10%; bottom: -29px; height: 62px;
  border-top: 12px solid var(--sh-gold);
  background: linear-gradient(110deg, #0057c3, #052b8c 80%);
  opacity: 1;
  transform: rotate(-2deg);
}
#shopee .ach-r40-sh-title h1 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 4px 5px 12px !important;
  color: var(--sh-navy) !important;
  font-size: clamp(30px, 6.4vw, 45px) !important;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -.035em;
}
.ach-r40-bag {
  --bag-size: 30px;
  display: inline-grid;
  width: var(--bag-size);
  height: calc(var(--bag-size) * .86);
  place-items: center;
  position: relative;
  flex: none;
  margin-top: calc(var(--bag-size) * .20);
  border-radius: 4px 4px 6px 6px;
  background: linear-gradient(150deg, #ff9411, #f35e00);
  color: #fff;
  font: 650 calc(var(--bag-size) * .64)/1 system-ui, sans-serif;
  text-shadow: none;
}
.ach-r40-bag::before {
  content: "";
  position: absolute;
  width: 42%;
  height: 39%;
  top: -34%;
  left: 29%;
  border: max(2px, calc(var(--bag-size) * .075)) solid currentColor;
  border-bottom: 0;
  border-radius: 70% 70% 0 0;
}
.ach-r40-sh-title .ach-r40-bag::before { color: #f67506; }
.ach-r40-search-icon {
  --glass-size: 14px;
  display: inline-block;
  position: relative;
  flex: none;
  width: var(--glass-size);
  height: var(--glass-size);
  margin-right: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.ach-r40-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -2px;
  background: currentColor;
  transform: rotate(46deg);
  border-radius: 2px;
}
.ach-r40-chain { filter: grayscale(1); font-size: 1.12em; }
:is(#shopee, #mensagens) .ach-sh-input-modes { margin: 0 0 12px !important; gap: 8px !important; }
:is(#shopee, #mensagens) .ach-sh-input-modes button {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px !important; border-radius: 18px !important;
  font-size: clamp(11px, 3.05vw, 16px) !important;
  line-height: 1.12; padding: 8px 5px !important;
}
:is(#shopee, #mensagens) .ach-sh-input-modes button[aria-pressed="true"] {
  background: linear-gradient(165deg, #005fc4, #062d7c) !important;
  border: 1px solid #1266c4 !important;
  box-shadow: 0 3px 6px #09275638, inset 0 1px 0 #6eb5ff6e !important;
}
:is(#shopee, #mensagens) .ach-sh-input-modes button[aria-pressed="false"] {
  background: #eef2fc !important; color: var(--sh-navy) !important;
  border: 1px solid #e3e8f6 !important; box-shadow: 0 3px 6px #13295126 !important;
}
#shopee #achShSearchPanel, #shopee #achShLinkPanel, #mensagens #mlRadarSearch {
  background: #fff !important; border: 1px solid #edf0f8 !important;
  border-radius: 23px !important; padding: clamp(13px, 3.4vw, 23px) !important;
  box-shadow: 0 5px 20px #08194710 !important; overflow: visible !important;
}
#shopee #achShSearchPanel h2, #shopee .ach-r40-results-head h2, #mensagens #mlRadarSearch h2 {
  color: var(--sh-navy) !important; font-size: clamp(18px, 4.2vw, 23px) !important;
  font-weight: 850; letter-spacing: -.025em !important; margin: 0 0 8px !important;
}
.ach-r40-query, .ach-r40-sort { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
:is(#shopee, #mensagens) .ach-r40-query input, #shopee .ach-r40-sort select {
  width: 100%; min-width: 0; min-height: 43px !important; height: 43px !important;
  margin: 0 !important; padding: 8px 10px !important; font-size: 14px !important;
  border: 1px solid var(--sh-line) !important; border-radius: 13px !important;
  background: #fdfdff !important; color: var(--sh-navy) !important;
}
#shopee .ach-r40-sort select { text-overflow: ellipsis; font-weight: 670; }
.ach-r40-sr { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; }
#shopee #achShSearchButton, #shopee #achShSearchApply, #mensagens #mlRadarSubmit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 43px !important; padding: 8px 12px !important; white-space: nowrap;
  background: linear-gradient(#ff9800, #f56800) !important; color: #fff !important;
  text-shadow: 0 1px 1px #87330085;
  border: 1px solid #f87903 !important; border-radius: 13px !important;
  box-shadow: inset 0 1px 0 #ffdc78, 0 2px 5px #d65a0028 !important;
  font-size: 14px !important; font-weight: 780 !important;
}
:is(#shopee #achShClearSearch, #mensagens #mlRadarClear) {
  background: #fff6ed !important; color: #9d3900 !important;
  border: 1px solid #f4c69f !important; border-radius: 13px !important;
  min-height: 43px !important; box-shadow: none !important;
  font-size: clamp(10px, 2.7vw, 14px) !important;
}
:is(#shopee #achShClearSearch, #mensagens #mlRadarClear) span { color: #db5f00; margin-right: 3px; font-size: 1.2em; }
#shopee #achShSearchPanel .ach-r40-sort-label {
  font-size: 15px !important; font-weight: 850 !important; color: var(--sh-navy) !important;
  margin: 10px 0 4px !important; display: block;
}
#shopee #achShSearchPanel details > summary {
  display: flex; align-items: center; gap: 7px; list-style: none; color: var(--sh-navy) !important;
  font-weight: 750 !important; font-size: 14px !important;
}
#shopee #achShSearchPanel details > summary::-webkit-details-marker { display: none; }
#shopee #achShSearchPanel details > summary::before {
  content: ""; width: 0; height: 0; flex: none; border-left: 8px solid var(--sh-blue);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
#shopee #achShSearchPanel details[open] > summary::before { transform: rotate(90deg); }
#shopee #achShSpecificSearch { margin: 6px 0 0 !important; padding: 0 !important; border: 0; background: transparent; }
#shopee #achShSpecificSearch > summary { color: var(--sh-blue) !important; padding: 3px 1px; flex-wrap: wrap; }
#achShAgendaSummary { background: #eaf1ff; color: var(--sh-navy); border-radius: 12px; padding: 3px 7px; }
#achShAgendaSummary:empty, #achShAgendaHint:empty { display: none; }
#shopee #achShOptionalFilters {
  padding: 0 !important; margin: 9px 0 !important; border-radius: 13px !important;
  background: #edf1fc !important; border: 1px solid #e3e8f7 !important;
}
#shopee #achShOptionalFilters summary { padding: 10px !important; }
#shopee .ach-r40-filter-body { padding: 8px 10px 10px; }
#shopee #achShSpecificSearch .ach-r40-filter-body { background: #f5f8ff; border-radius: 12px; margin: 6px 0 0; }
#shopee .ach-r36-radar-controls { margin-top: 9px; }
#shopee .ach-r40-checks { display: grid; gap: 7px; margin: 11px 2px; }
#shopee .ach-r40-checks label { margin: 0 !important; align-items: start; color: var(--sh-navy) !important; font-weight: 650 !important; }
#shopee input[type=checkbox] { accent-color: #0059c6; flex: none; }
#shopee #achShRestoreOffers {
  background: #ffefdf !important; color: #9b3700 !important; box-shadow: none !important;
  border: 0 !important; padding: 8px 11px !important; border-radius: 12px !important;
  font-size: 13px !important;
}
#shopee #achShFilterActions { display: none; }
#shopee #achShSearchPanel:has(details[open]) #achShFilterActions {
  display: flex; justify-content: flex-end; position: sticky; bottom: var(--sh-nav-offset); z-index: 5;
  background: #fff; padding: 8px 0 2px; margin-top: 6px; border-top: 1px solid #e7ebf6;
}
#shopee #achShStatus { color: #55617d !important; font-size: 12px !important; margin: 8px 2px !important; }
#shopee .ach-r40-results { scroll-margin-top: 10px; }
#shopee .ach-r40-results-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 4px 10px; margin: 10px 2px 6px;
}
#shopee .ach-r40-results-head h2 { margin: 0 !important; }
.ach-r40-results-head > span { color: #17346f; padding: 4px 9px; border-radius: 15px; background: #eaf0fb; font-size: 11px; }
#shopee #achShResults:empty, #shopee #achShPaging:empty { display: none !important; }
#shopee .ach-r40-empty {
  border: 6px solid #fff; border-radius: 22px; padding: 18px 10px 17px;
  display: grid; justify-items: center; text-align: center; background: #eef1fa;
  color: var(--sh-navy); box-shadow: 0 5px 16px #0819470d;
}
.ach-r40-empty-icon {
  display: block; position: relative; color: #627ab9;
  width: 34px; height: 30px; margin: 9px 0 11px;
  border: 2px solid currentColor; border-radius: 5px;
}
.ach-r40-empty-icon::before {
  content: ""; position: absolute; width: 13px; height: 9px;
  border: 2px solid currentColor; border-bottom: 0;
  border-radius: 8px 8px 0 0; inset: -10px auto auto 8px;
}
.ach-r40-empty-icon .ach-r40-search-icon {
  position: absolute; inset: auto -8px -2px auto; --glass-size: 14px;
  background: #eef1fa;
}
#shopee .ach-r40-empty p { color: #596582; margin: 4px 0 0; font-size: 13px; }
#shopee #achShSearchPanel[hidden], #shopee #achShLinkPanel[hidden],
#shopee #achShResultsRegion[hidden], #shopee #achShEmpty[hidden], #shopee #achShStatus[hidden],
#shopee #achV62ShopeeChosen[hidden], #shopee #achShFilterStats[hidden] { display: none !important; }
body:has(#shopee.active) .tabbar {
  width: min(calc(100% - 14px), 910px); left: 50% !important; right: auto !important;
  bottom: calc(6px + env(safe-area-inset-bottom)) !important; transform: translateX(-50%);
  border-radius: 22px !important; padding: 3px 3px 4px !important;
  background: #fff !important; box-shadow: 0 5px 19px #11224a30 !important;
}
body:has(#shopee.active) .tabbar .tabs { gap: 1px !important; }
body:has(#shopee.active) .tabbar .tabs > button.tab,
body:has(#shopee.active) .tabbar .ach-more-button {
  font-size: clamp(8px, 2.35vw, 12px) !important; line-height: 1.05 !important;
  color: var(--sh-navy) !important; min-height: 57px !important;
}
body:has(#shopee.active) .tabbar .tabs > button.tab.active {
  background: linear-gradient(150deg, #005cc5, #062d80) !important;
  border: 2px solid var(--sh-gold) !important; color: #fff !important;
}
body:has(#shopee.active) .tabbar .ach-nav-icon { font-size: 19px !important; }
.ach-nav-icon > .ach-r40-bag, .ach-nav-icon > .ach-r40-ml-icon, .ach-r40-nav-amazon > span { display: none; }
body:has(#shopee.active) .tabbar :is(.ach-icon-shopee, .ach-icon-ml, .ach-r40-nav-amazon) { font-size: 0 !important; }
body:has(#shopee.active) .tabbar .ach-r40-bag { --bag-size: 19px; display: inline-grid; }
body:has(#shopee.active) .tabbar .ach-r40-ml-icon {
  display: inline-grid; place-items: center; width: 24px; height: 17px;
  border: 1px solid #0050a9; border-radius: 50%; background: #ffdb32; font-size: 14px;
}
body:has(#shopee.active) .tabbar .ach-r40-nav-amazon > span {
  display: inline-block; color: #171717; font: 900 24px/.8 Arial, sans-serif;
  border-bottom: 2px solid #f89200; border-radius: 0 0 61% 60%;
}
body:has(#shopee.active) #achR34SelectionDock { bottom: var(--sh-nav-offset); }
body:has(#shopee.active #achShSearchPanel:not([hidden]) details[open]) #achR34SelectionDock { display: none; }
@media (min-width: 700px) {
  body:has(#shopee.active) main { padding-top: 16px !important; }
  #shopee .ach-r40-query, #shopee .ach-r40-sort { gap: 12px; }
  #shopee #achShSearchButton, #shopee #achShSearchApply, #mensagens #mlRadarSubmit { padding-inline: 17px !important; }
}

#shopee #achShFreeNicheRow[hidden] { display: none !important; }
