/** Shopify CDN: Minification failed

Line 91:6 Unexpected "{"
Line 92:6 Expected identifier but found "%"
Line 95:2 Unexpected "="
Line 96:6 Expected identifier but found "%"
Line 117:6 Expected identifier but found "*"

**/
  .cart-header {
      background: linear-gradient(90deg, #80CFF0 0%, #E2F5FC 100%);
      /* height: 200px; */
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .cart-header-total-weight {
      font-family: 'Noto Sans CJK TC';
      font-style: normal;
      font-weight: 700;
      font-size: 20px;
      line-height: 30px;
      text-align: center;
      margin-top: 19px;
      color: rgba(18, 18, 18, 0.74902);
  }

  .update-cart-hint {
    font-family: 'Noto Sans CJK TC';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    height: 26px;
    margin: 13px 0px;
    text-align: center;
    color: rgba(18, 18, 18, 0.74902);
  }
  .cart-header-shipping-price,
  .cart-header-next-weight-level-hint {
      font-family: 'Noto Sans CJK TC';
      font-style: normal;
      font-weight: 400;
      font-size: 14px;
      line-height: 21px;
      height: 26px;
      margin-top: 13px;
      margin-bottom: 13px;
      text-align: center;
      color: rgba(18, 18, 18, 0.74902);
  }

  .shipping-price-text {
      color: red;
  }

  .cart-next-weight-level-text {
      color: red;
  }

  .shipping-location-selector {
      margin-top: 10px;
      margin-bottom: 5px;
      display: flex;
      align-items: center;
      gap: 10px;
      /* 按鈕間距 */
  }

  .shipping-location-selector .location-btn {
      background-color: #EDEDED;
      /* 預設背景色 */
      border: none;
      border-radius: 14.5px;
      padding: 3px 10px;
      color: #333;
  }

  .shipping-location-selector .location-btn.active {
      background-color: #4E80E6;
      /* 選中時的背景色 */
      color: #fff;
  }

  .location-note {
      font-size: 0.9em;
      color: #666;
  }

      {
      % comment %
  }

  =====開始：新增推薦商品樣式===== {
      % endcomment %
  }

  .cart-recommendations-container {
      border-top: 1px solid #eee;
      /* 分隔線 */
      padding-top: 20px;
  }

  .cart-recommendations-wrapper {
      position: relative;
      /* 為了讓箭頭可以絕對定位 */
      margin: 0 auto;
      max-width: 100%;
      overflow: hidden;
      /* 確保 wrapper 本身不會因內部滾動條或其他原因意外溢出 */
  }

  .recommendations-row {
      display: flex;
      /* overflow-x: hidden; /* 隱藏水平滾動條，由 JS 控制滾動 */
      */
      /* scroll-behavior: smooth; /* 平滑滾動效果 */
      */ padding: 10px 0;
      /* 上下留點空間 */
      margin: 0 30px;
      /* 左右留給箭頭的空間 */
      flex-wrap: nowrap;
      /* 確保 Flex 項目不換行 */




      overflow-x: auto;
      /* 顯示捲軸 */
      -webkit-overflow-scrolling: touch;
      /* iOS 平滑滾動 */
      scroll-behavior: auto;
      /* 若需要可關閉平滑滾動 */
  }

  .recommendation-item {
      flex: 0 0 20%;
      /* 桌機版：一行顯示 5 個 */
      max-width: 20%;
      /* 桌機版：一行顯示 5 個 */
      padding: 0 10px;
      /* 項目間距 */
      box-sizing: border-box;
      text-align: start;
      display: flex;
      /* 使用 flex 來垂直排列內容 */
      flex-direction: column;
      /* 垂直排列 */
      justify-content: space-between;
      /* 讓按鈕能貼底 (如果有的話) */
  }

  .recommendation-item a {
      text-decoration: none;
      color: inherit;
      display: block;
      /* 讓連結佔滿空間 */
  }

  .recommendation-item img {
      max-width: 100%;
      height: auto;
      margin-bottom: 10px;
      /* 圖片和標題間距 */
      aspect-ratio: 1 / 1;
      /* 維持圖片比例為方形 */
      object-fit: cover;
      /* 圖片填滿，可能會裁切 */
  }

  .recommendation-item .title {
      font-size: 14px;
      font-weight: bold;
      line-height: 1.3;
      margin-bottom: 5px;
      /* 最多顯示兩行，超過用 ... */
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      height: calc(14px * 1.3 * 2);
      /* 計算高度以對齊 */
  }

  .recommendation-item .price-container {
      /* 作為價格的容器，方便對齊 */
      display: flex;
      /* 使用 flex 排列 */
      justify-content: left;
      /* 水平置中 */
      align-items: baseline;
      /* 基線對齊 */
      flex-wrap: wrap;
      /* 允許換行 */
      gap: 5px;
      /* 價格間的間隔 */
      min-height: 1.5em;
      /* 保持一個最小高度，避免沒價格時跳動 */
      margin-top: auto;
      /* 將價格容器推到底部 */
      padding-top: 5px;
      /* 與上方元素的間距 */
  }

  del .recommendation-item .compare-at-price {
      font-size: 0.9em;
  }

  .recommendation-item .sale-price {
      font-size: 18px;
      font-weight: bold;
      display: flex;
  }

  .recommendation-item .weight {
      font-size: 12px;
      display: flex;
      /* 啟用 Flexbox，使內部元素水平排列 */
      align-items: baseline;
      /* 讓數字和單位的文字基線對齊，視覺效果較好 */
  }

  .recommendation-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: transparent;
      border: none;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      cursor: pointer;
      z-index: 10;
      font-size: 20px;
      line-height: 28px;
      text-align: center;
      display: flex;
      /* 使用 Flex 來置中 */
      align-items: center;
      justify-content: center;
  }

  .recommendation-arrow.prev {
      left: -5px;
  }

  .recommendation-arrow.next {
      right: 13px;
  }

  /* 推薦商品加入購物車按鈕的樣式 */
  .recommendation-item .recommendation-add-form {
      margin-top: 10px;
      text-align: center;
  }

  .recommendation-item .recommendation-add-button {
      width: 100%;
      font-size: 12px;
      text-align: center;
      cursor: pointer;
      border: 1px solid #4E80E6;
      border-radius: 15px;
      background: #FFF;
      color: #4E80E6;
      padding: 8px 12px 7px;
      transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .recommendation-item .recommendation-add-button:hover {
      background-color: #4E80E6;
      color: #FFF;
  }

  .recommendation-item .recommendation-add-button:active {
      background-color: #3a6ac5;
      border-color: #3a6ac5;
      color: #FFF;
  }

  /* 如果商品暫時無法購買的提示樣式 */
  .recommendation-unavailable {
      width: 100%;
      font-size: 12px;
      text-align: center;
      border: 1px solid #d0d0d0;
      border-radius: 15px;
      background: #FFF;
      color: #d0d0d0;
      padding: 8px 12px 7px;
  }

  /* RWD 手機版樣式 */
  @media (max-width: 768px) {
      .recommendations-row {
          margin: 0 35px;
          /* 手機版箭頭空間微調 */
      }

      .recommendation-item {
          flex: 0 0 33.33%;
          /* 手機版：一行顯示 3 個 */
          max-width: 33.33%;
          padding: 0 5px;
          /* 項目間距縮小 */
      }

      .recommendation-item .title {
          font-size: 14px;
          height: calc(14px * 1.3 * 2);
          /* 重算高度 */
      }

      .recommendation-item .sale-price {
          font-size: 16px;
      }

      .recommendation-arrow {
          width: 25px;
          height: 25px;
          font-size: 16px;
          line-height: 23px;
      }

      .recommendation-arrow.prev {
          left: -5px;
      }

      .recommendation-arrow.next {
          right: 13px;
      }
  }

  @media (max-width: 480px) {
      .recommendation-item {
          flex: 0 0 70%;
          /* 更小螢幕：一行顯示 2 個 */
          max-width: 70%;
      }
  }

  .cart-header-recommendation-hint {
      /* 使用 flex 來讓兩個 span 底線對齊 */
      display: flex;
      align-items: baseline;
      /* 底線對齊 */
      flex-wrap: wrap;
      /* 允許換行以防文字過長 */
      color: #545454;
      /* 保持顏色一致 */
  }

  .cart-header-recommendation-hint .main-hint {
      font-size: 18px;
      /* 主提示字體稍大 */
      font-weight: 700;
      /* 加粗 */
      margin-right: 5px;
      /* 與副提示間隔 */
  }

  .cart-header-recommendation-hint .sub-hint {
      font-size: 14.4px;
      /* 約為主提示的 80% (18px * 0.8) */
      font-weight: 400;
      /* 正常粗細 */
  }

  /* 您可以加入 RWD 調整字體大小 */
  @media (max-width: 768px) {
      .cart-header-recommendation-hint .main-hint {
          font-size: 16px;
      }

      .cart-header-recommendation-hint .sub-hint {
          font-size: 12.8px;
          /* 16px * 0.8 */
      }

  }









  .shipping-location-dropdown-container {
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      margin-top: 4px;
  }


  .shipping-method-toggle-container {
      display: flex;
      align-items: center;
  }


  /* ===== 開始：移除舊的 Switch 樣式並替換為膠囊按鈕樣式 ===== */
  .shipping-location-selector {
      /* 改為 flex 直向排列，讓 dropdown 可以顯示在下方 */
      flex-direction: column;
      align-items: center;
      gap: 15px;
      /* 調整上下間距 */
  }

  /* 膠囊按鈕容器 */
  .shipping-method-toggle {
      display: flex;
      background-color: #e9ecef;
      border-radius: 20px;
      padding: 4px;
      border: 1px solid #dee2e6;
  }

  /* 膠囊按鈕內的個別按鈕 */
  .shipping-method-toggle .toggle-btn {
      border: none;
      background-color: transparent;
      border-radius: 16px;
      padding: 6px 16px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      color: #495057;
      transition: background-color 0.3s, color 0.3s;
  }

  /* 選中時的按鈕樣式 */
  .shipping-method-toggle .toggle-btn.active {
      background-color: #4E80E6;
      color: #fff;
      font-weight: bold;
  }

  /* EMS 下拉選單區塊的容器 */
  .shipping-location-dropdown-container {
      display: flex;
      flex-direction: column;
      /* 讓標題和選單垂直排列 */
      align-items: center;
      /* 水平置中 */
      gap: 8px;
      /* 標題和選單的間距 */
      width: 100%;
      max-width: 250px;
      /* 可選：限制最大寬度 */
      margin-top: 5px;
  }

  .shipping-location-dropdown-container span {
      font-size: 14px;
      color: #333;
  }

  /* 下拉選單樣式 */
  #ems-locations-dropdown {
      width: 100%;
      background-color: white;
      border: 1px solid #ced4da;
      border-radius: 10px;
      padding: 8px 16px;
      background-repeat: no-repeat;
      background-position: right 0.75rem center;
      background-size: 16px 12px;
      margin-bottom: 0px;
  }

  /* 用於隱藏/顯示的 class */
  .hidden {
      display: none !important;
  }

  /* ===== 結束：修改樣式 ===== */