/*
 * Builder page: Contact tab (builder-tabs/tab-contact.php).
 * Two columns on desktop, stacked on mobile. The ad block sits at the bottom of the
 * right column so it lines up with the lead-time box.
 */

.vz-contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 28px;
}

.vz-contact__col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.vz-card {
  background: #fff;
  border: 1px solid #e6e3dd;
  padding: 32px 36px;
}

.vz-contact .vz-card__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  color: #1f1f1f;
  margin: 0 0 22px;
}

.vz-contact__intro {
  margin-bottom: 18px;
}

.vz-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vz-contact__row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 11px 0;
}

.vz-contact__icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #111;
}

.vz-contact__text {
  min-width: 0;
}

.vz-contact__label {
  display: block;
  font-size: 15px;
  color: #6b6b6b;
  margin-bottom: 2px;
}

.vz-contact__value {
  display: block;
  font-size: 22px;
  line-height: 1.35;
  color: #1f1f1f;
  word-break: break-word;
}

.vz-contact__value a {
  color: #1f1f1f;
  text-decoration: none;
}

.vz-contact__value a:hover {
  text-decoration: underline;
}

.vz-contact__ext {
  font-size: 0.7em;
  vertical-align: 2px;
}

/* Lead times */

.vz-lead-times {
  background: #f1f0ee;
  border: 1px solid #1f1f1f;
  padding: 24px 26px 26px;
}

.vz-lead-times__title {
  font-size: 32px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 0 0 4px;
}

.vz-lead-times__updated {
  color: #6b6b6b;
  font-size: 15px;
  margin: 0 0 18px;
}

.vz-lead-times__cards {
  display: flex;
  gap: 14px;
}

.vz-lead-time {
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  border: 1px solid #d9d6d0;
  text-align: center;
  padding: 18px 10px 20px;
}

.vz-lead-time__label {
  display: block;
  color: #6b6b6b;
  font-size: 16px;
  margin-bottom: 6px;
}

.vz-lead-time__number {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: #1f1f1f;
}

.vz-lead-time__unit {
  display: block;
  font-size: 18px;
  color: #1f1f1f;
  margin-top: 4px;
}

.vz-lead-time__text {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #1f1f1f;
}

/* Updates */

.vz-updates {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vz-update-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  background: #f8f7f4;
  border: 1px solid #1f1f1f;
  padding: 24px;
}

.vz-update-card__image {
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.vz-update-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vz-update-card__date {
  color: #6b6b6b;
  font-size: 15px;
  margin: 0 0 4px;
}

.vz-contact .vz-update-card__title {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.vz-update-card__title a {
  color: #998b7b;
  text-decoration: underline;
}

.vz-update-card__builder {
  font-weight: 700;
  font-size: 15px;
  color: #4a4a4a;
  margin: 4px 0 8px;
}

.vz-update-card__excerpt {
  font-size: 16px;
  color: #333;
  margin: 0 0 10px;
}

.vz-update-card__more {
  color: #998b7b;
  font-weight: 600;
  text-decoration: none;
}

.vz-update-card__more:hover {
  text-decoration: underline;
}

.vz-contact a.vz-button {
  display: block;
  text-align: center;
  background: #8c806f;
  color: #fff;
  font-weight: 700;
  padding: 16px 20px;
  margin-top: 4px;
  text-decoration: none;
}

.vz-contact a.vz-button:hover {
  background: #6f6557;
  color: #fff;
}


.vz-contact__empty {
  color: #6b6b6b;
  margin: 0;
}

/* Tablet and down: single column, ad follows the updates */

@media (max-width: 1100px) {
  .vz-contact {
    grid-template-columns: 1fr;
  }

  .vz-update-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .vz-card {
    padding: 22px;
  }

  .vz-contact .vz-card__title {
    font-size: 28px;
  }

  .vz-contact__icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .vz-contact__value {
    font-size: 18px;
  }

  .vz-lead-times__cards {
    flex-wrap: wrap;
  }

  .vz-lead-time {
    flex: 1 1 45%;
  }

  .vz-update-card {
    grid-template-columns: 1fr;
  }
}

/* Each column is one card. The card is a flex column; the lead-time box and the ad are pinned to
   the bottom of their card, and the grid gives both cards the same height, so the bottoms line up. */

.vz-card {
  display: flex;
  flex-direction: column;
}

.vz-contact__col > .vz-card {
  flex: 1 1 auto;
}

.vz-contact__card .vz-lead-times {
  margin-top: auto;
}

.vz-contact__card .vz-contact__list,
.vz-contact__card .vz-contact__empty {
  margin-bottom: 28px;
}

.vz-updates-card .vz-contact__ad {
  margin-top: auto;
  padding-top: 28px;
}

.vz-updates-card .vz-contact__ad:empty {
  display: none;
}

@media (max-width: 1100px) {
  .vz-contact__col > .vz-card {
    flex: 0 0 auto;
  }

  .vz-contact__card .vz-lead-times,
  .vz-updates-card .vz-contact__ad {
    margin-top: 0;
  }
}

/* Ad inside the Builder updates card: image left, headline + CTA stacked right (per mockup). */
.vz-contact__ad .vtf-ads {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.vz-contact__ad .vtf-ads__item.is-active {
  display: grid;
  grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "image title"
    "image button";
  column-gap: 24px;
  row-gap: 20px;
  align-items: start;
  padding: 24px;
}

.vz-contact__ad .vtf-ads__image-shell {
  grid-area: image;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.vz-contact__ad .vtf-ads__title {
  grid-area: title;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  line-height: 1.1;
}

.vz-contact__ad .vtf-ads__button-wrap {
  grid-area: button;
  align-self: end;
  width: 100%;
}

.vz-contact__ad .vtf-ads__button {
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 16px 20px;
}

@media (max-width: 600px) {
  .vz-contact__ad .vtf-ads__item.is-active {
    display: flex;
    flex-direction: column;
  }

  .vz-contact__ad .vtf-ads__image-shell {
    display: block;
  }
}


/* ---------------------------------------------------------------------- */
/* Discontinued Products tab                                              */
/* ---------------------------------------------------------------------- */
.vz-disc__intro,
.vz-disc__empty { color: #5f5b55; margin: 0 0 20px; max-width: 70ch; }
.vz-disc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.vz-disc__item { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e6e6; min-width: 0; }
.vz-disc__image { display: flex; align-items: center; justify-content: center; aspect-ratio: 6 / 5; background: #f4f2ee; overflow: hidden; }
.vz-disc__image img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.35); }
.vz-disc__image--none { color: #c3bdb2; font-size: 2rem; }
.vz-disc__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.vz-disc__sku { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #958b7b; font-weight: 700; }
.vz-disc__name { font-size: 15px; font-weight: 600; color: #1f1f1f; line-height: 1.3; overflow-wrap: anywhere; }
.vz-disc__date { font-size: 12px; color: #6b6b6b; margin-top: 2px; }
@media (max-width: 600px) { .vz-disc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* "Builder offers finishing" badge, inside the lead-time box under the cards (Asana 2026-11-09). */
.vz-lead-times__badges {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.vz-finishing-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #d9d6d0;
  border-radius: 999px;
  padding: 6px 22px 6px 6px;
  font-size: 17px;
  font-weight: 600;
  color: #1f1f1f;
  line-height: 1.2;
}

.vz-finishing-badge img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

/* Same space above "View all builder updates" as between the update cards. */
.vz-contact .vz-updates {
  margin: 0;
}

.vz-contact a.vz-button {
  margin-top: 18px;
}
