/* Renasanz Salon Chatbot Widget */
.rs-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #91221e;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(145,34,30,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rs-chat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(145,34,30,0.45);
}
.rs-chat-btn svg {
  width: 28px;
  height: 28px;
  transition: opacity 0.15s ease;
}
.rs-chat-btn .rs-close-icon { display: none; }
.rs-chat-btn.rs-open .rs-chat-icon { display: none; }
.rs-chat-btn.rs-open .rs-close-icon { display: block; }

/* Chat panel */
.rs-chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 420px;
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1),
              height 0.3s cubic-bezier(0.4,0,0.2,1),
              max-height 0.3s cubic-bezier(0.4,0,0.2,1),
              bottom 0.3s cubic-bezier(0.4,0,0.2,1),
              border-radius 0.3s cubic-bezier(0.4,0,0.2,1);
}
.rs-chat-panel.rs-visible {
  display: flex;
  animation: rs-slide-up 0.25s ease-out;
}
@keyframes rs-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.rs-chat-header {
  background: #91221e;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rs-chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.rs-chat-header-info {
  flex: 1;
  min-width: 0;
}
.rs-chat-header-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.rs-chat-header-status {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 2px;
}
.rs-chat-reset {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.rs-chat-reset:hover {
  opacity: 1;
  background: rgba(255,255,255,0.25);
}

/* Messages area */
.rs-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  max-height: 520px;
  background: #f9f7f5;
}
.rs-chat-messages::-webkit-scrollbar {
  width: 4px;
}
.rs-chat-messages::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

/* Message bubbles */
.rs-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
}
.rs-msg a {
  color: #91221e;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rs-msg-bot {
  background: #ffffff;
  color: #2e2a27;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.rs-msg-user {
  background: #91221e;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.rs-msg-user a {
  color: #fff;
}
.rs-msg-bot p { margin: 0 0 8px 0; }
.rs-msg-bot p:last-child { margin-bottom: 0; }
.rs-msg-bot ul, .rs-msg-bot ol {
  margin: 4px 0;
  padding-left: 18px;
}
.rs-msg-bot li { margin-bottom: 4px; }
.rs-msg-bot strong { font-weight: 600; }
.rs-msg-bot code {
  background: rgba(0,0,0,0.05);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 12px;
}

/* Typing indicator */
.rs-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
  background: #ffffff;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.rs-typing span {
  width: 6px;
  height: 6px;
  background: #c4908e;
  border-radius: 50%;
  animation: rs-bounce 1.2s infinite;
}
.rs-typing span:nth-child(2) { animation-delay: 0.2s; }
.rs-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes rs-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Input area */
.rs-chat-input {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: #fff;
}
.rs-chat-input textarea {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.4;
  resize: none;
  background: #f9f7f5;
  color: #2e2a27;
  font-family: inherit;
  max-height: 100px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rs-chat-input textarea:focus {
  border-color: #91221e;
  background: #fff;
}
.rs-chat-input textarea::placeholder {
  color: #999;
}
.rs-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #91221e;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.rs-chat-send:disabled {
  opacity: 0.3;
  cursor: default;
}
.rs-chat-send svg {
  width: 16px;
  height: 16px;
}

/* Quick action chips */
.rs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
  background: #f9f7f5;
}
.rs-chip {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: #2e2a27;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.rs-chip:hover {
  background: #91221e;
  color: #fff;
  border-color: #91221e;
}
.rs-chip-cta {
  background: #91221e;
  color: #fff;
  border-color: #91221e;
  font-weight: 600;
}
.rs-chip-cta:hover {
  background: #7a1c19;
  border-color: #7a1c19;
}

