.assistant-promo-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 130px;
  grid-template-areas:
    "visual label label"
    "visual title title"
    "visual text button";
  gap: 5px 16px;
  width: 100%;
  min-height: 176px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #bdd5f2;
  border-radius: 15px;
  background: #f4f8ff;
  color: #112a4d;
  text-align: left;
  box-shadow: 0 8px 24px rgba(39, 84, 135, .08);
}

/* A standalone empty state, rather than a lone property-sized tile. */
#listings > .assistant-promo-card.assistant-promo-empty,
#results > .assistant-promo-card.assistant-promo-empty {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(760px, 100%);
  margin: 24px auto;
  padding: 28px;
  grid-template-columns: 110px minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  grid-template-areas: "visual label" "visual title" "visual text" "visual button";
  gap: 12px 24px;
  min-height: 0;
  height: auto;
}
#listings > .assistant-promo-card.assistant-promo-empty .assistant-promo-visual,
#results > .assistant-promo-empty .assistant-promo-visual {
  width: 110px;
  height: 110px;
  margin: 0;
  align-self: center;
  border-radius: 16px;
}
#listings > .assistant-promo-card.assistant-promo-empty .assistant-promo-visual svg,
#results > .assistant-promo-empty .assistant-promo-visual svg {width:100px;height:82px}
#listings > .assistant-promo-card.assistant-promo-empty .assistant-promo-link,
#results > .assistant-promo-empty .assistant-promo-link {width:180px;min-height:42px;justify-self:start;margin-top:4px}
@media(max-width:540px){
  #listings > .assistant-promo-card.assistant-promo-empty,
  #results > .assistant-promo-card.assistant-promo-empty {
    padding:22px;
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"visual" "label" "title" "text" "button";
  }
}

.assistant-promo-visual {
  grid-area: visual;
  display: grid;
  width: 82px;
  height: 86px;
  align-self: start;
  margin-top: 7px;
  place-items: center;
  border-radius: 22px;
  background: #fff;
}

.assistant-promo-visual svg {
  width: 68px;
  height: 65px;
}

.assistant-promo-label {
  grid-area: label;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 24px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e3f4e7;
  color: #168a43;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.assistant-promo-card h3 {
  grid-area: title;
  margin: 0;
  color: #112a4d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.assistant-promo-card p {
  grid-area: text;
  align-self: start;
  margin: 2px 0 0;
  color: #55708f;
  font-size: 13px;
  line-height: 1.55;
}

.assistant-promo-link {
  grid-area: button;
  display: flex;
  min-height: 38px;
  align-self: end;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #315f94;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 7px 14px rgba(49, 95, 148, .22);
  transition: background .2s ease, transform .2s ease;
}

.assistant-promo-link:hover {
  background: #284f7d;
  transform: translateY(-1px);
}

#listings > .assistant-promo-card {
  grid-column: span 2;
}

@media (min-width: 1025px) {
  #listings > .assistant-promo-card {
    grid-column: span 1;
    height: auto;
    min-height: 0;
    align-self: stretch;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 190px auto auto 1fr auto;
    grid-template-areas:
      "visual"
      "label"
      "title"
      "text"
      "button";
    gap: 9px;
    padding: 0 16px 16px;
    border-color: #e0e7f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(40, 66, 104, .07);
  }

  #listings > .assistant-promo-card .assistant-promo-visual {
    width: calc(100% + 32px);
    height: 190px;
    margin: 0 -16px;
    border-radius: 10px 10px 0 0;
    background: #f4f8ff;
  }

  #listings > .assistant-promo-card .assistant-promo-visual svg {
    width: 150px;
    height: 120px;
  }

  #listings > .assistant-promo-card .assistant-promo-label {
    align-self: start;
    margin-top: 3px;
  }

  #listings > .assistant-promo-card .assistant-promo-link {
    width: 100%;
    min-height: 42px;
  }

  body.dark #listings > .assistant-promo-card {
    border-color: #36506f;
    background: #1b2a3e;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  }

  body.dark #listings > .assistant-promo-card .assistant-promo-visual {
    background: #eef4ff;
  }
}

body.dark .assistant-promo-card {
  border-color: #36506f;
  background: #1b2a3e;
}

body.dark .assistant-promo-visual {
  background: #f7faff;
}

body.dark .assistant-promo-label {
  background: #214832;
  color: #7be09a;
}

body.dark .assistant-promo-card h3 {
  color: #f3f7ff;
}

body.dark .assistant-promo-card p {
  color: #b7c6da;
}

@media (max-width: 700px) {
  .assistant-promo-card {
    grid-template-columns: 72px minmax(0, 1fr) 118px;
    gap: 5px 12px;
    min-height: 176px;
    padding: 14px;
  }

  .assistant-promo-visual {
    width: 72px;
    height: 82px;
  }

  .assistant-promo-visual svg {
    width: 62px;
  }

  .assistant-promo-card h3 {
    font-size: 17px;
  }

  .assistant-promo-card p {
    font-size: 12px;
  }

  #listings > .assistant-promo-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 410px) {
  .assistant-promo-card {
    grid-template-columns: 66px minmax(0, 1fr);
    grid-template-areas:
      "visual label"
      "visual title"
      "visual text"
      ". button";
  }

  .assistant-promo-link {
    width: 130px;
    margin-top: 4px;
    justify-self: end;
  }
}
