/* Calendly-exact booking layout */

:root {
  --cm-font: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  --cm-blue: #0069ff;
  --cm-blue-soft: #e6f0ff;
  --cm-blue-hover: #f0f6ff;
  --cm-text: #0b3558;
  --cm-text-muted: #6e7582;
  --cm-border: #e1e5ea;
  --cm-page-bg: #f5f6f8;
  --cm-card-radius: 8px;
  --cm-shadow: 0 1px 8px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--cm-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--cm-text);
  background: var(--cm-page-bg);
}

.cm-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--cm-page-bg);
}

/* ========== Desktop card ========== */
.cm-card {
  position: relative;
  display: none;
  width: 1000px;
  min-height: 640px;
  background: #fff;
  border-radius: var(--cm-card-radius);
  box-shadow: var(--cm-shadow);
  overflow: hidden;
  transition: width 0.28s ease;
}

@media (min-width: 768px) {
  .cm-card {
    display: flex;
  }
}

.cm-card.is-expanded {
  width: 1280px;
}

.cm-card.cm-card-details-mode {
  width: 1060px;
  min-height: 640px;
}

/* ========== Left sidebar ========== */
.cm-sidebar {
  width: 320px;
  flex-shrink: 0;
  border-right: 1px solid var(--cm-border);
  display: flex;
  flex-direction: column;
  background: #fff;
}

.cm-sidebar-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 24px;
  min-height: 100%;
}

.cm-logo {
  height: 72px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 22px;
  align-self: flex-start;
}

.cm-host-name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--cm-text-muted);
  line-height: 1.4;
}

.cm-event-title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cm-text);
  letter-spacing: -0.02em;
}

.cm-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cm-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--cm-text-muted);
  font-weight: 500;
}

.cm-meta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #a0a8b4;
}

.cm-event-desc {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--cm-border);
  font-size: 14px;
  line-height: 1.55;
  color: var(--cm-text-muted);
  font-weight: 400;
}

.cm-event-desc p {
  margin: 0 0 12px;
}

.cm-event-desc p:last-child {
  margin-bottom: 0;
}

.cm-event-desc ul,
.cm-event-desc ol {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

.cm-event-desc li {
  margin: 0 0 8px;
}

.cm-event-desc li:last-child {
  margin-bottom: 0;
}

.cm-date-summary {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--cm-border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.cm-date-summary[hidden] {
  display: none !important;
}

.cm-date-summary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #a0a8b4;
  margin-top: 2px;
}

.cm-date-summary-time {
  margin: 0;
  font-weight: 600;
  color: var(--cm-text);
  line-height: 1.35;
}

.cm-date-summary-day {
  margin: 2px 0 0;
  color: var(--cm-text-muted);
  font-weight: 400;
  line-height: 1.35;
}

/* ========== Main (calendar + times) ========== */
.cm-main {
  flex: 1;
  display: flex;
  min-width: 0;
  min-height: 640px;
}

.cm-picker {
  flex: 1;
  padding: 36px 40px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cm-picker-heading {
  margin: 0 0 32px;
  font-size: 22px;
  font-weight: 700;
  color: var(--cm-text);
  letter-spacing: -0.02em;
}

/* Calendar */
[data-cm-calendar-root] {
  flex: 1;
}

.cm-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.cm-cal-nav-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--cm-text);
}

.cm-cal-nav-arrows {
  display: flex;
  gap: 4px;
}

.cm-cal-nav-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cm-text-muted);
  padding: 0;
}

.cm-cal-nav-btn:hover {
  background: #f1f3f5;
  color: var(--cm-text);
}

.cm-cal-nav-btn svg {
  width: 18px;
  height: 18px;
}

.cm-cal-weekdays,
.cm-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  justify-items: center;
}

.cm-cal-weekdays {
  margin-bottom: 8px;
}

.cm-cal-weekday {
  width: 48px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  padding: 8px 0;
}

.cm-cal-day {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #c5cad3;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.cm-cal-day.is-available {
  background: var(--cm-blue-soft);
  color: var(--cm-blue);
  font-weight: 600;
  cursor: pointer;
}

.cm-cal-day.is-available:hover {
  background: #d6e6ff;
}

.cm-cal-day.is-selected {
  background: var(--cm-blue) !important;
  color: #fff !important;
  font-weight: 600;
  cursor: pointer;
}

.cm-cal-day.is-ghost {
  color: #d1d5db;
  background: transparent;
}

.cm-cal-day.is-blocked {
  background: #fee2e2;
  color: #dc2626;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 1;
}

