.flash-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 12px auto;
  padding: 12px 48px;
  border: 1px solid rgba(21, 45, 59, 0.14);
  border-radius: 12px;
  background-color: #f5fbff;
  box-shadow: 0 5px 16px rgba(21, 45, 59, 0.12);
}

.flash-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 92px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}

.flash-preview-media {
  position: relative;
  display: block;
  flex: 0 0 142px;
  height: 82px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 9px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.flash-preview-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(0, 0, 0, 0.18));
  content: "";
}

.flash-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
}

.flash-preview-title {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(15, 30, 40, 0.72);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.flash-preview-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #174e68;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.flash-preview:hover .flash-preview-action,
.flash-preview:focus-visible .flash-preview-action {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.flash-arrow {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid #b8d2e0;
  border-radius: 50%;
  background: #fff;
  color: #15577a;
  font-size: 24px;
  line-height: 28px;
}

.flash-arrow:first-child {
  left: 8px;
}

.flash-arrow:last-of-type {
  right: 8px;
}

.flash-dots {
  position: absolute;
  left: 50%;
  bottom: 3px;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.flash-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b8d2e0;
}

.flash-dots button.active {
  background: #1676a5;
}

.flash-overlay {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
}

.flash-dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
}

.flash-dialog h2 {
  margin: 0 42px 16px 0;
  color: #15577a;
}

.flash-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 30px;
  line-height: 1;
}

.flash-content-frame {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.flash-extra {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 18px;
}

.flash-extra img {
  max-width: 180px;
  height: auto;
}

.flash-extra > div {
  flex: 1;
}

.flash-product-suggestions {
  margin-top: 20px;
  padding: 18px;
  border-top: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f7fafc;
}

.flash-suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.flash-suggestions-header h3 {
  margin: 0;
  color: #15577a;
  font-size: 18px;
}

.flash-suggestions-header p {
  margin: 4px 0 0;
  color: #687985;
  font-size: 13px;
}

.flash-suggestions-count {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 14px;
  background: #e2f1f8;
  color: #15577a;
  font-size: 12px;
  font-weight: 700;
}

.flash-product-loading {
  margin-top: 16px;
  padding: 18px;
  color: #687985;
  text-align: center;
}

.flash-dialog #les_produits {
  margin-top: 18px;
}

.flash-dialog #les_produits > h2 {
  display: none;
}

.flash-dialog .flash-product-context {
  margin: 0 0 10px;
  color: #687985;
  font-size: 12px;
  line-height: 1.4;
}

.flash-suggestion-summary {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid #2d8ab5;
  border-radius: 4px;
  background: #eaf5fa;
  color: #355563;
  line-height: 1.6;
}

.flash-suggestion-error {
  margin-top: 12px;
  color: #a94442;
}

@media (max-width: 600px) {
  .flash-slider {
    padding: 8px 42px;
  }

  .flash-preview {
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px;
  }

  .flash-preview-media {
    flex-basis: 76px;
    height: 58px;
  }

  .flash-preview-title {
    flex: 1 1 calc(100% - 96px);
    padding: 8px 10px;
    font-size: 14px;
  }

  .flash-preview-action {
    margin-left: auto;
    padding: 8px 12px;
    font-size: 12px;
  }

  .flash-dialog {
    padding: 20px 14px;
  }

  .flash-content-frame {
    min-height: 260px;
  }

  .flash-extra {
    flex-direction: column;
  }

  .flash-product-suggestions {
    padding: 14px;
  }

  .flash-suggestions-header {
    align-items: flex-start;
  }
}
