/*
 * cp-booking.css — CharanParan Class Booking App Styles
 *
 * Pixel-accurate implementation matching Adobe Illustrator SVG & visual JPG guides
 * for Desktop and Mobile (responsive).
 *
 * Design System Specifications:
 *   Fonts:
 *     - 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Noto Sans JP', sans-serif
 *     - W2 (Extra Light, font-weight: 200): Sub-labels, ID email, list dates/times, checkboxes, 体験
 *     - W3 (Light, font-weight: 300): Table headers, time slot labels, 現在 / 予約確定後 labels
 *     - W4 (Regular, font-weight: 400): Action buttons (ログイン, ログアウト, 変更)
 *     - W5 (Medium, font-weight: 500): Day numbers, class numbers (1, 2, 3), section titles, legend labels, point values
 *     - W6 (Bold, font-weight: 600): Month title (2026年11月 Nov. 2026), 送信 button
 *
 *   Exact Colors:
 *     - Primary Navy Button      : #3d4061 (Hover: #2f3250, Disabled: #5c5d66)
 *     - Secondary Surface / Input: #f1f1f1
 *     - Secondary Button Text    : #4d4d4d (for ログアウト)
 *     - Muted Label Text         : #4d4d4d (for 現在, 予約確定後)
 *     - Points Current Value     : #2a3b93 (deep blue)
 *     - Points After Value       : #d9292d (bright red)
 *     - Slot: Available          : #ffffff (white, 0.5px line border on swatch)
 *     - Slot: Closed (開講なし)   : #e5e5e5
 *     - Slot: Unavailable (予約不可): #ffe3e3
 *     - Slot: Pending (予約申請中) : #fff1c9 bg + #7a4400 text
 *     - Slot: Confirmed (予約確定) : #d5f0df bg + #005521 text
 *     - Scrollbar Thumb          : #989898 (stroke 0.5px solid var(--cp-line))
 *     - Text Color               : #000000
 *     - 50% Gray Line Color      : #808080 (for all strokes/borders in UI)
 *     - Light Blue Time Col (Mob): #e4f2f7
 *
 *   All styles are strictly scoped under #cp-booking-app with zero rounded corners.
 */

:root {
  --cp-navy: #3d4061;
  --cp-navy-hover: #2f3250;
  --cp-navy-disabled: #5c5d66;
  --cp-gray-bg: #f1f1f1;
  --cp-gray-text: #4d4d4d;
  --cp-blue-point: #2a3b93;
  --cp-red-point: #d9292d;
  --cp-slot-available: #ffffff;
  --cp-slot-closed: #e5e5e5;
  --cp-slot-unavailable: #ffe3e3;
  --cp-slot-pending: #fff1c9;
  --cp-slot-pending-text: #7a4400;
  --cp-slot-confirmed: #d5f0df;
  --cp-slot-confirmed-text: #005521;
  --cp-thumb: #989898;
  --cp-black: #000000;
  --cp-line: #808080; /* 50% gray for all black lines in UI */
  --cp-blue-time-col: #e4f2f7; /* Light blue for mobile time column */
}

/* ── Container ───────────────────────────────────────────────────────────── */
#cp-booking-app,
.cp-booking-app {
  font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: var(--cp-black);
  background: #ffffff;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cp-booking-app *,
.cp-booking-app *::before,
.cp-booking-app *::after {
  box-sizing: border-box;
  border-radius: 0 !important; /* Strict requirement: no rounded corners */
}

/* ── Top Bar (Desktop scaled to 65%) ─────────────────────────────────────── */
.cp-top-bar {
  width: 100%;
  min-height: 23px;
  margin-bottom: 9.5px;
  display: block;
}

/* Logged-OUT state */
.cp-login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.cp-login-fields {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: 23px;
}

/* On desktop, .cp-pass-btn-row participates directly in the single flex row */
.cp-pass-btn-row {
  display: contents;
}

.cp-field-group {
  display: flex;
  align-items: center;
}

.cp-id-group {
  margin-right: 21.5px;
}

.cp-pass-group {
  margin-right: 22.8px;
}

.cp-label {
  font-size: 13.7px !important;
  font-weight: 200 !important;
  color: var(--cp-black) !important;
  white-space: nowrap !important;
  line-height: 23px !important;
  height: 23px !important;
  letter-spacing: 0 !important;
  margin: 0 9px 0 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.cp-pass-group .cp-label {
  margin-right: 14.3px !important;
}

/* High-specificity input styles (Desktop: 65% size) */
#cp-booking-app .cp-input,
#cp-booking-app input.cp-input,
.cp-booking-app input.cp-input,
#cp-booking-app input[type="email"],
#cp-booking-app input[type="password"] {
  font-family: inherit !important;
  font-size: 13.7px !important;
  font-weight: 200 !important;
  color: var(--cp-black) !important;
  background: var(--cp-gray-bg) !important;
  height: 23px !important;
  min-height: 23px !important;
  max-height: 23px !important;
  outline: none !important;
  padding: 0 6.5px !important;
  border: 1px solid var(--cp-line) !important;
  line-height: 21px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border-radius: 0 !important;
  vertical-align: middle !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

#cp-booking-app .cp-id-group .cp-input,
#cp-booking-app .cp-id-group input.cp-input {
  width: 262.5px !important;
  border: 1px solid var(--cp-line) !important;
}

#cp-booking-app .cp-pass-group .cp-input,
#cp-booking-app .cp-pass-group input.cp-input {
  width: 169px !important;
  border: 1px solid var(--cp-line) !important;
}

