.cats-id-zone {
  --cats-navy: #062448;
  --cats-cyan: #16c7e8;
  --cats-mint: #9af0cc;
  margin: 28px auto 44px;
  max-width: 1180px;
  padding: 28px;
  border: 1px solid rgba(22, 199, 232, .32);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #f4fbff 100%);
  box-shadow: 0 18px 60px rgba(6, 36, 72, .10);
  color: var(--cats-navy);
}

.cats-id-zone * { box-sizing: border-box; }
.cats-id-zone[hidden] { display: none !important; }

/* The r27 React bundle owns this eighth item in the primary Portal menu. */
.site-header nav > #cats-unidentified-nav {
  color: #075f83 !important;
  background: #eaf9fd !important;
  box-shadow: inset 0 0 0 1px #9fdbe9;
  font-weight: 800 !important;
}
.site-header nav > #cats-unidentified-nav:hover,
.site-header nav > #cats-unidentified-nav.active,
.site-header nav > #cats-unidentified-nav[aria-current="page"] {
  color: #fff !important;
  background: #087fa5 !important;
  box-shadow: inset 0 0 0 1px #087fa5;
}
body > #cats-unidentified-zone {
  width: min(1180px, calc(100% - 32px));
}

/*
 * Khu nhận diện là một cổng DOM nằm ngoài React để không làm treo Portal.
 * Khi mở, display: contents chỉ thay đổi cây hiển thị: Header → Khu nhận diện
 * → Footer. Không di chuyển hoặc chèn nút vào cây React.
 */
body.cats-id-zone-open {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
body.cats-id-zone-open > main.customer-site {
  display: contents;
}
body.cats-id-zone-open > main.customer-site > .top-ribbon {
  order: 0;
}
body.cats-id-zone-open > main.customer-site > .site-header {
  order: 1;
}
body.cats-id-zone-open > #cats-unidentified-zone {
  order: 2;
}
body.cats-id-zone-open > main.customer-site > .site-footer {
  order: 3;
}

main.cats-id-zone-open
  > :not(.top-ribbon):not(.site-header):not(#cats-unidentified-zone):not(
    .site-footer
  ):not(script) {
  display: none !important;
}

