/**
 * Custom Lottie Widget Stylesheet
 * Scoped container styling for Elementor Lottie animations.
 */

.custom-lottie-widget-wrapper {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

/* Alignment utilities */
.custom-lottie-widget-wrapper.align-left {
  justify-content: flex-start;
  text-align: left;
}

.custom-lottie-widget-wrapper.align-center {
  justify-content: center;
  text-align: center;
}

.custom-lottie-widget-wrapper.align-right {
  justify-content: flex-end;
  text-align: right;
}

/* Main Lottie Container */
.custom-lottie-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  vertical-align: middle;
  line-height: 0;
}

.custom-lottie-container svg,
.custom-lottie-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  transform: translate3d(0,0,0);
}

/* Scoped link wrapper */
.custom-lottie-link {
  display: inline-block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Fallback & Error State Styling */
.custom-lottie-error-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background-color: #fff0f0;
  border: 1px solid #ffcdd2;
  border-radius: 6px;
  color: #d32f2f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
  margin: 10px 0;
}

.custom-lottie-error-msg svg {
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px;
  fill: #d32f2f;
  flex-shrink: 0;
}
