/* --- Layout: chat column and product column --- */
.chatbot-container.chatbot-products-mode {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: 420px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header products"
    "frame products";
  align-items: stretch;
  background-color: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1000;
}

.chatbot-preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  background: linear-gradient(135deg, #f4fafb 0%, #eef5f6 100%);
  color: #08343a;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

.chatbot-preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  mix-blend-mode: screen;
  pointer-events: none;
}

.chatbot-preloader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chatbot-preloader__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  max-width: 380px;
  z-index: 1;
}

.chatbot-preloader__spinner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 6px solid rgba(0, 146, 152, 0.18);
  border-top-color: #009298;
  animation: chatbotPreloaderSpin 1s linear infinite;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.chatbot-preloader__message {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.chatbot-preloader__hint {
  margin: 0;
  font-size: 14px;
  color: rgba(8, 52, 58, 0.72);
  line-height: 1.6;
}

@keyframes chatbotPreloaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.chatbot-container.chatbot-products-mode > * {
  min-width: 0;
  min-height: 0;
}

.chatbot-container.chatbot-products-mode .chatbot-header {
  grid-area: header;
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  box-sizing: border-box;
  border-right: 1px solid rgba(8, 52, 58, 0.08);
  z-index: 3;
}

.chatbot-container.chatbot-products-mode .chatbot-frame {
  grid-area: frame;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: 0;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box;
  border-right: 1px solid rgba(8, 52, 58, 0.08);
  background-color: #ffffff;
  overflow: hidden;
}

.chatbot-container.chatbot-products-mode .chatbot-content {
  min-height: 0;
  overscroll-behavior: none;
}

.chatbot-container.chatbot-products-mode .chatbot-footer {
  position: relative;
  z-index: 2;
}

/* --- Product panel --- */
.chatbot-products-panel {
  grid-area: products;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  min-width: 0;
  min-height: 0;
  background: linear-gradient(135deg, #f4fafb 0%, #eef5f6 100%);
  border-left: 1px solid rgba(8, 52, 58, 0.08);
  box-sizing: border-box;
  color: #08343a;
  position: relative;
  --carousel-card-size: 240px;
  --carousel-track-height: calc(var(--carousel-card-size) + 96px);
  --product-grid-gap: 24px;
  --product-card-min: 220px;
  --product-card-max: 280px;
  overflow: hidden;
}

.chatbot-products-panel[hidden] {
  display: none !important;
}

.chatbot-products-inline {
  display: none !important;
}

.chatbot-products-panel .chatbot-products-header {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.32;
  padding: 0;
  margin: 0;
  letter-spacing: 0.018em;
  word-break: keep-all;
  animation: none;
}

.chatbot-products-panel .chatbot-products-header:empty { display: none; }


.chatbot-products-panel .chatbot-products-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--product-card-min), var(--product-card-max)));
  gap: var(--product-grid-gap);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  justify-content: center;
  justify-items: stretch;
  align-content: start;
  grid-auto-flow: row dense;
  width: 100%;
  margin: 0 auto;
  max-width: 1160px;
  overscroll-behavior: none;
}

.chatbot-products-panel .chatbot-products-body::-webkit-scrollbar {
  width: 12px;
}

.chatbot-products-panel .chatbot-products-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.chatbot-products-panel .chatbot-products-body::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 12px;
  transition: background 0.25s ease;
}

.chatbot-products-panel .chatbot-products-body.is-scrolling,
.chatbot-products-panel .chatbot-products-body:hover {
  scrollbar-color: rgba(0, 146, 152, 0.35) rgba(255, 255, 255, 0.08);
}

.chatbot-products-panel .chatbot-products-body.is-scrolling::-webkit-scrollbar-thumb,
.chatbot-products-panel .chatbot-products-body:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 214, 226, 0.5) 0%, rgba(0, 146, 152, 0.5) 100%);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.25);
}

.chatbot-products-panel.is-empty .chatbot-products-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #6f7c7d;
  font-weight: 600;
  padding: 24px;
}


.chatbot-products-panel.is-empty .chatbot-products-body::after {
  content: attr(data-empty-label);
  display: block;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  opacity: 0.85;
}