/* Thu gọn nhẹ chữ trên thanh danh mục, giữ nguyên vùng bấm dễ thao tác. */
.site-header nav > button {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.cats-id-zone__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.cats-id-zone__heading > div { min-width: 0; }
.cats-id-zone__back {
  flex: 0 0 auto;
  min-height: 42px !important;
  padding: 8px 14px !important;
  border-color: #c6dce8 !important;
  color: #315269 !important;
  font-size: .88rem !important;
}
.cats-id-zone__eyebrow {
  margin: 0 0 8px;
  color: #087aa7;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .11em;
}
.cats-id-zone h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.cats-id-zone__lead { margin: 10px 0 0; color: #52677f; line-height: 1.55; }
.cats-id-zone__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
}
.cats-id-zone button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #0c79aa;
  border-radius: 14px;
  background: #fff;
  color: var(--cats-navy);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.cats-id-zone button:hover { transform: translateY(-1px); }
.cats-id-zone button:focus-visible { outline: 3px solid rgba(22,199,232,.28); outline-offset: 2px; }
.cats-id-zone__toolbar [data-package-route].is-active {
  border-color: #0c79aa;
  background: #eaf8fd;
  box-shadow: inset 0 0 0 1px rgba(12,121,170,.12);
}
.cats-id-zone__primary {
  border-color: transparent !important;
  background: linear-gradient(100deg, var(--cats-cyan), var(--cats-mint)) !important;
}
.cats-id-zone__status {
  min-height: 24px;
  margin: 0 0 12px;
  color: #087aa7;
  font-weight: 750;
}
.cats-id-browser {
  margin: 0 0 16px;
  padding: 14px;
  scroll-margin-top: 110px;
  border: 1px solid #d3e6ef;
  border-radius: 16px;
  background: #f7fbfd;
}
.cats-id-browser[hidden] { display: none !important; }
.cats-id-browser__filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .34fr);
  gap: 12px;
}
.cats-id-browser__filters label {
  display: grid;
  gap: 6px;
  color: #29475e;
  font-size: .8rem;
  font-weight: 850;
}
.cats-id-browser__filters input,
.cats-id-browser__filters select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #afcbd9;
  border-radius: 11px;
  background: #fff;
  color: var(--cats-navy);
  font: inherit;
}
.cats-id-browser__filters input:focus,
.cats-id-browser__filters select:focus {
  border-color: #0c91bc;
  outline: 3px solid rgba(22, 199, 232, .18);
}
.cats-id-browser__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.cats-id-browser__meta > strong {
  color: #526d80;
  font-size: .84rem;
}
.cats-id-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.cats-id-pagination[hidden] { display: none !important; }
.cats-id-pagination button {
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: .8rem;
}
.cats-id-pagination button:disabled {
  opacity: .42;
  cursor: default;
  transform: none;
}
.cats-id-pagination span {
  min-width: 82px;
  color: #526d80;
  font-size: .8rem;
  font-weight: 850;
  text-align: center;
}
.cats-id-pagination--bottom { margin: 18px 0 4px; }
.cats-id-zone__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
}
.cats-id-card {
  overflow: hidden;
  padding: 0 14px 14px;
  border: 1px solid #d1e3ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(6, 36, 72, .065);
}
.cats-id-card__image {
  position: relative;
  height: 138px;
  margin: 0 -14px 13px;
  overflow: hidden;
  border-bottom: 1px solid #dbeaf2;
  background: #edf7fb;
}
.cats-id-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  touch-action: manipulation;
}
.cats-id-card__image img.cats-private-image-pending,
.cats-id-card__image img.cats-private-image-failed {
  opacity: 0;
  pointer-events: none;
}
.cats-id-card__image-loading,
.cats-id-card__image-error {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 16px;
  background: #edf7fb;
  color: #315470;
  font-size: .875rem;
  font-weight: 800;
  text-align: center;
}
.cats-id-card__image-loading[hidden],
.cats-id-card__image-error[hidden] {
  display: none;
}
.cats-id-card__image-loading::before {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border: 3px solid #b8dae9;
  border-top-color: #0788ba;
  border-radius: 999px;
  content: "";
  animation: cats-private-image-spin .8s linear infinite;
}
.cats-id-card__image-error button {
  min-width: 112px;
  min-height: 44px;
  margin: 0 auto;
  padding: 0 16px;
  border: 1px solid #0788ba;
  border-radius: 10px;
  background: #fff;
  color: #06355a;
  font: inherit;
  cursor: pointer;
}
@keyframes cats-private-image-spin {
  to { transform: rotate(360deg); }
}
.cats-id-card__image img:focus-visible {
  outline: 4px solid #16c7e8;
  outline-offset: -4px;
}
.cats-id-card__zoom-hint {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(6,36,72,.76);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.cats-id-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 5px;
  color: #6d8799;
  text-align: center;
  background:
    radial-gradient(circle at 25% 25%, rgba(22,199,232,.13), transparent 32%),
    linear-gradient(145deg, #f5fbfe, #e7f4f9);
}
.cats-id-card__placeholder span { font-size: 2rem; line-height: 1; }
.cats-id-card__placeholder small { font-size: .78rem; font-weight: 750; }
.cats-id-card__label {
  display: block;
  margin-bottom: 4px;
  color: #71869a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cats-id-card__top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.cats-id-card h3 { margin: 0; font-size: .96rem; overflow-wrap: anywhere; }
.cats-id-card p { margin: 8px 0 0; color: #60748a; line-height: 1.45; }
.cats-id-card__badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f8ff;
  color: #08739c;
  font-size: .72rem;
  font-weight: 850;
}
.cats-id-card__badge--hold { background: #fff0dc; color: #9a4f00; }
.cats-id-card--identified {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-color: #bcebdc;
  background: #f0fbf7;
}
.cats-id-card--identified .cats-id-card__badge {
  padding: 9px 14px;
  background: #dff7ed;
  color: #087653;
  font-size: .86rem;
}
.cats-id-card__details {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  border: 1px solid #e1edf3;
  border-radius: 12px;
  background: #f9fcfe;
}
.cats-id-card__details > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
}
.cats-id-card__details > div + div { border-top: 1px solid #e1edf3; }
.cats-id-card__details dt {
  color: #6c8193;
  font-size: .8rem;
  font-weight: 750;
}
.cats-id-card__details dd {
  min-width: 0;
  margin: 0;
  color: var(--cats-navy);
  font-size: .86rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.cats-id-card__intent {
  margin-top: 11px !important;
  color: var(--cats-navy) !important;
  font-size: .82rem;
  font-weight: 850;
}
.cats-id-card button {
  width: 100%;
  min-height: 43px;
  margin-top: 8px;
  padding: 8px 11px;
  border-color: transparent;
  background: linear-gradient(100deg, var(--cats-cyan), var(--cats-mint));
  font-size: .84rem;
}
.cats-id-card--empty {
  grid-column: 1 / -1;
  padding: 22px;
  text-align: center;
}
.cats-id-zone__notice {
  margin: 20px 0 0;
  padding: 15px 17px;
  border-left: 4px solid #0aa4c6;
  border-radius: 10px;
  background: #eaf9fd;
  color: #29475e;
  line-height: 1.55;
}
.cats-id-zone__rule {
  margin: 12px 0 0;
  color: #66798c;
  font-size: .88rem;
  line-height: 1.5;
}
.cats-id-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 22, 45, .66);
}
.cats-id-modal[hidden] { display: none; }
.cats-id-modal__panel {
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.3);
}

body.cats-package-lightbox-open { overflow: hidden; }
.cats-package-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  padding: 18px;
}
.cats-package-lightbox[hidden] { display: none !important; }
.cats-package-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 14, 29, .9);
  backdrop-filter: blur(5px);
}
.cats-package-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 96vw);
  height: min(88vh, 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  background: #071a31;
  box-shadow: 0 28px 100px rgba(0,0,0,.55);
}
.cats-package-lightbox h3 {
  margin: 0;
  padding: 4px 54px 2px 4px;
  color: #fff;
  font-size: .92rem;
}
.cats-package-lightbox__close {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font: 700 1.75rem/1 sans-serif;
  cursor: pointer;
}
.cats-package-lightbox__close:hover,
.cats-package-lightbox__close:focus-visible {
  background: #fff;
  color: #062448;
  outline: 3px solid rgba(22,199,232,.5);
}
.cats-package-lightbox img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  background: #020b16;
}
.cats-package-lightbox p {
  margin: 0;
  padding: 2px 4px;
  color: #d8eaf4;
  font-size: .88rem;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}
