/* 樂盒 La boite Footer — 無框精簡版 */
body[data-theme="shinvo-standard"] #footer {
  --laboite-footer-ink: #171717;
  --laboite-footer-text: #55514b;
  --laboite-footer-paper: #f4f3f1;
  --laboite-footer-line: #d8d4ce;
  --laboite-footer-dark: #1d1d1c;
  background: var(--laboite-footer-paper) !important;
  color: var(--laboite-footer-text) !important;
  border-top: 1px solid var(--laboite-footer-line);
}

body[data-theme="shinvo-standard"] #footer .footer-shell {
  width: 100%;
  padding-inline: clamp(24px, 6vw, 112px) !important;
}

body[data-theme="shinvo-standard"] #footer .footer-default-inner {
  position: relative;
  isolation: isolate;
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: auto 52px 52px 64px !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  align-items: stretch !important;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 0 0 !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece {
  position: relative !important;
  inset: auto !important;
  z-index: 1;
  min-width: 0;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--laboite-footer-text);
}

/* 隱藏重複或沒有內容的區塊 */
body[data-theme="shinvo-standard"] #footer .footer-piece--name,
body[data-theme="shinvo-standard"] #footer .footer-piece--brand,
body[data-theme="shinvo-standard"] #footer .footer-piece--service-title,
body[data-theme="shinvo-standard"] #footer .footer-piece--hours,
body[data-theme="shinvo-standard"] #footer .footer-piece--break,
body[data-theme="shinvo-standard"] #footer .footer-piece--closed,
body[data-theme="shinvo-standard"] #footer .footer-piece--map,
body[data-theme="shinvo-standard"] #footer .footer-piece--card-right {
  display: none !important;
}