.chatbot-products-panel.is-loading {
  pointer-events: none;
}

.chatbot-products-panel.is-loading .chatbot-products-header {
  filter: blur(0.2px) saturate(110%);
  opacity: 0.9;
}

.chatbot-products-panel.is-loading .chatbot-products-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 250, 251, 0.85), rgba(238, 245, 246, 0.85));
  backdrop-filter: blur(2px);
}

.chatbot-goods-action {
  width: 100%;
  padding: 0 2px;
  box-sizing: border-box;
}

.chatbot-goods-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(8, 52, 58, 0.12);
  background-color: #ffffff;
  color: #08343a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chatbot-goods-button:hover {
  border-color: rgba(0, 146, 152, 0.4);
  background-color: rgba(0, 146, 152, 0.08);
}

.chatbot-goods-button.is-active {
  border-color: rgba(0, 146, 152, 0.6);
  background-color: rgba(0, 146, 152, 0.12);
  color: #005157;
}

.chatbot-goods-button-thumbnail {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-color: rgba(8, 52, 58, 0.08);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.chatbot-goods-button-thumbnail.no-image {
  background-image: none;
}

.chatbot-goods-button-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 64px);
  flex: 1;
  min-width: 0;
}

.chatbot-goods-button-title {
  font-size: 15px;
  font-weight: 600;
  color: currentColor;
  line-height: 1.4;
}

.chatbot-goods-button-hint {
  font-size: 12px;
  font-weight: 600;
  color: rgba(8, 52, 58, 0.65);
}

.chatbot-goods-button.is-active .chatbot-goods-button-hint {
  color: rgba(0, 81, 87, 0.8);
}

.chatbot-products-panel::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  background: radial-gradient(120% 120% at 50% -10%, rgba(0, 214, 226, 0.45) 0%, rgba(0, 146, 152, 0) 70%);
  opacity: 0;
  filter: blur(0);
  transition: opacity 0.6s ease, filter 0.6s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.chatbot-products-panel.is-animating::before {
  opacity: 0.75;
  filter: blur(10px);
}

.chatbot-products-panel .chatbot-products-body.is-animating .product-card {
  opacity: 0;
  animation: chatbotProductCardReveal 0.68s cubic-bezier(.22, .72, .25, 1) forwards;
  animation-delay: calc(var(--goods-index, 0) * 0.06s);
  will-change: transform, opacity, filter;
}

.chatbot-products-panel .chatbot-products-body.is-animating {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chatbot-products-panel .chatbot-products-body.is-animating::-webkit-scrollbar {
  height: 0;
  width: 0;
  background: transparent;
}

.chatbot-products-panel .chatbot-products-body[data-loading='true'] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.chatbot-products-panel .chatbot-products-body.is-animating .product-card-inner {
  animation: chatbotProductGlow 0.72s cubic-bezier(.22, .72, .25, 1) forwards;
  animation-delay: calc(var(--goods-index, 0) * 0.06s + 0.1s);
  will-change: transform, filter;
}

.chatbot-products-panel[data-layout='compact'] .chatbot-products-body.is-animating .product-card {
  opacity: 1;
  animation: chatbotProductCardSlideMobile 0.38s cubic-bezier(.21, .74, .32, 1.05) forwards;
  animation-delay: calc(var(--goods-index, 0) * 0.045s);
}

.chatbot-products-panel[data-layout='compact'] .chatbot-products-body.is-animating .product-card-inner {
  animation: chatbotProductGlowMobile 0.48s cubic-bezier(.25, .8, .34, 1.12) forwards;
  animation-delay: calc(var(--goods-index, 0) * 0.045s + 0.08s);
}

.chatbot-products-loading-orbit {
  position: relative;
  width: 100%;
  min-height: 220px;
  padding: 34px 14px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  color: #093435;
  pointer-events: none;
}

.chatbot-products-loading-rings {
  position: relative;
  width: min(220px, 70%);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 22px rgba(0, 224, 255, 0.55));
}

.chatbot-products-loading-core {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(0, 224, 255, 0.9) 0%, rgba(0, 156, 222, 0.6) 45%, rgba(0, 146, 152, 0.15) 72%);
  animation: productsLoadingPulse 1.9s ease-in-out infinite;
}

