.pcx-booking-widget {
  width: 100%;
}

.pcx-booking-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1.45fr) minmax(240px, 1fr);
  border: 1px solid rgba(20, 49, 75, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 54px rgba(16, 33, 52, 0.12);
  overflow: hidden;
}

.pcx-booking-summary,
.pcx-booking-calendar-panel,
.pcx-booking-sidebar {
  padding: 26px;
}

.pcx-booking-calendar-panel,
.pcx-booking-sidebar {
  border-left: 1px solid rgba(20, 49, 75, 0.08);
}

.pcx-booking-summary {
  display: grid;
  align-content: start;
  gap: 12px;
}

.pcx-booking-title {
  margin: 0 0 6px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.7rem, 2.2vw, 2.3rem);
  line-height: 1.06;
  color: #18344d;
}

.pcx-booking-facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(23, 49, 74, 0.82);
}

.pcx-booking-facts li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.pcx-booking-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(35, 117, 225, 0.08);
  color: #15314b;
  font-size: 0.78rem;
  font-weight: 800;
}

.pcx-booking-month-bar,
.pcx-booking-sidebar-head,
.pcx-booking-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pcx-booking-month-bar {
  margin-bottom: 18px;
}

.pcx-booking-month-label,
.pcx-booking-sidebar-head strong,
.pcx-booking-form-head strong {
  color: #18344d;
  font-size: 1.05rem;
}

.pcx-booking-nav,
.pcx-booking-format-toggle button,
.pcx-booking-slot,
.pcx-booking-submit,
.pcx-booking-back {
  border: 0;
  cursor: pointer;
}

.pcx-booking-nav {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4f6f8;
  color: #233146;
  font-size: 1.5rem;
}

.pcx-booking-weekdays,
.pcx-booking-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.pcx-booking-weekdays {
  margin-bottom: 12px;
  color: rgba(23, 49, 74, 0.76);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.pcx-booking-days {
  min-height: 360px;
}

.pcx-booking-day {
  display: inline-grid;
  place-items: center;
  min-height: 72px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #27384d;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pcx-booking-day.is-available {
  background: #edf0f4;
}

.pcx-booking-day.is-selected {
  background: #3269f5;
  color: #ffffff;
}

.pcx-booking-day.is-other-month {
  opacity: 0.35;
}

.pcx-booking-day.is-disabled {
  pointer-events: none;
}

.pcx-booking-day.is-available:hover {
  border-color: rgba(50, 105, 245, 0.22);
  transform: translateY(-1px);
}

.pcx-booking-format-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 14px;
  background: #f4f6f8;
}

.pcx-booking-format-toggle button {
  min-width: 54px;
  min-height: 38px;
  border-radius: 12px;
  background: transparent;
  color: rgba(23, 49, 74, 0.76);
  font-weight: 700;
}

.pcx-booking-format-toggle button.is-active {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 33, 52, 0.08);
}

.pcx-booking-slot-panel,
.pcx-booking-form {
  margin-top: 16px;
}

.pcx-booking-timezone {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.pcx-booking-timezone-field {
  display: grid;
  gap: 8px;
}

.pcx-booking-timezone-field span {
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(23, 49, 74, 0.82);
}

.pcx-booking-timezone-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(20, 49, 75, 0.14);
  border-radius: 16px;
  background: #ffffff;
  color: #18344d;
  font: inherit;
}

.pcx-booking-timezone-note {
  margin: 0;
  color: rgba(23, 49, 74, 0.66);
  font-size: 0.86rem;
  line-height: 1.5;
}

.pcx-booking-slot-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.pcx-booking-slot {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(20, 49, 75, 0.14);
  color: #27384d;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.pcx-booking-slot:hover {
  box-shadow: inset 0 0 0 1px rgba(50, 105, 245, 0.4);
}

.pcx-booking-slot.is-selected {
  background: #3269f5;
  color: #ffffff;
  box-shadow: none;
}

.pcx-booking-form {
  display: grid;
  gap: 16px;
}

.pcx-booking-form-grid {
  display: grid;
  gap: 12px;
}

.pcx-booking-form label {
  display: grid;
  gap: 8px;
}

.pcx-booking-form label span {
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(23, 49, 74, 0.82);
}

.pcx-booking-form input,
.pcx-booking-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(20, 49, 75, 0.14);
  border-radius: 16px;
  background: #ffffff;
  color: #18344d;
  font: inherit;
}

.pcx-booking-form textarea {
  resize: vertical;
}

.pcx-booking-back {
  padding: 0;
  background: transparent;
  color: rgba(23, 49, 74, 0.72);
  font-weight: 700;
}

.pcx-booking-submit {
  min-height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1b4d91 0%, #0f376d 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(35, 117, 225, 0.22);
}

.pcx-booking-status {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(23, 49, 74, 0.78);
}

.pcx-booking-status.is-success {
  color: #0f684c;
}

.pcx-booking-status.is-error {
  color: #8b2f33;
}

.pcx-booking-empty {
  padding: 18px;
  border-radius: 18px;
  background: #f5f7fa;
  color: rgba(23, 49, 74, 0.72);
  line-height: 1.55;
}

.pcx-booking-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 1200px) {
  .pcx-booking-shell {
    grid-template-columns: 1fr;
  }

  .pcx-booking-calendar-panel,
  .pcx-booking-sidebar {
    border-left: 0;
    border-top: 1px solid rgba(20, 49, 75, 0.08);
  }
}

@media (max-width: 720px) {
  .pcx-booking-summary,
  .pcx-booking-calendar-panel,
  .pcx-booking-sidebar {
    padding: 18px;
  }

  .pcx-booking-day {
    min-height: 58px;
    border-radius: 14px;
  }

  .pcx-booking-slot {
    min-height: 52px;
    border-radius: 14px;
  }

  .pcx-booking-format-toggle button {
    min-width: 48px;
  }
}
