/* Coach overlay styles (shared subset from index.css) */

.overlay-backdrop.coach-overlay-scope {
  --overlay-backdrop-gap: clamp(16px, 3vh, 32px);
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(1.6px);
  -webkit-backdrop-filter: blur(1.6px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: var(--overlay-backdrop-gap) 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  z-index: 1000;
  touch-action: pan-y;
}

.coach-overlay-scope .coach-modal {
  background: transparent;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  overflow: visible;
  border-radius: var(--guided-surface-radius, 18px);
  padding: 0;
  box-shadow: none;
  position: relative;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.coach-overlay-scope .coach-modal-inner {
  border-radius: var(--guided-surface-radius, 18px);
  border: 1px solid var(--guided-surface-border, rgba(54, 89, 69, 0.14));
  padding: 1.5rem;
  background: var(--guided-surface-bg, #fff);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - (var(--overlay-backdrop-gap, 16px) * 2));
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  position: relative;
  z-index: 1;
  isolation: isolate;
  scrollbar-width: none;
}

.coach-overlay-scope .coach-modal-inner::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Index-only helpers (coach switching motion, booking affordances) live in coach-overlay.index.css. */

@supports (height: 100dvh) {
  .coach-overlay-scope .coach-modal-inner {
    max-height: calc(100dvh - (var(--overlay-backdrop-gap, 16px) * 2));
  }
}

@supports (height: 100svh) {
  .coach-overlay-scope .coach-modal-inner {
    max-height: calc(100svh - (var(--overlay-backdrop-gap, 16px) * 2));
  }
}

.coach-overlay-scope .overlay-panel {
  flex: 1 1 auto;
  min-height: 0;
}

.coach-overlay-scope .overlay-panel[hidden] {
  display: none !important;
}

.coach-overlay-scope .overlay-panel--front {
  display: flex;
  flex-direction: column;
}

/* Panels are shown/hidden via the `hidden` attribute (JS is the source of truth). */

.coach-overlay-scope .close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.02);
  color: rgba(15, 23, 42, 0.42);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.coach-overlay-scope .close-button:hover {
  background: rgba(54, 89, 69, 0.08);
  border-color: rgba(54, 89, 69, 0.14);
  color: #365945;
}

.coach-overlay-scope .close-button:active {
  transform: scale(0.98);
}

.coach-overlay-scope .close-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(54, 89, 69, 0.14);
}

.coach-overlay-scope .overlay-top {
  margin: 1rem auto 1.45rem auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  width: min(100%, 540px);
  padding-inline: clamp(0.75rem, 2.4vw, 1.25rem);
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
}

.coach-overlay-scope .overlay-top:focus-visible,
.coach-overlay-scope .details-top:focus-visible {
  outline: 3px solid rgba(45, 92, 59, 0.35);
  outline-offset: 4px;
  border-radius: 16px;
}

.coach-overlay-scope .overlay-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.coach-overlay-scope #coachOverlayFront .overlay-body {
  padding-bottom: 0.35rem;
}

.coach-overlay-scope .overlay-avatar-wrapper {
  width: clamp(96px, 13vw, 116px);
  height: clamp(96px, 13vw, 116px);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #365945;
}

.coach-overlay-scope .overlay-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-overlay-scope .coach-left {
  display: flex;
  justify-content: center;
  width: 100%;
}

.coach-overlay-scope .coach-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  min-width: 0;
  flex: 0 1 auto;
  gap: 0.4rem;
  width: 100%;
  text-align: center;
}

.coach-overlay-scope .coach-summary-meta,
.coach-overlay-scope .details-summary-meta {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  width: 100%;
  min-width: 0;
  align-items: center;
}

.coach-overlay-scope .coach-name-overlay {
  --name-base-size: clamp(24px, 1.2rem + 1vw, 34px);
  --name-scale: 1;
  --name-lines: 2;
  max-width: min(26ch, 100%);
  width: auto;
  font-size: calc(var(--name-base-size) * var(--name-scale));
  line-height: 1.07;
  font-weight: 300;
  color: #000;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.coach-overlay-scope .coach-name-overlay .line {
  display: block;
  white-space: nowrap;
  overflow-wrap: normal;
}