.chatbot-products-loading-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(0, 214, 226, 0.45);
  mix-blend-mode: screen;
  animation: productsLoadingSpin linear infinite;
}

.chatbot-products-loading-ring--a {
  width: 100%;
  height: 100%;
  animation-duration: 14s;
}

.chatbot-products-loading-ring--b {
  width: 74%;
  height: 74%;
  border-color: rgba(0, 224, 255, 0.65);
  animation-duration: 9s;
}

.chatbot-products-loading-ring--c {
  width: 52%;
  height: 52%;
  border-color: rgba(0, 186, 255, 0.55);
  animation-duration: 6s;
}

.chatbot-products-loading-trail {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 224, 255, 0.75), rgba(0, 214, 226, 0));
  animation: productsLoadingTrail 2.6s ease-in-out infinite;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.chatbot-products-panel a {
  color: inherit;
  text-decoration: none;
}

.chatbot-products-panel button {
  font-family: inherit;
}

/* --- Loading skeleton --- */
.chatbot-products-loading-skeleton {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 6px;
  align-items: center;
}

.skeleton-line {
  border-radius: 10px;
  background: linear-gradient(90deg, #e9eef0 0%, #f5f9fa 50%, #e9eef0 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s linear infinite;
}

.skeleton-line.sm { height: 10px; width: 35%; }
.skeleton-line.md { height: 12px; width: 60%; }
.skeleton-line.lg { height: 120px; border-radius: 12px; }

/* --- Product cards --- */
.product-card {
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.product-card-inner:hover .product-card-image,
.product-card-inner:focus-visible .product-card-image {
  transform: scale(1.03);
}


.product-card-inner:focus-visible {
  outline: 3px solid rgba(0, 90, 96, 0.18);
  outline-offset: 6px;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f2f6f7;
  transition: transform 0.2s ease-in-out;
}


.product-card-image.no-image {
  background-image: none;
  background-color: #e1e8ea;
}

.product-card-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
  color: #053738;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.45em * 2);
}

.product-card-inner:hover .product-card-title {
  color: #005157;
}

/* レビュー評価スタイル */
.product-card-rating {
  color: #f39c12;
  font-size: 14px;
  margin: 6px 0 4px;
  line-height: 1.3;
}

/* レビュー引用スタイル */
.product-card-review-snippet {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin: 6px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(8, 52, 58, 0.08);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.5em * 3);
}

.chatbot-goods-button:focus-visible {
  outline: 2px solid rgba(0, 146, 152, 0.5);
  outline-offset: 2px;
}

/* --- visumoボタン（chatbot-goods-button と同一スタイル） --- */

.chatbot-visumo-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(8, 52, 58, 0.12);
  background-color: #ffffff;
  color: #08343a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chatbot-visumo-button:hover {
  border-color: rgba(0, 146, 152, 0.4);
  background-color: rgba(0, 146, 152, 0.08);
}

.chatbot-visumo-button.is-active {
  border-color: rgba(0, 146, 152, 0.6);
  background-color: rgba(0, 146, 152, 0.12);
  color: #005157;
}

.chatbot-visumo-button-thumbnail {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-color: rgba(8, 52, 58, 0.08);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.chatbot-visumo-button-thumbnail.no-image {
  background-image: none;
}

.chatbot-visumo-button.is-active .chatbot-goods-button-hint {
  color: rgba(0, 81, 87, 0.8);
}

.chatbot-visumo-button:focus-visible {
  outline: 2px solid rgba(0, 146, 152, 0.5);
  outline-offset: 2px;
}

/* --- visumo 投稿カード（デスクトップ: goods と同一グリッドに収まる） --- */

.visumo-post-card {
  width: 100%;
}

/* --- visumo コンパクトカード（モバイル: 横スクロール用） --- */

.visumo-post-card-compact {
  width: 160px;
  max-width: 160px;
  flex: 0 0 160px;
  scroll-snap-align: start;
  cursor: pointer;
}

.visumo-post-card-compact-image {
  width: 160px;
  height: 160px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #f2f6f7;
}

.visumo-post-card-compact-staff {
  font-size: 13px;
  font-weight: 600;
  color: #08343a;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 160px;
}

.visumo-post-card-compact-favorite {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

/* --- Animations --- */

@keyframes productsLoadingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes productsLoadingPulse {
  0% { transform: scale(0.88); opacity: 0.82; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.88); opacity: 0.82; }
}

@keyframes productsLoadingTrail {
  0% { transform: rotate(0deg); opacity: 0.35; }
  50% { opacity: 0.8; }
  100% { transform: rotate(360deg); opacity: 0.35; }
}

@keyframes chatbotProductCardReveal {
  0% { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.94); filter: blur(14px) saturate(0.8); }
  55% { opacity: 1; transform: translate3d(0, -4px, 0) scale(1.02); filter: blur(2px) saturate(1.1); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0) saturate(1); }
}

