/* TOASTism Footer — 無框平面版 */
body[data-theme="shinvo-standard"] #footer {
  --toast-footer-ink: #1d1c1a;
  --toast-footer-text: #57524b;
  --toast-footer-paper: #f3f0ea;
  --toast-footer-line: #d8d1c6;
  --toast-footer-dark: #1c1c1b;
  background: var(--toast-footer-paper) !important;
  color: var(--toast-footer-text) !important;
  border-top: 1px solid var(--toast-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 48px 48px 48px 64px !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  align-items: stretch !important;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 44px 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(--toast-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 {
  display: none !important;
}

/* 品牌區 */
body[data-theme="shinvo-standard"] #footer .footer-piece--logo {
  grid-column: 1 / 3 !important;
  grid-row: 1 / 5 !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  min-height: 190px;
  padding: 16px 32px 16px 0 !important;
  border-right: 1px solid var(--toast-footer-line) !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--logo img {
  display: block;
  width: auto !important;
  max-width: min(100%, 184px) !important;
  height: auto !important;
  max-height: 92px !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 / 7 !important;
  display: flex !important;
  align-items: center;
  padding-inline: 32px !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: 10px !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--tel { grid-row: 2 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--address { grid-row: 3 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--email { grid-row: 4 !important; }

body[data-theme="shinvo-standard"] #footer .footer-piece--contact-title,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-title {
  gap: 10px;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--toast-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(--toast-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(--toast-footer-ink) !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--card-left {
  grid-column: 3 / 7 !important;
  grid-row: 1 / 5 !important;
  display: block !important;
  z-index: 0;
  pointer-events: none;
  border-right: 1px solid var(--toast-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--line-info {
  grid-column: 7 / 9 !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--social-title {
  grid-row: 1 !important;
  display: flex !important;
  align-items: flex-start;
  padding: 2px 28px 10px !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2 {
  grid-row: 2 !important;
  align-self: center;
  justify-self: start;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1 { margin-left: 28px !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2 { margin-left: 76px !important; }

body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1 a,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2 a {
  display: inline-flex !important;
  width: 34px !important;
  height: 34px !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 i,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2 i {
  font-size: 27px !important;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--line-info {
  grid-row: 3 / 5 !important;
  align-self: start;
  padding: 10px 28px 0 !important;
  font-size: 14px;
  line-height: 1.5;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--line-info small {
  display: block;
  margin-bottom: 2px;
  color: #8a8379;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--line-info strong,
body[data-theme="shinvo-standard"] #footer .footer-piece--line-info a {
  color: var(--toast-footer-ink) !important;
  font-size: 17px;
  font-weight: 700;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--card-right {
  grid-column: 7 / 9 !important;
  grid-row: 1 / 5 !important;
  display: block !important;
  z-index: 0;
  pointer-events: none;
  border-right: 1px solid var(--toast-footer-line) !important;
}

/* 地圖 */
body[data-theme="shinvo-standard"] #footer .footer-piece--map {
  grid-column: 9 / 13 !important;
  grid-row: 1 / 5 !important;
  display: block !important;
  min-height: 190px;
  padding-left: 28px !important;
  overflow: hidden;
}

body[data-theme="shinvo-standard"] #footer .footer-piece--map iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 190px;
  border: 0 !important;
  border-radius: 0 !important;
}

/* 法務列 */
body[data-theme="shinvo-standard"] #footer .footer-default-inner::before {
  content: "";
  grid-column: 1 / 13;
  grid-row: 5;
  z-index: -1;
  width: 100vw;
  height: 64px;
  margin-left: calc(50% - 50vw);
  background: var(--toast-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: 5 !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 / 4 !important; justify-content: flex-start; }
body[data-theme="shinvo-standard"] #footer .footer-piece--powered { grid-column: 4 / 6 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy { grid-column: 6 / 7 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms { grid-column: 7 / 8 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--link-shipping { grid-column: 8 / 10 !important; }
body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn { grid-column: 10 / 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;
}

body[data-theme="shinvo-standard"] #footer a:hover {
  opacity: 0.72;
}

@media (max-width: 1199px) {
  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 48px 48px 48px 24px auto 54px 76px 64px 52px 52px 52px !important;
    padding: 36px 0 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--logo {
    grid-column: 1 !important;
    grid-row: 1 / 5 !important;
    padding: 14px 28px 14px 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 / 5 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--toast-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--line-info {
    grid-column: 1 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-title {
    grid-row: 6 !important;
    padding: 0 28px 10px 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2 { 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: 48px !important; }

  body[data-theme="shinvo-standard"] #footer .footer-piece--line-info {
    grid-row: 8 !important;
    padding: 8px 28px 0 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--card-right {
    grid-column: 1 !important;
    grid-row: 6 / 9 !important;
    border-right: 1px solid var(--toast-footer-line) !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--map {
    grid-column: 2 !important;
    grid-row: 6 / 9 !important;
    padding-left: 28px !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-default-inner::before {
    grid-column: 1 / 3;
    grid-row: 9 / 13;
    height: auto;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--copyright,
  body[data-theme="shinvo-standard"] #footer .footer-piece--powered { grid-row: 9 !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: 10 !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-shipping,
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn { grid-row: 11 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-shipping { grid-column: 1 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn { grid-column: 2 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-member {
    grid-column: 1 / 3 !important;
    grid-row: 12 !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 auto auto auto 22px auto 50px auto 22px 220px 22px repeat(7, 48px) !important;
    padding: 30px 0 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 104px;
    padding: 0 0 24px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--toast-footer-line) !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--logo img {
    max-width: 178px !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; padding-bottom: 10px !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--tel { grid-row: 4 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--address { grid-row: 5 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--email { grid-row: 6 !important; }

  body[data-theme="shinvo-standard"] #footer .footer-piece--card-left {
    grid-column: 1 !important;
    grid-row: 3 / 7 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--toast-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--line-info {
    grid-column: 1 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-title {
    grid-row: 8 !important;
    padding: 0 0 10px !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1,
  body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2 { grid-row: 9 !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: 48px !important; }

  body[data-theme="shinvo-standard"] #footer .footer-piece--line-info {
    grid-row: 10 !important;
    padding: 6px 54px 0 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--card-right {
    grid-column: 1 !important;
    grid-row: 8 / 11 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--toast-footer-line) !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--map {
    grid-column: 1 !important;
    grid-row: 12 !important;
    min-height: 220px;
    padding: 0 !important;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--map iframe {
    min-height: 220px;
  }

  body[data-theme="shinvo-standard"] #footer .footer-default-inner::before {
    grid-column: 1 !important;
    grid-row: 14 / 21 !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-shipping,
  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, 0.08) !important;
    white-space: normal;
  }

  body[data-theme="shinvo-standard"] #footer .footer-piece--copyright { grid-row: 14 !important; justify-content: flex-start; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--powered { grid-row: 15 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-privacy { grid-row: 16 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-terms { grid-row: 17 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-shipping { grid-row: 18 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-payreturn { grid-row: 19 !important; }
  body[data-theme="shinvo-standard"] #footer .footer-piece--link-member { grid-row: 20 !important; }
}

/* 社群圖示本體不保留方形外框 */
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-1,
body[data-theme="shinvo-standard"] #footer .footer-piece--social-pos-2 {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}