.appointment-card {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: var(--appointment-card-bottom, 5.5rem);
  box-sizing: border-box;
  width: min(26rem, calc(100% - 2rem));
  max-height: calc(100dvh - var(--appointment-card-bottom, 5.5rem) - 1rem);
  overflow: auto;
  padding: 1.25rem;
  background: #fff;
  color: #171717;
  border: 2px solid #171717;
  box-shadow: 0 6px 22px rgb(0 0 0 / 12%);
}
.appointment-card[hidden] { display: none; }
.appointment-card h2 { margin: 0 2rem .5rem 0; font-size: clamp(1.35rem, 4vw, 1.75rem); }
.appointment-card p { margin: 0 0 .85rem; line-height: 1.45; }
.appointment-card button {
  position: absolute;
  top: .25rem;
  right: .25rem;
  background: #fff;
  color: #171717;
  border: 0;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
}

.appointment-card-photo { display: none; }

@media (min-width: 761px) {
  .appointment-card:not([hidden]) {
    display: grid;
    grid-template-columns: 7.75rem minmax(0, 1fr);
    align-items: stretch;
    gap: 1.15rem;
    width: min(34rem, calc(100% - 2rem));
  }

  .appointment-card-photo {
    display: block;
    position: relative;
    overflow: hidden;
  }

  .appointment-card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% center;
    filter: grayscale(1);
  }
}