.cp-btn {
  font-family: inherit !important;
  border: none !important;
  cursor: pointer !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  user-select: none !important;
  transition: background 0.12s !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border-radius: 0 !important;
  vertical-align: middle !important;
}

/* Desktop Login Button: font-size reduced by 90% (14px), font-weight doubled (800) */
#cp-booking-app .cp-btn-login,
.cp-booking-app .cp-btn-login {
  width: 78px !important;
  height: 23px !important;
  min-height: 23px !important;
  max-height: 23px !important;
  background: var(--cp-navy) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border: 0.5px solid var(--cp-line) !important;
  padding: 0 !important;
  line-height: 21px !important;
}

.cp-btn-login:hover:not(:disabled) {
  background: var(--cp-navy-hover) !important;
}

.cp-btn-login:active:not(:disabled) {
  background: #1b1d2e !important;
  transform: scale(0.96) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.cp-btn-login:disabled {
  background: var(--cp-navy-disabled) !important;
  cursor: not-allowed !important;
}

/* Logged-IN state (Desktop: 65% size) */
.cp-user-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 23px;
  width: 100%;
}

/* Row 1: Logout + ID */
.cp-user-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 23px;
}

.cp-btn-logout {
  width: 97.4px !important;
  height: 23px !important;
  background: var(--cp-gray-bg) !important;
  color: var(--cp-gray-text) !important;
  font-size: 15.6px !important;
  font-weight: 400 !important;
  border: 0.5px solid var(--cp-line) !important;
  line-height: 21px !important;
  padding: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.1s ease, transform 0.05s ease;
}

.cp-btn-logout:hover {
  background: #e4e4e4 !important;
}

.cp-btn-logout:active {
  background: #b8b8b8 !important;
  color: #000000 !important;
  transform: scale(0.96) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.cp-id-display {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.cp-id-display .cp-label {
  font-size: 13.7px !important;
  font-weight: 200 !important;
  color: var(--cp-black) !important;
  margin-right: 2.6px !important;
}

.cp-user-id-text {
  font-size: 13.7px;
  font-weight: 200;
  color: var(--cp-black);
  line-height: 23px;
}

/* Desktop: pw-change-area sits on the right of the same line */
.cp-pw-change-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cp-pw-input-row,
.cp-pw-action-row {
  display: contents;
}

.cp-pw-label {
  font-size: 13.7px;
  font-weight: 200;
  margin-right: 0;
  white-space: nowrap;
}

#cp-booking-app .cp-pw-input,
.cp-booking-app .cp-pw-input {
  width: 169px !important;
  height: 23px !important;
  background: var(--cp-gray-bg) !important;
  border: 1px solid var(--cp-line) !important;
  margin-right: 6px !important;
  font-size: 13.7px !important;
  line-height: 21px !important;
  padding: 0 6.5px !important;
  box-sizing: border-box !important;
}

/* Custom Checkbox */
.cp-checkbox-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
  margin-right: 0;
  flex-shrink: 0;
  gap: 5px;
}

.cp-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.cp-custom-checkbox {
  width: 16px;
  height: 16px;
  background: var(--cp-gray-bg);
  border: 1px solid var(--cp-line);
  display: inline-block;
  margin-right: 0;
  flex-shrink: 0;
  position: relative;
}

.cp-checkbox-label input[type="checkbox"]:checked + .cp-custom-checkbox::after {
  content: '';
  position: absolute;
  top: 44%;
  left: 50%;
  width: 5px;
  height: 10px;
  border: solid var(--cp-black);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -55%) rotate(45deg);
  box-sizing: border-box;
}

.cp-checkbox-text {
  font-size: 15.6px;
  font-weight: 200;
  color: var(--cp-black);
  line-height: 23px;
  white-space: nowrap;
}

#cp-booking-app .cp-btn-change,
.cp-booking-app .cp-btn-change {
  width: 65px !important;
  height: 23px !important;
  background: var(--cp-navy) !important;
  color: #ffffff !important;
  font-size: 15.6px !important;
  font-weight: 400 !important;
  border: 0.5px solid var(--cp-line) !important;
  line-height: 21px !important;
}

.cp-btn-change:hover:not(:disabled) {
  background: var(--cp-navy-hover) !important;
}

