.symptom_card {
  position: relative;
  cursor: pointer;
}

.symptom_card::after {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(18, 143, 148, 0.9);
  box-shadow: 0 5px 14px rgba(9, 65, 68, 0.2);
  color: #fff;
  content: "i";
  font: 600 16px/1 Georgia, serif;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.symptom_card:hover::after,
.symptom_card:focus-visible::after,
.symptom_card[aria-expanded="true"]::after {
  opacity: 1;
  transform: translateY(0);
}

.symptom_card:focus-visible {
  outline: 3px solid #26b7b7;
  outline-offset: 4px;
}

.symptom_detail {
  display: none !important;
}

.symptom_surface[hidden],
.symptom_lightbox[hidden] {
  display: none;
}

.symptom_surface {
  position: fixed;
  inset: 0;
  z-index: 2147482900;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 220ms;
}

.symptom_surface.is-visible {
  visibility: visible;
  transition-delay: 0s;
}

.symptom_surface_backdrop {
  display: none;
}

.symptom_popover_panel {
  position: fixed;
  width: min(700px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 25px 25px 23px;
  border: 1px solid rgba(29, 161, 166, 0.18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(9, 45, 48, 0.28);
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.985);
  transform-origin: center;
  transition: opacity 170ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  will-change: transform, opacity;
}

.symptom_surface.is-visible .symptom_popover_panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.symptom_popover_header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

.symptom_popover_title {
  flex: 1;
  margin: 0;
  color: #168f94;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
}

.symptom_popover_close,
.symptom_lightbox_close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eaf7f7;
  color: #168f94;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.symptom_popover_close:hover,
.symptom_lightbox_close:hover {
  background: #d8f1f1;
  transform: scale(1.04);
}

.symptom_popover_close:focus-visible,
.symptom_lightbox_close:focus-visible,
.symptom_photo_button:focus-visible {
  outline: 3px solid #26b7b7;
  outline-offset: 2px;
}

.symptom_popover_text {
  margin-bottom: 18px;
}

.symptom_popover_text p {
  margin: 0 0 8px;
  color: #263b3d;
  font-size: 15px;
  line-height: 1.43;
}

.symptom_popover_text p:last-child {
  margin-bottom: 0;
  font-weight: 600;
}

.symptom_popover_photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.symptom_photo_button {
  position: relative;
  display: block;
  min-width: 0;
  height: 158px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #eef5f5;
  cursor: zoom-in;
}

.symptom_photo_button::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(14, 111, 115, 0.88);
  color: #fff;
  content: "+";
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 160ms ease, transform 160ms ease;
}

.symptom_photo_button:hover::after,
.symptom_photo_button:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.symptom_popover_photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.symptom_photo_button:hover .symptom_popover_photo {
  transform: scale(1.025);
}

.symptom_lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 20, 22, 0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 220ms;
}

.symptom_lightbox.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.symptom_lightbox_figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1200px, 100%);
  height: min(850px, calc(100vh - 48px));
  margin: 0;
}

.symptom_lightbox_image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  object-fit: contain;
}

.symptom_lightbox_close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
}

body.symptom_surface_open,
body.symptom_lightbox_open {
  overflow: hidden;
}

body.symptom_surface_active #jvLabelWrap,
body.symptom_surface_active #jcont,
body.symptom_surface_active #jivo_container,
body.symptom_lightbox_open #jvLabelWrap,
body.symptom_lightbox_open #jcont,
body.symptom_lightbox_open #jivo_container {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media screen and (max-width: 1023px) {
  .symptom_popover_panel {
    width: min(620px, calc(100vw - 28px));
  }

  .symptom_photo_button {
    height: 145px;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 767px) {
  .symptom_card::after {
    opacity: 1;
    transform: translateY(0);
  }

  .symptom_surface {
    display: flex;
    align-items: flex-end;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  .symptom_surface_backdrop {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(12, 36, 39, 0.62);
    opacity: 0;
    pointer-events: auto;
    transition: opacity 220ms ease;
  }

  .symptom_surface.is-visible .symptom_surface_backdrop {
    opacity: 1;
  }

  .symptom_popover_panel {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-height: min(88vh, 88dvh);
    padding: 24px 20px 22px;
    border-radius: 22px;
    transform: translate3d(0, 34px, 0) scale(0.985);
  }

  .symptom_surface.is-visible .symptom_popover_panel {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .symptom_popover_photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .symptom_photo_button {
    height: min(135px, 30vw);
  }

  .symptom_photo_button::after {
    opacity: 1;
    transform: scale(1);
  }
}

@media screen and (max-width: 479px) {
  .symptom_popover_title {
    font-size: 21px;
  }

  .symptom_popover_text p {
    font-size: 16px;
  }

  .symptom_photo_button {
    height: min(125px, 29vw);
  }

  .symptom_lightbox {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .symptom_card::after,
  .symptom_surface,
  .symptom_surface_backdrop,
  .symptom_popover_panel,
  .symptom_photo_button::after,
  .symptom_popover_photo,
  .symptom_lightbox {
    transition: none;
  }
}

.symptom_popover_photos.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
