/* October 2026 P1 storefront repairs. Scoped behind the Phase 1 body class. */

body.vtm-brand-phase1 .vtm-card-trust {
  display: grid;
  gap: var(--vtm-space-3);
  margin-top: var(--vtm-space-4);
  padding-top: var(--vtm-space-4);
  border-top: var(--vtm-border-default);
  font-size: var(--vtm-font-size-200);
}

body.vtm-brand-phase1 .vtm-card-trust__fit {
  display: grid;
  gap: var(--vtm-space-1);
  margin: 0;
}

body.vtm-brand-phase1 .vtm-card-trust__fit span,
body.vtm-brand-phase1 .vtm-card-trust__stock {
  color: var(--vtm-text-secondary);
  font-size: var(--vtm-font-size-100);
}

body.vtm-brand-phase1 .vtm-card-trust__fit strong {
  color: var(--vtm-color-ink-950);
  font-family: var(--vtm-font-data);
  font-size: var(--vtm-font-size-200);
  font-weight: 500;
}

body.vtm-brand-phase1 .vtm-card-trust__action-row {
  display: flex;
  min-height: var(--vtm-touch-target-min);
  align-items: center;
  justify-content: space-between;
  gap: var(--vtm-space-3);
}

body.vtm-brand-phase1 .vtm-card-trust__stock::before {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: var(--vtm-space-2);
  border-radius: 50%;
  background: var(--vtm-color-success-700);
  content: "";
}

body.vtm-brand-phase1 .vtm-card-trust__stock.is-unavailable::before {
  background: var(--vtm-color-error-700);
}

body.vtm-brand-phase1 .vtm-card-trust__action {
  display: inline-flex;
  min-height: var(--vtm-touch-target-min);
  align-items: center;
  color: var(--vtm-link-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body.vtm-brand-phase1 .vtm-variation-preview-note {
  margin: var(--vtm-space-4) 0 0;
  padding: var(--vtm-space-4);
  border-left: 3px solid var(--vtm-color-warning-700);
  background: #fff7e8;
  color: var(--vtm-color-ink-950);
  font-size: var(--vtm-font-size-200);
}

body.vtm-brand-phase1 .vtm-variation-preview-note[hidden],
body.vtm-brand-phase1 .wd-show-sidebar-btn[hidden] {
  display: none !important;
}

body.vtm-brand-phase1 .wpc-control-item[data-control][role="button"],
body.vtm-brand-phase1 .wpc-layer-title-wrap[role="button"] {
  cursor: pointer;
}

body.vtm-brand-phase1 .wpc-control-item[data-control][role="button"]:focus-visible,
body.vtm-brand-phase1 .wpc-layer-title-wrap[role="button"]:focus-visible {
  position: relative;
  z-index: 3;
  outline: 3px solid var(--vtm-color-fit-900);
  outline-offset: 3px;
  box-shadow: var(--vtm-shadow-focus);
}

.vtm-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  body.vtm-brand-phase1 .wd-product .wd-entities-title {
    display: block !important;
    max-height: none !important;
    overflow: visible;
    white-space: normal;
  }

  body.vtm-brand-phase1 .wd-product .wd-entities-title a {
    display: block;
    overflow: visible;
    white-space: normal;
  }

  body.vtm-brand-phase1 .vtm-card-trust__action-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
