:root {
  --trel-yellow: #ffca05;
  --trel-orange: #f57c00;
  --trel-navy: #0b2245;
  --trel-black: #0d1114;
  --trel-ink: #172033;
  --trel-muted: #647084;
  --trel-line: #dde2e8;
  --trel-soft: #f5f7fa;
  --trel-green: #16834b;
  --trel-red: #b42318;
}

.trel-vs,
.trel-vs * {
  box-sizing: border-box;
}

.trel-vs {
  width: min(1180px, calc(100% - 28px));
  margin: 38px auto;
  color: var(--trel-ink);
  background: #fff;
  border: 1px solid var(--trel-line);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(13, 17, 20, 0.12);
  overflow: hidden;
  font-family: inherit;
}

.trel-vs__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 34px 28px;
  color: #fff;
  background: var(--trel-black);
  border-top: 6px solid var(--trel-yellow);
  position: relative;
}

.trel-vs__header::after {
  content: '';
  position: absolute;
  left: 34px;
  bottom: 0;
  width: 88px;
  height: 4px;
  background: var(--trel-orange);
}

.trel-vs__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--trel-yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.trel-vs__header h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.trel-vs__header p {
  max-width: 720px;
  margin: 0;
  color: #cfd5dd;
  font-size: 15px;
  line-height: 1.55;
}

.trel-vs__form {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.65fr;
  gap: 0;
  padding: 0 34px 28px;
}

.trel-vs__step {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
  padding: 28px 24px 22px;
  border-right: 1px solid var(--trel-line);
}

.trel-vs__step:first-child {
  padding-left: 0;
}

.trel-vs__step:nth-child(3) {
  padding-right: 0;
  border-right: 0;
}

.trel-vs__step-number {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--trel-black);
  background: var(--trel-yellow);
  border-radius: 50%;
  font-weight: 900;
  line-height: 1;
}

.trel-vs__step-body {
  width: 100%;
  min-width: 0;
}

.trel-vs__step-body > label {
  display: block;
  margin: 3px 0 10px;
  color: var(--trel-ink);
  font-size: 15px;
  font-weight: 800;
}

.trel-vs__step-body small {
  display: block;
  margin-top: 8px;
  color: var(--trel-muted);
  font-size: 12px;
  line-height: 1.4;
}

.trel-vs input[type='search'],
.trel-vs select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 13px;
  color: var(--trel-ink);
  background: #fff;
  border: 1px solid #bac3cf;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.trel-vs input[type='search']:focus,
.trel-vs select:focus {
  border-color: var(--trel-orange);
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.16);
}

.trel-vs__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.trel-vs button,
.trel-vs a {
  -webkit-tap-highlight-color: transparent;
}

.trel-vs button {
  font-family: inherit;
}

.trel-vs__scan-number,
.trel-vs__paste,
.trel-vs__camera,
.trel-vs__torch {
  min-height: 42px;
  padding: 0 12px;
  color: var(--trel-navy);
  background: #fff;
  border: 1px solid var(--trel-navy);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.trel-vs__scan-number {
  min-height: 48px;
}

.trel-vs__scan-number:hover,
.trel-vs__camera:hover,
.trel-vs__paste:hover {
  color: #fff;
  background: var(--trel-navy);
}

.trel-vs__photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trel-vs__photo {
  position: relative;
  min-width: 0;
  padding: 8px;
  background: var(--trel-soft);
  border: 1px dashed #9ca8b7;
  border-radius: 9px;
}

.trel-vs__photo--ready {
  border-style: solid;
  border-color: var(--trel-green);
}

.trel-vs__photo--paste-target {
  border-color: var(--trel-orange);
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.16);
}

.trel-vs__photo-preview {
  display: flex;
  width: 100%;
  height: 93px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  color: var(--trel-muted);
  background: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  text-align: center;
}

.trel-vs__photo-preview:focus-visible {
  outline: 3px solid var(--trel-orange);
  outline-offset: 2px;
}

.trel-vs__photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trel-vs__photo-icon {
  color: var(--trel-orange);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.trel-vs__photo-help {
  color: var(--trel-muted);
  font-size: 10px;
  font-weight: 500;
}

.trel-vs__photo-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 7px;
}

.trel-vs__camera {
  display: none;
}

