/* Demo-only additions. The theme toggles .is-open with JavaScript; this static
   copy uses hidden checkboxes (#vita-demo-*) and <label>s instead. */
.vita-demo-btn { -webkit-user-select: none; user-select: none; cursor: pointer; text-align: center; }
/* <button> centres its content and has 1px 6px UA padding; mirror that. */
label.modal-close { display: grid; place-items: center; padding: 1px 6px; }

/* Mobile menu */
@media (max-width: 800px) {
  body:has(#vita-demo-menu:checked) .header-navigation { display: block; }
}
body:has(#vita-demo-menu:checked) .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
body:has(#vita-demo-menu:checked) .menu-toggle span:nth-child(2) { opacity: 0; }
body:has(#vita-demo-menu:checked) .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Booking modal */
body:has(#vita-demo-booking:checked) { overflow: hidden; }
body:has(#vita-demo-booking:checked) .vita-modal { display: grid; }
.vita-demo-backdrop { position: absolute; inset: 0; cursor: default; }
.vita-modal .modal-panel { z-index: 1; }

/* Chat (opening the booking modal closes it, as theme.js does) */
body:has(#vita-demo-chat:checked):not(:has(#vita-demo-booking:checked)) .chat-launcher::before { display: none; }
body:has(#vita-demo-chat:checked):not(:has(#vita-demo-booking:checked)) .chat-icon-open { opacity: 0; transform: rotate(-60deg) scale(0.6); }
body:has(#vita-demo-chat:checked):not(:has(#vita-demo-booking:checked)) .chat-icon-close { opacity: 1; transform: none; }
body:has(#vita-demo-chat:checked):not(:has(#vita-demo-booking:checked)) .chat-panel { opacity: 1; pointer-events: auto; transform: none; visibility: visible; }
