/** Shopify CDN: Minification failed

Line 25:13 Expected identifier but found whitespace
Line 25:15 Unexpected "{"
Line 25:24 Expected ":"
Line 41:13 Expected identifier but found whitespace
Line 41:15 Expected identifier but found "%"
Line 41:64 Unexpected "{"
Line 41:65 Unexpected "{"
Line 41:74 Expected ":"
Line 41:97 Unexpected "{"
Line 41:98 Expected identifier but found "%"
... and 18 more hidden warnings

**/


/* CSS from section stylesheet tags */
/* 增加选择器特异性以覆盖主题样式 */
section .custom-button-wrapper {
  margin-top: var(--block-margin-top, 20px);
  margin-bottom: var(--block-margin-bottom, 20px);
  padding: var(--block-padding-y, 1rem) var(--block-padding-x, 1rem);
  background-color: var(--section-bg-color, #f7f7f7);
  text-align: {{ section.settings.button_alignment | default: 'center' }};
}

/* 重置按钮基础样式 */
section .custom-button-wrapper .custom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: var(--font-size, 1rem);
  font-weight: bold;
  padding: var(--padding-y, 0.75rem) var(--padding-x, 1.5rem);
  color: var(--text-color, #fff) !important; /* 添加 !important 确保覆盖 */
  background-color: var(--bg-color, #000) !important; /* 添加 !important 确保覆盖 */
  border: var(--border-width, 2px) solid var(--border-color, #000);
  border-radius: var(--border-radius, 6px);
  box-shadow: {% if section.settings.enable_custom_box_shadow %}{{ section.settings.box_shadow }}{% else %}{{ section.settings.box_shadow_preset }}{% endif %};
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(calc(var(--button-3d-depth, 0) * -0.5));
  min-height: 44px;
  min-width: 100px;
}

/* 修复：图标大小控制 */
section .custom-button-wrapper .custom-button img {
  height: var(--icon-size, 1.2em);
  width: auto;
  margin-right: var(--icon-margin, 0.5em);
  vertical-align: middle;
  object-fit: contain;
}

/* 修复：分离3D和bounce效果 */
section .custom-button-wrapper .custom-button:not(.custom-button--bounce):hover {
  transform: translateY(calc(var(--button-3d-depth, 0) * -1));
  box-shadow: {% if section.settings.enable_custom_box_shadow %}{{ section.settings.box_shadow | append: ', 0 6px 12px rgba(0,0,0,0.2)' }}{% else %}{{ section.settings.box_shadow_preset | append: ', 0 6px 12px rgba(0,0,0,0.2)' }}{% endif %};
}

/* 修复：bounce动画独立工作 */
section .custom-button-wrapper .custom-button--bounce:hover {
  animation: bounce 0.5s ease-in-out;
  transform: translateY(calc(var(--button-3d-depth, 0) * -1));
}

/* 修复outline样式 - 使用变量而非inherit */
section .custom-button-wrapper .custom-button--outline {
  background-color: transparent !important;
  color: var(--text-color, #000) !important;
  border-color: var(--border-color, #000);
}

section .custom-button-wrapper .custom-button--outline:hover {
  background-color: var(--text-color, #000) !important;
  color: var(--bg-color, #fff) !important;
  border-color: var(--text-color, #000);
}

@keyframes bounce {
  0%, 100% { transform: translateY(calc(var(--button-3d-depth, 0) * -1)); }
  50% { transform: translateY(calc(calc(var(--button-3d-depth, 0) * -1) - 5px); }
}

@media screen and (max-width: 768px) {
  section .custom-button-wrapper {
    --block-padding-y: calc({{ section.settings.block_padding_y | default: 16 }}px * 0.5);
    --block-padding-x: 10px;
    --block-margin-top: calc({{ section.settings.margin_top | default: 20 }}px * 0.75);
    --block-margin-bottom: calc({{ section.settings.margin_bottom | default: 20 }}px * 0.75);
    --section-bg-color: {{ section.settings.section_bg_color | default: '#f0f0f0' }};
  }
  
  section .custom-button-wrapper .custom-button {
    --font-size: min(calc({{ section.settings.font_size | default: 16 }}px * 0.9), 18px);
    --padding-y: 8px;
    --padding-x: 16px;
    --icon-size: min(calc(var(--icon-size) * 0.9), 1.1em);
  }
}

@media screen and (max-width: 480px) {
  section .custom-button-wrapper .custom-button {
    --font-size: min(calc({{ section.settings.font_size | default: 16 }}px * 0.85), 16px);
    --padding-y: 6px;
    --padding-x: 12px;
    --icon-size: min(calc(var(--icon-size) * 0.85), 1em);
  }
}

section .custom-button-wrapper .custom-button {
  /* 添加以下两行 */
  text-transform: var(--text-transform, none)!important; /* 新增：文字大小写控制 */
  letter-spacing: var(--letter-spacing, normal)!important; /* 新增：字母间距控制 */
  font-variant: normal !important; /* 防止小型大写字母 */
  font-feature-settings: 'cpsp' 0 !important; /* 禁用OpenType大写字母 */
  body .custom-button-wrapper .custom-button {
  text-transform: inherit !important; /* 确保继承我们的设置 */
}
}