.yun-cloud-hidden-field {
  display: none !important;
}

.yun-cloud-config-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #b8e0d2;
  border-left: 4px solid #1f9d74;
  border-radius: 6px;
  background: #f2fbf7;
  color: #1f2d3d;
}

.yun-cloud-config-note[hidden] {
  display: none;
}

.yun-cloud-config-note > i {
  margin-top: 2px;
  color: #16845f;
  font-size: 22px;
}

.yun-cloud-config-note div {
  min-width: 0;
}

.yun-cloud-config-note strong,
.yun-cloud-config-note span {
  display: block;
  letter-spacing: 0;
}

.yun-cloud-config-note strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.yun-cloud-config-note span {
  color: #5f6b7a;
  font-size: 13px;
  line-height: 1.55;
}

.yun-cloud-account-dialog .yun-cloud-source-input {
  display: none;
}

.yun-cloud-uploader {
  width: min(100%, 520px);
}

.yun-cloud-uploader > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.yun-cloud-dropzone {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 224px;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  border: 1px dashed #a9b8c8;
  border-radius: 6px;
  background: #f8fafc;
  color: #4b5b6b;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.yun-cloud-dropzone:hover,
.yun-cloud-uploader.is-dragover .yun-cloud-dropzone {
  border-color: #1677ff;
  background: #f3f8ff;
}

.yun-cloud-uploader.is-uploading .yun-cloud-dropzone {
  cursor: wait;
  opacity: 0.7;
}

.yun-cloud-dropzone span {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.yun-cloud-dropzone span > i {
  color: #1677ff;
  font-size: 34px;
}

.yun-cloud-dropzone strong {
  color: #263445;
  font-size: 15px;
  letter-spacing: 0;
}

.yun-cloud-dropzone small {
  color: #8492a6;
  font-size: 12px;
  letter-spacing: 0;
}

.yun-cloud-dropzone img {
  display: block;
  width: min(100%, 320px);
  max-height: 360px;
  object-fit: contain;
  background: #fff;
}

.yun-cloud-dropzone img[hidden] {
  display: none;
}

.yun-cloud-upload-footer {
  display: flex;
  align-items: center;
  min-height: 38px;
  gap: 10px;
}

.yun-cloud-upload-footer > span {
  flex: 1;
  min-width: 0;
  color: #7b8794;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
}

.yun-cloud-account-settings {
  width: min(100%, 680px);
  margin: 4px 0 18px;
  padding: 18px 0 2px;
  border-top: 1px solid #e5eaf0;
}

.yun-cloud-account-settings > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.yun-cloud-account-settings > header > div {
  min-width: 0;
}

.yun-cloud-account-settings > header strong,
.yun-cloud-account-settings > header span {
  display: block;
  letter-spacing: 0;
}

.yun-cloud-account-settings > header strong {
  color: #253142;
  font-size: 15px;
}

.yun-cloud-account-settings > header span {
  margin-top: 3px;
  color: #8492a6;
  font-size: 12px;
}

.yun-cloud-account-settings > header > i {
  color: #16845f;
  font-size: 20px;
}

.yun-cloud-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.yun-cloud-setting {
  display: block;
  min-width: 0;
}

.yun-cloud-setting > span {
  display: block;
  margin-bottom: 6px;
  color: #536273;
  font-size: 13px;
  letter-spacing: 0;
}

.yun-cloud-setting > span::before {
  margin-right: 4px;
  color: #f56c6c;
  content: "*";
}

.yun-cloud-number-input {
  position: relative;
}

.yun-cloud-number-input .el-input__inner {
  width: 100%;
  height: 40px;
  padding-right: 56px;
  letter-spacing: 0;
}

.yun-cloud-number-input em {
  position: absolute;
  top: 50%;
  right: 13px;
  color: #8492a6;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.yun-cloud-setting small {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: #909dab;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
}

.yun-cloud-uploader:not(.has-image) [data-yun-cloud-preview],
.yun-cloud-uploader:not(.has-image) [data-yun-cloud-replace] {
  display: none;
}

.yun-account-picker-group.is-cloud .yun-account-config-card {
  border-color: #b8e0d2;
}

.yun-account-picker-group.is-cloud .yun-account-config-product,
.yun-account-hierarchy-card.is-cloud .yun-account-compact-main > span {
  color: #16845f;
}

.yun-cloud-row-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #16845f;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
  cursor: pointer;
}

.yun-cloud-row-status:disabled {
  color: #c45656;
  cursor: default;
}

body.yun-cloud-preview-open {
  overflow: hidden;
}

.yun-cloud-image-preview {
  position: fixed;
  z-index: 30020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 28, 40, 0.62);
}