.cp-btn-change:active:not(:disabled) {
  background: #1b1d2e !important;
  transform: scale(0.96) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.cp-btn-change:disabled {
  background: var(--cp-navy-disabled) !important;
  cursor: not-allowed !important;
}

.cp-error-msg {
  color: #c0392b;
  font-size: 13px;
  font-weight: 300;
  margin-top: 3px;
}

.cp-status-msg {
  font-size: 13px;
  font-weight: 300;
  margin-left: 8px;
  white-space: nowrap;
}

/* ── Calendar Table Wrapper ──────────────────────────────────────────────── */
.cp-calendar-wrap {
  width: 100%;
  position: relative;
  margin-top: 0;
}

/*
 * Persistent Table Frame:
 * The outer container retains 1px solid border on ALL 4 SIDES permanently.
 * Scrolling horizontally inside will NEVER hide the left or right side lines!
 */
.cp-calendar-scroll-outer {
  width: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--cp-line) !important;
  box-sizing: border-box;
}

.cp-calendar-scroll-inner {
  overflow-x: scroll;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.cp-calendar-scroll-inner::-webkit-scrollbar {
  display: none;
}

/* Table: borders provided by the persistent frame & cell borders */
.cp-calendar-table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  width: max-content !important;
  margin: 0 !important;
  border: none !important;
  background: #ffffff;
}

/* Fixed Time Header & Time Labels (Desktop: 180px width, 80px header height, 22.5px row height) */
.cp-time-header {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  height: 80px !important;
  background: #ffffff;
  border-left: 1px solid var(--cp-line) !important;
  border-right: 0.9px solid var(--cp-line) !important;
  border-bottom: 0.3px solid var(--cp-line) !important;
  position: sticky;
  left: 0;
  z-index: 20;
  padding: 0 !important;
}

.cp-time-col {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  height: 22.5px !important;   /* 75% of 30px */
  font-size: 13.5px !important;
  font-weight: 300 !important;
  color: var(--cp-black);
  text-align: left;
  vertical-align: middle;
  padding-left: 6.3px;
  background: #ffffff;
  border-left: 1px solid var(--cp-line) !important;
  border-right: 0.9px solid var(--cp-line) !important;
  border-bottom: 0.3px solid var(--cp-line) !important;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 10;
  line-height: 22.5px !important;
}

/* "講座カレンダー" completely removed on all devices */
.cp-desktop-time-header {
  display: none !important;
}

/* Desktop shows full time text, mobile shows shortened text */
.cp-time-desktop { display: inline; }
.cp-time-mobile  { display: none; }

/* Day Column Width (Desktop: 70% of 50px = 35px) */
.cp-day-col,
th.cp-date-header,
td.cp-slot-cell {
  width: 35px !important;
  min-width: 35px !important;
  max-width: 35px !important;
  box-sizing: border-box !important;
}

/* Month row (Desktop: 80% height = 32px, month name font 90% of 19.2px = 17.3px) */
.cp-month-row th {
  height: 32px !important;
  background: #ffffff;
  border-bottom: 0.4px solid var(--cp-line) !important;
  border-right: 0.2px solid var(--cp-line) !important;
  text-align: left;
  vertical-align: middle;
  padding: 0 4px;
}

.cp-month-label-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 17.3px !important; /* 90% of 19.2px */
  font-weight: 600 !important;
  color: var(--cp-black);
  letter-spacing: 0;
  position: sticky;
  left: 190px;
  z-index: 5;
}

.cp-month-label-jp {
  font-weight: 600 !important;
}

.cp-month-label-en {
  font-weight: 600 !important;
}

/* Date + Day-of-week row (Desktop: 80% height = 48px, 90% font = 16.2px) */
.cp-date-header {
  height: 48px !important;
  background: #ffffff;
  border-bottom: 0.3px solid var(--cp-line) !important;
  border-right: 0.2px solid var(--cp-line) !important;
  text-align: center;
  vertical-align: middle;
  padding: 0 !important;
}

.cp-date-num {
  display: block;
  font-size: 16.2px !important;
  font-weight: 500;
  color: var(--cp-black);
  line-height: 1.15;
}

.cp-date-dow {
  display: block;
  font-size: 16.2px !important;
  font-weight: 200;
  color: var(--cp-black);
  line-height: 1.15;
}

/* Slot Cells (Desktop: 75% height = 22.5px) */
.cp-slot-cell {
  height: 22.5px !important;
  border-bottom: 0.3px solid var(--cp-line) !important;
  border-right: 0.2px solid var(--cp-line) !important;
  text-align: center;
  vertical-align: middle;
  padding: 0 !important;
  font-size: 13.5px;
  user-select: none;
}

/* Slot status backgrounds */
.cp-slot-available {
  background: var(--cp-slot-available);
}

.cp-slot-available.cp-slot-editable {
  cursor: pointer;
}

.cp-slot-available.cp-slot-editable:hover {
  background: #f7f9ff;
}

.cp-slot-gray {
  background: var(--cp-slot-closed);
  cursor: default;
}

.cp-slot-red {
  background: var(--cp-slot-unavailable);
  cursor: default;
}

