/* YC Smart Banner - front */
.yc-smart-banner-placeholder,
.yc-sb-widget {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--yc-sb-min-height, 40px);
  direction: rtl;
}

.yc-smart-banner-placeholder {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 8px 0;
  border-radius: 14px;
  background: #f1f1f1;
}

.yc-sb-skeleton-bar {
  min-height: var(--yc-sb-min-height, 40px);
  margin: 0;
  border-radius: 0;
}

.yc-sb-skeleton-card {
  min-height: var(--yc-sb-min-height, 52px);
  border-radius: 16px;
}

.yc-sb-skeleton-pill {
  width: 70%;
  max-width: 520px;
  min-height: var(--yc-sb-min-height, 34px);
  border-radius: 999px;
}

.yc-sb-skeleton-badge {
  width: 132px;
  min-height: var(--yc-sb-min-height, 34px);
  border-radius: 999px;
}

.yc-smart-banner-skeleton:before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: ycSbSkeleton 1.25s infinite;
}

@keyframes ycSbSkeleton {
  100% { transform: translateX(-100%); }
}

.yc-sb-widget {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 8px 0;
  border-radius: 16px;
  font-family: inherit;
}

.yc-sb-pos-top_header {
  margin: 0;
  border-radius: 0;
}

.yc-sb-pos-top_header .yc-sb-slide {
  min-height: var(--yc-sb-min-height, 40px);
  border-radius: 0;
}

.yc-sb-pos-product_over_image,
.yc-sb-placeholder-product_over_image {
  position: absolute !important;
  z-index: 10;
  top: 12px;
  right: 12px;
  width: auto;
  max-width: calc(100% - 24px);
  margin: 0;
  border-radius: 999px;
}

