/* Only cached icon-only buttons need this fallback; real text buttons are untouched. */
.alipay-mch-app-card .card-footer > div {
  gap: 6px;
}

/* The original fixed-width rules are important Tailwind utilities. */
@layer base {
  .alipay-mch-app-card .card-footer > div > button.ant-btn-icon-only {
    width: max-content !important;
    min-width: 48px !important;
    height: 28px !important;
    padding: 0 8px !important;
  }

  .alipay-mch-app-card .card-footer > div > button.ant-btn-icon-only:nth-of-type(2) {
    min-width: 72px !important;
  }
}

.alipay-mch-app-card .card-footer > div > button.ant-btn-icon-only .ant-btn-icon {
  display: none !important;
}

.alipay-mch-app-card .card-footer > div > button.ant-btn-icon-only::after {
  display: inline;
  font-size: 12px;
  line-height: 28px;
  white-space: nowrap;
}

.alipay-mch-app-card .card-footer > div > button.ant-btn-icon-only:nth-of-type(1)::after {
  content: "编辑";
}

.alipay-mch-app-card .card-footer > div > button.ant-btn-icon-only:nth-of-type(2)::after {
  content: "更多操作";
}