.coach-overlay-scope .coach-right .price-line,
.coach-overlay-scope .details-price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  font-size: clamp(0.98rem, 0.9rem + 0.28vw, 1.12rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: #2f4036;
}

.coach-overlay-scope #coachOverlayPrice,
.coach-overlay-scope #detailsPrice {
  font-weight: 400;
  color: #233229;
}

.coach-overlay-scope #coachOverlayUnit,
.coach-overlay-scope #detailsUnit {
  font-weight: 400;
  color: #5b685f;
}

.coach-overlay-scope .coach-right .price-meta,
.coach-overlay-scope .details-price-meta {
  margin: 0;
  max-width: min(100%, 46ch);
  font-size: 0.84rem;
  line-height: 1.35;
  color: #68756d;
  white-space: nowrap;
  text-align: center;
}

.coach-overlay-scope #coachOverlayCollaborationShort,
.coach-overlay-scope .coach-right .collab-line {
  display: block;
  text-align: center;
  align-self: center;
  width: auto;
  max-width: min(24ch, 100%);
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  font-size: clamp(0.98rem, 0.88rem + 0.28vw, 1.08rem);
  line-height: 1.22;
  font-weight: 500;
  color: #2f4036;
}

.coach-overlay-scope #coachOverlayCollaborationShort .collab-line-secondary,
.coach-overlay-scope #detailsCollab .collab-line-secondary {
  display: block;
  line-height: 1.22;
}

.coach-overlay-scope .coach-modal .overlay-description {
  text-align: left;
  max-width: 550px;
  margin: auto;
  color: #000;
  font-size: clamp(1.1rem, 0.8rem + 1cqw, 1.2rem);
  font-weight: 300;
  line-height: 1.45;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: keep-all;
  hyphenate-character: "-";
}

.coach-overlay-scope #coachOverlayFront .overlay-description {
  cursor: pointer;
  margin: 0.1rem auto 1.35rem auto;
}

.coach-overlay-scope #coachOverlayDetails .overlay-description {
  cursor: default;
}

/* KI-Empfehlung */
.coach-overlay-scope #coachOverlayWhy {
  display: none;
  position: relative;
  border: 1px solid rgba(54, 89, 69, 0.18);
  border-radius: 16px;
  padding: 0.95rem 1rem 0.95rem;
  max-width: 500px;
  margin: 1.15rem auto 0.95rem auto;
  box-sizing: border-box;
  min-inline-size: 0;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .coach-overlay-scope #coachOverlayWhy {
    background: #f7fbf8;
  }
}

.coach-overlay-scope #coachOverlayWhy .ki-recommendation__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.45rem 0;
}

.coach-overlay-scope #coachOverlayWhy .ki-recommendation__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(54, 89, 69, 0.16);
  background: rgba(255, 255, 255, 0.6);
  color: #365945;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.coach-overlay-scope #coachOverlayWhy .ki-recommendation__text {
  display: block;
  margin: 0;
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
  color: #000;
  line-height: 1.3;
  font-size: 1.05rem;
  hyphenate-character: "-";
}

/* Details */
.coach-overlay-scope .details-avatar-wrapper {
  width: clamp(160px, 22vw, 190px);
  height: clamp(160px, 22vw, 190px);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #365945;
  flex-shrink: 0;
}

.coach-overlay-scope .details-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coach-overlay-scope .details-name {
  --details-base-size: clamp(26px, 1.35rem + 0.8vw, 36px);
  --details-scale: 1;
  max-width: min(24ch, 520px);
  font-size: calc(var(--details-base-size) * var(--details-scale));
  font-weight: 300;
  text-align: center;
  line-height: 1.1;
  margin: 0 auto;
}

.coach-overlay-scope .details-name .line {
  display: block;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.coach-overlay-scope #coachOverlayDetails {
  text-align: initial;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.coach-overlay-scope #coachOverlayDetails .details-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: min(100%, 620px);
  padding-inline: clamp(0.75rem, 2.4vw, 1.25rem);
  box-sizing: border-box;
  margin: 1rem auto 1.1rem auto;
  text-align: center;
  cursor: pointer;
}

