/* REVIA Frontend Forms */
.revia-slip-form-wrap,
.revia-cash-form-wrap {
  max-width: 520px; margin: 0 auto; padding: 0 16px;
  font-family: 'Noto Sans JP', 'Noto Sans Thai', sans-serif;
}
.revia-form-card {
  background: white; border-radius: 20px;
  border: 1px solid #e8e2f5;
  box-shadow: 0 8px 32px rgba(46,42,74,.08);
  overflow: hidden;
}
.revia-form-header {
  background: linear-gradient(135deg,#2e2a4a,#6b5b9e);
  padding: 24px; text-align: center;
}
.revia-form-title-th { font-size: 18px; color: white; font-weight: 600; }
.revia-form-title-ja { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 4px; }

.revia-step { padding: 20px 24px; border-bottom: 1px solid #f0ecfa; }
.revia-step:last-child { border-bottom: none; }
.revia-step-label {
  font-size: 11px; font-weight: 700; color: #6b5b9e;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 14px;
}

/* 銀行情報 */
.revia-bank-info {
  margin: 0 24px 0; padding: 16px;
  background: #f8f5ff; border-radius: 10px;
  border: 1px solid #e8e2f5;
}
.revia-bank-label { font-size: 12px; font-weight: 700; color: #6b5b9e; margin-bottom: 8px; }
.revia-bank-th, .revia-bank-ja { font-size: 13px; line-height: 1.8; color: #3d3a52; }
.revia-bank-ja { border-top: 1px dashed #e8e2f5; margin-top: 8px; padding-top: 8px; color: #888; font-size: 12px; }

/* フィールド */
.revia-field-group { margin-bottom: 14px; }
.revia-field-group label { display: block; font-size: 13px; font-weight: 600; color: #3d3a52; margin-bottom: 6px; line-height: 1.5; }
.revia-field-group label small { font-weight: 400; color: #888; font-size: 11px; }
.revia-input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #e8e2f5; border-radius: 10px;
  font-size: 14px; font-family: inherit;
  transition: border-color .2s;
  box-sizing: border-box;
}
.revia-input:focus { outline: none; border-color: #6b5b9e; }

/* ボタン */
.revia-btn-primary, .revia-btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 13px; border-radius: 12px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  border: none; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.revia-btn-primary {
  background: linear-gradient(135deg,#2e2a4a,#6b5b9e);
  color: white; box-shadow: 0 4px 16px rgba(46,42,74,.22);
}
.revia-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(46,42,74,.32); }
.revia-btn-secondary {
  background: white; color: #6b5b9e;
  border: 1.5px solid #e8e2f5 !important;
  margin-top: 8px;
}
.revia-btn-secondary:hover { background: #f8f5ff; }
.revia-btn-green { background: linear-gradient(135deg,#1e8449,#27ae60) !important; }
.revia-btn-sm { padding: 8px 14px !important; font-size: 12px !important; width: auto !important; }

/* 検索結果 */
.revia-search-item {
  padding: 12px 16px; background: #f8f5ff;
  border: 1.5px solid #e8e2f5; border-radius: 10px;
  margin: 8px 0; cursor: pointer; transition: all .2s;
}
.revia-search-item:hover { border-color: #6b5b9e; background: #f0ecfa; }
.revia-search-item-name { font-weight: 700; font-size: 14px; color: #2e2a4a; }
.revia-search-item-detail { font-size: 12px; color: #888; margin-top: 2px; }

/* 注文情報ボックス */
.revia-order-info-box {
  background: #f8f5ff; border-radius: 10px; padding: 14px 16px;
  border: 1px solid #e8e2f5; margin-bottom: 16px;
  font-size: 13px;
}
.revia-order-info-box strong { color: #2e2a4a; }

/* アップロードエリア */
.revia-upload-area {
  border: 2px dashed #c5bbea; border-radius: 12px;
  padding: 24px; text-align: center;
  cursor: pointer; transition: all .2s; position: relative;
}
.revia-upload-area:hover { border-color: #6b5b9e; background: #f8f5ff; }
.revia-upload-area input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.revia-upload-placeholder { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.revia-upload-placeholder span:first-child { font-size: 32px; }
.revia-upload-placeholder span:last-child { font-size: 13px; color: #6b5b9e; font-weight: 600; }
#revia-preview-img { max-width: 100%; max-height: 200px; border-radius: 8px; }
#revia-preview-name { display: block; font-size: 12px; color: #666; margin-top: 6px; }

/* エラー */
.revia-error { color: #e74c3c; font-size: 13px; margin-top: 6px; }

/* 成功メッセージ */
.revia-success-msg {
  padding: 32px 24px; text-align: center;
}
.revia-success-icon { font-size: 48px; }
.revia-success-title { font-size: 20px; font-weight: 700; color: #27ae60; margin: 12px 0 6px; }
.revia-success-sub { font-size: 14px; color: #555; }
.revia-success-note { font-size: 13px; color: #888; line-height: 1.8; margin-top: 12px; }

/* PIN エラー */
#cash-pin-error { padding: 8px 12px; background: #fdf3f3; border-radius: 8px; color: #e74c3c; font-size: 13px; margin-top: 6px; }

/* === 会員ステータスカード === */
.revia-member-status-card {
  background: white; border-radius: 16px;
  border: 1px solid #e8e2f5;
  box-shadow: 0 4px 20px rgba(46,42,74,.07);
  padding: 20px; margin-bottom: 16px;
  font-family: 'Noto Sans JP', 'Noto Sans Thai', sans-serif;
}
.revia-status-header { margin-bottom: 16px; }
.revia-order-id { font-size: 11px; color: #aaa; letter-spacing: .1em; }
.revia-plan-name { font-size: 16px; font-weight: 700; color: #2e2a4a; }
.revia-plan-name span { font-size: 12px; color: #888; font-weight: 400; display: block; }

.revia-status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.revia-status-label { font-size: 12px; color: #888; }
.revia-status-value { font-size: 14px; font-weight: 700; }

.revia-payment-alert { background: #fff8e1; border: 1px solid #f39c12; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.alert-text { font-size: 13px; line-height: 1.6; color: #555; margin-bottom: 10px; }

/* 施術回数セクション */
.revia-sessions-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0ecfa; }
.revia-sessions-label { font-size: 12px; color: #888; margin-bottom: 8px; }
.revia-sessions-bar { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.revia-session-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #e8e2f5;
}
.revia-session-dot.used   { background: #6b5b9e; border-color: #6b5b9e; }
.revia-session-dot.booked { background: #f39c12; border-color: #f39c12; }
.revia-session-dot.free   { background: white; }
.revia-sessions-text { display: flex; flex-direction: column; gap: 4px; }
.used-count { font-size: 12px; color: #6b5b9e; }
.remain-count { font-size: 12px; color: #27ae60; }
.revia-last-session-notice {
  margin-top: 10px; padding: 10px 14px;
  background: #fff3cd; border-radius: 8px;
  border-left: 3px solid #f39c12;
  font-size: 12px; color: #555; line-height: 1.7;
}

/* 支払い詳細 */
.revia-payment-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0ecfa; }
.detail-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; color: #888; }
.detail-row strong { color: #2e2a4a; font-size: 14px; }
.revia-no-data { padding: 20px; text-align: center; color: #aaa; font-size: 14px; }