.yun-cloud-image-preview-panel {
  width: min(92vw, 560px);
  max-height: 90vh;
  overflow: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(18, 28, 40, 0.28);
}

.yun-cloud-image-preview-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid #e6ebf1;
}

.yun-cloud-image-preview-panel header strong {
  min-width: 0;
  overflow: hidden;
  color: #253142;
  font-size: 15px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yun-cloud-image-preview-panel > img {
  display: block;
  width: auto;
  max-width: calc(100% - 32px);
  max-height: calc(90vh - 84px);
  margin: 16px auto;
  object-fit: contain;
}

.yun-cloud-icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #5f6b7a;
  cursor: pointer;
}

.yun-cloud-icon-button:hover {
  background: #f0f3f7;
  color: #1f2d3d;
}

.yun-cloud-test-dialog {
  width: min(92vw, 520px) !important;
}

.yun-cloud-test-dialog .el-dialog__body {
  overflow-x: hidden;
}

.yun-cloud-test-original {
  display: none !important;
}

.yun-cloud-test-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid #dfe6ed;
  border-bottom: 1px solid #dfe6ed;
  background: #f7f9fb;
}

.yun-cloud-test-guide > div,
.yun-cloud-test-guide > button {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 2px 13px;
}

.yun-cloud-test-guide > button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.yun-cloud-test-guide > button:hover strong,
.yun-cloud-test-guide > button:focus-visible strong {
  color: #1677ff;
}

.yun-cloud-test-guide > button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.yun-cloud-test-guide > div + button {
  border-left: 1px solid #dfe6ed;
}

.yun-cloud-test-guide span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.yun-cloud-test-guide strong {
  min-width: 0;
  color: #253142;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

.yun-cloud-test-dialog .yun-cloud-test-code {
  display: block;
  width: min(100%, 320px);
  max-width: 320px !important;
  aspect-ratio: 1;
  margin: 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
  touch-action: manipulation;
}

.yun-cloud-test-save-status {
  min-height: 20px;
  margin: 6px 0 0;
  color: #657382;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0;
}

.yun-cloud-api-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 10px;
}

.yun-cloud-api-codes .yun-api-payment-method-code {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d7e3f1;
  border-radius: 6px;
  background: #fff;
}

.yun-cloud-api-example {
  max-width: 100%;
  margin: 12px 0;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid #d7e3f1;
  border-radius: 6px;
  background: #17212e;
  color: #f5f7fa;
  font: 13px/1.65 Consolas, monospace;
  letter-spacing: 0;
}

.yun-cloud-test-dialog .yun-cloud-test-link {
  margin-top: 8px;
  color: #657382 !important;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
}

.yun-cloud-test-dialog .yun-cloud-test-link a {
  color: #1677ff;
  font-weight: 600;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .yun-cloud-dropzone {
    min-height: 190px;
    padding: 12px;
  }

  .yun-cloud-upload-footer {
    flex-wrap: wrap;
  }

  .yun-cloud-upload-footer > span {
    flex-basis: 100%;
  }

  .yun-cloud-image-preview {
    padding: 12px;
  }

  .yun-cloud-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .yun-cloud-test-guide {
    grid-template-columns: minmax(0, 1fr);
    padding: 7px 13px;
  }

  .yun-cloud-test-guide > div,
  .yun-cloud-test-guide > button {
    padding: 8px 0;
  }

  .yun-cloud-test-guide > div + button {
    border-top: 1px solid #dfe6ed;
    border-left: 0;
  }

  .yun-cloud-api-codes {
    grid-template-columns: minmax(0, 1fr);
  }
}