.cm-cal-day.is-blocked:hover {
  background: #fecaca;
  color: #b91c1c;
}

/* Timezone */
.cm-timezone {
  position: relative;
  margin-top: auto;
  padding-top: 28px;
}

.cm-timezone-label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cm-text);
}

.cm-timezone-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--cm-text-muted);
  cursor: pointer;
}

.cm-timezone-trigger:hover {
  color: var(--cm-text);
}

.cm-timezone-trigger > svg:first-child {
  width: 16px;
  height: 16px;
  color: #9ca3af;
  flex-shrink: 0;
}

.cm-timezone-trigger .cm-chevron {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* ========== Time panel ========== */
.cm-time-panel {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid var(--cm-border);
  padding: 32px 28px 24px 24px;
  display: flex;
  flex-direction: column;
  max-height: 640px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
}

.cm-time-panel[hidden] {
  display: none !important;
}

.cm-card.is-expanded .cm-time-panel {
  display: flex;
}

.cm-time-heading {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cm-text-muted);
  flex-shrink: 0;
  padding-right: 72px; /* clear Calendly ribbon */
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-slot-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px 8px 0;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #64748b transparent;
}

.cm-slot-list::-webkit-scrollbar {
  width: 6px;
}

.cm-slot-list::-webkit-scrollbar-track {
  background: transparent;
}

.cm-slot-list::-webkit-scrollbar-thumb {
  background: #64748b;
  border-radius: 6px;
}

.cm-slot-btn {
  width: 100%;
  flex-shrink: 0;
  height: 46px;
  border: 1px solid var(--cm-blue);
  border-radius: 4px;
  background: #fff;
  color: var(--cm-blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  padding: 0 12px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: visible;
  text-align: center;
}

.cm-slot-btn:hover {
  background: var(--cm-blue-hover);
}

.cm-slot-selected {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-shrink: 0;
}

.cm-slot-selected .cm-slot-time {
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  border: 1px solid #1a1a2e;
  border-radius: 4px;
  background: #1a1a2e;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 8px;
  white-space: nowrap;
}

.cm-slot-next {
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  border: 0;
  border-radius: 4px;
  background: var(--cm-blue);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 8px;
  white-space: nowrap;
}

.cm-slot-next:hover {
  background: #0055d4;
}

/* ========== Calendly ribbon ========== */
.cm-calendly-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 50;
  width: 96px;
  height: 96px;
  overflow: hidden;
  text-decoration: none;
  pointer-events: none;
  border-top-right-radius: var(--cm-card-radius);
}

.cm-calendly-ribbon-inner {
  pointer-events: auto;
  position: absolute;
  top: 18px;
  right: -38px;
  width: 148px;
  padding: 5px 0;
  background: #4d5055;
  color: #fff;
  text-align: center;
  transform: rotate(45deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.15;
}

.cm-calendly-ribbon-powered {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.95;
}

.cm-calendly-ribbon-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cm-calendly-ribbon:hover .cm-calendly-ribbon-inner {
  background: #3f3f3f;
}

/* Legal footer */
.cm-sidebar-with-footer {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cm-legal-footer {
  margin-top: auto;
  padding: 24px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  font-size: 12px;
  line-height: 1.4;
}

.cm-legal-footer a {
  color: var(--cm-blue);
  text-decoration: none;
  font-weight: 500;
}

.cm-legal-footer a:hover {
  text-decoration: underline;
}

/* ========== Timezone dropdown ========== */
.cm-tz-dropdown {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: min(340px, 80vw);
  max-height: 360px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cm-border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  font-family: var(--cm-font);
}

.cm-tz-search-wrap {
  position: relative;
  padding: 12px 12px 8px;
  border-bottom: 1px solid #f3f4f6;
}

.cm-tz-search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-35%);
  color: #9ca3af;
  pointer-events: none;
}

.cm-tz-search {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--cm-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.cm-tz-search:focus {
  border-color: var(--cm-blue);
  box-shadow: 0 0 0 3px rgba(0, 105, 255, 0.15);
}

.cm-tz-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}

.cm-tz-toolbar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.cm-tz-format {
  display: inline-flex;
  border: 1px solid var(--cm-border);
  border-radius: 999px;
  overflow: hidden;
}

.cm-tz-format-btn {
  border: 0;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  padding: 4px 10px;
  cursor: pointer;
}

.cm-tz-format-btn.is-active {
  background: #1a1a2e;
  color: #fff;
}

.cm-tz-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  overflow-y: auto;
  max-height: 240px;
}