.coach-overlay-scope #coachOverlayDetails .details-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.coach-overlay-scope #coachOverlayDetails .details-collab {
  margin-top: 0;
  font-size: clamp(0.98rem, 0.88rem + 0.28vw, 1.08rem);
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.22;
  font-weight: 500;
  color: #2f4036;
  max-width: min(24ch, 100%);
}

.coach-overlay-scope #coachOverlayDetails .details-body {
  text-align: left;
  font-weight: 300;
}

.coach-overlay-scope #coachOverlayDetails .overlay-description {
  max-width: 550px;
  text-align: left;
  line-height: 1.45;
  font-style: normal;
  margin: 0.5rem auto;
}

/* Details links (website + certifications) */
.coach-overlay-scope #coachOverlayDetails #detailsWebsite {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  color: #333;
  font-weight: 600;
  font-size: clamp(0.95rem, 0.8rem + 0.35vw, 1.15rem);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.coach-overlay-scope #coachOverlayDetails #detailsWebsite:hover,
.coach-overlay-scope #coachOverlayDetails #detailsWebsite:focus-visible {
  border-color: rgba(148, 163, 184, 0.4);
  background-color: rgba(255, 255, 255, 0.94);
  outline: none;
}

.coach-overlay-scope #coachOverlayDetails #detailsWebsite:focus-visible {
  outline: 2px solid rgba(54, 89, 69, 0.45);
  outline-offset: 2px;
}

.coach-overlay-scope .details-website-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: var(--tb-green, #365945);
  display: block;
}

.coach-overlay-scope #detailsWebsiteLink {
  text-decoration: none;
  color: inherit;
  display: block;
}

.coach-overlay-scope #detailsWebsiteLink:hover,
.coach-overlay-scope #detailsWebsiteLink:focus-visible {
  text-decoration: none;
}

.coach-overlay-scope .details-link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0.75rem auto 0.5rem auto;
  color: #333;
  flex-wrap: wrap;
}

.coach-overlay-scope .details-link-row #detailsCertifications {
  order: 1;
}

.coach-overlay-scope .details-link-row #detailsWebsite {
  order: 2;
}

.coach-overlay-scope .overlay-certifications {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: #333;
  font-size: clamp(0.95rem, 0.8rem + 0.35vw, 1.15rem);
  flex-wrap: wrap;
}

.coach-overlay-scope .overlay-certifications .certifications-trigger {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #333;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  text-decoration: none;
  appearance: none;
  box-shadow: none;
  min-width: 0;
  text-align: left;
}

.coach-overlay-scope .overlay-certifications .certifications-trigger:disabled {
  cursor: default;
  opacity: 0.6;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.coach-overlay-scope .overlay-certifications .certifications-trigger:hover,
.coach-overlay-scope .overlay-certifications .certifications-trigger:focus-visible,
.coach-overlay-scope .overlay-certifications.is-popover-open .certifications-trigger {
  border-color: rgba(148, 163, 184, 0.4);
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: none;
  outline: none;
}

.coach-overlay-scope .overlay-certifications .certifications-trigger:focus-visible {
  outline: 2px solid rgba(54, 89, 69, 0.45);
  outline-offset: 2px;
}

.coach-overlay-scope .overlay-certifications .certifications-primary {
  font-weight: 700;
  color: #333;
}

.coach-overlay-scope .overlay-certifications .certifications-more-label {
  font-weight: 500;
  color: #333;
}

.coach-overlay-scope .overlay-certifications .certifications-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(520px, 92vw);
  min-width: 280px;
  --cert-popover-row-min-h: 2.25rem;
  --cert-popover-list-gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: var(--guided-surface-radius, 18px);
  border: 1px solid var(--guided-surface-border, rgba(54, 89, 69, 0.14));
  background: var(--guided-surface-bg, #fff);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 60;
}

.coach-overlay-scope .overlay-certifications.is-popover-open .certifications-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.coach-overlay-scope .overlay-certifications .certifications-popover-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.coach-overlay-scope .overlay-certifications .certifications-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  padding: 0 2.25rem;
}

.coach-overlay-scope .overlay-certifications .certifications-popover-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0;
  background: rgba(15, 23, 42, 0.02);
  color: rgba(15, 23, 42, 0.42);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.coach-overlay-scope .overlay-certifications .certifications-popover-close:hover,