.trel-vs__photo-actions button {
  min-width: 0;
  min-height: 35px;
  padding: 0 4px;
  font-size: 10px;
}

.trel-vs__remove-photo {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(13, 17, 20, 0.82);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 19px;
}

.trel-vs__remove-photo[hidden] {
  display: none !important;
}

.trel-vs__paste-instructions {
  color: var(--trel-navy) !important;
  font-weight: 700;
}

.trel-vs__privacy {
  color: var(--trel-green) !important;
  font-weight: 700;
}

.trel-vs__submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 5px 0 0;
}

.trel-vs__submit {
  min-width: min(100%, 360px);
  min-height: 54px;
  padding: 0 26px;
  color: var(--trel-black);
  background: var(--trel-yellow);
  border: 2px solid var(--trel-yellow);
  border-radius: 8px;
  box-shadow: 0 7px 0 #c99800;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.035em;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.trel-vs__submit:hover {
  transform: translateY(2px);
  box-shadow: 0 5px 0 #c99800;
}

.trel-vs__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.trel-vs__hint {
  margin: 0;
  color: var(--trel-muted);
  font-size: 12px;
}

.trel-vs__message {
  min-height: 0;
  margin: 0 34px 22px;
  padding: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.trel-vs__message:not(:empty) {
  padding: 12px 16px;
}

.trel-vs__message--error {
  color: var(--trel-red);
  background: #fff1f0;
  border: 1px solid #f6b7b2;
}

.trel-vs__message--success {
  color: #0c6238;
  background: #eaf8f0;
  border: 1px solid #9dd9b8;
}

.trel-vs__message--notice,
.trel-vs__message--working {
  color: #6f4f00;
  background: #fff8dd;
  border: 1px solid #efd46e;
}

.trel-vs__results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 34px 34px;
  scroll-margin-top: 80px;
}

.trel-vs__result-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--trel-line);
  border-radius: 9px;
  box-shadow: 0 7px 22px rgba(11, 34, 69, 0.08);
}

.trel-vs__result-image {
  display: block;
  height: 190px;
  padding: 10px;
  background: #f4f4f3;
}

.trel-vs__result-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trel-vs__result-body {
  padding: 14px;
}

.trel-vs__result-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 9px;
}

.trel-vs__match-badge,
.trel-vs__stock {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

.trel-vs__match-badge {
  color: var(--trel-navy);
  background: #edf3fb;
}

.trel-vs__stock.is-in {
  color: #0c6238;
  background: #e8f7ef;
}

.trel-vs__stock.is-out {
  color: var(--trel-red);
  background: #fff1f0;
}

.trel-vs__result-card h3 {
  min-height: 58px;
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.38;
}

.trel-vs__result-card h3 a {
  color: var(--trel-black);
  text-decoration: none;
}

.trel-vs__result-number {
  margin: 0 0 12px;
  color: var(--trel-muted);
  font-size: 11px;
}

.trel-vs__result-footer {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trel-vs__price {
  color: var(--trel-ink);
  font-size: 13px;
  font-weight: 800;
}

.trel-vs__result-link {
  flex: 0 0 auto;
  padding: 9px 10px;
  color: var(--trel-black);
  background: var(--trel-yellow);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.trel-vs__camera-modal[hidden] {
  display: none;
}

.trel-vs__camera-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(4, 8, 12, 0.88);
}

.trel-vs__camera-dialog {
  width: min(680px, 100%);
  overflow: hidden;
  color: #fff;
  background: var(--trel-black);
  border: 2px solid var(--trel-yellow);
  border-radius: 12px;
}

.trel-vs__camera-top,
.trel-vs__camera-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
}

.trel-vs__camera-close {
  width: 36px;
  height: 36px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid #8b949f;
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
}

.trel-vs__video-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}

