/* 防詐騙宣導視窗（standard-leyo、standard-3、standard/newTheme 商品頁共用；目前只由 eid 131、130 載入）。主色依企業設定於 .fraud-notice--eid-N */
.fraud-notice {
  --fraud-notice-brand: var(--bs-primary, #bb641e);
}
/* eid 131 樂遊人 */
.fraud-notice--eid-131 {
  --fraud-notice-brand: #bb641e;
}
/* eid 130 新聯華國際集團（standard-3/eid_130 的 --clicugo-primary） */
.fraud-notice--eid-130 {
  --fraud-notice-brand: #745F49;
}
.fraud-notice {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease-in-out, visibility .25s ease-in-out;
}
.fraud-notice.is-open {
  visibility: visible;
  opacity: 1;
}
.fraud-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}
.fraud-notice__dialog {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: var(--fraud-notice-brand);
  padding: 1.75rem 2.5rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transform: translateY(12px);
  transition: transform .25s ease-in-out;
}
.fraud-notice.is-open .fraud-notice__dialog {
  transform: translateY(0);
}
.fraud-notice__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.fraud-notice__close:hover {
  color: var(--fraud-notice-brand);
}
/* ✕ 與 ! 圖示（inline SVG，不依賴 Font Awesome） */
.fraud-notice__icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.fraud-notice__header {
  text-align: center;
  color: #fff;
  margin-bottom: 1.25rem;
}
.fraud-notice__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
}
.fraud-notice__subtitle {
  margin: .5rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.fraud-notice__body {
  overflow-y: auto;
  background: #fff;
  color: #2e2e2e;
  padding: 1.75rem 2rem;
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
}
.fraud-notice__body p {
  margin: 0 0 1rem;
}
.fraud-notice__body p:last-child {
  margin-bottom: 0;
}
.fraud-notice__list {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  text-align: left;
}
.fraud-notice__list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: .35rem;
}
.fraud-notice__list li::before {
  content: "\25C6";
  position: absolute;
  left: 0;
  color: var(--fraud-notice-brand);
  font-size: .8em;
  line-height: 2.25;
}
/* 編號清單（eid 130）：以企業色數字取代 ◆ */
.fraud-notice__list--numbered {
  counter-reset: fraud-notice-item;
}
.fraud-notice__list--numbered li {
  counter-increment: fraud-notice-item;
}
.fraud-notice__list--numbered li::before {
  content: counter(fraud-notice-item) ".";
  font-size: 1em;
  font-weight: 700;
  line-height: inherit;
}
.fraud-notice__label {
  font-weight: 700;
}
.fraud-notice__body strong {
  color: var(--fraud-notice-brand);
  word-break: break-all;
}
.fraud-notice__highlight {
  font-weight: 700;
  color: var(--fraud-notice-brand);
}

/* 縮小入口：預設為 standard-leyo 置頂按鈕（right 1.5rem / bottom 86px / 40x40）正下方的固定位置 */
.fraud-notice-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 36px;
  z-index: 1030;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffc107;
  color: #2e2e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: filter .3s;
}
.fraud-notice-toggle:hover {
  filter: brightness(1.1);
}

/* standard-3：放在 .fixed_right 欄內（flex column）置頂按鈕之後，跟隨欄位排列 */
.fixed_right .fraud-notice-toggle {
  position: static;
  flex-shrink: 0;
}
/* standard-3：.fixed_right > div 為 overflow-y: auto，加入入口後隱藏捲軸，保留滑動 */
.fixed_right > div {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.fixed_right > div::-webkit-scrollbar {
  display: none;
}

/* standard/newTheme/newProductDetail.jsp（Vue 商品頁）：#goTopBtn 在 right 20px / bottom 180px（40x40），
   入口固定放在其正下方，間距 4px；下方 bottom 90px 起為客服按鈕 */
.fraud-notice-newtheme .fraud-notice-toggle {
  right: 20px;
  bottom: 136px;
}

body.fraud-notice-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .fraud-notice__dialog {
    padding: 1.25rem 1rem 1rem;
  }
  .fraud-notice__close {
    top: -12px;
    right: -6px;
  }
  .fraud-notice__title {
    font-size: 1.35rem;
  }
  .fraud-notice__subtitle {
    font-size: 1rem;
  }
  .fraud-notice__body {
    padding: 1.25rem 1rem;
    font-size: .95rem;
    text-align: left;
  }
  .fraud-notice__list {
    display: block;
  }
  .fraud-notice-toggle {
    right: 1rem;
    bottom: 20px;
  }
}
