/* ==========================================================================
   MAX FIT · check-in confirmation screen
   Loads on top of card/styles.css — shares its :root palette/fonts/.card shell
   ========================================================================== */

.checkin {
  gap: 22px;
}

.checkin__state {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkin__state[hidden] {
  display: none;
}

.checkin__loading-text {
  font-family: var(--font-body);
  color: var(--dim);
  font-size: 15px;
  text-align: center;
  padding: 20px 0;
}

.checkin__error-title {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 26px;
  color: var(--red);
  margin: 0;
}

.checkin__error-text {
  font-family: var(--font-body);
  color: var(--grey);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.checkin__pin {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkin__pin[hidden] {
  display: none;
}

.checkin__pin .picker__input {
  letter-spacing: 0.3em;
  text-align: center;
}

.checkin__free {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.checkin__free input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}

.checkin__free span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
}

.checkin__free--suggested {
  border-color: var(--red);
  background: rgba(224, 0, 0, 0.08);
}

.checkin__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkin__confirm {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 18px;
  color: var(--on-red);
  background: var(--red);
  border: none;
  border-radius: var(--radius-sm);
  padding: 20px;
  cursor: pointer;
}

.checkin__confirm:active {
  background: var(--red-dim);
}

.checkin__confirm:disabled {
  opacity: 0.55;
  cursor: default;
}

.checkin__error {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--red);
  text-align: center;
  margin: 0;
}

.checkin__success-title {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 30px;
  color: var(--white);
  margin: 0;
  text-align: center;
}

.checkin__success-text {
  font-family: var(--font-body);
  color: var(--grey);
  font-size: 16px;
  margin: 0;
  text-align: center;
}

/* "Log <name>'s workout" — one button per assigned workout, under the check-in
   screen (before and after checking in). Today's scheduled workout is first. */
.checkin__workouts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkin__workouts[hidden] {
  display: none;
}

.checkin__workout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 18px;
  color: var(--white);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-decoration: none;
}

.checkin__workout:active {
  border-color: var(--red);
  background: rgba(224, 0, 0, 0.08);
}

.checkin__workout--today {
  border-color: var(--red);
  background: rgba(224, 0, 0, 0.08);
}

.checkin__workout-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkin__workout-meta {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
  color: var(--dim);
  flex-shrink: 0;
}

.checkin__workout--today .checkin__workout-meta {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
}

.checkin__no-workout {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dim);
  margin: 0;
}

.checkin__no-workout a {
  color: var(--grey-light);
  text-decoration: underline;
}