.cp-slot-yellow {
  background: var(--cp-slot-pending);
  color: var(--cp-slot-pending-text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.cp-slot-green {
  background: var(--cp-slot-confirmed);
  color: var(--cp-slot-confirmed-text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.cp-slot-num {
  display: block;
  font-size: 13.5px !important;
  font-weight: 500;
  line-height: 22.5px !important;
}

.cp-slot-label {
  display: block;
  font-size: 13.5px !important;
  font-weight: 200;
  color: var(--cp-slot-confirmed-text);
  line-height: 22.5px !important;
}

.cp-slot-locked {
  cursor: default !important;
}

/* ── Horizontal Scrollbar below table (Desktop: 180px margin-left) ───────── */
.cp-scroll-bar-track {
  height: 20px;
  background: var(--cp-gray-bg);
  border: 1px solid var(--cp-line);
  border-top: none;
  margin-left: 180px; /* Aligned with scrollable day columns */
  width: calc(100% - 180px);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.cp-scroll-bar-thumb {
  height: 16px;
  top: 1px;
  background: var(--cp-thumb);
  border: 0.5px solid var(--cp-line);
  position: absolute;
  left: 0;
  cursor: grab;
  min-width: 40px;
}

.cp-scroll-bar-thumb:active {
  cursor: grabbing;
}

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

.cp-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #d0d4e0;
  border-top-color: var(--cp-navy);
  animation: cp-spin 0.8s linear infinite;
}

@keyframes cp-spin {
  to { transform: rotate(360deg); }
}

/* ── Public Legend (Logged-out, Desktop: 60% size & distances) ───────────── */
.cp-public-legend {
  margin-top: 31.7px;
  width: 100%;
}

.cp-public-legend .cp-legend-card {
  margin-left: 99.7px; /* 60% of 166.1px */
  width: 128px;        /* 60% of 213.4px */
  min-height: 76.3px;  /* 60% of 127.2px */
  border: 0.8px solid var(--cp-line);
  background: #ffffff;
  padding: 7.2px 8.4px 8.4px;
}

.cp-box-title {
  font-size: 14.4px;   /* 60% of 24px */
  font-weight: 500;
  color: var(--cp-black);
  margin-bottom: 7.2px;
  letter-spacing: 0;
  line-height: 1.2;
}

.cp-public-legend .cp-legend-title {
  margin-bottom: 8.4px;
}

.cp-legend-list {
  display: flex;
  flex-direction: column;
  gap: 7.8px;          /* 60% of 13px */
}

.cp-legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cp-legend-text {
  font-size: 12.6px;   /* 60% of 21px */
  font-weight: 500;
  color: var(--cp-black);
  line-height: 15px;
}

.cp-legend-swatch {
  width: 30px;         /* 60% of 50px */
  height: 15px;        /* 60% of 25px */
  flex-shrink: 0;
}

.cp-swatch-available   { background: var(--cp-slot-available); border: 0.5px solid var(--cp-line); }
.cp-swatch-pending     { background: var(--cp-slot-pending); border: none; }
.cp-swatch-confirmed   { background: var(--cp-slot-confirmed); border: none; }
.cp-swatch-unavailable { background: var(--cp-slot-unavailable); border: none; }
.cp-swatch-closed      { background: var(--cp-slot-closed); border: none; }

/* ── Info Panel (Logged-in PC Layout: 60% size & distances) ──────────────── */
.cp-info-panel {
  margin-top: 31.7px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

/* 1. Points Box */
.cp-points-box {
  width: 90px;
  flex-shrink: 0;
}

/* Desktop points title above the card */
.cp-points-title {
  font-size: 14.4px;
  font-weight: 500;
  color: var(--cp-black);
  margin-bottom: 6px;
  line-height: 1.2;
  display: block;
}

.cp-points-card {
  width: 90px;
  height: 123px;
  background: var(--cp-gray-bg);
  border: 0.8px solid var(--cp-line) !important;
  box-sizing: border-box;
  padding: 10.8px 6px 8.4px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: center;
}

.cp-points-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cp-points-label {
  font-size: 12.6px;
  font-weight: 300;
  color: var(--cp-gray-text);
  line-height: 1.2;
  margin-bottom: 1px;
}

.cp-points-val {
  font-size: 19.2px;
  font-weight: 500;
  line-height: 1.1;
  display: block;
}

.cp-points-current {
  color: var(--cp-blue-point);
}

.cp-points-after {
  color: var(--cp-red-point);
}

/* 2. Legend Box */
.cp-legend-box {
  width: 128px;
  flex-shrink: 0;
}

.cp-legend-box .cp-legend-title {
  font-size: 14.4px !important;
  font-weight: 500 !important;
  color: var(--cp-black) !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  display: block !important;
}

.cp-legend-box .cp-legend-card {
  width: 128px;
  height: 123px;
  border: 0.8px solid var(--cp-line) !important;
  background: #ffffff;
  padding: 7.2px 8.4px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 3. Confirmed Bookings Box */
#cp-booking-app .cp-confirmed-box {
  flex: 1;
  min-width: 180px;
  max-width: 310px;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#cp-booking-app .cp-booking-list-card {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#cp-booking-app ol.cp-booking-list,
.cp-booking-app ol.cp-booking-list,
#cp-booking-app .cp-booking-list,
.cp-booking-list {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-inline-start: 0 !important;
  padding-inline-end: 0 !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

#cp-booking-app .cp-bk-item,
.cp-booking-app .cp-bk-item {
  height: 26px !important;
  min-height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 8px !important;
  font-size: 12.6px !important;
  font-weight: 200 !important;
  color: var(--cp-black) !important;
  line-height: 26px !important;
  white-space: nowrap !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 12px !important;
}

#cp-booking-app .cp-bk-confirmed {
  background: var(--cp-slot-confirmed) !important;
  color: var(--cp-slot-confirmed-text) !important;
}

#cp-booking-app .cp-bk-pending {
  background: var(--cp-slot-pending) !important;
  color: var(--cp-slot-pending-text) !important;
}

#cp-booking-app .cp-confirmed-box .cp-bk-empty {
  height: 26px !important;
  background: var(--cp-slot-confirmed) !important;
  border: none !important;
}

#cp-booking-app .cp-pending-box .cp-bk-empty {
  height: 26px !important;
  background: var(--cp-slot-pending) !important;
  border: none !important;
}

#cp-booking-app .cp-bk-num {
  width: auto !important;
  flex-shrink: 0 !important;
  font-size: 12.6px !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

#cp-booking-app .cp-bk-date {
  width: auto !important;
  flex-shrink: 0 !important;
  font-size: 12.6px !important;
  font-weight: 200 !important;
  margin: 0 !important;
}

#cp-booking-app .cp-bk-time {
  width: auto !important;
  flex: none !important;
  font-size: 12.6px !important;
  font-weight: 200 !important;
  margin: 0 !important;
}

#cp-booking-app .cp-bk-label {
  width: auto !important;
  flex-shrink: 0 !important;
  font-size: 12.6px !important;
  font-weight: 200 !important;
  color: var(--cp-slot-confirmed-text) !important;
  margin-left: 2px !important;
}

