/* KOL 客製化樣式 */

/* 錯誤訊息樣式 */
.warning-word {
  color: var(--red);
  font-size: 0.8em;
  margin-top: 0.25em;
  display: block;
}

/* 確保錯誤樣式在 field 內正確顯示 */
.field .warning-word {
  width: 100%;
  margin-top: 0.25em;
}

/* 輸入框錯誤狀態 */
input.error {
  border-color: var(--red);
}

/* 錯誤訊息容器 */
.error-container {
  width: 100%;
  margin-top: 0.25em;
}

/* 郵遞區號輸入框樣式 */
.input-zipcode {
  width: 6em !important;
  min-width: 6em;
  max-width: 6em;
}

/* 寬輸入框樣式 - 用於金流設定等需要更寬的輸入框 */
.input-wide {
  width: 100% !important;
  min-width: 400px !important;
  max-width: 600px !important;
  flex: 1 !important;
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 !important;
}

/* 標準輸入框樣式 - 用於 Email 等一般輸入框 */
.input-normal {
  width: 100% !important;
  min-width: 250px !important;
  max-width: 350px !important;
  flex: 1 !important;
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 !important;
}

/* 固定購物車圖示 */
.cart-icon-fixed {
  position: fixed;
  top: 0.75em;
  right: 1em;
  z-index: 1000;
  width: 44px;
  height: 44px;
  background: var(--red) url(../images/icon_cart.svg) no-repeat center;
  background-size: 1.25em;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-fixed:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cart-icon-fixed span {
  display: none;
}

/* 購物車數量徽章 */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

/* 響應式設計 */
@media screen and (max-width: 768px) {
  .cart-icon-fixed {
    width: 40px;
    height: 40px;
    top: 0.5em;
    right: 0.75em;
  }

  .cart-badge {
    width: 16px;
    height: 16px;
    font-size: 0.65em;
    min-width: 16px;
  }

  .input-wide {
    min-width: 300px !important;
    max-width: 100% !important;
  }

  .input-normal {
    min-width: 200px !important;
    max-width: 100% !important;
  }
}


/* 紅色提醒文字樣式 */
.red-notice {
  color: var(--red);
  font-size: 0.9em;
  text-align: center;
  margin: 1em 0;
  line-height: 1.5;
  font-weight: 500;
}

/* （移除）使用者條款頁面樣式 — 改由共同 layouts 提供 */

/* Footer 樣式（KOL 端） */
footer {
  text-align: center;
  padding: 16px 0;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
}