.cats-id-modal h3 { margin: 0 0 8px; color: var(--cats-navy); }
.cats-id-modal p { color: #52677f; line-height: 1.5; }
.cats-id-modal label { display: block; margin: 16px 0 7px; color: var(--cats-navy); font-weight: 800; }
.cats-id-modal textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  resize: vertical;
  border: 1px solid #aac6d8;
  border-radius: 12px;
  font: inherit;
}
.cats-id-modal__upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1.5px dashed #8bbbd0;
  border-radius: 14px;
  background: #f4fbfe;
  color: #46677d;
  text-align: center;
  font-size: .86rem;
  line-height: 1.45;
  cursor: pointer;
}
.cats-id-modal__upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.cats-id-modal__file-summary {
  margin: 8px 0 0 !important;
  color: #678095 !important;
  font-size: .8rem;
}
.cats-id-modal__files {
  display: grid;
  gap: 7px;
  max-height: 190px;
  margin: 10px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}
.cats-id-modal__files li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 4px 5px;
  border: 1px solid #d8e7ef;
  border-radius: 10px;
}
.cats-id-modal__files img {
  width: 42px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  background: #edf6fa;
}
.cats-id-modal__files span {
  min-width: 0;
  overflow: hidden;
  color: #29475e;
  font-size: .8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cats-id-modal__files button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-color: #d5e3eb;
  color: #8b3c42;
  font-size: 1.2rem;
}
.cats-id-modal [data-modal-error] {
  min-height: 0;
  margin: 10px 0 0;
  color: #a3212b;
  font-size: .84rem;
  font-weight: 750;
}
.cats-id-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.cats-id-modal button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #0c79aa;
  border-radius: 12px;
  background: #fff;
  color: var(--cats-navy);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.cats-id-modal__submit { background: linear-gradient(100deg, var(--cats-cyan), var(--cats-mint)) !important; }