/* 4. Pending Bookings Box */
#cp-booking-app .cp-pending-box {
  flex: 1;
  min-width: 180px;
  max-width: 310px;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* 5. Submit Box */
.cp-submit-box {
  width: 129px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 1px;
}

.cp-submit-row {
  display: contents;
}

.cp-submit-check-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  margin-right: 0;
  padding-left: 0;
  gap: 6px;
  cursor: pointer;
}

.cp-submit-check-label .cp-custom-checkbox {
  width: 16px;
  height: 16px;
}

.cp-submit-check-label .cp-checkbox-text {
  font-size: 14.4px;
  font-weight: 200;
  color: var(--cp-black);
}

/* Desktop list titles above each booking list */
#cp-booking-app .cp-list-title {
  font-size: 14.4px !important;
  font-weight: 500 !important;
  color: var(--cp-black) !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.cp-btn-submit {
  width: 129px !important;
  height: 33px !important;
  font-size: 19.2px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  letter-spacing: 0.05em !important;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.08s ease, box-shadow 0.1s ease !important;
}

/* Inactive submit button: soft slate-gray */
.cp-btn-submit.cp-btn-inactive {
  background: #b0b4c3 !important;
  color: #ffffff !important;
  opacity: 0.75 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.cp-btn-submit.cp-btn-inactive:active {
  background: #9fa3b2 !important;
  transform: scale(0.96) !important;
}

/* Active/Ready submit button: navy */
.cp-btn-submit.cp-btn-ready,
.cp-btn-submit:not(.cp-btn-inactive):not(:disabled) {
  background: var(--cp-navy) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  cursor: pointer !important;
}

.cp-btn-submit.cp-btn-ready:hover,
.cp-btn-submit:not(.cp-btn-inactive):not(:disabled):hover {
  background: var(--cp-navy-hover) !important;
}

.cp-btn-submit.cp-btn-ready:active,
.cp-btn-submit:not(.cp-btn-inactive):not(:disabled):active {
  background: #1b1d2e !important;
  transform: scale(0.96) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.cp-btn-submit:disabled {
  background: #b0b4c3 !important;
  opacity: 0.65 !important;
  cursor: not-allowed !important;
}

/* ── Mobile Responsive Layout (Screens <= 1024px) ────────────────────────── */
@media (max-width: 1024px) {
  #cp-booking-app,
  .cp-booking-app {
    max-width: 600px;
    padding: 0 10px;
  }

  /* Top bar: 2-row layout without overflowing the content width */
  .cp-top-bar {
    min-height: auto;
    margin-bottom: 11px;
    width: 100%;
    box-sizing: border-box;
  }

  .cp-login-fields {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 7px 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Row 1: ID label + input filling 100% of row width */
  .cp-id-group {
    width: 100% !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 24.5px !important;
    box-sizing: border-box !important;
  }

  .cp-id-group .cp-label {
    font-size: 18px !important; /* Font size unchanged */
    margin-right: 8px !important;
    height: 24.5px !important;
    line-height: 24.5px !important;
    flex-shrink: 0 !important;
  }

  #cp-booking-app .cp-id-group .cp-input,
  #cp-booking-app .cp-id-group input.cp-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 24.5px !important;
    min-height: 24.5px !important;
    max-height: 24.5px !important;
    font-size: 16px !important; /* Font size unchanged */
    padding: 0 6px !important;
    line-height: 22.5px !important;
    border: 1px solid var(--cp-line) !important;
    box-sizing: border-box !important;
  }

  /* Row 2: パスワード label + input + ログイン button aligned to row 1 right edge */
  .cp-pass-btn-row {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 24.5px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .cp-pass-group {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    height: 24.5px !important;
    box-sizing: border-box !important;
  }

  .cp-pass-group .cp-label {
    font-size: 18px !important; /* Font size unchanged */
    margin-right: 6px !important;
    height: 24.5px !important;
    line-height: 24.5px !important;
    flex-shrink: 0 !important;
  }

  #cp-booking-app .cp-pass-group .cp-input,
  #cp-booking-app .cp-pass-group input.cp-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 24.5px !important;
    min-height: 24.5px !important;
    max-height: 24.5px !important;
    font-size: 16px !important; /* Font size unchanged */
    padding: 0 6px !important;
    line-height: 22.5px !important;
    border: 1px solid var(--cp-line) !important;
    box-sizing: border-box !important;
  }

  /* Mobile Login Button: width 150% (95px), font-size 90% (16.2px), font-weight 150% (600) */
  #cp-booking-app .cp-btn-login,
  .cp-booking-app .cp-btn-login {
    width: 95px !important;      /* 150% of 63px */
    height: 24.5px !important;
    min-height: 24.5px !important;
    max-height: 24.5px !important;
    font-size: 16.2px !important; /* 90% of 18px */
    font-weight: 600 !important;  /* 150% of 400 */
    flex-shrink: 0 !important;
    line-height: 22.5px !important;
    border: 0.5px solid var(--cp-line) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* Logged-in bar on mobile */
  .cp-user-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    height: auto !important;
    gap: 8px !important;
    width: 100% !important;
  }

  /* Row 1: Logout button and ID side-by-side on the same line */
  .cp-user-top-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    height: 24.5px !important;
  }

  .cp-user-top-row .cp-btn-logout {
    width: 80px !important;
    height: 24.5px !important;
    font-size: 14px !important;
    line-height: 23px !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
  }

  .cp-user-top-row .cp-id-display {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .cp-user-top-row .cp-id-display .cp-label {
    font-size: 14px !important;
    margin-right: 3px !important;
    flex-shrink: 0 !important;
  }

  .cp-user-top-row .cp-user-id-text {
    font-size: 13.5px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Password change area on mobile: 2 separate lines */
  .cp-pw-change-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-left: 0 !important;
    gap: 6px !important;
  }

  /* Line 1 of pw change: label + wide input field (150% width) */
  .cp-pw-input-row {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .cp-pw-label {
    font-size: 14px !important;
    font-weight: 200 !important;
    margin-right: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  #cp-booking-app .cp-pw-input,
  .cp-booking-app .cp-pw-input {
    width: 100% !important;
    flex: 1 !important;
    min-width: 120px !important;
    height: 24.5px !important;
    min-height: 24.5px !important;
    max-height: 24.5px !important;
    font-size: 13.5px !important;
    padding: 0 6px !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Line 2 of pw change: checkbox (確認済み) + 変更 button on the right */
  .cp-pw-action-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .cp-pw-check-label {
    margin-right: 0 !important;
    gap: 6px !important;
  }

  .cp-pw-check-label .cp-checkbox-text {
    font-size: 14px !important;
  }

  #cp-booking-app .cp-btn-change,
  .cp-booking-app .cp-btn-change {
    width: 60px !important;
    height: 24.5px !important;
    min-height: 24.5px !important;
    max-height: 24.5px !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    line-height: 22.5px !important;
    padding: 0 !important;
  }

  /* ── Calendar table on mobile ── */
  /* Persistent side lines on mobile */
  .cp-calendar-scroll-outer {
    border: 0.6px solid var(--cp-line) !important;
  }

  .cp-calendar-table {
    border: none !important;
  }

  /* Switch to shorter mobile time text, hide full desktop text */
  .cp-time-desktop     { display: none !important; }
  .cp-time-mobile      { display: inline !important; }

  /* Hide the "講座カレンダー" header text on mobile */
  .cp-desktop-time-header { display: none !important; }

  /* Hide English month names on mobile (only show 2026年11月) */
  .cp-month-label-en {
    display: none !important;
  }

  .cp-month-label-jp {
    font-size: 16px !important;
    font-weight: 600 !important;
  }

  /* Top-left empty header cell */
  .cp-time-header {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 90px !important; /* 90% of 100px */
    font-size: 17px !important;
    padding-left: 4px;
    background: #ffffff !important;
    border-left: 0.6px solid var(--cp-line) !important;
    border-right: 0.9px solid var(--cp-line) !important;
    border-bottom: 0.2px solid var(--cp-line) !important;
  }

  /*
   * Time column on mobile:
   * 1. Row height reduced to 65% (23px)
   * 2. Background color changed to light blue (#e4f2f7)
   * 3. Left border keeps visible while scrolling
   */
  .cp-time-col {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 23px !important;     /* 65% of 35px ≈ 23px */
    line-height: 23px !important;
    font-size: 15px !important;
    font-weight: 300 !important;
    padding-left: 4px;
    background: var(--cp-blue-time-col) !important; /* #e4f2f7 */
    border-left: 0.6px solid var(--cp-line) !important;
    border-right: 0.9px solid var(--cp-line) !important;
    border-bottom: 0.2px solid var(--cp-line) !important;
  }

  /* Month and week day row: height 90% (36px + 54px = 90px), day columns width 80% (40px) */
  .cp-month-row th {
    height: 36px !important;     /* 90% of 40px */
  }

  .cp-month-label-text {
    left: 98px;
    font-size: 16px !important;
    padding-left: 4px;
    line-height: 36px !important;
  }

  .cp-date-header {
    height: 54px !important;     /* 90% of 60px */
    border-bottom: 0.2px solid var(--cp-line) !important;
    border-right: 0.2px solid var(--cp-line) !important;
  }

  /* Day Column Width: 80% of 50px = 40px */
  .cp-day-col,
  th.cp-date-header,
  td.cp-slot-cell {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
  }

  /* Slot cells row height: 65% (23px) */
  .cp-slot-cell {
    height: 23px !important;
    border-bottom: 0.2px solid var(--cp-line) !important;
    border-right: 0.2px solid var(--cp-line) !important;
    font-size: 14px !important;
  }

  .cp-slot-num,
  .cp-slot-label {
    line-height: 23px !important;
    font-size: 14px !important;
  }

  .cp-scroll-bar-track {
    margin-left: 90px;
    width: calc(100% - 90px);
    display: block;
    border: 0.6px solid var(--cp-line) !important;
    border-top: none !important;
  }

  /* ── Public Legend (Mobile): Each color sample close to its label ───────── */
  .cp-public-legend {
    margin-top: 24px;
  }

  .cp-public-legend .cp-legend-card {
    margin-left: 0;
    width: 100%;
    border: none !important;
    padding: 0;
    min-height: auto;
  }

  .cp-public-legend .cp-box-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
  }

  .cp-public-legend .cp-legend-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 8px;
    row-gap: 0;
  }

  /* Color sample placed right next to label (gap: 6px) to avoid confusion */
  .cp-public-legend .cp-legend-item {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
  }

  .cp-public-legend .cp-legend-text {
    font-size: clamp(12px, 3.4vw, 15px);
    font-weight: 500;
    white-space: nowrap !important;
  }

  .cp-public-legend .cp-legend-swatch {
    width: 32px;
    height: 18px;
    flex-shrink: 0;
    margin-left: 0;
  }

  /* ── Info Panel (Mobile) ── */
  .cp-info-panel {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Mobile Legend: 3-col grid */
  .cp-legend-box {
    width: 100%;
    order: 1;
  }

  .cp-legend-box .cp-legend-card {
    width: 100%;
    height: auto;
    border: none !important;
    padding: 0;
  }

  .cp-legend-box .cp-box-title {
    display: none;
  }

  .cp-legend-box .cp-legend-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 10px;
    column-gap: 8px;
  }

  .cp-legend-box .cp-legend-item {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
  }

  .cp-legend-box .cp-legend-text {
    font-size: clamp(12px, 3.4vw, 15px);
    font-weight: 500;
    white-space: nowrap !important;
  }

  .cp-legend-box .cp-legend-swatch {
    width: 32px;
    height: 18px;
    flex-shrink: 0;
    margin-left: 0;
  }

  .cp-legend-item-available   { grid-column: 1; grid-row: 1; }
  .cp-legend-item-unavailable { grid-column: 2; grid-row: 1; }
  .cp-legend-item-closed      { grid-column: 3; grid-row: 1; }
  .cp-legend-item-pending     { grid-column: 1; grid-row: 2; }
  .cp-legend-item-confirmed   { grid-column: 2; grid-row: 2; }

  /* Points on mobile: row with label on left, card on right */
  #cp-booking-app .cp-points-box {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    order: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  #cp-booking-app .cp-points-title {
    width: 85px !important;
    min-width: 85px !important;
    max-width: 85px !important;
    flex: 0 0 85px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--cp-black) !important;
    line-height: 46px !important;
    height: 46px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  #cp-booking-app .cp-points-card {
    flex: 1 1 0px !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    border: 0.5px solid var(--cp-line) !important;
    background: var(--cp-gray-bg) !important;
    padding: 0 12px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    box-sizing: border-box !important;
  }

  .cp-points-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .cp-points-label {
    margin-bottom: 0 !important;
    font-size: 13.5px !important;
    font-weight: 300 !important;
    color: var(--cp-gray-text) !important;
    line-height: 1 !important;
  }

  .cp-points-val {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  }

  /* Confirmed Box on mobile: row with label on left, list on right (same exact width as ポイント box) */
  #cp-booking-app .cp-confirmed-box {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    order: 3 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  #cp-booking-app .cp-confirmed-box .cp-list-title {
    width: 85px !important;
    min-width: 85px !important;
    max-width: 85px !important;
    flex: 0 0 85px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 46px !important;
    height: 46px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--cp-black) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  #cp-booking-app .cp-confirmed-box .cp-booking-list-card {
    flex: 1 1 0px !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 46px !important;
    border: 0.5px solid var(--cp-line) !important;
    background: var(--cp-slot-confirmed) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Pending Box on mobile: row with label on left, list on right (same exact width as ポイント box) */
  #cp-booking-app .cp-pending-box {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    order: 4 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  #cp-booking-app .cp-pending-box .cp-list-title {
    width: 85px !important;
    min-width: 85px !important;
    max-width: 85px !important;
    flex: 0 0 85px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 46px !important;
    height: 46px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--cp-black) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  #cp-booking-app .cp-pending-box .cp-booking-list-card {
    flex: 1 1 0px !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 46px !important;
    border: 0.5px solid var(--cp-line) !important;
    background: var(--cp-slot-pending) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Empty state on mobile: exactly 46px to match ポイント box */
  #cp-booking-app .cp-confirmed-box .cp-booking-list-card.cp-card-empty,
  #cp-booking-app .cp-pending-box .cp-booking-list-card.cp-card-empty {
    height: 46px !important;
    padding: 0 !important;
  }

  #cp-booking-app .cp-confirmed-box .cp-bk-empty,
  #cp-booking-app .cp-pending-box .cp-bk-empty {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    border: none !important;
    background: transparent !important;
  }

  /* Populated state on mobile: top/bottom padding 11px to match ポイント box distances */
  #cp-booking-app .cp-confirmed-box .cp-booking-list-card:not(.cp-card-empty),
  #cp-booking-app .cp-pending-box .cp-booking-list-card:not(.cp-card-empty) {
    padding: 11px 0 !important;
    height: auto !important;
    min-height: 46px !important;
  }

  #cp-booking-app .cp-confirmed-box .cp-booking-list-card:not(.cp-card-empty) ol.cp-booking-list,
  #cp-booking-app .cp-pending-box .cp-booking-list-card:not(.cp-card-empty) ol.cp-booking-list {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* List items on mobile: centered horizontally AND vertically in the box */
  #cp-booking-app .cp-confirmed-box .cp-bk-item:not(.cp-bk-empty),
  #cp-booking-app .cp-pending-box .cp-bk-item:not(.cp-bk-empty) {
    width: 100% !important;
    min-height: 24px !important;
    line-height: 24px !important;
    height: auto !important;
    padding: 0 10px !important;
    font-size: 13.5px !important;
    font-weight: 300 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 12px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .cp-confirmed-box .cp-bk-item {
    color: var(--cp-slot-confirmed-text) !important;
    background: var(--cp-slot-confirmed) !important;
  }

  .cp-pending-box .cp-bk-item {
    color: var(--cp-slot-pending-text) !important;
    background: var(--cp-slot-pending) !important;
  }

  .cp-bk-num {
    width: auto !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    margin: 0 !important;
  }

  .cp-bk-date {
    width: auto !important;
    font-size: 13.5px !important;
    font-weight: 300 !important;
    margin: 0 !important;
  }

  .cp-bk-time {
    width: auto !important;
    flex: none !important;
    font-size: 13.5px !important;
    font-weight: 300 !important;
    margin: 0 !important;
  }

  /* Submit Box on mobile: action row on top, messages displayed directly UNDER the button */
  #cp-booking-app .cp-submit-box {
    width: 100% !important;
    order: 5 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    padding-top: 8px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
  }

  #cp-booking-app .cp-submit-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #cp-booking-app #cp-submit-msg {
    width: 100% !important;
    text-align: right !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    min-height: 20px !important;
    word-break: break-all !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  #cp-booking-app #cp-pw-msg {
    width: 100% !important;
    text-align: right !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    word-break: break-all !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  .cp-submit-check-label {
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
  }

  .cp-submit-check-label .cp-custom-checkbox {
    width: 20px !important;
    height: 20px !important;
  }

  /* Mobile checkmark: enlarged to 7x13px and dead-center in 20px box */
  .cp-submit-check-label input[type="checkbox"]:checked + .cp-custom-checkbox::after {
    content: '' !important;
    position: absolute !important;
    top: 44% !important;
    left: 50% !important;
    width: 7px !important;
    height: 13px !important;
    border: solid var(--cp-black) !important;
    border-width: 0 2.5px 2.5px 0 !important;
    transform: translate(-50%, -55%) rotate(45deg) !important;
    box-sizing: border-box !important;
  }

  .cp-submit-check-label .cp-checkbox-text {
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  #cp-booking-app .cp-btn-submit,
  .cp-booking-app .cp-btn-submit {
    height: 40px !important;
    font-size: 20px !important;
    width: 130px !important;
    line-height: 38px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
}
