/* Canonical popup styles shared byte-for-byte with the B2B web app. */
.tmr-unified { position: relative; min-width: 0; }
.tmr-unified .ts-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: auto; z-index: 1001;
  display: block; width: 900px; max-width: calc(100vw - 32px); max-height: min(70vh, 680px);
  margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain;
  box-sizing: border-box; border: 1px solid #e5e7eb; border-radius: 12px;
  background: #fff; color: #25252d; box-shadow: 0 16px 40px rgba(30, 25, 65, .16);
  font-family: var(--font-rubik, Rubik), Arial, sans-serif; font-size: 14px; line-height: 1.45;
  font-weight: 400; letter-spacing: normal; text-align: left;
  scrollbar-width: thin; scrollbar-color: #b7b7c2 transparent;
}
.tmr-unified .ts-panel[hidden] { display: none; }
.tmr-unified .ts-columns { display: grid; grid-template-columns: minmax(0, 1fr); }
.tmr-unified .ts-columns--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tmr-unified .ts-column { min-width: 0; padding: 8px 0; }
.tmr-unified .ts-columns--two > .ts-column + .ts-column { border-left: 1px solid #e5e7eb; }
.tmr-unified .ts-block { display: block; margin: 0; padding: 12px 0; border: 0; }
.tmr-unified .ts-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0 20px 8px; font-size: 14px; line-height: 20px; font-weight: 400; color: #777780; }
.tmr-unified .ts-clear-history { appearance: none; padding: 0; margin: 0; border: 0; background: transparent; color: #777780; font: inherit; text-decoration: underline; cursor: pointer; }
.tmr-unified a.ts-link { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: auto; height: auto; min-width: 0; margin: 0; padding: 12px 20px; border: 0; border-radius: 0; background: transparent; color: #25252d; font-size: 14px; line-height: 1.45; font-weight: 400; text-align: left; text-decoration: none; white-space: normal; box-sizing: border-box; }
.tmr-unified a.ts-link:hover, .tmr-unified a.ts-link:focus-visible, .tmr-unified a.ts-link[aria-selected=true] { background: #f3f3f8; color: #2e2069; outline: none; text-decoration: none; }
.tmr-unified .ts-count { margin-left: auto; color: #777780; font-size: 12px; }
.tmr-unified .ts-photo { display: flex; align-items: center; justify-content: center; flex: 0 0 60px; width: 60px; height: 60px; overflow: hidden; }
.tmr-unified .ts-photo img { display: block; width: 60px; height: 60px; max-width: 100%; object-fit: contain; border: 0; }
.tmr-unified .ts-photo img[hidden] { display: none; }
.tmr-unified .ts-product-text { display: block; min-width: 0; }
.tmr-unified .ts-article { display: block; margin-bottom: 4px; font-size: 12px; line-height: 16px; color: #777780; overflow-wrap: anywhere; }
.tmr-unified .ts-name { display: block; font-size: 14px; line-height: 20px; font-weight: 400; }
.tmr-unified .ts-footer { border-top: 1px solid #e5e7eb; }
.tmr-unified .ts-footer a.ts-link { font-weight: 500; }
@media (max-width: 767px) {
  .tmr-unified .ts-panel { width: min(900px, calc(100vw - 32px)); }
  .tmr-unified .ts-columns--two { grid-template-columns: minmax(0, 1fr); }
  .tmr-unified .ts-columns--two > .ts-column + .ts-column { border-left: 0; border-top: 1px solid #e5e7eb; }
  .tmr-unified a.ts-link { padding: 10px 16px; }
  .tmr-unified .ts-heading { padding-left: 16px; padding-right: 16px; }
}

.tmr-unified .ts-panel::-webkit-scrollbar { width: 8px; height: 8px; }
.tmr-unified .ts-panel::-webkit-scrollbar-thumb { background: #b7b7c2; border-radius: 4px; }

/* Compact phrases and distinct category cards. */
.tmr-unified .ts-phrases { padding: 8px 0; }
.tmr-unified .ts-phrases .ts-heading { padding-bottom: 4px; }
.tmr-unified .ts-phrases a.ts-link { padding-top: 6px; padding-bottom: 6px; line-height: 20px; }
.tmr-unified .ts-categories a.ts-link {
  margin: 6px 16px; padding: 12px 14px; border-radius: 10px;
  background: #f1f2f5; font-weight: 600; line-height: 20px;
}
.tmr-unified .ts-categories a.ts-link::after {
  content: '\203a'; flex: 0 0 auto; margin-left: 0; color: #9696a2;
  font-size: 24px; line-height: 20px; font-weight: 400;
}
.tmr-unified .ts-categories .ts-count { flex: 0 0 auto; }
.tmr-unified .ts-categories a.ts-link:hover,
.tmr-unified .ts-categories a.ts-link:focus-visible,
.tmr-unified .ts-categories a.ts-link[aria-selected=true] { background: #e7e8f1; color: #2e2069; }

.tmr-unified .ts-categories a.ts-link > span:first-child { flex: 1; min-width: 0; }
