/* /web-hosting: card under the plan table that points to WordPress hosting (#575). The whole card is the link. */
.whwp {
  padding-bottom: 56px;
}

.whwp-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin: -20px auto 0;
  padding: 14px 20px 14px 14px;
  border: 1px solid #e7e3f1;
  border-radius: 20px 6px 20px 6px;
  background: #f6f5fb;
  color: var(--foreground, #1e1e41);
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.whwp-card:hover,
.whwp-card:focus-within {
  transform: translateY(-2px);
  border-color: #d9d0f0;
  box-shadow: 0 8px 24px rgb(30 30 65 / 6%);
}

.whwp-card:has(a:focus-visible) {
  outline: 3px solid rgb(232 86 91 / 40%);
  outline-offset: 2px;
}

.whwp-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px 5px 16px 5px;
  background: #ede4fc;
  font-size: 26px;
}

.whwp-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #43435a;
}

.whwp-text a {
  color: var(--foreground, #1e1e41);
  font-weight: 800;
  text-decoration: none;
}

/* the link covers the whole card */
.whwp-text a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.whwp-card:hover .whwp-text a,
.whwp-text a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.whwp-text a:focus-visible {
  outline: none;
}

.whwp-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink, #e8565b);
  font-size: 16px;
  transition: transform 0.15s;
}

.whwp-card:hover .whwp-arrow {
  transform: translateX(3px);
}

@media (max-width: 559px) {
  .whwp {
    padding-bottom: 48px;
  }

  .whwp-card {
    gap: 12px;
    width: auto;
    margin-top: -16px;
    padding: 12px 14px 12px 12px;
  }

  /* phone: question on one line, the link below it */
  .whwp-text a {
    display: block;
  }

  .whwp-ico {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .whwp-arrow {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whwp-card,
  .whwp-arrow {
    transition: none;
  }

  .whwp-card:hover,
  .whwp-card:focus-within,
  .whwp-card:hover .whwp-arrow {
    transform: none;
  }
}