@keyframes chatbotProductGlow {
  0% { transform: scale(0.98); filter: saturate(0.92) brightness(0.98); }
  50% { transform: scale(1.02); filter: saturate(1.08) brightness(1.03); }
  100% { transform: scale(1); filter: saturate(1) brightness(1); }
}

@keyframes chatbotProductCardSlideMobile {
  0% { transform: translate3d(0, 18px, 0) scale(0.94); }
  55% { transform: translate3d(0, -6px, 0) scale(1.03); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes chatbotProductGlowMobile {
  0% { transform: scale(0.94); filter: saturate(0.9) brightness(0.95); }
  50% { transform: scale(1.05); filter: saturate(1.15) brightness(1.08); }
  100% { transform: scale(1); filter: saturate(1) brightness(1); }
}

@keyframes chatbotProductsHeaderReveal {
  0% { opacity: 0; transform: translate3d(0, -12px, 0); letter-spacing: 0.08em; filter: blur(6px); }
  60% { opacity: 1; transform: translate3d(0, 4px, 0); letter-spacing: 0.015em; filter: blur(1px); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); letter-spacing: 0.02em; filter: blur(0); }
}

@keyframes productsPop {
  0% { opacity: 0; transform: translateY(14px) scale(0.92); }
  60% { opacity: 1; transform: translateY(2px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chatbotProductsPanelHaloMobile {
  0% { opacity: 0; filter: blur(24px); }
  45% { opacity: 0.85; filter: blur(6px); }
  100% { opacity: 0; filter: blur(20px); }
}

@keyframes chatbotProductsBodySheenMobile {
  0% { opacity: 0; transform: translateX(-45%); }
  30% { opacity: 0.75; }
  100% { opacity: 0; transform: translateX(45%); }
}

@keyframes productsHeaderPop {
  0% { opacity: 0; transform: translateY(-8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes skeletonShimmer {
  0% { background-position: 0 0; }
  100% { background-position: -200% 0; }
}

/* ===== Visumo関連商品セクション (AI検索モード用) ===== */

.chatbot-visumo-related-products-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(8, 52, 58, 0.12);
}

.chatbot-visumo-related-products-header {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #08343a;
  letter-spacing: 0.015em;
}

.chatbot-visumo-related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--product-card-min), var(--product-card-max)));
  gap: var(--product-grid-gap);
  justify-content: center;
}

/* Visumo関連商品ボタンにフォーカススタイルを追加 */
.chatbot-visumo-related-products-button:focus {
  outline: 2px solid rgba(0, 146, 152, 0.5);
  outline-offset: 2px;
}

/* コンパクトレイアウト時 */
@media screen and (max-width: 920px) {
  .chatbot-visumo-related-products-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 10px;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .chatbot-visumo-related-products-grid .product-card {
    width: 130px;
    max-width: 130px;
    flex: 0 0 130px;
    scroll-snap-align: start;
  }
}

/* --- Responsive --- */
@media screen and (max-width: 1200px) {
  .chatbot-products-panel {
    --product-card-min: 200px;
    --product-card-max: 240px;
    --product-grid-gap: 20px;
  }

  .chatbot-products-panel .chatbot-products-body {
    max-width: 920px;
  }
}

@media screen and (max-width: 920px) {
  .chatbot-container.chatbot-products-mode {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-template-areas: none;
    --products-panel-mobile-height: 210px;
  }

  .chatbot-container.chatbot-products-mode .chatbot-header,
  .chatbot-container.chatbot-products-mode .chatbot-frame {
    border-right: none;
  }

  .chatbot-container.chatbot-products-mode .chatbot-frame {
    border-bottom: 1px solid rgba(8, 52, 58, 0.08);
    overflow: visible !important;
    display: flex;
    flex-direction: column;
  }

  .chatbot-products-panel {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 8px;
    border: none;
    border-top: 1px solid rgba(8, 52, 58, 0.12);
    border-left: none;
    background: linear-gradient(180deg, rgba(244, 250, 251, 0.95), rgba(238, 245, 246, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: sticky;
    bottom: calc(var(--chatbot-footer-height, 60px) + 8px);
    z-index: 20;
    width: 100%;
    margin: 0;
    height: var(--products-panel-mobile-height, 210px);
    min-height: var(--products-panel-mobile-height, 210px);
    max-height: var(--products-panel-mobile-height, 210px);
    flex-shrink: 0;
  }

  .chatbot-products-panel::before {
    display: none;
  }

  .chatbot-products-panel .chatbot-products-header {
    display: none;
  }

  .chatbot-products-panel .chatbot-products-body {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    padding: 0 10px 12px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 10px;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
  }

  .chatbot-products-panel .chatbot-products-body::-webkit-scrollbar {
    height: 8px;
  }

  .chatbot-products-panel .chatbot-products-body::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
  }

  .chatbot-products-panel[data-layout='compact'].is-animating-compact::before {
    display: block;
    inset: 6px 12px 14px;
    opacity: 0;
    filter: blur(6px);
    animation: chatbotProductsPanelHaloMobile 0.6s ease-out forwards;
  }

  .chatbot-products-panel[data-layout='compact'] .chatbot-products-body.is-animating-compact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transform: translateX(-35%);
    animation: chatbotProductsBodySheenMobile 0.55s ease-out forwards;
    pointer-events: none;
  }

  .chatbot-products-panel .chatbot-products-body::-webkit-scrollbar-track {
    background: rgba(8, 52, 58, 0.08);
    border-radius: 999px;
  }

  .chatbot-products-panel .chatbot-products-body::-webkit-scrollbar-thumb {
    background: rgba(0, 146, 152, 0.45);
    border-radius: 999px;
  }

  .chatbot-products-panel .chatbot-products-body[data-loading='true'] {
    justify-content: flex-start;
  }

  .chatbot-products-panel .chatbot-products-body.is-animating .product-card {
    animation: none;
  }

  .chatbot-products-panel .chatbot-products-body .product-card {
    display: flex;
    flex-direction: column;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    scroll-snap-align: start;
    width: 130px;
    max-width: 130px;
    flex: 0 0 130px;
  }

  .chatbot-products-panel .chatbot-products-body .product-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    align-items: center;
    width: 130px;
    margin: 0 auto;
  }

  .chatbot-products-panel .chatbot-products-body .product-card-inner::before {
    display: none;
  }

  .chatbot-products-panel .chatbot-products-body .product-card-image {
    width: 130px;
    height: 130px;
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 0 0 auto;
    align-self: center;
  }

  .chatbot-products-panel .chatbot-products-body .product-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #5c6a6b;
    font-weight: 600;
    font-size: 12px;
    padding: 12px;
    background-image: none;
  }

  .chatbot-products-panel .chatbot-products-body .product-card-title {
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    color: #08343a;
    margin: 0;
    width: 100%;
    max-width: 130px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .chatbot-container.chatbot-products-mode .chatbot-content {
    padding-bottom: 10px;
  }

  /* モバイル: visumo コンパクトカード（横スクロール内に配置） */
  .chatbot-products-panel .chatbot-products-body .visumo-post-card-compact {
    flex: 0 0 130px;
    width: 130px;
    max-width: 130px;
    scroll-snap-align: start;
  }

  .chatbot-products-panel .chatbot-products-body .visumo-post-card-compact-image {
    width: 130px;
    height: 130px;
    border-radius: 14px;
  }

  .chatbot-products-panel .chatbot-products-body .visumo-post-card-compact-staff {
    font-size: 12px;
    width: 130px;
    max-width: 130px;
  }
}