.appointment-widget {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
  gap: 12px;
  width: min(360px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  pointer-events: none;
  font-family: inherit;
  letter-spacing: 0;
}

.appointment-widget svg { width: 20px; height: 20px; flex: 0 0 20px; }
.appointment-launcher {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--green-900);
  border-radius: 8px;
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 5px 22px rgba(20, 50, 45, .2);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.appointment-launcher:hover { background: var(--green-800); }
.appointment-panel[hidden] { display: none; }
.appointment-panel {
  width: 100%;
  min-width: 0;
  pointer-events: auto;
  max-width: 100%;
  max-height: calc(100vh - 108px);
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-green);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(20, 50, 45, .18);
}
.appointment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 16px;
  background: var(--green-800);
  color: #fff;
}
.appointment-header > div { min-width: 0; }
.appointment-header h2 { margin: 0; color: #fff; font-size: 17px; line-height: 1.3; }
.appointment-header p { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: #e2efeb; }
.appointment-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.appointment-close:hover { background: rgba(255, 255, 255, .12); }
.appointment-content { padding: 18px 16px; }
.appointment-greeting { margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
.appointment-options { display: grid; gap: 9px; }
.appointment-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line-green);
  border-radius: 6px;
  background: #fff;
  color: var(--green-900);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.appointment-option > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.appointment-option > svg:last-child { width: 16px; height: 16px; flex-basis: 16px; }
.appointment-option:hover { background: var(--green-050); color: var(--green-900); }
.appointment-option-primary { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.appointment-option-primary:hover { background: var(--green-800); color: #fff; }
.appointment-confirmation { margin: 13px 0 16px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.appointment-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line-green);
  border-bottom: 1px solid var(--line-green);
  text-decoration: none;
  font-size: 12px;
  color: var(--ink-soft);
}
.appointment-phone strong { display: block; color: var(--green-800); font-size: 16px; }
.appointment-note { margin: 14px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.appointment-widget :focus-visible { outline: 3px solid #c79a28; outline-offset: 3px; }
.appointment-close:focus-visible { outline-color: #fff; }
body { padding-bottom: 84px; }
.grid-side > *, .grid-2 > * { min-width: 0; }
.brand, .brand-text { min-width: 0; }
.brand-text b { white-space: normal; overflow-wrap: anywhere; }
.nav-links a.cta { display: inline-flex; align-items: center; gap: 7px; }
.nav-links a.cta svg { width: 16px; height: 16px; flex: 0 0 16px; }
.btn[data-termin-art] { overflow-wrap: anywhere; text-align: center; }
@media (max-width: 760px) {
  .nav-inner { gap: 10px; }
  .brand { max-width: calc(100% - 86px); }
  .brand-text b { font-size: 14px; }
  .nav-links a.cta { margin-left: 0; }
  .appointment-widget { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 24px)); max-width: calc(100vw - 24px); }
  .appointment-panel { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
}