.cm-tz-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  cursor: pointer;
}

.cm-tz-option:hover {
  background: #f3f4f6;
}

.cm-tz-option.is-selected {
  background: var(--cm-blue);
  color: #fff;
}

.cm-tz-option-time {
  flex-shrink: 0;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

/* ========== Enter Details ========== */
.cm-booking-shell {
  display: flex;
  width: 100%;
  min-height: 100%;
  position: relative;
}

.cm-booking-shell[hidden] {
  display: none !important;
}

.cm-enter-details {
  display: flex;
  width: 100%;
  min-height: 640px;
  background: #fff;
  font-family: var(--cm-font);
}

.cm-details-sidebar {
  width: 320px;
  flex-shrink: 0;
  border-right: 1px solid var(--cm-border);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  min-height: 640px;
}

.cm-details-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #bfdbfe;
  background: #fff;
  color: var(--cm-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 0;
}

.cm-details-back:hover {
  background: #eff6ff;
}

.cm-details-back svg {
  width: 20px;
  height: 20px;
}

.cm-details-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 18px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.cm-details-host {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--cm-text-muted);
  font-weight: 500;
}

.cm-details-title {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--cm-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cm-details-heading {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--cm-text);
  letter-spacing: -0.02em;
}

.cm-details-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.cm-details-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--cm-text-muted);
}

.cm-details-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #a0a8b4;
  margin-top: 1px;
}

.cm-details-form-wrap {
  flex: 1;
  padding: 28px 36px 32px;
}

.cm-details-form {
  display: grid;
  gap: 16px;
  max-width: 420px;
}

.cm-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--cm-text);
  font-weight: 600;
}

.cm-field em {
  color: #ef4444;
  font-style: normal;
}

.cm-field input,
.cm-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
  color: #111827;
  outline: none;
}

.cm-field input:focus,
.cm-field textarea:focus {
  border-color: var(--cm-blue);
  box-shadow: 0 0 0 3px rgba(0, 105, 255, 0.15);
}

.cm-field input.is-invalid {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 1px rgba(217, 48, 37, 0.15);
}

.cm-field-error {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #d93025;
}

.cm-field-error[hidden] {
  display: none !important;
}

