.clinic-notice {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(980px, 100%);
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #171717;
  overflow: auto;
  outline: none !important;
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  box-shadow: none;
}
.clinic-notice::backdrop {
  background: rgb(0 0 0 /65%);
  backdrop-filter: none;
}
.clinic-notice * {
  box-sizing: border-box;
}
.clinic-notice button {
  appearance: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  font: inherit;
  cursor: pointer;
  outline: none !important;
  letter-spacing: normal;
}
.clinic-notice p {
  margin: 0;
}
.clinic-notice .notice-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  height: 32px;
}
.clinic-notice .notice-top button {
  color: #fff;
  font-size: 14px;
  padding: 0;
  line-height: 1.5;
}
.clinic-notice [data-close] {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}
.clinic-notice [data-close] img {
  filter: brightness(0) invert(1);
  width: 28px;
  height: 28px;
}
.clinic-notice .notice-top [data-close] span {
  display: none;
}
.clinic-notice .notice-viewport {
  overflow: hidden;
  touch-action: pan-y;
  background: #fff;
}
.clinic-notice .notice-track {
  display: flex;
  transition: transform 0.35s ease;
  cursor: grab;
}
.clinic-notice .notice-slide {
  display: flex;
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 940/560;
  background: #fff;
  overflow: hidden;
}
.clinic-notice .notice-image {
  display: block;
  width: 59.574468%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.clinic-notice .notice-image-full {
  width: 100%;
}
.clinic-notice .notice-prices {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.clinic-notice .notice-price-row {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  position: relative;
}
.clinic-notice .notice-price-row + .notice-price-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  border-top: 1px dashed #c4c4c4;
}
.clinic-notice .notice-item-name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.clinic-notice .notice-item-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.5;
}
.clinic-notice .notice-item-price del {
  align-self: center;
  color: #c4c4c4;
  font-size: 12px;
}
.clinic-notice .notice-item-price strong {
  margin-left: 4px;
  color: #1000cf;
  font-size: 22px;
  font-weight: 600;
}
.clinic-notice .notice-tabs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid #c4c4c4;
  background: #fff;
}
.clinic-notice .notice-tabs button {
  grid-column: span 3;
  min-height: 44px;
  padding: 2px 16px;
  color: #737373;
  font-size: 14px;
  line-height: 1.5;
  word-break: keep-all;
  text-wrap: balance;
}
.clinic-notice .notice-tabs button:nth-child(-n + 3) {
  grid-column: span 4;
}
.clinic-notice .notice-tabs button[aria-selected='true'] {
  background: #c4c4c4;
  color: #fff;
}
.clinic-notice .notice-tabs button:hover:not([aria-selected='true']) {
  background: #f5f5f5;
}
.clinic-notice button:focus-visible {
  filter: brightness(0.85);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.clinic-notice .notice-counter,
.clinic-notice .notice-mobile-controls {
  display: none;
}
@media (max-width: 767px) {
  .clinic-notice {
    width: calc(100% - 40px);
    padding: 0;
    max-height: calc(100dvh - 32px);
  }
  .clinic-notice .notice-top,
  .clinic-notice .notice-tabs {
    display: none;
  }
  .clinic-notice .notice-counter {
    display: block;
    width: fit-content;
    margin: 0 8px 4px auto;
    padding: 2px 8px;
    background: rgb(23 23 23 /0.5);
    color: white;
    font-size: 12px;
    font-weight: 600;
  }
  .clinic-notice .notice-slide {
    aspect-ratio: 333/190;
  }
  .clinic-notice .notice-image {
    width: 57.057057%;
  }
  .clinic-notice .notice-image-full {
    width: 100%;
  }
  .clinic-notice .notice-price-row {
    padding: 0 12px;
    flex-wrap: wrap;
    align-content: center;
    gap: 0 8px;
  }
  .clinic-notice .notice-price-row + .notice-price-row::before {
    left: 12px;
    right: 12px;
  }
  .clinic-notice .notice-item-name {
    flex-basis: 100%;
    font-size: 12px;
    line-height: 1.35;
  }
  .clinic-notice .notice-item-price {
    margin-left: auto;
    font-size: 12px;
    line-height: 1.35;
  }
  .clinic-notice .notice-item-price strong {
    font-size: 12px;
  }
  .clinic-notice .notice-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 33px;
    padding: 0 12px;
    background: rgb(23 23 23 /0.5);
  }
  .clinic-notice .notice-mobile-controls button {
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
  }
  .clinic-notice .notice-mobile-controls [data-close] {
    display: block;
    width: auto;
    height: auto;
  }
  .clinic-notice .notice-mobile-controls img {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clinic-notice .notice-track {
    transition: none;
  }
}
/* Isolate the popup from the public site's generic image and paragraph styles. */
dialog.clinic-notice img.notice-image {
  border-radius: 0 !important;
  max-width: none;
  box-shadow: none;
}
.clinic-notice .notice-item-name,
.clinic-notice .notice-item-price {
  color: #171717;
  letter-spacing: normal;
}
