/* ===== 全页面板 ===== */
.chayan-body,
.chayan-body1,
.sdoc,
.up-close-body {
  display: none;
  background: #fff;
  min-height: 100vh;
  box-sizing: border-box;
}

.sdoc {
  max-width: 100%;
  height: 100%;
}

.panel-scroll {
  min-height: calc(100vh - 50px);
}

.panel-close {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  color: #666;
}

.popup-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 50px;
  line-height: 50px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 2px 2px 0 0;
}

/* ===== 保單憑證 ===== */
.doc-header {
  padding: 10px;
}

.doc-header img {
  width: 110px;
}

.doc-title {
  font-size: 16px;
  text-align: center;
  margin: 20px 0;
}

.doc-meta {
  margin-bottom: 12px;
  font-size: 13px;
  color: #333;
}

.doc-meta .content {
  color: red;
}

.doc-content {
  font-size: 12px;
  font-weight: 500;
  color: #000;
  padding: 0 10px;
}

.doc-content .r {
  margin-top: 5px;
  text-align: right;
}

.doc-content .r .image-wrapper {
  position: relative;
}

.doc-content .r .image-wrapper img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* ===== 人員 / 保單表單 ===== */
.chayan-content {
  box-sizing: border-box;
  width: 100%;
  color: #595959;
  padding: 15px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

.chayan-title {
  font-size: 16px;
  text-align: left;
  margin: 0.5rem 0.1rem;
}

.chayan-form {
  margin: 0 0.1rem;
}

.field-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #f0f0f0;
  border-radius: 2px;
  padding: 8px 10px;
  font-size: 14px;
}

.chayan-content-wrapper {
  min-height: 400px;
}

.result-tip {
  margin: 0 0 15px;
  font-size: 16px;
}

.chayan-result {
  border: 1px solid #e8d598;
  padding: 1.4rem 0.8rem;
}

.chayan-avatar {
  margin: 0 auto 1.2rem;
  width: 78%;
  max-width: 280px;
  background: #f7f7f7;
  border: 1px solid #e8d598;
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

.chayan-avatar img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  background: #fff;
}

.chayan-tip {
  color: #dea930;
  font-weight: lighter;
  margin: 0 5px;
}

.chayan-footer {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 5px;
  color: #9f9f9f;
  font-size: 10px;
  width: 100%;
}

.chayan-running {
  line-height: 2rem;
}

.chayan-btn-container button {
  padding: 5px 0;
  display: block;
  width: 100%;
  color: #fff;
  background: rgb(241, 168, 65);
  border: 1px solid rgb(241, 168, 65);
  cursor: pointer;
}

.up-btn-gap {
  margin: 8px 0.1rem 0;
}

.up-panels {
  padding-bottom: 8px;
}

/* ===== 關閉銀聯賬戶 ===== */
.up-close-body .popup-title {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.up-field {
  margin: 0 0.1rem 14px;
  text-align: left;
}

.up-field label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 600;
}

.up-field label .req {
  color: #e11;
  margin-right: 2px;
}

.up-field label .opt {
  color: #999;
  font-weight: 400;
  font-size: 12px;
}

.up-field input,
.up-field select {
  width: 100%;
  border: 1px solid #f0f0f0;
  border-radius: 2px;
  padding: 8px 10px;
  font-size: 14px;
  box-sizing: border-box;
}

.up-field .err,
.up-modal .err {
  color: #e11;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 400;
  text-align: left;
}

.up-status {
  text-align: center;
  padding: 24px 16px 12px;
}

.up-status .status-title {
  font-size: 20px;
  margin: 12px 0 8px;
  color: #333;
}

.up-status .status-desc {
  color: #888;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.up-status.waiting .status-title {
  color: #e6a23c;
}

.up-status.success .status-title {
  color: #07c160;
}

.up-status.danger .status-title {
  color: #ee0a24;
}

.up-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 3px solid #f3d19e;
  border-top-color: #e6a23c;
  border-radius: 50%;
  animation: up-spin 1s linear infinite;
}

@keyframes up-spin {
  to {
    transform: rotate(360deg);
  }
}

.up-info-list {
  margin: 16px 12px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  text-align: left;
  overflow: hidden;
}

.up-info-list .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  font-weight: 400;
}

.up-info-list .row:last-child {
  border-bottom: none;
}

.up-info-list .row span:first-child {
  color: #888;
  white-space: nowrap;
}

.up-info-list .row span:last-child {
  color: #333;
  text-align: right;
  word-break: break-all;
}

.up-remark {
  margin: 0 12px 16px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 4px;
  text-align: left;
  font-size: 13px;
  font-weight: 400;
  color: #666;
}

.up-remark .lab {
  color: #999;
  margin-bottom: 6px;
}

.up-modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.up-modal-mask.show {
  display: flex;
}

.up-modal {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 8px;
  padding: 22px 18px 18px;
  text-align: center;
}

.up-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #333;
}

.up-modal p {
  margin: 0 0 14px;
  color: #888;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.up-pwd-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
}

.up-pwd-boxes .box {
  width: 40px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.up-pwd-boxes .box.active {
  border-color: #f1a841;
}

.up-pwd-boxes input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  border: none;
  font-size: 16px;
}

.up-footer-tip {
  text-align: center;
  color: #bbb;
  font-size: 11px;
  font-weight: 400;
  padding: 20px 12px 28px;
  line-height: 1.6;
}