.yc-sb-pos-product_over_image .yc-sb-slide {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

.yc-sb-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--yc-sb-min-height, 44px);
  padding: 9px 16px;
  color: var(--yc-sb-color, #fff) !important;
  background: var(--yc-sb-bg, #e8003c) !important;
  text-decoration: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}

.yc-sb-slide:first-child,
.yc-sb-slide.yc-sb-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.yc-sb-widget.yc-sb-ready .yc-sb-slide:not(.yc-sb-active) {
  position: absolute;
}

.yc-sb-slide-slide_x {
  transform: translateX(-16px);
}

.yc-sb-slide-slide_up {
  transform: translateY(12px);
}

.yc-sb-slide-none {
  transition: none;
  transform: none;
}

.yc-sb-slide:hover,
.yc-sb-slide:focus {
  color: var(--yc-sb-color, #fff) !important;
  text-decoration: none !important;
}


/* Isolate banner links from theme/global link styles. Some themes force colors on a, a:hover, or nested spans. */
.yc-sb-widget .yc-sb-slide,
.yc-sb-widget .yc-sb-slide:link,
.yc-sb-widget .yc-sb-slide:visited,
.yc-sb-widget .yc-sb-slide:hover,
.yc-sb-widget .yc-sb-slide:active,
.yc-sb-widget .yc-sb-slide:focus {
  color: var(--yc-sb-color, #fff) !important;
  background: var(--yc-sb-bg, #e8003c) !important;
  text-decoration: none !important;
  outline: none;
}

.yc-sb-widget .yc-sb-slide .yc-sb-text-wrap,
.yc-sb-widget .yc-sb-slide .yc-sb-title,
.yc-sb-widget .yc-sb-slide .yc-sb-subtitle,
.yc-sb-widget .yc-sb-slide .yc-sb-icon,
.yc-sb-widget .yc-sb-slide .yc-sb-smart-em {
  color: inherit !important;
  text-decoration: none !important;
}

.yc-sb-widget .yc-sb-slide .yc-sb-smart-badge {
  color: var(--yc-sb-accent, #e8003c) !important;
  text-decoration: none !important;
}

.yc-sb-widget .yc-sb-slide * {
  box-sizing: border-box;
}

.yc-sb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: currentColor;
  animation: ycSbIconFloat 2.2s ease-in-out infinite;
}

.yc-sb-icon svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

@keyframes ycSbIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.yc-sb-text-wrap {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yc-sb-title,
.yc-sb-subtitle {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.yc-sb-title {
  font-weight: 700;
  font-size: 14px;
}

.yc-sb-subtitle {
  font-size: 12px;
  opacity: .88;
}

.yc-sb-title-mobile,
.yc-sb-subtitle-mobile {
  display: none;
}

.yc-sb-placement-card .yc-sb-slide,
.yc-sb-pos-cart_top .yc-sb-slide,
.yc-sb-pos-checkout_top .yc-sb-slide,
.yc-sb-pos-product_under_price .yc-sb-slide,
.yc-sb-pos-product_under_addtocart .yc-sb-slide {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.yc-sb-placement-pill .yc-sb-slide,
.yc-sb-pos-product_under_name .yc-sb-slide {
  justify-content: flex-start;
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 14px;
}

.yc-sb-external-container,
.yc-sb-module-widget-container,
.yc-sb-external-html {
  width: 100%;
}

.yc-sb-external-fallback.yc-sb-hidden {
  display: none;
}

@media (max-width: 768px) {
  .yc-smart-banner-placeholder,
  .yc-sb-widget {
    min-height: var(--yc-sb-min-height-mobile, 34px);
  }

  .yc-smart-banner-placeholder {
    margin: 7px 0;
    border-radius: 12px;
  }

  .yc-sb-pos-top_header,
  .yc-sb-pos-top_header .yc-sb-slide,
  .yc-sb-skeleton-bar {
    min-height: var(--yc-sb-min-height-mobile, 34px);
    border-radius: 0;
  }

  .yc-sb-slide {
    min-height: var(--yc-sb-min-height-mobile, 34px);
    padding: 7px 10px;
    gap: 7px;
  }

  .yc-sb-icon {
    width: 22px;
    height: 22px;
  }

  .yc-sb-title-desktop,
  .yc-sb-subtitle-desktop {
    display: none;
  }

  .yc-sb-title-mobile,
  .yc-sb-subtitle-mobile {
    display: inline-block;
  }

  .yc-sb-title {
    font-size: 12px;
  }

  .yc-sb-subtitle {
    font-size: 11px;
  }

  .yc-sb-text-wrap {
    gap: 5px;
  }

  .yc-sb-pos-product_over_image,
  .yc-sb-placeholder-product_over_image {
    top: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
  }
}

/* Component-level micro animations: [badge]...[/badge] and [em]...[/em] */
.yc-sb-smart-badge,
.yc-sb-smart-em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1.25;
  white-space: nowrap;
}

.yc-sb-smart-badge {
  position: relative;
  overflow: hidden;
  min-width: 44px;
  margin: 0 4px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--yc-sb-accent, #e8003c);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  font-weight: 800;
}

.yc-sb-smart-em {
  position: relative;
  margin: 0 2px;
  font-weight: 800;
}

.yc-sb-smart-badge-none,
.yc-sb-smart-em-none {
  animation: none !important;
}

.yc-sb-active .yc-sb-smart-badge-pulse,
.yc-sb-slide:first-child .yc-sb-smart-badge-pulse {
  animation: ycSbBadgePulse 1.35s ease-in-out infinite;
}

.yc-sb-active .yc-sb-smart-badge-blink,
.yc-sb-slide:first-child .yc-sb-smart-badge-blink {
  animation: ycSbBadgeBlink 1.05s ease-in-out infinite;
}

.yc-sb-active .yc-sb-smart-badge-pop,
.yc-sb-slide:first-child .yc-sb-smart-badge-pop {
  animation: ycSbBadgePop 1.45s cubic-bezier(.2,.8,.2,1) infinite;
}

.yc-sb-active .yc-sb-smart-badge-soft,
.yc-sb-slide:first-child .yc-sb-smart-badge-soft {
  animation: ycSbBadgeSoft 2.2s ease-in-out infinite;
}

.yc-sb-smart-badge-shine:after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  width: 34px;
  transform: translateX(72px) rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.92), transparent);
}

.yc-sb-active .yc-sb-smart-badge-shine,
.yc-sb-slide:first-child .yc-sb-smart-badge-shine {
  animation: ycSbBadgePopOnce .58s cubic-bezier(.2,.8,.2,1) both;
}

.yc-sb-active .yc-sb-smart-badge-shine:after,
.yc-sb-slide:first-child .yc-sb-smart-badge-shine:after {
  animation: ycSbBadgeShine 1.75s ease-in-out infinite .18s;
}

.yc-sb-active .yc-sb-smart-em-pulse,
.yc-sb-slide:first-child .yc-sb-smart-em-pulse {
  animation: ycSbEmPulse 1.45s ease-in-out infinite;
}

.yc-sb-active .yc-sb-smart-em-blink,
.yc-sb-slide:first-child .yc-sb-smart-em-blink {
  animation: ycSbEmBlink 1.1s ease-in-out infinite;
}

.yc-sb-active .yc-sb-smart-em-pop,
.yc-sb-slide:first-child .yc-sb-smart-em-pop {
  animation: ycSbBadgePop 1.45s cubic-bezier(.2,.8,.2,1) infinite;
}

.yc-sb-active .yc-sb-smart-em-shine,
.yc-sb-slide:first-child .yc-sb-smart-em-shine,
.yc-sb-active .yc-sb-smart-em-soft,
.yc-sb-slide:first-child .yc-sb-smart-em-soft {
  animation: ycSbEmSoft 2s ease-in-out infinite;
}

@keyframes ycSbBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
  50% { transform: scale(1.06); box-shadow: 0 3px 16px rgba(255,255,255,.28); }
}

@keyframes ycSbBadgeBlink {
  0%, 100% { opacity: 1; filter: brightness(1); }
  48% { opacity: .55; filter: brightness(.92); }
}

@keyframes ycSbBadgePop {
  0%, 72%, 100% { transform: scale(1); }
  14% { transform: scale(.86); }
  31% { transform: scale(1.12); }
  46% { transform: scale(.98); }
}

@keyframes ycSbBadgePopOnce {
  0% { transform: scale(.72); opacity: 0; }
  55% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes ycSbBadgeSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes ycSbBadgeShine {
  0% { transform: translateX(72px) rotate(18deg); }
  42%, 100% { transform: translateX(-112px) rotate(18deg); }
}

@keyframes ycSbEmPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes ycSbEmBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

@keyframes ycSbEmSoft {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .yc-sb-smart-badge,
  .yc-sb-smart-badge:after,
  .yc-sb-smart-em {
    animation: none !important;
  }
}