/* Logo */
body[data-theme="shinvo-standard"] #footer .footer-piece--logo {
  grid-column: 1 / 3 !important;
  grid-row: 1 / 4 !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  min-height: 156px;
  padding: 14px 32px 14px 0 !important;
  border-right: 1px solid var(--laboite-footer-line) !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--logo a {
  display: inline-flex;
  align-items: center;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--logo img {
  display: block;
  width: auto !important;
  max-width: min(100%, 154px) !important;
  height: auto !important;
  max-height: 88px !important;
  object-fit: contain;
}

/* 聯絡資訊 */
body[data-theme="shinvo-standard"] #footer .footer-piece--contact-title,
body[data-theme="shinvo-standard"] #footer .footer-piece--tel,
body[data-theme="shinvo-standard"] #footer .footer-piece--address,
body[data-theme="shinvo-standard"] #footer .footer-piece--email {
  grid-column: 3 / 8 !important;
  display: flex !important;
  align-items: center;
  padding-inline: 36px !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--contact-title {
  grid-row: 1 !important;
  align-items: flex-start;
  padding-top: 2px !important;
  padding-bottom: 8px !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--contact-pos-1 { grid-row: 2 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--contact-pos-2 { grid-row: 3 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--contact-pos-3 { grid-row: 3 !important; }

body[data-theme="shinvo-standard"] #footer .footer-piece--contact-title,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: var(--laboite-footer-ink) !important;
}

/* 不顯示標題前方黑線 */
body[data-theme="shinvo-standard"] #footer .footer-piece--contact-title::before,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-title::before {
  content: none !important;
  display: none !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--tel,
body[data-theme="shinvo-standard"] #footer .footer-piece--address,
body[data-theme="shinvo-standard"] #footer .footer-piece--email {
  gap: 12px;
  font-size: 15px !important;
  line-height: 1.55;
  color: var(--laboite-footer-text) !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--tel i,
body[data-theme="shinvo-standard"] #footer .footer-piece--address i,
body[data-theme="shinvo-standard"] #footer .footer-piece--email i {
  display: inline-flex;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--laboite-footer-ink) !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--card-left {
  grid-column: 3 / 8 !important;
  grid-row: 1 / 4 !important;
  display: block !important;
  z-index: 0;
  pointer-events: none;
  border-right: 1px solid var(--laboite-footer-line) !important;
}

/* 社群連結 */
body[data-theme="shinvo-standard"] #footer .footer-piece--social-title,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-3,
body[data-theme="shinvo-standard"] #footer .footer-piece--line-info {
  grid-column: 8 / 13 !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--social-title {
  grid-row: 1 !important;
  display: flex !important;
  align-items: flex-start;
  padding: 2px 36px 8px !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-3 {
  grid-row: 2 !important;
  align-self: center;
  justify-self: start;
  display: inline-flex !important;
  width: 38px !important;
  height: 38px !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1 { margin-left: 36px !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2 { margin-left: 88px !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-3 { margin-left: 140px !important; }

body[data-theme="shinvo-standard"] #footer .footer-social-icon,
body[data-theme="shinvo-standard"] #footer .footer-social-icon img {
  width: 26px !important;
  height: 26px !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--line-info {
  grid-row: 3 !important;
  padding: 6px 36px 0 !important;
}

body[data-theme="shinvo-standard"] #footer a:hover {
  opacity: 0.72;
}

/* 底部版權與條款 */
body[data-theme="shinvo-standard"] #footer .footer-default-inner::before {
  content: "";
  grid-column: 1 / 13;
  grid-row: 4;
  z-index: -1;
  width: 100vw;
  height: 64px;
  margin-left: calc(50% - 50vw);
  background: var(--laboite-footer-dark);
}

body[data-theme="shinvo-standard"] #footer .footer-piece--copyright,
body[data-theme="shinvo-standard"] #footer .footer-piece--powered,
body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy,
body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms,
body[data-theme="shinvo-standard"] #footer .footer-piece--link-shipping,
body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn,
body[data-theme="shinvo-standard"] #footer .footer-piece--link-member {
  grid-row: 4 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 10px !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--copyright { grid-column: 1 / 5 !important; justify-content: flex-start; }
body[data-theme="shinvo-standard"] #footer .footer-piece--powered { grid-column: 5 / 7 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy { grid-column: 7 / 8 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms { grid-column: 8 / 9 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--link-shipping { grid-column: 9 / 10 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn { grid-column: 9 / 11 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--link-member { grid-column: 11 / 13 !important; padding-right: 72px !important; }

body[data-theme="shinvo-standard"] #footer .footer-piece--copyright::after {
  display: none !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--copyright a,
body[data-theme="shinvo-standard"] #footer .footer-piece--powered a,
body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy a,
body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms a,
body[data-theme="shinvo-standard"] #footer .footer-piece--link-shipping a,
body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn a,
body[data-theme="shinvo-standard"] #footer .footer-piece--link-member a {
  color: #fff !important;
  text-decoration: none !important;
}

@media (max-width: 991px) {
  body[data-theme="shinvo-standard"] #footer .footer-shell {
    padding-inline: 28px !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-default-inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr) !important;
    grid-template-rows: auto 52px 52px 24px auto 54px 64px 52px 52px 52px !important;
    padding: 32px 0 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--logo {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    min-height: 156px;
    padding: 12px 28px 12px 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--contact-title,
  body[data-theme="shinvo-standard"] #footer .footer-piece--tel,
  body[data-theme="shinvo-standard"] #footer .footer-piece--address,
  body[data-theme="shinvo-standard"] #footer .footer-piece--email {
    grid-column: 2 !important;
    padding-inline: 28px 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--card-left {
    grid-column: 1 / 3 !important;
    grid-row: 1 / 4 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--laboite-footer-line) !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-title,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-3,
  body[data-theme="shinvo-standard"] #footer .footer-piece--line-info {
    grid-column: 1 / 3 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-title {
    grid-row: 5 !important;
    padding: 0 0 8px !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-3 { grid-row: 6 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1 { margin-left: 0 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2 { margin-left: 52px !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-3 { margin-left: 104px !important; }

  body[data-theme="shinvo-standard"] #footer .footer-default-inner::before {
    grid-column: 1 / 3;
    grid-row: 7 / 11;
    height: auto;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--copyright,
  body[data-theme="shinvo-standard"] #footer .footer-piece--powered { grid-row: 7 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--copyright { grid-column: 1 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--powered { grid-column: 2 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms { grid-row: 8 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy { grid-column: 1 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms { grid-column: 2 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-member { grid-row: 9 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn { grid-column: 1 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-member { grid-column: 2 !important; padding-right: 76px !important; }
}

@media (max-width: 767px) {
  body[data-theme="shinvo-standard"] #footer .footer-shell {
    padding-inline: 18px !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-default-inner {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto 22px auto 54px 22px auto 54px 22px repeat(6, 48px) !important;
    padding: 28px 0 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 100px;
    padding: 0 0 22px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--laboite-footer-line) !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--logo img {
    max-width: 148px !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--contact-title,
  body[data-theme="shinvo-standard"] #footer .footer-piece--tel,
  body[data-theme="shinvo-standard"] #footer .footer-piece--address,
  body[data-theme="shinvo-standard"] #footer .footer-piece--email {
    grid-column: 1 !important;
    padding-inline: 0 54px !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--contact-title { grid-row: 3 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--contact-pos-1 { grid-row: 4 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--contact-pos-2 { grid-row: 4 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--contact-pos-3 { grid-row: 4 !important; }

  body[data-theme="shinvo-standard"] #footer .footer-piece--card-left {
    grid-column: 1 !important;
    grid-row: 3 / 5 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--laboite-footer-line) !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-title,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-3 {
    grid-column: 1 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-title {
    grid-row: 6 !important;
    padding: 0 0 8px !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-3 { grid-row: 7 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1 { margin-left: 0 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2 { margin-left: 52px !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-3 { margin-left: 104px !important; }

  body[data-theme="shinvo-standard"] #footer .footer-default-inner::before {
    grid-column: 1 !important;
    grid-row: 9 / 15 !important;
    height: auto;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--copyright,
  body[data-theme="shinvo-standard"] #footer .footer-piece--powered,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-member {
    grid-column: 1 !important;
    min-height: 48px;
    padding: 0 76px 0 0 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    white-space: normal;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--copyright { grid-row: 9 !important; justify-content: flex-start; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--powered { grid-row: 10 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy { grid-row: 11 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms { grid-row: 12 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn { grid-row: 13 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-member { grid-row: 14 !important; }
}

/* 桌機極簡緊湊版 */
@media (min-width: 992px) {
  body[data-theme="shinvo-standard"] #footer {
    background: #f7f6f4 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-default-inner {
    grid-template-columns: minmax(0, 1fr) 120px 120px 360px 120px 100px minmax(0, 1fr) !important;
    grid-template-rows: 72px 48px !important;
    align-items: stretch !important;
    padding: 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--logo {
    grid-column: 2 / 3 !important;
    grid-row: 1 !important;
    min-height: 72px;
    padding: 10px 18px 10px 0 !important;
    border: 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--logo img {
    max-width: 98px !important;
    max-height: 46px !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--contact-title {
    grid-column: 3 / 4 !important;
    grid-row: 1 !important;
    align-items: center !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--tel,
  body[data-theme="shinvo-standard"] #footer .footer-piece--address,
  body[data-theme="shinvo-standard"] #footer .footer-piece--email {
    grid-column: 4 / 5 !important;
    grid-row: 1 !important;
    align-items: center !important;
    padding: 0 18px 0 4px !important;
    font-size: 14px !important;
    gap: 8px;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--tel i,
  body[data-theme="shinvo-standard"] #footer .footer-piece--address i,
  body[data-theme="shinvo-standard"] #footer .footer-piece--email i {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    font-size: 13px;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--card-left {
    display: none !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-title {
    grid-column: 5 / 6 !important;
    grid-row: 1 !important;
    align-items: center !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-3 {
    grid-column: 6 / 7 !important;
    grid-row: 1 !important;
    align-self: center;
    width: 28px !important;
    height: 28px !important;
    transform: none !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1 { margin-left: 0 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2 { margin-left: 36px !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-3 { margin-left: 72px !important; }

  body[data-theme="shinvo-standard"] #footer .footer-social-icon,
  body[data-theme="shinvo-standard"] #footer .footer-social-icon img {
    width: 22px !important;
    height: 22px !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-default-inner::before {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 48px;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--copyright,
  body[data-theme="shinvo-standard"] #footer .footer-piece--powered,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-shipping,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-member {
    grid-row: 2 !important;
    min-height: 48px;
    font-size: 12px !important;
  }
}

/* 桌機版權連結置中緊湊排列 */
@media (min-width: 992px) {
  body[data-theme="shinvo-standard"] #footer .footer-piece--copyright,
  body[data-theme="shinvo-standard"] #footer .footer-piece--powered,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-shipping,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-member {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--copyright { transform: translateX(-242px) !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--powered { transform: translateX(-25px) !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy { transform: translateX(91px) !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms { transform: translateX(163px) !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-shipping { transform: translateX(241px) !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn { transform: translateX(241px) !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-member { transform: translateX(329px) !important; }
}