.cats-missing-entry {
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed #8fcfe0;
  border-radius: 16px;
  background: #f2fbfe;
  text-align: center;
}
.cats-missing-entry button {
  width: min(520px, 100%);
  border-color: transparent;
  background: linear-gradient(100deg, #16c7e8, #9af0cc);
}
.cats-missing-reviews { margin-top: 24px; }
.cats-missing-reviews > h3 {
  margin: 0 0 12px;
  color: #062448;
  font-size: 1rem;
}
.cats-missing-reviews__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
}
.cats-missing-reviews__empty {
  margin: 0;
  padding: 14px;
  border: 1px solid #dceaf2;
  border-radius: 12px;
  background: #fff;
  color: #678095;
}
.cats-missing-review-card {
  padding: 16px;
  border: 1px solid #d4e5ee;
  border-radius: 15px;
  background: #fff;
}
.cats-missing-review-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cats-missing-review-card__head small {
  display: block;
  margin-bottom: 3px;
  color: #70859a;
  font-weight: 750;
}
.cats-missing-review-card h4 {
  margin: 0;
  color: #062448;
  font-size: 1rem;
}
.cats-missing-review-card__head > span {
  max-width: 58%;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf8fd;
  color: #08739c;
  font-size: .72rem;
  font-weight: 850;
  text-align: center;
}
.cats-missing-review-card > p {
  margin: 12px 0;
  color: #52677f;
  font-size: .84rem;
}
.cats-missing-review-card details {
  border-top: 1px solid #e2edf3;
  padding-top: 10px;
}
.cats-missing-review-card summary {
  color: #29475e;
  font-size: .84rem;
  font-weight: 850;
  cursor: pointer;
}
.cats-missing-review-card ol {
  margin: 10px 0 0;
  padding-left: 20px;
}
.cats-missing-review-card li {
  margin: 0 0 10px;
  color: #4f6579;
  font-size: .8rem;
}
.cats-missing-review-card li b { display: block; color: #173a5a; }
.cats-missing-review-card li time { color: #7a8d9d; font-size: .74rem; }
.cats-missing-review-card li p { margin: 3px 0 0; }

.cats-missing-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
  background: rgba(3, 22, 45, .68);
}
.cats-missing-modal[hidden],
.cats-missing-modal [hidden] { display: none !important; }
.cats-missing-modal__panel {
  width: min(660px, 100%);
  max-height: calc(100vh - 36px);
  padding: 24px;
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.3);
}
.cats-missing-modal h3 {
  margin: 0 0 8px;
  color: #062448;
}
.cats-missing-modal p {
  color: #52677f;
  line-height: 1.5;
}
.cats-missing-modal label {
  display: block;
  margin: 16px 0 7px;
  color: #062448;
  font-weight: 800;
}
.cats-missing-modal input,
.cats-missing-modal textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #aac6d8;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.cats-missing-modal textarea {
  min-height: 92px;
  resize: vertical;
}
.cats-missing-modal__upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1.5px dashed #8bbbd0;
  border-radius: 14px;
  background: #f4fbfe;
  color: #46677d;
  text-align: center;
  font-size: .86rem;
  line-height: 1.45;
}
.cats-missing-modal__upload input {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.cats-missing-modal__file-summary {
  margin: 7px 0 0 !important;
  color: #6d8294 !important;
  font-size: .78rem;
}
.cats-missing-modal__files {
  display: grid;
  gap: 6px;
  max-height: 150px;
  margin: 8px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}
.cats-missing-modal__files li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 4px 5px;
  border: 1px solid #d8e7ef;
  border-radius: 10px;
}
.cats-missing-modal__files img {
  width: 42px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
}
.cats-missing-modal__files span {
  overflow: hidden;
  color: #29475e;
  font-size: .8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cats-missing-modal__files button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-color: #d5e3eb;
  background: #fff;
  color: #8b3c42;
  font-size: 1.2rem;
}
.cats-missing-modal__two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cats-missing-modal [data-missing-error] {
  min-height: 0;
  margin: 10px 0 0;
  color: #a3212b;
  font-size: .84rem;
  font-weight: 750;
}
.cats-missing-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.cats-missing-modal button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #0c79aa;
  border-radius: 12px;
  background: #fff;
  color: #062448;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.cats-missing-modal button:disabled { opacity: .55; cursor: wait; }