.coach-overlay-scope .overlay-certifications .certifications-popover-close:focus-visible {
  background: rgba(54, 89, 69, 0.08);
  border-color: rgba(54, 89, 69, 0.14);
  color: #365945;
  outline: none;
}

.coach-overlay-scope .overlay-certifications .certifications-popover-close:active {
  transform: scale(0.98);
}

.coach-overlay-scope .overlay-certifications .certifications-popover-close:focus-visible {
  box-shadow: 0 0 0 3px rgba(54, 89, 69, 0.14);
}

.coach-overlay-scope .overlay-certifications .certifications-list {
  display: flex;
  flex-direction: column;
  gap: var(--cert-popover-list-gap);
  min-height: 0;
  max-height: min(45vh, 320px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.coach-overlay-scope .overlay-certifications .certifications-item {
  display: flex;
  align-items: center;
  min-height: var(--cert-popover-row-min-h);
  min-width: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  background: rgba(243, 244, 246, 0);
  transition: background 0.16s ease, color 0.16s ease;
}

.coach-overlay-scope .overlay-certifications .certifications-item-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.coach-overlay-scope .overlay-certifications a.certifications-item:hover,
.coach-overlay-scope .overlay-certifications a.certifications-item:focus-visible {
  background: transparent;
  color: var(--tb-green, #365945);
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.coach-overlay-scope .overlay-certifications .certifications-item[aria-disabled="true"] {
  color: #333;
  cursor: default;
}

.coach-overlay-scope .overlay-certifications .certifications-item[aria-disabled="true"]:hover,
.coach-overlay-scope .overlay-certifications .certifications-item[aria-disabled="true"]:focus-visible {
  background: transparent;
  color: #333;
}

/* View navigation */
.coach-overlay-scope .overlay-view-nav {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 560px;
  margin: 0.85rem auto 0;
  padding: 0.5rem 0 0.35rem;
  background: transparent;
}

.coach-overlay-scope .overlay-view-nav__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1;
  color: rgba(54, 89, 69, 0.9);
}

.coach-overlay-scope .overlay-view-nav__counter {
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
  display: none;
}

.coach-overlay-scope .overlay-view-nav__label {
  font-weight: 600;
}

.coach-overlay-scope .overlay-view-nav__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.coach-overlay-scope .overlay-view-nav__controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.coach-overlay-scope .overlay-view-nav__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(54, 89, 69, 0.72);
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.coach-overlay-scope .overlay-view-nav__arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

.coach-overlay-scope .overlay-view-nav__arrow:hover {
  background: rgba(54, 89, 69, 0.08);
  color: #365945;
}

.coach-overlay-scope .overlay-view-nav__arrow:focus-visible {
  outline: 2px solid rgba(45, 92, 59, 0.28);
  outline-offset: 3px;
}

.coach-overlay-scope .overlay-view-nav__arrow[disabled] {
  opacity: 0.18;
  cursor: default;
}

.coach-overlay-scope .overlay-view-nav__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(54, 89, 69, 0.2);
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.coach-overlay-scope .overlay-view-nav__dot:hover {
  background: rgba(54, 89, 69, 0.36);
}

.coach-overlay-scope .overlay-view-nav__dot:focus-visible {
  outline: 2px solid rgba(45, 92, 59, 0.28);
  outline-offset: 4px;
}

.coach-overlay-scope .overlay-view-nav__dot[aria-current="step"] {
  width: 30px;
  background: #365945;
}

.coach-overlay-scope .overlay-view-nav__dot[disabled] {
  cursor: wait;
  opacity: 0.46;
}

.coach-overlay-scope .overlay-view-nav__dot--disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.coach-overlay-scope .overlay-view-tabs {
  display: none;
  width: 100%;
  max-width: 560px;
  justify-content: center;
  gap: 0.75rem;
  justify-content: center;
  border-bottom: 1px solid rgba(54, 89, 69, 0.16);
}

.coach-overlay-scope .overlay-view-tab {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: rgba(54, 89, 69, 0.86);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.2rem;
  line-height: 1.1;
  cursor: pointer;
  user-select: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.coach-overlay-scope .overlay-view-tab:focus-visible {
  outline: 2px solid rgba(45, 92, 59, 0.28);
  outline-offset: 3px;
}

.coach-overlay-scope .overlay-view-tab[aria-selected="true"] {
  color: #365945;
  border-bottom-color: #365945;
}

.coach-overlay-scope .overlay-view-tab[disabled] {
  opacity: 0.46;
  cursor: wait;
}

.coach-overlay-scope .overlay-view-tab--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (min-width: 720px) and (hover: hover) and (pointer: fine) {
  .coach-overlay-scope .overlay-view-nav__controls {
    display: none;
  }

  .coach-overlay-scope .overlay-view-nav__meta {
    display: none;
  }

  .coach-overlay-scope .overlay-view-tabs {
    display: inline-flex;
  }
}

@media (hover: none) and (pointer: coarse) {
  .coach-overlay-scope .overlay-body,
  .coach-overlay-scope #coachOverlayDetails {
    scrollbar-width: none;
  }

  .coach-overlay-scope .overlay-body::-webkit-scrollbar,
  .coach-overlay-scope #coachOverlayDetails::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .coach-overlay-scope #coachOverlayDetails .overlay-description {
    max-width: 88%;
  }
}

@media (max-width: 500px) {
  .coach-overlay-scope .coach-modal {
    width: calc(100% - 1rem);
    margin: 0 auto;
    border-radius: var(--guided-surface-radius, 18px);
    overflow: visible;
    padding: 0;
  }

  .coach-overlay-scope .coach-modal-inner {
    padding: 1rem;
  }

  .coach-overlay-scope .overlay-view-nav {
    margin-top: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .coach-overlay-scope .overlay-view-nav__arrow {
    display: none;
  }

  .coach-overlay-scope .overlay-view-nav__meta {
    font-size: 0.95rem;
    gap: 0.4rem;
  }

  .coach-overlay-scope .overlay-view-nav__dot[aria-current="step"] {
    width: 24px;
  }

  .coach-overlay-scope .coach-modal-inner .close-button {
    top: 0.6rem;
    right: 0.6rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 520px) {
  .coach-overlay-scope .overlay-top {
    margin: 0.65rem auto 0.95rem auto;
    gap: 0.55rem;
    width: 100%;
    padding-inline: 0.25rem;
  }

  .coach-overlay-scope .overlay-avatar-wrapper {
    width: 88px;
    height: 88px;
  }

  .coach-overlay-scope .coach-right {
    gap: 0.28rem;
  }

  .coach-overlay-scope .coach-name-overlay {
    --name-base-size: clamp(21px, 1.05rem + 0.45vw, 28px);
    line-height: 1.04;
  }

  .coach-overlay-scope .coach-right .price-line,
  .coach-overlay-scope .details-price-line {
    font-size: 0.96rem;
    line-height: 1.15;
    flex-wrap: wrap;
    white-space: normal;
  }

  .coach-overlay-scope .coach-right .price-meta,
  .coach-overlay-scope .details-price-meta {
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: normal;
  }

  .coach-overlay-scope #coachOverlayDetails .details-top {
    gap: 0.55rem;
    width: 100%;
    padding-inline: 0.25rem;
    margin-top: 0.35rem;
    margin-bottom: 0.85rem;
  }

  .coach-overlay-scope .details-avatar-wrapper {
    width: clamp(132px, 42vw, 160px);
    height: clamp(132px, 42vw, 160px);
  }

  .coach-overlay-scope #coachOverlayDetails .details-right {
    align-items: center;
    text-align: center;
    width: min(92vw, 460px);
    gap: 0.35rem;
  }

  .coach-overlay-scope #coachOverlayDetails .details-name {
    text-align: center;
    max-width: min(26ch, 92vw);
    line-height: 1.05;
  }

  .coach-overlay-scope #coachOverlayDetails #detailsDescription,
  .coach-overlay-scope #coachOverlayDetails #detailsSpecialization {
    cursor: pointer;
  }

  .coach-overlay-scope #coachOverlayFront .overlay-description {
    margin: 0 auto 1rem auto;
  }

  .coach-overlay-scope #coachOverlayDetails .overlay-description {
    margin: 0.35rem auto;
  }
}