.trel-vs__video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trel-vs__scan-frame {
  position: absolute;
  inset: 13%;
  border: 3px solid var(--trel-yellow);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.trel-vs__camera-status {
  min-height: 22px;
  margin: 12px 16px 0;
  color: #d8dde4;
  font-size: 13px;
  text-align: center;
}

.trel-vs__capture {
  min-width: 180px;
  min-height: 48px;
  margin-left: auto;
  color: var(--trel-black);
  background: var(--trel-yellow);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.trel-vs__torch {
  color: #fff;
  background: transparent;
  border-color: #fff;
}

.trel-vs__torch.is-active {
  color: var(--trel-black);
  background: var(--trel-yellow);
  border-color: var(--trel-yellow);
}

body.trel-vs-camera-open {
  overflow: hidden;
}

.trel-vs-header-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 10px;
}

.trel-vs-header-button {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  place-items: center;
  color: #111;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  line-height: 1;
}

.trel-vs-header-button--template {
  display: none !important;
}

.trel-vs-header-button:hover,
.trel-vs-header-button:focus-visible {
  color: #fff;
  background: var(--trel-navy);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.trel-vs-camera-glyph {
  position: relative;
  display: block;
  width: 21px;
  height: 15px;
  color: currentColor;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.trel-vs-camera-glyph::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 3px;
  width: 8px;
  height: 4px;
  background: currentColor;
  border-radius: 2px 2px 0 0;
}

.trel-vs-camera-glyph::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.trel-vs-camera-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.trel-vs-header-button--header {
  display: inline-flex;
  width: auto;
  min-width: 104px;
  height: 36px;
  min-height: 36px;
  padding: 0 11px;
  gap: 8px;
  color: #fff;
  background: var(--trel-navy);
  border: 2px solid var(--trel-orange);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(245, 124, 0, 0.6);
  animation: trel-camera-pulse 2.2s infinite;
}

.trel-vs-header-button--header:hover,
.trel-vs-header-button--header:focus-visible {
  color: var(--trel-black);
  background: var(--trel-yellow);
  border-color: var(--trel-navy);
}

.dgwt-wcas-sf-wrapp.trel-vs-search-has-camera .dgwt-wcas-search-input {
  padding-right: 82px !important;
}

.dgwt-wcas-sf-wrapp .trel-vs-header-button--inline {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 42px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  color: #fff;
  background: var(--trel-orange);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(13, 17, 20, 0.22);
  transform: translateY(-50%);
}

.dgwt-wcas-sf-wrapp .trel-vs-header-button--inline .trel-vs-camera-label {
  display: none;
}

.dgwt-wcas-sf-wrapp .trel-vs-header-button--inline:hover,
.dgwt-wcas-sf-wrapp .trel-vs-header-button--inline:focus-visible {
  color: #fff;
  background: var(--trel-navy);
}

@keyframes trel-camera-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 124, 0, 0.58); }
  50% { box-shadow: 0 0 0 7px rgba(245, 124, 0, 0); }
}

.trel-vs-launcher-modal[hidden] {
  display: none;
}

.trel-vs-launcher-modal {
  position: fixed;
  z-index: 999998;
  inset: 0;
  overflow: auto;
  padding: 28px 16px;
  background: rgba(4, 8, 12, 0.86);
}

.trel-vs-launcher-dialog {
  position: relative;
  width: min(1220px, 100%);
  margin: 0 auto;
}

.trel-vs-launcher-dialog > .trel-vs {
  width: 100%;
  margin: 0;
}