.cats-missing-modal__submit {
  background: linear-gradient(100deg, #16c7e8, #9af0cc) !important;
}
.cats-missing-modal__disclaimer {
  margin: 12px 0 0 !important;
  padding: 12px 14px;
  border-left: 4px solid #0aa4c6;
  border-radius: 10px;
  background: #eaf9fd;
  color: #29475e !important;
  font-size: .84rem;
}
.cats-missing-modal__confirmation {
  padding: 8px 0;
}
.cats-missing-modal__confirmation h3 { font-size: 1.2rem; }
.cats-missing-modal__confirmation p {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f9fc;
}
.cats-missing-modal__confirmation button {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(100deg, #16c7e8, #9af0cc);
}

@media (max-width: 640px) {
  .cats-id-zone { margin: 18px 12px; padding: 20px 16px; border-radius: 18px; }
  .cats-id-zone__heading { display: block; }
  .cats-id-zone__back { width: 100%; margin-top: 16px; }
  .cats-id-zone__toolbar button { width: 100%; }
  .cats-id-browser__filters { grid-template-columns: 1fr; }
  .cats-id-browser__meta { align-items: stretch; flex-direction: column; }
  .cats-id-pagination { width: 100%; }
  .cats-id-pagination button { flex: 1; }
  .cats-id-modal__actions { flex-direction: column-reverse; }
  .cats-id-modal__actions button { width: 100%; }
  .cats-missing-modal__two { grid-template-columns: 1fr; gap: 0; }
  .cats-missing-modal__actions { flex-direction: column-reverse; }
  .cats-missing-modal__actions button { width: 100%; }
  .cats-package-lightbox { padding: 8px; }
  .cats-package-lightbox__panel {
    width: 100%;
    height: 94vh;
    padding: 10px;
    border-radius: 14px;
  }
}

.refund-lookup-page {
  display: grid;
  gap: 22px;
  max-width: 1080px;
}

.refund-lookup-hero {
  background: linear-gradient(145deg, #062a50, #084f78);
  border: 1px solid #6cd9f2;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(5, 37, 70, .18);
  color: #fff;
  display: grid;
  gap: 16px;
  padding: 36px;
}

.refund-lookup-hero > span,
.refund-login-guide > span {
  color: #79e8ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.refund-lookup-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.04em;
  margin: 0;
}

.refund-lookup-hero > p {
  color: #d9eef7;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 850px;
}

.refund-lookup-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.refund-lookup-summary > span {
  align-items: center;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(159, 230, 246, .35);
  border-radius: 12px;
  display: flex;
  font-size: 13px;
  font-weight: 750;
  gap: 9px;
  min-height: 58px;
  padding: 12px;
}

.refund-lookup-page-actions,
.refund-login-guide > div {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.refund-lookup-page-actions button,
.refund-login-guide button {
  border-radius: 11px;
  cursor: pointer;
  font-weight: 850;
  min-height: 46px;
  padding: 10px 17px;
}

.refund-lookup-page-actions .primary {
  background: linear-gradient(135deg, #19c2df, #82e8be);
  border: 0;
  color: #062945;
}

.refund-lookup-page-actions .secondary {
  background: transparent;
  border: 1px solid #9de7f5;
  color: #fff;
}

.refund-lookup-security {
  align-items: flex-start;
  background: rgba(0, 17, 37, .34);
  border-left: 4px solid #76e7ff;
  border-radius: 10px;
  color: #e3f6fb !important;
  display: flex;
  gap: 10px;
  padding: 13px 15px;
}

.refund-login-guide {
  background: #fff;
  border: 1px solid #c8dbea;
  border-radius: 20px;
  display: grid;
  gap: 14px;
  padding: 28px;
}

.refund-login-guide > span { color: #0876a8; }
.refund-login-guide h2 { color: #0b2948; font-size: 26px; margin: 0; }
.refund-login-guide ol { color: #355470; display: grid; gap: 11px; line-height: 1.6; margin: 0; padding-left: 22px; }
.refund-login-guide button:first-child { background: #0875d9; border: 0; color: #fff; }
.refund-login-guide button:last-child { background: #fff; border: 1px solid #7db8df; color: #0a5d8d; }

.refund-status-section,
.refund-reconcile-card,
.refund-faq {
  background: #fff;
  border: 1px solid #c8dbea;
  border-radius: 20px;
  display: grid;
  gap: 14px;
  padding: 28px;
}

.refund-status-section > span,
.refund-reconcile-card > span,
.refund-faq > span {
  color: #0876a8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.refund-status-section h2,
.refund-reconcile-card h2,
.refund-faq h2 {
  color: #0b2948;
  font-size: clamp(23px, 3vw, 30px);
  margin: 0;
}

.refund-status-section > p,
.refund-reconcile-card > p,
.refund-faq > p {
  color: #46637c;
  line-height: 1.6;
  margin: 0;
}

.refund-status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.refund-status-grid article {
  align-items: flex-start;
  background: #f4f9fd;
  border: 1px solid #d8e7f2;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  min-height: 92px;
  padding: 16px;
}

.refund-status-grid article > b {
  align-items: center;
  background: #dff6fb;
  border-radius: 9px;
  color: #08759f;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 12px;
  height: 34px;
  justify-content: center;
}

.refund-status-grid strong {
  color: #092a4b;
  display: block;
  font-size: 15px;
  margin: 1px 0 5px;
}

.refund-status-grid p {
  color: #58718a;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.refund-status-rule {
  background: #eaf8fb;
  border-left: 4px solid #0ba6c7;
  border-radius: 10px;
  padding: 13px 15px;
}

.refund-reconcile-card {
  background: linear-gradient(145deg, #f2fbff, #f7fffb);
  border-color: #89d9e9;
}

.refund-reconcile-open {
  background: linear-gradient(135deg, #18c3df, #87e9bf);
  border: 0;
  border-radius: 12px;
  color: #062945;
  cursor: pointer;
  font-weight: 900;
  justify-self: start;
  min-height: 48px;
  padding: 11px 20px;
}

.refund-reconcile-form {
  display: grid;
  gap: 15px;
  max-width: 760px;
}

.refund-reconcile-form label {
  color: #173b5c;
  display: grid;
  font-size: 14px;
  font-weight: 850;
  gap: 7px;
}

.refund-reconcile-form select,
.refund-reconcile-form textarea {
  background: #fff;
  border: 1px solid #b8d3e6;
  border-radius: 11px;
  color: #082a4c;
  font: inherit;
  min-height: 48px;
  padding: 11px 13px;
}

.refund-reconcile-form textarea {
  min-height: 110px;
  resize: vertical;
}

.refund-reconcile-form > div {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.refund-reconcile-form button {
  background: #fff;
  border: 1px solid #89bad5;
  border-radius: 11px;
  color: #17415f;
  cursor: pointer;
  font-weight: 850;
  min-height: 44px;
  padding: 9px 16px;
}

.refund-reconcile-form button[type="submit"] {
  background: #0875d9;
  border-color: #0875d9;
  color: #fff;
}

.refund-reconcile-form button:disabled {
  cursor: wait;
  opacity: .6;
}

.refund-reconcile-success {
  align-items: center;
  background: #e9fbf2;
  border: 1px solid #86d7ae;
  border-radius: 12px;
  color: #09613c;
  display: flex;
  gap: 10px;
  padding: 14px 16px;
}

.refund-faq details {
  background: #f7fafc;
  border: 1px solid #d8e5ef;
  border-radius: 13px;
  overflow: hidden;
}

.refund-faq summary {
  color: #102f4e;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.45;
  padding: 16px 18px;
}

.refund-faq details p {
  border-top: 1px solid #d8e5ef;
  color: #48657e;
  line-height: 1.7;
  margin: 0;
  padding: 15px 18px 18px;
}

.refund-portal-independence {
  background: #eef7ff;
  border-left: 4px solid #1975cf;
  border-radius: 10px;
  padding: 13px 15px;
}

@media (max-width: 760px) {
  .refund-lookup-hero { padding: 24px 18px; }
  .refund-lookup-summary { grid-template-columns: 1fr 1fr; }
  .refund-lookup-page-actions { display: grid; }
  .refund-lookup-page-actions button { width: 100%; }
  .refund-status-section,
  .refund-reconcile-card,
  .refund-faq { padding: 22px 17px; }
  .refund-status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .refund-lookup-summary { grid-template-columns: 1fr; }
  .refund-reconcile-open { width: 100%; }
  .refund-reconcile-form > div {
    flex-direction: column-reverse;
  }
  .refund-reconcile-form button { width: 100%; }
}
.language-select {
  display: none !important;
}
.cats-purchase-order-rule {
  display: none !important;
}
html[data-preferred-language="en"] .customer-site,
html[data-preferred-language="de"] .customer-site {
  visibility: visible !important;
}

.portal-boot-recovery {
  position: fixed;
  z-index: 2147483647;
  right: 18px;
  bottom: 18px;
  width: min(440px, calc(100vw - 28px));
  padding: 16px;
  color: #173b5d;
  background: #fff;
  border: 1px solid #b9cce1;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(17, 48, 83, 0.22);
  font: 14px/1.55 "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}

.portal-boot-recovery strong,
.portal-boot-recovery span {
  display: block;
}

.portal-boot-recovery strong {
  font-size: 16px;
}

.portal-boot-recovery span {
  margin-top: 4px;
  color: #566b82;
}

.portal-boot-recovery div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.portal-boot-recovery button {
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  background: #1768cf;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.portal-boot-recovery button:last-child {
  color: #1768cf;
  background: #eef5fd;
  border: 1px solid #bdd3ec;
}