/* Booking flow — Service cards */
.rs-booking-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}
.rs-card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #91221e;
  padding: 8px 0 2px;
}
.rs-card-category:first-child {
  padding-top: 0;
}
.rs-service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e2da;
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
  box-sizing: border-box;
}
.rs-service-card:hover {
  border-color: #91221e;
  background: #fdf6f6;
}
.rs-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}
.rs-card-name {
  font-size: 13px;
  font-weight: 500;
  color: #2e2a27;
  flex: 1;
  min-width: 0;
}
.rs-card-meta {
  font-size: 11.5px;
  color: #888;
  white-space: nowrap;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Booking flow — Date picker */
.rs-date-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  padding: 4px 0;
}
.rs-date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid #e8e2da;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  min-width: 80px;
}
.rs-date-btn:hover {
  border-color: #91221e;
  background: #fdf6f6;
}
.rs-date-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #2e2a27;
}
.rs-date-slots {
  font-size: 10.5px;
  color: #91221e;
}

/* Booking flow — Time picker */
.rs-time-picker {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.rs-prov-label {
  font-size: 12px;
  font-weight: 600;
  color: #2e2a27;
  padding-bottom: 2px;
}
.rs-times-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.rs-time-btn {
  background: #fff;
  border: 1px solid #e8e2da;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: #2e2a27;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.rs-time-btn:hover {
  border-color: #91221e;
  background: #91221e;
  color: #fff;
}

/* Booking flow — Client form */
.rs-client-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.rs-form-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #2e2a27;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.rs-form-input:focus {
  border-color: #91221e;
}
.rs-form-input::placeholder {
  color: #999;
}
.rs-form-input.rs-input-error {
  border-color: #d32f2f;
}
textarea.rs-form-input {
  resize: none;
  line-height: 1.4;
}
.rs-book-submit {
  width: 100%;
  background: #91221e;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  font-family: inherit;
  margin-top: 4px;
}
.rs-book-submit:hover {
  opacity: 0.9;
}

/* Booking flow — Confirmation card */
.rs-confirm-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e8e2da;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rs-confirm-row {
  display: flex;
  padding: 7px 0;
  border-bottom: 1px solid #f0ece8;
}
.rs-confirm-row:last-of-type {
  border-bottom: none;
}
.rs-confirm-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #91221e;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: 70px;
  flex-shrink: 0;
  padding-top: 1px;
}
.rs-confirm-value {
  font-size: 13px;
  color: #2e2a27;
  white-space: pre-line;
  flex: 1;
  min-width: 0;
}
.rs-confirm-notes-label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-top: 10px;
  margin-bottom: 4px;
}
.rs-notes-input {
  min-height: 44px;
}
.rs-confirm-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.rs-confirm-actions .rs-book-submit {
  flex: 1;
  margin-top: 0;
}
.rs-btn-edit {
  background: #fff;
  color: #2e2a27;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  flex-shrink: 0;
}
.rs-btn-edit:hover {
  border-color: #91221e;
  color: #91221e;
}

/* ============================================================
   BOOKING OVERLAY — Full-screen step-by-step flow
   ============================================================ */

/* Overlay container — covers messages, chips, and input */
.rs-booking-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  flex-direction: column;
  z-index: 10;
}
.rs-booking-overlay.rs-visible {
  display: flex;
}

/* When booking mode is active, expand panel and hide chat content */
.rs-booking-mode {
  width: 50vw;
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  bottom: 24px;
  border-radius: 14px;
}
.rs-booking-mode .rs-chat-header,
.rs-booking-mode .rs-chat-messages,
.rs-booking-mode .rs-chips,
.rs-booking-mode .rs-chat-input {
  visibility: hidden;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  overflow: hidden;
}

/* Steps progress bar */
.rs-steps-bar {
  display: flex;
  padding: 16px 20px 12px;
  gap: 4px;
  background: #f9f7f5;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.rs-step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rs-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8e2da;
  color: #999;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.rs-step-label {
  font-size: 10px;
  color: #999;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.rs-step-active .rs-step-num {
  background: #91221e;
  color: #fff;
}
.rs-step-active .rs-step-label {
  color: #91221e;
  font-weight: 600;
}
.rs-step-done {
  cursor: pointer;
}
.rs-step-done .rs-step-num {
  background: #2e7d32;
  color: #fff;
  transition: transform 0.15s ease;
}
.rs-step-done:hover .rs-step-num {
  transform: scale(1.1);
}
.rs-step-done .rs-step-label {
  color: #2e7d32;
}
.rs-step-done:hover .rs-step-label {
  text-decoration: underline;
}
.rs-step-skipped .rs-step-num {
  background: #ddd;
  color: #999;
}
.rs-step-skipped .rs-step-label {
  color: #bbb;
  text-decoration: line-through;
}

