.yun-legacy-alipay-button {
  display: none !important;
}

.yun-unified-account-button {
  min-width: 154px;
  box-shadow: 0 5px 14px rgba(64, 158, 255, 0.18);
}

.yun-api-payment-method {
  margin: 0 0 18px;
  padding: 20px 22px;
  border: 1px solid #cfe1fb;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3f8ff, #fbfdff);
  box-shadow: 0 8px 24px rgba(64, 112, 172, 0.08);
  color: #334155;
}

.yun-api-payment-method-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.yun-api-payment-method-heading small {
  display: block;
  margin-bottom: 4px;
  color: #5a8fd0;
  font-weight: 600;
}

.yun-api-payment-method-heading h2 {
  margin: 0;
  color: #1f2f46;
  font-size: 21px;
}

.yun-api-payment-method-status {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f6ed;
  color: #2f8b55;
  font-size: 12px;
  font-weight: 600;
}

.yun-api-payment-method-code {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  color: #65758b;
  font-size: 13px;
}

.yun-api-payment-method-code code {
  padding: 5px 10px;
  border: 1px solid #bfd7f7;
  border-radius: 6px;
  background: #fff;
  color: #1967bd;
  font: 600 14px/1.2 Consolas, monospace;
}

.yun-api-payment-method p {
  margin: 0 0 10px;
  color: #526277;
  line-height: 1.65;
}

.yun-api-payment-method ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: #65758b;
  font-size: 13px;
  line-height: 1.8;
}

.yun-api-payment-method-link {
  color: #2878d0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.yun-api-payment-method-link:hover {
  color: #0f5ead;
  text-decoration: underline;
}

body.yun-account-picker-open {
  overflow: hidden;
}

.yun-account-picker {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(20, 30, 45, 0.55);
  backdrop-filter: blur(2px);
}

