/**
 * JShoe 自定义样式
 * 父主题更新不会覆盖此文件
 */

/* ================================================================
   右下角浮动按钮组 — 参照 jshoe.co.kr .side-bnr-wrap
   ================================================================ */

   .side-bnr-wrap {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  
  /* 隐藏聊天按钮 */
  .bt_chat.off {
    display: none;
  }
  
  /* ── KakaoTalk 聊天按钮 ── */
  .bt_chat a {
    display: flex;
    align-items: center;
    height: 45px;
    width: 45px;
    background: #FEE500;
    border-radius: 45px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s;
    cursor: pointer;
  }
  
  .bt_chat a:hover {
    width: 130px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
  
  .bt_chat .ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    min-width: 45px;
    height: 45px;
    color: #3C1E1E;
  }
  
  .bt_chat .txt {
    color: #3C1E1E;
    font-size: 13px;
    font-weight: 600;
    padding-right: 16px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s 0.08s, transform 0.2s 0.08s;
  }
  
  .bt_chat a:hover .txt {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* ── 上/下滚动按钮 ── */
  .bt-scroll-up a,
  .bt-scroll-down a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #555;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  }
  
  .bt-scroll-up a:hover,
  .bt-scroll-down a:hover {
    background: #f5f5f5;
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: scale(1.06);
  }
  
  .bt-scroll-up a:active,
  .bt-scroll-down a:active {
    transform: scale(0.95);
  }
  
  /* 下箭头旋转 180 度 */
  .bt-scroll-down svg {
    /* polyline 已经画的是向下箭头，不需要旋转 */
  }
  
  /* ── 间距微调 ── */
  .bt-scroll-up {
    margin-top: 2px;
  }
  
  /* ================================================================
     商品倒计时 — 韩式样式（jshoe.co.kr 风格）
     子主题模板覆盖 + hook 移动到标题上方
     ================================================================ */
  
  /* 倒计时容器：标题上方，居左 */
  .jshoe-countdown-above {
    margin-bottom: 6px;
  }
  
  /* 红色背景胶囊 */
  .jshoe-kr-timer {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: 5px;
    background: #f05555;
    white-space: nowrap;
    flex-wrap: nowrap !important;
    width: 100%;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
  }

  /* 去掉 Woodmart 默认的方块样式（默认是 flex-direction: column 导致上下堆叠） */
  .jshoe-kr-timer > span.wd-item {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 0 !important;
    min-width: unset !important;
    min-height: unset !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: inherit !important;
    line-height: inherit;
    color: inherit;
  }

  .jshoe-kr-timer .wd-timer-value {
    font-weight: 700;
    font-size: inherit;
    color: inherit;
  }

  .jshoe-kr-timer .jshoe-suffix {
    color: inherit;
    font-size: inherit;
    font-weight: 700;
    margin-left: 1px;
    margin-right: 4px;
  }

  /* 冒号用伪元素，不占 flex gap */
  .jshoe-kr-timer .wd-timer-hours::after,
  .jshoe-kr-timer .wd-timer-min::after {
    content: ':';
    font-weight: 700;
  }

  .jshoe-kr-timer .jshoe-remaining {
    color: inherit;
      font-size: 16px;
      font-weight: 600;
      margin-left: 6px;
  }
  
  /* ================================================================
     响应式
     ================================================================ */
  
  @media (max-width: 767px) {
    .side-bnr-wrap {
      right: 12px;
      bottom: 18px;
      gap: 5px;
    }
  
    .bt_chat a {
      width: 40px;
      height: 40px;
      border-radius: 40px;
    }
  
    .bt_chat a:hover {
      width: 118px;
    }
  
    .bt_chat .ico {
      width: 40px;
      min-width: 40px;
      height: 40px;
    }
  
    .bt_chat .ico svg {
      width: 19px;
      height: 19px;
    }
  
    .bt_chat .txt {
      font-size: 12px;
      padding-right: 14px;
    }
  
    .bt-scroll-up a,
    .bt-scroll-down a {
      width: 40px;
      height: 40px;
    }
  
    .bt-scroll-up svg,
    .bt-scroll-down svg {
      width: 14px;
      height: 14px;
    }
  }
  
  @media (max-width: 374px) {
    .side-bnr-wrap {
      right: 8px;
      bottom: 80px;
    }
  
    .bt_chat a {
      width: 36px;
      height: 36px;
      border-radius: 36px;
    }
  
    .bt_chat a:hover {
      width: 110px;
    }
  
    .bt_chat .ico {
      width: 36px;
      min-width: 36px;
      height: 36px;
    }
  
    .bt_chat .ico svg {
      width: 17px;
      height: 17px;
    }
  
    .bt_chat .txt {
      font-size: 11px;
      padding-right: 12px;
    }
  
    .bt-scroll-up a,
    .bt-scroll-down a {
      width: 36px;
      height: 36px;
    }
  
    .bt-scroll-up svg,
    .bt-scroll-down svg {
      width: 12px;
      height: 12px;
    }
  }
  