/* Title bar (back / title / close) */
.rs-overlay-title-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  gap: 8px;
  min-height: 44px;
}
.rs-overlay-back {
  background: none;
  border: none;
  color: #91221e;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
  font-family: inherit;
  flex-shrink: 0;
}
.rs-overlay-back:hover {
  background: #fdf6f6;
}
.rs-overlay-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #2e2a27;
  text-align: center;
}
.rs-overlay-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}
.rs-overlay-close:hover {
  background: #f0ece8;
  color: #2e2a27;
}

/* Scrollable content area */
.rs-overlay-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rs-overlay-content::-webkit-scrollbar {
  width: 4px;
}
.rs-overlay-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

/* Loading state inside overlay */
.rs-overlay-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

/* Selected summary bar (shows selected service/date) */
.rs-selected-summary {
  background: #f9f7f5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #2e2a27;
  line-height: 1.4;
  margin-bottom: 4px;
}
.rs-selected-summary strong {
  font-weight: 600;
}

/* Calendar grid */
.rs-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.rs-cal-month-label {
  font-size: 14px;
  font-weight: 600;
  color: #2e2a27;
}
.rs-cal-arrow {
  background: none;
  border: 1px solid #e8e2da;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  color: #2e2a27;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 0.15s ease;
}
.rs-cal-arrow:hover:not(:disabled) {
  border-color: #91221e;
  color: #91221e;
}
.rs-cal-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.rs-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.rs-cal-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  padding: 4px 0 8px;
  text-transform: uppercase;
}
.rs-cal-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  background: none;
  color: #ccc;
  cursor: default;
}
.rs-cal-empty {
  visibility: hidden;
}
.rs-cal-available {
  color: #2e2a27;
  cursor: pointer;
  transition: background 0.15s ease;
}
.rs-cal-available:hover {
  background: #fdf6f6;
}
.rs-cal-selected {
  background: #91221e;
  color: #fff;
}
.rs-cal-past {
  color: #ddd;
}
.rs-cal-unavailable {
  color: #ddd;
}

/* Time slot columns per provider */
.rs-time-columns {
  display: flex;
  gap: 10px;
  width: 100%;
}
.rs-time-column {
  flex: 1;
  background: #fff;
  border: 1px solid #e8e2da;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.rs-time-col-header {
  font-size: 12px;
  font-weight: 600;
  color: #2e2a27;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0ece8;
  text-align: center;
  line-height: 1.3;
}
.rs-time-column .rs-time-btn {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* Provider section in time picker (legacy) */
.rs-prov-section {
  margin-bottom: 4px;
}

/* Add-ons cards */
.rs-addons-hint {
  font-size: 12.5px;
  color: #888;
  margin-bottom: 4px;
}
.rs-addon-card {
  background: #fff;
  border: 1px solid #e8e2da;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.15s ease;
}
.rs-addon-card:hover {
  border-color: #91221e;
  background: #fdf6f6;
}
.rs-addon-selected {
  border-color: #91221e;
  background: #fdf6f6;
}
.rs-addon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.rs-addon-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #91221e;
  flex-shrink: 0;
  cursor: pointer;
}
.rs-addon-info {
  flex: 1;
  min-width: 0;
}
.rs-addon-name {
  font-size: 13px;
  font-weight: 500;
  color: #2e2a27;
}
.rs-addon-price {
  font-size: 12.5px;
  color: #91221e;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.rs-addon-desc {
  font-size: 11.5px;
  color: #6b6560;
  line-height: 1.4;
  padding: 6px 12px 8px 34px;
  border-top: 1px solid #f0ece8;
}
.rs-addon-desc img {
  display: none;
}
.rs-addon-desc ul {
  margin: 0;
  padding-left: 16px;
}
.rs-addon-desc li {
  margin-bottom: 2px;
}

