/*
 * CYC Ride UI141 R38X HOTFIX12
 * Guest-pass Taipei time, copy action, polished content and dropdown timetable.
 */

body.guest-pass-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(80, 210, 235, .13), transparent 32%),
    radial-gradient(circle at 88% 15%, rgba(112, 92, 255, .10), transparent 28%),
    #f5f9ff;
}

body.guest-pass-page .guest-pass-app {
  margin: 0 auto;
  max-width: 900px;
}

body.guest-pass-page .guest-pass-topbar {
  align-items: center;
  border: 1px solid rgba(168, 194, 230, .54);
  box-shadow: 0 16px 36px rgba(33, 79, 140, .10);
  justify-content: flex-start;
}

body.guest-pass-page .guest-pass-topbar .brand {
  align-items: center;
  width: 100%;
}

body.guest-pass-page .guest-pass-logo {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(11, 94, 215, .14);
  display: block;
  flex: 0 0 58px;
  height: 58px;
  object-fit: contain;
  width: 58px;
}

body.guest-pass-page .guest-pass-card {
  border: 1px solid rgba(168, 194, 230, .64);
  box-shadow: 0 20px 46px rgba(33, 79, 140, .10);
  overflow: hidden;
}

body.guest-pass-page .guest-pass-section-head {
  margin-bottom: 14px;
}

body.guest-pass-page .guest-pass-eyebrow {
  color: #2563eb;
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 3px;
}

body.guest-pass-page .guest-pass-section-head h2 {
  color: #0f2945;
  margin: 0;
}

body.guest-pass-page .guest-pass-rules {
  display: grid;
  gap: 10px;
  margin: 0;
}

body.guest-pass-page .guest-pass-rules > div {
  align-items: center;
  background: linear-gradient(135deg, #f7faff, #eef5ff);
  border: 1px solid #d7e6ff;
  border-radius: 16px;
  display: grid;
  gap: 11px;
  grid-template-columns: 32px 1fr;
  padding: 11px 13px;
}

body.guest-pass-page .guest-pass-rules span {
  align-items: center;
  background: #2258f2;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

body.guest-pass-page .guest-pass-rules p {
  color: #405773;
  font-size: clamp(16px, 3.7vw, 19px);
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

body.guest-pass-page #guestBox {
  background: #edf4ff;
  border: 1px solid #b9cdfa;
  border-radius: 18px;
  margin-top: 16px;
  overflow: hidden;
  padding: 8px 16px;
}

body.guest-pass-page #guestBox .kv {
  align-items: center;
  border-bottom: 1px solid rgba(185, 205, 250, .48);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1.35fr);
  margin: 0;
  padding: 13px 0;
}

body.guest-pass-page #guestBox .kv:last-child {
  border-bottom: 0;
}

body.guest-pass-page #guestBox .kv > b {
  color: #173f88;
}

body.guest-pass-page #guestBox .kv > span {
  color: #173f88;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}

body.guest-pass-page #guestBox .guest-expiry-row b small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

body.guest-pass-page .guest-status-pill {
  border-radius: 999px;
  justify-self: end;
  padding: 5px 12px;
}

body.guest-pass-page .guest-status-pill.is-available {
  background: #dcfce7;
  color: #167347 !important;
}

body.guest-pass-page .guest-status-pill.is-unavailable {
  background: #fee2e2;
  color: #b42318 !important;
}

body.guest-pass-page .guest-camera-panel {
  border-top: 1px solid #dce7f5;
  margin-top: 20px;
  padding-top: 20px;
}

body.guest-pass-page .guest-camera-panel h3 {
  color: #173553;
  margin: 0;
}

body.guest-pass-page .guest-camera-intro {
  color: #64748b;
  line-height: 1.55;
  margin: 6px 0 14px;
}

body.guest-pass-page .guest-ride-count-field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

body.guest-pass-page .guest-ride-count-field[hidden] {
  display: none !important;
}

body.guest-pass-page .guest-ride-count-field span,
body.guest-pass-page .guest-schedule-panel label > span {
  color: #173553;
  font-size: 17px;
  font-weight: 900;
}

body.guest-pass-page .guest-ride-count-field select,
body.guest-pass-page .guest-schedule-panel select {
  appearance: auto;
  background: #fff;
  border: 2px solid #b9cdfa;
  border-radius: 14px;
  color: #173553;
  font-size: 17px;
  font-weight: 800;
  min-height: 52px;
  padding: 10px 14px;
  width: 100%;
}

body.guest-pass-page #startGuestCamera {
  background: #11786f;
  border-color: #11786f;
  box-shadow: 0 10px 24px rgba(17, 120, 111, .18);
  width: 100%;
}

body.guest-pass-page #guestScanMsg {
  margin-top: 12px;
}

body.guest-pass-page .guest-schedule-panel {
  background: #f8fbff;
  border: 1px solid #d7e6f7;
  border-radius: 18px;
  margin-top: 18px;
  padding: 14px;
}

body.guest-pass-page .guest-schedule-panel label {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 9px;
}