.cm-add-guests {
  justify-self: start;
  border: 1px solid var(--cm-blue);
  background: #fff;
  color: var(--cm-blue);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.cm-add-guests:hover {
  background: #eff6ff;
}

.cm-legal {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
  font-weight: 400;
}

.cm-legal a {
  color: var(--cm-blue);
  text-decoration: none;
  font-weight: 600;
}

.cm-legal a:hover {
  text-decoration: underline;
}

.cm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cm-submit-block {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.cm-submit-continue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--cm-blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cm-submit-continue-btn:hover {
  background: #0055d4;
}

.cm-submit-continue-btn:active {
  transform: translateY(1px);
}

.cm-submit-continue-btn:disabled,
.cm-submit-continue-btn.cm-loading {
  opacity: 0.85;
  cursor: default;
  pointer-events: none;
}

.cm-submit-continue-btn.cm-loading .cm-submit-continue-text {
  display: none;
}

.cm-submit-continue-btn.cm-loading .cm-btn-spinner {
  display: block;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.cm-btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid #dadce0;
  border-top-color: #4285f4;
  border-radius: 50%;
  animation: cm-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes cm-spin {
  to {
    transform: rotate(360deg);
  }
}

.cm-login-prompt {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.42);
  animation: cm-prompt-fade 0.18s ease;
}

.cm-login-prompt-panel {
  width: min(100%, 420px);
  animation: cm-prompt-rise 0.22s ease;
}

.cm-login-prompt-heading {
  margin: 0 0 4px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0b1b2b;
}

.cm-login-prompt-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 28px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.cm-login-prompt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.cm-login-prompt-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.cm-login-prompt-field {
  display: grid;
  gap: 6px;
}

.cm-login-prompt-email {
  width: 100%;
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #111827;
  outline: none;
  background: #fff;
}

.cm-login-prompt-email::placeholder {
  color: #9ca3af;
}

.cm-login-prompt-email:focus {
  border-color: var(--cm-blue);
  box-shadow: 0 0 0 3px rgba(0, 105, 255, 0.15);
}

.cm-login-prompt-email.is-invalid {
  border-color: #d93025;
  box-shadow: 0 0 0 1px rgba(217, 48, 37, 0.15);
}

.cm-login-prompt-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--cm-blue);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.cm-login-prompt-continue:hover {
  background: #0055d4;
}

.cm-login-prompt-continue:disabled,
.cm-login-prompt-continue.cm-loading {
  opacity: 0.85;
  pointer-events: none;
}

.cm-login-prompt-continue.cm-loading .cm-login-prompt-continue-text {
  display: none;
}

.cm-login-prompt-continue.cm-loading .cm-btn-spinner {
  display: block;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.cm-login-prompt-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cm-login-prompt-divider::before,
.cm-login-prompt-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.cm-login-prompt-google {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font-family: inherit;
}

.cm-login-prompt-google:hover {
  background: #f9fafb;
}

.cm-login-prompt-google:disabled,
.cm-login-prompt-google.cm-loading {
  opacity: 0.7;
  pointer-events: none;
}

.cm-login-prompt-google-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.cm-login-prompt-google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cm-login-prompt-google-label {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
}

.cm-login-prompt-google.cm-loading .cm-login-prompt-google-icon,
.cm-login-prompt-google.cm-loading .cm-login-prompt-google-label {
  display: none;
}

.cm-login-prompt-google.cm-loading .cm-btn-spinner {
  display: block;
}

@keyframes cm-prompt-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cm-prompt-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== Mobile / responsive ========== */
.cm-mobile {
  width: 100%;
  min-height: 100vh;
  background: #fff;
  display: none;
  flex-direction: column;
}

/* Prefer unified card layout on all viewports (Calendly-like) */
@media (max-width: 767px) {
  .cm-page {
    padding: 0;
    justify-content: flex-start;
    align-items: stretch;
    background: #fff;
    min-height: 100vh;
  }

  /* Hide legacy mobile-only slot screen — use responsive card instead */
  .cm-mobile {
    display: none !important;
  }

  .cm-card,
  .cm-card.is-expanded,
  .cm-card.cm-card-details-mode {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .cm-sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--cm-border);
  }

  .cm-sidebar-body {
    padding: 24px 20px 20px;
  }

  .cm-logo {
    height: 56px;
    max-width: 200px;
    margin-bottom: 16px;
  }

  .cm-event-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .cm-main {
    flex-direction: column;
    min-height: 0;
  }

  .cm-picker {
    padding: 24px 20px 20px;
  }

  .cm-picker-heading {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .cm-time-panel {
    width: 100% !important;
    border-left: 0;
    border-top: 1px solid var(--cm-border);
    padding: 20px;
    min-height: auto;
  }

  .cm-timezone {
    position: relative;
    margin-top: 20px;
  }

  .cm-tz-dropdown {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    bottom: auto;
    top: calc(100% + 8px);
    max-height: min(55vh, 420px);
  }

  .cm-enter-details {
    flex-direction: column;
    min-height: 100vh;
  }

  .cm-details-sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--cm-border);
    min-height: auto;
  }

  .cm-details-form-wrap {
    padding: 24px 20px 32px;
  }

  .cm-card.cm-card-details-mode {
    width: 100% !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1100px) {
  .cm-card,
  .cm-card.is-expanded,
  .cm-card.cm-card-details-mode {
    width: min(100%, 960px);
    min-height: auto;
  }

  .cm-sidebar {
    width: 280px;
  }

  .cm-picker {
    padding: 28px 24px;
  }

  .cm-time-panel {
    width: 260px;
  }
}

.cm-tz-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--cm-text-muted);
}

.cm-tz-option-label {
  flex: 1;
  text-align: left;
  padding-right: 12px;
  line-height: 1.35;
}

.cm-mobile-back {
  padding: 16px 24px;
}

.cm-mobile-back button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.cm-mobile-body {
  padding: 0 24px 32px;
  flex: 1;
}

.cm-mobile-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--cm-text);
}

.cm-mobile-date {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--cm-text-muted);
  text-align: center;
}

.cm-mobile-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cm-mobile-slots .cm-slot-btn {
  height: 48px;
}

.cm-mobile-slots .cm-slot-selected {
  grid-column: 1 / -1;
}

.cm-mobile-next {
  width: 100%;
  margin-top: 24px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--cm-blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cm-mobile-next[hidden] {
  display: none !important;
}

.cm-mobile-powered {
  text-align: center;
  padding: 0 24px 32px;
}

.cm-mobile-powered a {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: none;
}

@media (max-width: 768px) {
  .cm-enter-details {
    flex-direction: column;
  }

  .cm-details-sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--cm-border);
    min-height: auto;
  }
}

/* Compatibility: hide old Tailwind-powered-by below card */
.cm-page > .text-center {
  display: none;
}
