html, body.aml-liff {
  margin: 0;
  padding: 0;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
body.aml-liff {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.aml-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 12px calc(24px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
/* Let Amelia's form use the full LIFF width */
.aml-main .amelia-v2-booking,
.aml-main #amelia-container,
.aml-main [class*="amelia-v2-booking"] {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

.aml-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, .96);
  color: #333;
  font-size: 15px;
  text-align: center;
  padding: 24px;
  transition: opacity .25s ease;
}
.aml-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.aml-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e3e3e3;
  border-top-color: #06c755; /* LINE green */
  border-radius: 50%;
  animation: aml-spin .8s linear infinite;
}
@keyframes aml-spin { to { transform: rotate(360deg); } }

.aml-close {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 9999;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 16px;
  line-height: 40px;
  cursor: pointer;
}

/* ---------- Header: logo + tabs ---------- */
.aml-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 12px 0;
  text-align: center;
}
.aml-logo {
  display: block;
  max-width: 70%;
  width: auto;
  margin: 0 auto 8px;
  object-fit: contain;
}
.aml-tabs {
  display: flex;
  max-width: 760px;
  margin: 0 auto;
}
.aml-tabs a {
  flex: 1;
  padding: 10px 0;
  color: #666;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.aml-tabs a.is-active {
  color: #06c755;
  font-weight: 600;
  border-bottom-color: #06c755;
}

/* ---------- My bookings ---------- */
.aml-h1 { font-size: 20px; margin: 8px 0 14px; color: #222; }
.aml-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aml-card {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.aml-card-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.aml-date, .aml-time { font-size: 16px; color: #222; }
.aml-date { font-weight: 600; }
.aml-badge { margin-left: auto; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.aml-badge-ok { background: #e6f9ee; color: #058a3c; }
.aml-badge-wait { background: #fff4e0; color: #a35a00; }
.aml-badge-off { background: #f0f0f0; color: #888; }
.aml-card-body { margin: 8px 0 12px; }
.aml-service { font-size: 15px; color: #333; }
.aml-meta { font-size: 13px; color: #777; margin-top: 2px; }
.aml-btn {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.aml-btn-primary { background: #06c755; color: #fff; border: 0; }
.aml-btn-ghost { background: #fff; color: #d93025; border: 1px solid #f1c4c0; }
.aml-empty { text-align: center; color: #666; padding: 30px 0; }
.aml-notice { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.aml-notice-ok { background: #e6f9ee; color: #058a3c; }
.aml-notice-err { background: #fdecea; color: #b3261e; }
.aml-foot { font-size: 13px; color: #888; margin-top: 16px; text-align: center; }