body.guest-pass-page .guest-schedule-panel label small {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

body.guest-pass-page .guest-schedule-panel select:disabled {
  background: #eef2f7;
  color: #64748b;
}

body.guest-pass-page .guest-schedule-note {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 9px 2px 0;
}

body.guest-camera-open {
  overflow: hidden;
}

.guest-camera-modal[hidden] {
  display: none !important;
}

.guest-camera-modal {
  align-items: center;
  background: rgba(15, 23, 42, .78);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 14px;
  position: fixed;
  z-index: 2147483000;
}

.guest-camera-card {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
  max-height: 96vh;
  overflow: auto;
  padding: 16px;
  width: min(760px, 96vw);
}

.guest-camera-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.guest-camera-head h2 {
  color: #0f172a;
  font-size: clamp(24px, 5vw, 36px);
  margin: 0;
}

.guest-camera-frame {
  background: #000;
  border: 4px solid #0b5ed7;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.guest-camera-video {
  background: #000;
  display: block;
  height: min(62vh, 560px);
  object-fit: cover;
  width: 100%;
}

.guest-camera-guide {
  border: 3px solid rgba(255, 255, 255, .94);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .14);
  inset: 12%;
  pointer-events: none;
  position: absolute;
}

.guest-camera-guide span {
  animation: guestQrScanLine 1.35s infinite ease-in-out;
  background: rgba(34, 197, 94, .96);
  box-shadow: 0 0 14px rgba(34, 197, 94, .9);
  height: 3px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 50%;
}

@keyframes guestQrScanLine {
  0%, 100% { transform: translateY(-82px); }
  50% { transform: translateY(82px); }
}

.guest-camera-hint {
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  color: #174a7e;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
  margin: 12px 0 0;
  padding: 10px 12px;
  text-align: center;
}

.guest-camera-hint.is-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

/* Resident-side guest-link result. */
body [data-feature-panel="guest_pass"] .guest-resident-intro {
  background: linear-gradient(135deg, #f7faff, #edf4ff);
  border: 1px solid #d7e6ff;
  border-radius: 16px;
  color: #405773;
  line-height: 1.6;
  padding: 12px 14px;
}

body [data-feature-panel="guest_pass"] .guest-form-reminder {
  color: #52657c;
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 0;
}

body [data-feature-panel="guest_pass"] .guest-result-card {
  background: linear-gradient(160deg, #fff, #f7faff);
  border: 1px solid #cfe0fa;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(33, 79, 140, .10);
  margin-top: 16px;
  overflow: hidden;
  padding: 16px;
}

body [data-feature-panel="guest_pass"] .guest-result-card h3 {
  color: #173553;
  margin: 0 0 5px;
}

body [data-feature-panel="guest_pass"] .guest-result-card > p {
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 14px;
}

body [data-feature-panel="guest_pass"] .guest-link-box {
  background: #edf4ff;
  border: 1px solid #b9cdfa;
  border-radius: 15px;
  padding: 12px;
}

body [data-feature-panel="guest_pass"] .guest-link-box > b {
  color: #173f88;
  display: block;
  margin-bottom: 7px;
}

body [data-feature-panel="guest_pass"] .guest-link-row {
  align-items: stretch;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto;
}

body [data-feature-panel="guest_pass"] .guest-link-row a {
  background: #fff;
  border: 1px solid #cbdcf6;
  border-radius: 11px;
  color: #174a7e;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 10px 11px;
}

body [data-feature-panel="guest_pass"] .guest-copy-button {
  min-width: 82px;
  padding-inline: 14px;
}

body [data-feature-panel="guest_pass"] .guest-result-facts {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

body [data-feature-panel="guest_pass"] .guest-result-facts > div {
  background: #fff;
  border: 1px solid #dce7f5;
  border-radius: 14px;
  padding: 11px 12px;
}

body [data-feature-panel="guest_pass"] .guest-result-facts span {
  color: #64748b;
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}

body [data-feature-panel="guest_pass"] .guest-result-facts b {
  color: #173553;
  display: block;
  overflow-wrap: anywhere;
}

body [data-feature-panel="guest_pass"] .guest-result-note {
  background: #fff8e8;
  border: 1px solid #fde6ae;
  border-radius: 13px;
  color: #775a1a !important;
  font-size: 14px;
  margin: 12px 0 0 !important;
  padding: 10px 12px;
}

@media (max-width: 720px) {
  body.guest-pass-page .guest-pass-logo {
    flex-basis: 52px;
    height: 52px;
    width: 52px;
  }

  body.guest-pass-page #guestBox .kv {
    gap: 10px;
    grid-template-columns: minmax(94px, .75fr) minmax(0, 1.25fr);
  }

  body.guest-pass-page .guest-schedule-panel label {
    align-items: flex-start;
    flex-direction: column;
  }

  body.guest-pass-page .guest-schedule-panel label small {
    text-align: left;
  }

  .guest-camera-card {
    border-radius: 21px;
    padding: 12px;
  }

  .guest-camera-video {
    height: min(68vh, 520px);
  }

  .guest-camera-guide {
    inset: 10%;
  }

  body [data-feature-panel="guest_pass"] .guest-link-row {
    grid-template-columns: 1fr;
  }

  body [data-feature-panel="guest_pass"] .guest-copy-button {
    width: 100%;
  }

  body [data-feature-panel="guest_pass"] .guest-result-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-camera-guide span {
    animation: none;
  }
}
