var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/checkout/styles.ts
var styles_exports = {};
__export(styles_exports, {
  calculateModalHeight: () => calculateModalHeight,
  checkoutStyles: () => checkoutStyles
});
module.exports = __toCommonJS(styles_exports);
var checkoutStyles = {
  container: {
    display: "flex",
    flexDirection: "column",
    minHeight: 0,
    // 允许缩小
    overflowY: "auto",
    // 允许垂直滚动
    maxHeight: "90%",
    padding: "0px 16px 16px"
  },
  walletPassSearchRow: {
    display: "flex",
    gap: 8
  },
  moduleBase: {
    backgroundColor: "#ff4d4f",
    borderRadius: "8px",
    padding: "16px",
    marginBottom: "12px",
    color: "white",
    transition: "all 0.3s ease"
  },
  moduleTitle: {
    fontSize: "16px",
    fontWeight: "500",
    color: "#4096ff",
    marginBottom: "8px"
  },
  moduleDescription: {
    fontSize: "12px",
    opacity: 0.8,
    marginBottom: "8px"
  },
  button: {
    backgroundColor: "rgba(255,255,255,0.2)",
    border: "1px solid rgba(255,255,255,0.3)",
    borderRadius: "4px",
    color: "white",
    padding: "6px 12px",
    fontSize: "12px",
    cursor: "pointer",
    transition: "background-color 0.2s ease"
  },
  buttonHover: {
    backgroundColor: "rgba(255,255,255,0.3)"
  },
  statusButton: {
    backgroundColor: "#ff4d4f",
    color: "white",
    border: "none",
    borderRadius: "4px",
    padding: "8px 16px",
    cursor: "pointer",
    fontSize: "14px",
    transition: "background-color 0.2s ease"
  },
  amountDisplay: {
    fontSize: "24px",
    fontWeight: "bold",
    marginBottom: "8px",
    textAlign: "center"
  }
};
var calculateModalHeight = (moduleConfig) => {
  let baseHeight = 200;
  if (moduleConfig.showWalletPass) baseHeight += 80;
  if (moduleConfig.showCashPayment) baseHeight += 100;
  if (moduleConfig.showAdditionalModule) baseHeight += 80;
  if (moduleConfig.showPaymentOptions) baseHeight += 120;
  return Math.min(baseHeight, window.innerHeight * 0.9);
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  calculateModalHeight,
  checkoutStyles
});