.yun-account-picker-panel {
  width: min(980px, calc(100vw - 42px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.yun-account-picker-panel > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #e8edf3;
  background: rgba(255, 255, 255, 0.97);
}

.yun-account-picker-panel header small {
  display: block;
  margin-bottom: 5px;
  color: #4b8bd8;
  font-weight: 600;
}

.yun-account-picker-panel h2 {
  margin: 0;
  color: #1e293b;
  font-size: 22px;
  line-height: 1.35;
}

.yun-account-picker-panel header p {
  margin: 7px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.yun-account-picker-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  font-size: 25px;
  line-height: 32px;
}

.yun-account-picker-search {
  display: block;
  width: calc(100% - 56px);
  height: 42px;
  margin: 20px 28px 4px;
  padding: 0 14px;
  border: 1px solid #d6dee8;
  border-radius: 7px;
  outline: none;
  color: #334155;
  font: inherit;
}

.yun-account-picker-search:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
}

.yun-account-picker-groups {
  padding: 8px 28px 28px;
}

.yun-account-picker-group {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  background: #fafcff;
}

.yun-account-picker-group.is-alipay_source {
  border-color: #f4dfbd;
  background: #fffcf5;
}

.yun-account-picker-group.is-wechat {
  border-color: #cdebd9;
  background: #f7fdf9;
}

.yun-account-picker-group.is-unknown {
  border-color: #f1c9c9;
  background: #fff9f9;
}

.yun-account-picker-group-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.yun-account-picker-group-heading strong,
.yun-account-picker-group-heading span {
  display: block;
}

.yun-account-picker-group-heading strong {
  margin-bottom: 4px;
  color: #26364a;
  font-size: 16px;
}

.yun-account-picker-group-heading span {
  color: #718096;
  font-size: 13px;
  line-height: 1.55;
}

.yun-account-picker-group-heading em {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #3678c7;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.yun-account-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.yun-account-config-card {
  position: relative;
  display: flex;
  min-height: 122px;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 15px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.yun-account-config-card:hover {
  border-color: #69aaf5;
  box-shadow: 0 7px 18px rgba(51, 101, 160, 0.12);
  transform: translateY(-1px);
}

.yun-account-config-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.yun-account-config-card strong {
  max-width: calc(100% - 20px);
  overflow: hidden;
  color: #1f2f46;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yun-account-config-card .yun-account-config-product {
  margin-top: 4px;
  color: #3f83cf;
  font-size: 12px;
}

.yun-account-config-card small {
  margin-top: 11px;
  color: #6b7b8e;
  line-height: 1.45;
}

.yun-account-config-card em {
  margin-top: auto;
  padding-top: 8px;
  color: #2e6fb9;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.yun-account-picker-empty {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7a8899;
}

.yun-account-picker-empty strong {
  color: #41516a;
}

.yun-account-hierarchy-card {
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid #d7e7fb;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4f9ff, #fbfdff);
}

.yun-account-hierarchy-card.is-alipay_source {
  border-color: #f0d9b5;
  background: linear-gradient(135deg, #fff9ee, #fffdf8);
}

.yun-account-hierarchy-card.is-wechat {
  border-color: #cce8d6;
  background: linear-gradient(135deg, #f3fbf6, #fbfefc);
}

.yun-account-hierarchy-card.is-unknown {
  border-color: #e3e7ed;
  background: #f8fafc;
}

.yun-account-compact-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.yun-account-compact-main span {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e6f2ff;
  color: #3077c4;
  font-size: 12px;
  font-weight: 600;
}

.yun-account-compact-main strong {
  flex: 1 1 auto;
  overflow: hidden;
  color: #24354b;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yun-account-compact-main em {
  flex: 0 0 auto;
  max-width: 42%;
  overflow: hidden;
  color: #65758a;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yun-account-hierarchy-card details {
  margin-top: 6px;
}

.yun-account-hierarchy-card summary {
  width: max-content;
  color: #5d86b7;
  cursor: pointer;
  font-size: 12px;
  list-style-position: inside;
}

.yun-account-hierarchy-card details p {
  margin: 7px 0 0;
  color: #65758a;
  font-size: 12px;
  line-height: 1.55;
}

.yun-account-field-help {
  display: block;
  margin-top: 6px;
  color: #8794a5;
  font-size: 12px;
  line-height: 1.55;
}

.yun-account-api-unused {
  display: none !important;
}

.yun-account-source-item > .el-form-item__label {
  white-space: nowrap;
}

.yun-account-managed-dialog {
  display: flex;
  max-height: calc(100vh - 40px);
  flex-direction: column;
  margin-top: 20px !important;
}

.yun-account-managed-dialog > .el-dialog__header,
.yun-account-managed-dialog > .el-dialog__footer {
  flex: 0 0 auto;
}

.yun-account-managed-dialog > .el-dialog__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.yun-account-managed-dialog > .el-dialog__footer {
  border-top: 1px solid #edf0f4;
  background: #fff;
}

.yun-viewport-dialog {
  display: flex;
  max-height: calc(100vh - 32px);
  flex-direction: column;
  margin: 16px auto !important;
}

.yun-viewport-dialog > .el-dialog__header,
.yun-viewport-dialog > .el-dialog__footer {
  flex: 0 0 auto;
}

.yun-viewport-dialog > .el-dialog__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 768px) {
  .yun-api-payment-method {
    padding: 17px 16px;
  }

  .yun-api-payment-method-heading h2 {
    font-size: 19px;
  }

  .yun-api-payment-method-code {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .yun-account-picker-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .yun-account-picker {
    align-items: stretch;
    padding: 12px;
  }

  .yun-account-picker-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .yun-account-picker-panel > header {
    padding: 19px 18px 16px;
  }

  .yun-account-picker-panel h2 {
    font-size: 19px;
  }

  .yun-account-picker-search {
    width: calc(100% - 36px);
    margin: 16px 18px 2px;
  }

  .yun-account-picker-groups {
    padding: 6px 18px 20px;
  }

  .yun-account-picker-grid {
    grid-template-columns: 1fr;
  }

  .yun-account-config-card {
    min-height: 112px;
  }

  .yun-account-compact-main {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .yun-account-compact-main strong {
    min-width: 160px;
  }

  .yun-account-compact-main em {
    width: 100%;
    max-width: none;
    padding-left: 2px;
  }
}

.yun-taobao-uid-poster-dialog {
  width: min(520px, calc(100vw - 28px)) !important;
  margin: 18px auto !important;
}

.yun-taobao-uid-poster-dialog > .el-dialog__header {
  padding: 14px 18px 10px;
}

.yun-taobao-uid-poster-dialog > .el-dialog__body {
  max-height: calc(100vh - 76px);
  padding: 0 18px 18px;
  overflow-y: auto;
}

.yun-taobao-uid-poster-dialog .qr-alipay-card,
.yun-taobao-uid-poster-dialog .qr-alipay-card + div {
  display: none !important;
}

.yun-taobao-uid-poster-shell {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
}

.yun-taobao-uid-poster-image {
  display: block;
  width: min(100%, 420px);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(9, 25, 46, 0.18);
}

.yun-taobao-uid-poster-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.yun-taobao-uid-poster-download {
  min-width: 190px;
}

@media (max-width: 560px) {
  .yun-taobao-uid-poster-dialog {
    width: calc(100vw - 18px) !important;
    margin: 9px auto !important;
  }

  .yun-taobao-uid-poster-dialog > .el-dialog__body {
    max-height: calc(100vh - 64px);
    padding: 0 10px 14px;
  }

  .yun-taobao-uid-poster-image {
    width: min(100%, 390px);
    border-radius: 10px;
  }
}
