/* ===== Floating "Programări online" – stil unificat cu cel din header ===== */

.online-booking-fab {
  position: fixed;

  right: 1.4rem;

  bottom: 10px;

  z-index: 999;

  font-family: inherit;
}

/* butonul principal */

.online-booking-toggle {
  display: inline-flex;

  align-items: center;

  gap: 0.55rem;

  background: var(--color-fourth);

  color: #fff;

  border: none;

  border-radius: 14px !important;

  padding: 1.2rem 1.85rem;

  cursor: pointer;

  font-weight: 600;

  line-height: 1;

  font-size: 1.35rem;

  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.online-booking-toggle .ms {
  font-size: 1.45rem;
  line-height: 1;
}

.online-booking-toggle .label {
  font-weight: 500;
  font-size: 1.6rem;
}

.online-booking-fab button span.icon {
  font-size: 2.2rem;
}

.online-booking-toggle:hover {
  transform: translateY(-3px);
}

.online-booking-toggle:not([disabled]):focus {
  border: none !important;
}

/* ===== PANEL (identic stil cu header) ===== */

.online-booking-panel {
  --glass-bg: rgba(255, 255, 255, 0.88);

  --glass-border: rgba(0, 0, 0, 0.06);

  position: absolute;

  right: 0;

  bottom: calc(100% + 0.65rem);

  width: 200px;

  padding: 0.5rem;

  background: var(--glass-bg);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  border: 1px solid var(--glass-border);

  border-radius: 16px;

  box-shadow: 0 16px 35px rgba(0, 36, 65, 0.18);

  display: grid;

  gap: 0.55rem;

  opacity: 0;

  transform: translateY(8px);

  pointer-events: none;

  transition: opacity 0.18s ease, transform 0.18s ease 0.05s;

  z-index: 1000;
}

.online-booking-fab.is-open .online-booking-panel {
  opacity: 1;

  transform: translateY(0);

  pointer-events: auto;
}

/* linkuri (identic ca în header) */

.online-booking-panel a {
  display: flex;

  align-items: center;

  gap: 0.8rem;

  border-radius: 14px;

  background: rgba(0, 119, 255, 0.06);

  border: 1px solid rgba(0, 119, 255, 0.08);

  text-decoration: none;

  font-size: 1.25rem;

  font-weight: 600;

  color: #0c315c;

  padding: 0.55rem 0.85rem;

  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

/* icon rotund stânga */

.online-booking-panel a::before {
  content: "chevron_right";

  font-family: "Material Symbols Outlined";

  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;

  inline-size: 27px;

  block-size: 27px;

  border-radius: 999px;

  display: grid;

  place-items: center;

  background: rgba(255, 255, 255, 0.18);

  color: #fff;

  font-size: 1.7rem;

  flex: 0 0 27px;

  transition: transform 0.12s ease;
}

/* culorile fiecărui item */

.online-booking-panel a:nth-child(1) {
  background: var(--color-secondary);

  color: #fff;
}

.online-booking-panel a:nth-child(1)::before {
  background: rgba(255, 255, 255, 0.22);
}

.online-booking-panel a:nth-child(2) {
  background: var(--color-primary);

  color: #fff;
}

.online-booking-panel a:nth-child(2)::before {
  background: rgba(255, 255, 255, 0.2);
}

.online-booking-panel a:nth-child(3) {
  background: var(--color-third);

  color: #fff;
}

.online-booking-panel a:nth-child(3)::before {
  background: rgba(255, 255, 255, 0.24);
}

/* hover – mic lift */

.online-booking-panel a:hover {
  transform: translateX(2px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.online-booking-panel a:hover::before {
  transform: translateX(1px);
}

/* Responsive mic */

@media (max-width: 580px) {
  .online-booking-panel {
    width: min(230px, 90vw);
  }
}

/* Hover behavior (desktop only) – deschis pe hover */

@media (hover: hover) and (pointer: fine) {
  .online-booking-fab:hover .online-booking-panel {
    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
  }
}

/* --- Hover bridge (prevents flicker) --- */

.online-booking-fab::after {
  content: "";

  position: absolute;

  bottom: 100%;

  right: 0;

  width: 100%;

  height: 14px; /* crește la 16–18px dacă ai un gap mai mare */

  background: transparent;

  pointer-events: auto;
}

/* menține panelul deschis cât e hover pe wrapper sau pe panel */

@media (hover: hover) and (pointer: fine) {
  .online-booking-fab:hover .online-booking-panel,
  .online-booking-fab:has(.online-booking-panel:hover) .online-booking-panel {
    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
  }
}