/* "Learn more" expandable inside cards */
.rs-learn-more {
  background: none;
  border: none;
  color: #91221e;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0 0;
  text-align: left;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.8;
  transition: opacity 0.15s ease;
  display: inline-block;
}
.rs-learn-more:hover {
  opacity: 1;
}
.rs-service-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.45;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
  margin-top: 0;
}
.rs-service-desc.rs-desc-open {
  max-height: 300px;
  opacity: 1;
  margin-top: 6px;
  overflow-y: auto;
}
.rs-service-desc ul, .rs-service-desc ol {
  margin: 4px 0;
  padding-left: 18px;
}
.rs-service-desc li {
  margin-bottom: 3px;
  font-size: 11.5px;
  line-height: 1.4;
}
.rs-service-desc p {
  margin: 4px 0;
}
.rs-service-desc img {
  width: calc(33.33% - 4px);
  border-radius: 4px;
  display: inline-block;
  margin: 2px;
  vertical-align: top;
  object-fit: cover;
}
.rs-service-desc strong, .rs-service-desc b {
  font-weight: 600;
}
.rs-service-desc::-webkit-scrollbar {
  width: 3px;
}
.rs-service-desc::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

/* Success screen */
.rs-success-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 16px;
}
.rs-success-msg {
  font-size: 14px;
  color: #2e2a27;
  text-align: center;
  line-height: 1.5;
  padding: 0 8px;
  margin-bottom: 12px;
}
.rs-success-code {
  background: #f9f7f5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #2e2a27;
  text-align: center;
  margin-bottom: 16px;
}
.rs-success-code strong {
  font-weight: 600;
}

/* Tablet */
@media (max-width: 768px) {
  .rs-chat-panel {
    width: 380px;
  }
  .rs-booking-mode {
    width: calc(100vw - 48px);
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
  }
}

/* Mobile — full screen takeover */
@media (max-width: 480px) {
  .rs-chat-btn {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }
  .rs-chat-btn svg {
    width: 24px;
    height: 24px;
  }
  .rs-chat-panel {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .rs-booking-mode {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    bottom: 0;
    border-radius: 0;
  }
  .rs-chat-messages {
    flex: 1;
    max-height: none;
    min-height: 0;
  }
  .rs-chat-header {
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .rs-chat-input {
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .rs-chips {
    padding: 0 12px 10px;
  }
  .rs-service-card {
    padding: 12px 14px;
  }
  .rs-card-name {
    font-size: 14px;
  }
  .rs-date-btn {
    min-width: 0;
    flex: 1;
    min-width: 90px;
  }
  .rs-time-columns {
    flex-direction: column;
    gap: 8px;
  }
  .rs-time-column {
    padding: 10px;
  }
  .rs-time-col-header {
    font-size: 11px;
  }
  .rs-time-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .rs-cal-cell {
    font-size: 12px;
  }
  .rs-form-input {
    padding: 12px 14px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .rs-chat-input textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .rs-book-submit {
    padding: 14px;
    font-size: 15px;
  }
  /* Overlay mobile adjustments */
  .rs-steps-bar {
    padding: 14px 12px 10px;
  }
  .rs-step-num {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .rs-step-label {
    font-size: 9px;
  }
  .rs-overlay-title-bar {
    padding: 10px 12px;
  }
  .rs-overlay-content {
    padding: 14px 12px;
  }
  .rs-cal-cell {
    font-size: 11px;
  }
  .rs-cal-header {
    font-size: 10px;
  }
  .rs-form-input {
    font-size: 16px; /* prevent iOS zoom */
  }
}
