/* Bon Cadeau Gift Sidebar: standalone, scoped to its own class names. */
.bcg-shell, .bcg-shell * { box-sizing: border-box; }
.bcg-shell {
  --bcg-deep: #0F4F40;
  --bcg-green: #176B55;
  --bcg-gold: #C9A45C;
  --bcg-soft: #FAF8F3;
  /* Scrolling is managed in sidebar.js; CSS sticky is constrained by short widget wrappers. */
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 115px);
  height: calc(100dvh - 115px);
  min-height: min(530px, calc(100dvh - 115px));
  max-height: 1000px;
  margin: 0 0 28px;
  background: #fff;
  border: 1px solid #E4E9E5;
  border-radius: 18px;
  box-shadow: 0 14px 42px rgba(15, 79, 64, .08);
  overflow: hidden;
  isolation: isolate;
  font-family: inherit;
  text-align: left;
}
.bcg-header { padding: 18px 16px 13px; background: linear-gradient(135deg,#F0F6F1,#FAF8F3); border-bottom: 1px solid #e4ebe6; flex: none; }
.bcg-eyebrow { display: block; color: var(--bcg-green); font-size: 9px; font-weight: 750; letter-spacing: .17em; margin-bottom: 6px; }
.bcg-heading-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bcg-shell .bcg-title { margin: 0 !important; color: var(--bcg-deep) !important; font-size: 19px !important; font-weight: 750 !important; line-height: 1.3 !important; text-transform: none !important; }
.bcg-decor { color: var(--bcg-gold); font-size: 20px; }
.bcg-shell .bcg-intro { margin: 6px 0 0 !important; color: #6d7973; font-size: 11px; line-height: 1.5; }
.bcg-viewport { flex: 1 1 auto; min-height: 0; padding: 11px 11px 8px; }
.bcg-slide:not([hidden]) { height: 100%; display: grid; grid-template-rows: repeat(4, minmax(0,1fr)); gap: 8px; animation: bcg-appear .42s ease both; }
.bcg-slide[hidden] { display: none !important; }
@keyframes bcg-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.bcg-shell .bcg-product { min-height: 0; display: flex; align-items: center; gap: 9px; padding: 7px; background: #fff; border: 1px solid #ebefec; border-radius: 12px; text-decoration: none !important; color: #293d35 !important; box-shadow: 0 2px 6px rgba(15,79,64,.03); transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; overflow: hidden; }
.bcg-shell .bcg-product:hover { transform: translateY(-2px); border-color: var(--bcg-gold); box-shadow: 0 6px 15px rgba(15,79,64,.09); text-decoration: none !important; }
.bcg-image-wrap { display: block; flex: 0 0 clamp(55px, 6.4vw, 78px); width: clamp(55px, 6.4vw, 78px); aspect-ratio: 1; background: #F8F8F5; border-radius: 9px; overflow: hidden; }
.bcg-image-wrap img.bcg-image { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.bcg-product-content { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; }
.bcg-category { display: block; color: #8a8271; font-size: 10px; font-weight: 500; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bcg-product-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 1.4; font-weight: 650; color: #233b33; }
.bcg-detail { display: block; margin-top: 1px; color: var(--bcg-green); font-size: 10px; font-weight: 650; }
.bcg-bottom { flex: none; padding: 0 12px 12px; background: #fff; }
.bcg-controls { display: flex; justify-content: space-between; align-items: center; padding: 7px 1px; }
.bcg-position { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--bcg-green); }
.bcg-divider { color: #B7C2BA; margin: 0 4px; }
.bcg-nav { display: flex; gap: 6px; }
.bcg-nav button { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; width: 26px; height: 26px; border: 1px solid #dfebe3; border-radius: 50%; color: var(--bcg-green); background: #f6faf7; font-family: Arial,sans-serif; font-size: 20px; line-height: 1; font-weight: 400; cursor: pointer; padding: 0; box-shadow: none; }
.bcg-nav button:hover:not(:disabled) { color: white; background: var(--bcg-green); }
.bcg-nav button:disabled { opacity: .35; cursor: default; }
.bcg-shell .bcg-all, .bcg-shell .bcg-contact { display: flex; justify-content: space-between; align-items: center; gap: 6px; text-decoration: none !important; border-radius: 9px; font-size: 11px; line-height: 1.45; font-weight: 700; padding: 9px 11px; }
.bcg-shell .bcg-all { color: var(--bcg-deep) !important; background: #eef5f0; margin-bottom: 7px; }
.bcg-shell .bcg-all:hover { background: #e2eee7; }
.bcg-shell .bcg-contact { color: white !important; background: var(--bcg-deep); }
.bcg-shell .bcg-contact:hover { color: white !important; background: var(--bcg-green); }
.bcg-notice { padding: 16px; border: 1px solid #e4e9e5; border-radius: 8px; }
@media (max-height: 740px) and (min-width: 850px) {
  .bcg-header { padding-top: 12px; padding-bottom: 9px; }
  .bcg-viewport { padding-top: 7px; padding-bottom: 5px; }
  .bcg-slide:not([hidden]) { gap: 5px; }
  .bcg-shell .bcg-product { padding: 4px 6px; }
  .bcg-bottom { padding-bottom: 8px; }
  .bcg-shell .bcg-all, .bcg-shell .bcg-contact { padding-top: 6px; padding-bottom: 6px; }
}
@media (max-width: 849px) {
  .bcg-shell { position: static; height: auto; min-height: 0; max-height: none; margin: 20px 0; transform: none !important; }
  .bcg-viewport { flex: none; min-height: 0; }
  .bcg-slide:not([hidden]) { height: auto; grid-template-rows: repeat(4, minmax(95px,auto)); }
  .bcg-image-wrap { flex-basis: 80px; width: 80px; }
  .bcg-product-name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .bcg-slide:not([hidden]) { animation: none; }
  .bcg-shell .bcg-product { transition: none; }
}

/* v1.2.0: Ensure the directory CTA remains clickable above decorative overlays,
   including when the user adds custom visual CSS in Flatsome. */
.bcg-shell::before, .bcg-shell::after { pointer-events: none !important; }
.bcg-shell .bcg-bottom { position: relative !important; z-index: 3 !important; }
.bcg-shell .bcg-all, .bcg-shell .bcg-contact {
  position: relative !important;
  z-index: 4 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.bcg-shell .bcg-all::before, .bcg-shell .bcg-all::after,
.bcg-shell .bcg-contact::before, .bcg-shell .bcg-contact::after {
  pointer-events: none !important;
}