.trel-vs-launcher-close {
  position: absolute;
  z-index: 5;
  top: 13px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: #22292f;
  border: 1px solid #68727d;
  border-radius: 50%;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

body.trel-vs-launcher-open {
  overflow: hidden;
}

.trel-mobile-dock {
  display: none;
}

@media (max-width: 980px) {
  .trel-vs__form {
    grid-template-columns: 1fr 1fr;
  }

  .trel-vs__step:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  .trel-vs__step:nth-child(3) {
    grid-column: 1 / -1;
    padding-left: 0;
    border-top: 1px solid var(--trel-line);
  }

  .trel-vs__photo-preview {
    height: 130px;
  }

  .trel-vs__results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (pointer: coarse) {
  .trel-vs__photo-actions {
    grid-template-columns: 1fr 1fr;
  }

  .trel-vs__camera {
    display: block;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .trel-mobile-dock {
    position: fixed;
    z-index: 999990;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    min-height: 72px;
    padding-bottom: env(safe-area-inset-bottom);
    color: #fff;
    background: var(--trel-navy);
    box-shadow: 0 -5px 22px rgba(4, 8, 12, 0.2);
  }

  .trel-mobile-dock a,
  .trel-mobile-dock button {
    -webkit-tap-highlight-color: transparent;
  }

  .trel-mobile-dock__side,
  .trel-mobile-dock__main {
    display: flex;
    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 9px 6px 7px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: #fff;
    background: var(--trel-navy);
    border: 0;
    border-radius: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }

  .trel-mobile-dock__side--whatsapp {
    background: #16b94e;
  }

  .trel-mobile-dock__search {
    position: relative;
  }

  .trel-mobile-dock__main {
    cursor: pointer;
    background: #12325c;
  }

  .trel-mobile-dock__icon {
    font-size: 25px;
    line-height: 1;
  }

  .trel-mobile-dock__choices {
    position: absolute;
    right: 8px;
    bottom: calc(100% + 12px);
    width: min(318px, calc(100vw - 16px));
    padding: 16px;
    color: var(--trel-ink);
    background: #fff;
    border: 1px solid var(--trel-line);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(4, 8, 12, 0.28);
  }

  .trel-mobile-dock__choices[hidden] {
    display: none;
  }

  .trel-mobile-dock__choices::after {
    content: '';
    position: absolute;
    right: 24%;
    bottom: -9px;
    width: 18px;
    height: 18px;
    background: #fff;
    transform: rotate(45deg);
  }

  .trel-mobile-dock__choices p {
    margin: 0 0 11px;
    color: var(--trel-navy);
    font-size: 16px;
    font-weight: 900;
    text-align: left;
  }

  .trel-mobile-dock__choices button {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 8px 0 0;
    padding: 0 12px;
    color: #fff;
    background: var(--trel-orange);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
  }

  .trel-mobile-dock__choices button + button {
    color: var(--trel-navy);
    background: #eef3f9;
    border: 1px solid #cad5e2;
  }

  .trel-mobile-dock__choices small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 10px;
    color: var(--trel-green);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
  }

  .trel-vs {
    width: calc(100% - 18px);
    margin: 20px auto;
    border-radius: 10px;
  }

  .trel-vs__header {
    padding: 23px 20px 22px;
  }

  .trel-vs__header p {
    font-size: 13px;
  }

  .trel-vs__eyebrow {
    max-width: 75%;
  }

  .trel-vs__form {
    display: block;
    padding: 0 20px 24px;
  }

  .trel-vs__step,
  .trel-vs__step:first-child,
  .trel-vs__step:nth-child(2),
  .trel-vs__step:nth-child(3) {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--trel-line);
  }

  .trel-vs__step:nth-child(3) {
    border-top: 0;
  }

  .trel-vs__input-row {
    grid-template-columns: 1fr;
  }

  .trel-vs__scan-number {
    width: 100%;
  }

  .trel-vs__photo-grid {
    grid-template-columns: 1fr;
  }

  .trel-vs__photo-preview {
    height: 155px;
  }

  .trel-vs__photo-actions button {
    min-height: 42px;
    font-size: 12px;
  }

  .trel-vs__photo-actions {
    grid-template-columns: 1fr 1fr;
  }

  .trel-vs__camera {
    display: block;
  }

  .trel-vs__submit-row {
    padding-top: 22px;
  }

  .trel-vs__message {
    margin: 0 20px 18px;
  }

  .trel-vs__results {
    grid-template-columns: 1fr;
    padding: 0 20px 25px;
  }

  .trel-vs__result-image {
    height: 235px;
  }

  .trel-vs__result-card h3 {
    min-height: 0;
  }

  .trel-vs__camera-modal {
    padding: 0;
    place-items: end center;
  }

  .trel-vs__camera-dialog {
    width: 100%;
    max-height: 100dvh;
    border-width: 2px 0 0;
    border-radius: 14px 14px 0 0;
  }

  .trel-vs-header-slot {
    margin-inline-start: 5px;
  }

  .trel-vs-header-button--header {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-width: 2px;
  }

  .trel-vs-header-button--header .trel-vs-camera-label {
    display: none;
  }

  .trel-vs-launcher-modal {
    padding: 0;
  }

  .trel-vs-launcher-dialog {
    min-height: 100dvh;
    padding-top: 46px;
    background: var(--trel-black);
  }

  .trel-vs-launcher-dialog > .trel-vs {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .trel-vs-launcher-close {
    position: fixed;
    top: 7px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trel-vs *,
  .trel-vs *::before,
  .trel-vs *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .trel-vs-header-button--header {
    animation: none !important;
  }
}
