.ysleadgen-popup * {
  box-sizing: border-box;
}

.ysleadgen-popup .ysi-close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup [data-gjs-type="close-button"]:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysi-close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
[data-gjs-type="close-button"]:not(.ysi-back-btn):not(.ysi-claim-btn) {
  cursor: pointer;
  text-decoration: none;
  font-family: Arial, sans-serif;
}

.ysi-close-btn:not(.ysi-back-btn):not(.ysi-claim-btn):hover,
[data-gjs-type="close-button"]:not(.ysi-back-btn):not(.ysi-claim-btn):hover {
  opacity: 0.8;
}

.ysleadgen-popup .yslg-page,
.ysleadgen-popup .ysi-popup,
.ysleadgen-popup .ysleadgen-content {
  position: relative !important;
}

.ysleadgen-popup .floating-bar-inner {
  position: relative !important;
  overflow: visible !important;
  width: 100% !important;
}

.ysleadgen-popup .floating-bar-free-text,
.ysleadgen-popup .overlay-text {
  position: absolute !important;
  z-index: 999 !important;
}

.ysleadgen-popup button.ysi-close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup button.close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup button.ysleadgen-close:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup button.ysi-close-btn-circle:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup button.close-button:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup button.close-icon:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup button[data-gjs-type="close-button"]:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup span.ysi-close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup span.close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup span.ysleadgen-close:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup span.ysi-close-btn-circle:not(.ysi-back-btn):not(.ysi-claim-btn),
button.ysi-close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
button.close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
button.ysleadgen-close:not(.ysi-back-btn):not(.ysi-claim-btn),
button.ysi-close-btn-circle:not(.ysi-back-btn):not(.ysi-claim-btn),
button[data-gjs-type="close-button"]:not(.ysi-back-btn):not(.ysi-claim-btn) {
  position: absolute !important;
  top: 25px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 10000 !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  color: #000000 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  font-size: 20px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, opacity 0.15s ease !important;
}

.ysi-close-btn *,
.close-btn *,
.ysleadgen-close *,
.ysi-close-btn-circle *,
.close-button *,
.close-icon *,
[data-gjs-type="close-button"] * {
  color: #000000 !important;
  fill: #000000 !important;
  stroke: #000000 !important;
}

.ysi-close-btn:hover,
.close-btn:hover,
.ysleadgen-close:hover,
.ysi-close-btn-circle:hover,
.close-button:hover,
.close-icon:hover,
[data-gjs-type="close-button"]:hover {
  opacity: 0.9 !important;
  transform: scale(1.08) !important;
}

#ysi-deactivation-modal {
  all: initial;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#ysi-deactivation-modal.ysi-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#ysi-deactivation-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.ysi-modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: none;
  overflow-y: visible;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.ysi-modal-content.active {
  transform: scale(1);
}

.ysi-modal-title {
  margin: 0 0 12px;
  color: #111;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.ysi-modal-description {
  margin: 0 0 20px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.ysi-form {
  margin-top: 16px;
}

.ysi-reasons-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.ysi-reason-group {
  display: flex;
  flex-direction: column;
}

.ysi-radio-label,
.ysi-checkbox-label,
.ysi-delete-data-label {
  display: flex;
  align-items: center !important;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.ysi-radio-input,
.ysi-checkbox-input {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  margin: 0 8px 0 0 !important;
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  border: 1px solid #787c82;
  vertical-align: middle !important;
  position: static !important;
  flex-shrink: 0;
  background: white;
}

.ysi-radio-text {
  font-weight: 500;
}

.ysi-reason-details {
  padding-left: 24px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ysi-options-title {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin: 0 0 4px;
}

.ysi-input-wrapper,
.ysi-conditional-input {
  margin-top: 8px;
}

.ysi-text-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.ysi-text-input:focus {
  border-color: #0088f8d8;
  outline: 1px solid #047ee2b3;
  box-shadow: 0 0 0 1px #008cff;
}

.ysi-hidden {
  display: none !important;
}

.ysi-footer-actions {
  border-top: 1px solid #eee;
  padding-top: 16px;
  margin-top: 16px;
}

.ysi-delete-data-desc {
  font-size: 12px;
  color: #777;
  margin: 4px 0 0 24px;
}

.ysi-modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.ysi-submit-btn {
  background-color: #0c8af2f4;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}

.ysi-submit-btn:hover {
  background-color: #008bf6;
}

.ysi-submit-btn:disabled,
.ysi-submit-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #1589e7;
}

/* Dynamic product recommendations */
/* Dynamic product recommendations */
.yslg-product-recommendations {
  width: 100%;
  max-width: 100%;
  margin: 12px 0;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: yslg-pr;
}

.yslg-product-recommendations-heading {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  text-align: center;
  color: inherit;
}

.yslg-product-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
  gap: 12px;
  width: 100%;
  max-height: 290px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 6px 2px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
  -webkit-overflow-scrolling: touch;
}

.yslg-product-recommendations-grid>.yslg-product-card,
.yslg-product-recommendations-list>.yslg-product-card {
  min-width: 0;
}

.yslg-product-recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-height: 290px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 6px 2px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
  -webkit-overflow-scrolling: touch;
}

.yslg-product-recommendations-list .yslg-product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 10px 12px;
  box-sizing: border-box;
  width: 100%;
}

.yslg-product-recommendations-list .yslg-product-card > a:first-child,
.yslg-product-recommendations-list .yslg-product-card-image-wrap {
  flex: 0 0 64px !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  margin-bottom: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  text-decoration: none;
  flex-shrink: 0 !important;
}

.yslg-product-recommendations-list .yslg-product-card-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 8px;
  display: block !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.yslg-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
  width: 100%;
}

.yslg-product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.yslg-product-card-image-wrap {
  width: 100%;
  display: block;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.yslg-product-card-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
  display: block;
}

.yslg-product-card-info {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.yslg-product-recommendations-list .yslg-product-card-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  text-align: left;
}

.yslg-product-card-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
  color: #111827;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.yslg-product-recommendations-list .yslg-product-card-info .yslg-product-card-title,
.yslg-product-recommendations-list .yslg-product-card > .yslg-product-card-title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  width: auto;
  color: #111827;
}

.yslg-product-card-title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yslg-product-card-title a:hover {
  text-decoration: underline;
}

.yslg-product-card-price {
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
  width: 100%;
  line-height: 1.25;
}

.yslg-product-recommendations-list .yslg-product-card-info .yslg-product-card-price,
.yslg-product-recommendations-list .yslg-product-card > .yslg-product-card-price {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  width: auto;
  color: #4b5563;
}

.yslg-product-card-price del {
  opacity: 0.6;
  margin-right: 4px;
}

.yslg-product-recommendations-list .yslg-product-card-cta {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
}

.yslg-product-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  background: #6D28D9;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none !important;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
  user-select: none;
}

.yslg-product-card-cta:hover {
  background: #5B21B6;
  color: #fff !important;
}

.yslg-product-card-cta:active {
  transform: scale(0.97);
}

.yslg-product-card-cta.loading {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.yslg-product-card-cta.added {
  background: #16a34a !important;
  color: #fff !important;
  cursor: default;
}

/* Hide WooCommerce default inserted "View cart" link next to CTA in popup */
.yslg-product-card .added_to_cart {
  display: none !important;
}

/* Sleek custom scrollbars for recommendations and popups */
.yslg-product-recommendations-list::-webkit-scrollbar,
.yslg-product-recommendations-grid::-webkit-scrollbar,
.yslg-product-recommendations::-webkit-scrollbar,
.ysleadgen-popup::-webkit-scrollbar,
.ysleadgen-content::-webkit-scrollbar,
.popup-section::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.yslg-product-recommendations-list::-webkit-scrollbar-track,
.yslg-product-recommendations-grid::-webkit-scrollbar-track,
.yslg-product-recommendations::-webkit-scrollbar-track,
.ysleadgen-popup::-webkit-scrollbar-track,
.ysleadgen-content::-webkit-scrollbar-track,
.popup-section::-webkit-scrollbar-track {
  background: transparent;
}

.yslg-product-recommendations-list::-webkit-scrollbar-thumb,
.yslg-product-recommendations-grid::-webkit-scrollbar-thumb,
.yslg-product-recommendations::-webkit-scrollbar-thumb,
.ysleadgen-popup::-webkit-scrollbar-thumb,
.ysleadgen-content::-webkit-scrollbar-thumb,
.popup-section::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 9999px;
}

.yslg-product-recommendations-list::-webkit-scrollbar-thumb:hover,
.yslg-product-recommendations-grid::-webkit-scrollbar-thumb:hover,
.yslg-product-recommendations::-webkit-scrollbar-thumb:hover,
.ysleadgen-popup::-webkit-scrollbar-thumb:hover,
.ysleadgen-content::-webkit-scrollbar-thumb:hover,
.popup-section::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}

/* Narrow popup column – 2-up compact grid */
@container yslg-pr (max-width: 420px) {
  .yslg-product-recommendations-heading {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .yslg-product-recommendations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .yslg-product-card {
    padding: 8px 6px;
  }

  .yslg-product-card-title {
    font-size: 11px;
  }

  .yslg-product-card-price {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .yslg-product-card-cta {
    font-size: 10px;
    padding: 5px 8px;
    width: 100%;
  }
}

/* Very narrow column – horizontal swipe row */
@container yslg-pr (max-width: 260px) {
  .yslg-product-recommendations-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .yslg-product-recommendations-grid .yslg-product-card {
    flex: 0 0 calc(50% - 4px);
    min-width: 96px;
    scroll-snap-align: start;
  }
}

/* JS-driven width classes (fallback / extra tuning) */
.yslg-product-recommendations.yslg-pr-narrow .yslg-product-recommendations-grid,
.yslg-product-recommendations.yslg-pr-tight .yslg-product-recommendations-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.yslg-product-recommendations.yslg-pr-tight .yslg-product-recommendations-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.yslg-product-recommendations.yslg-pr-tight .yslg-product-card {
  flex: 0 0 calc(50% - 4px);
  min-width: 90px;
  scroll-snap-align: start;
}

/* Mobile viewport */
@media (max-width: 520px) {
  .ysleadgen-popup .yslg-product-recommendations {
    margin: 10px 0;
  }

  .ysleadgen-popup .yslg-product-recommendations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ysleadgen-popup .yslg-product-recommendations-list .yslg-product-card > a:first-child,
  .ysleadgen-popup .yslg-product-recommendations-list .yslg-product-card-image-wrap {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
  }

  .ysleadgen-popup .yslg-product-card-cta {
    font-size: 11px;
    padding: 5px 10px;
  }
}

@media (max-width: 380px) {
  .ysleadgen-popup .yslg-product-recommendations-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding-bottom: 4px;
  }

  .ysleadgen-popup .yslg-product-recommendations-grid .yslg-product-card {
    flex: 0 0 46%;
    min-width: 120px;
    scroll-snap-align: start;
  }
}

.yslg-product-recommendations-loading,
.yslg-product-recommendations-empty {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding: 16px;
}

.yslg-product-recommendations-placeholder {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   Combined Side-by-Side Product Recommendations Popup Layout
   (Preserves template content and main image, expands modal into side-by-side card)
   ========================================================================== */

.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card,
.ysleadgen-popup.yslg-has-product-recommendations .popup-wrapper,
.ysleadgen-popup.yslg-has-product-recommendations .popup-section,
.ysleadgen-popup.yslg-has-product-recommendations .popup-container,
.ysleadgen-popup.yslg-has-product-recommendations .touch-wrapper,
.ysleadgen-popup.yslg-has-product-recommendations .music-promo-wrapper {
  max-width: 1240px !important;
  width: min(96vw, 1240px) !important;
  min-height: 380px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16) !important;
  margin: 40px auto !important;
  position: relative !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

/* Adaptive max-width based on product count */
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card[data-pr-count="1"],
.ysleadgen-popup.yslg-has-product-recommendations [data-pr-count="1"] {
  max-width: 860px !important;
}
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card[data-pr-count="2"],
.ysleadgen-popup.yslg-has-product-recommendations [data-pr-count="2"] {
  max-width: 960px !important;
}
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card[data-pr-count="3"],
.ysleadgen-popup.yslg-has-product-recommendations [data-pr-count="3"] {
  max-width: 1060px !important;
}
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card[data-pr-count="4"],
.ysleadgen-popup.yslg-has-product-recommendations [data-pr-count="4"] {
  max-width: 1140px !important;
}

/* Ensure outer page wrappers do not add unwanted background, width or shadows */
.ysleadgen-popup.yslg-has-product-recommendations > .yslg-page,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-page:not(.yslg-pr-card) {
  max-width: 100% !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-page[style*="display: none"],
.ysleadgen-popup.yslg-has-product-recommendations .yslg-page[style*="display:none"] {
  display: none !important;
}

/* Left text/content column - preserve normal proportions and breathing room */
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .popup-left,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .touch-left,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .music-left,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .popup-content,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .popup-text,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > form,
.ysleadgen-popup.yslg-has-product-recommendations .popup-left,
.ysleadgen-popup.yslg-has-product-recommendations .touch-left,
.ysleadgen-popup.yslg-has-product-recommendations .music-left,
.ysleadgen-popup.yslg-has-product-recommendations .popup-wrapper > form,
.ysleadgen-popup.yslg-has-product-recommendations .popup-wrapper > .popup-text,
.ysleadgen-popup.yslg-has-product-recommendations .popup-wrapper > .popup-content,
.ysleadgen-popup.yslg-has-product-recommendations .popup-section > .popup-text,
.ysleadgen-popup.yslg-has-product-recommendations .popup-section > .popup-content,
.ysleadgen-popup.yslg-has-product-recommendations .popup-container > .popup-content {
  flex: 1 1 320px !important;
  max-width: 380px !important;
  min-width: 270px !important;
  width: auto !important;
  padding: 32px 24px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card:not(.yslg-has-media) > form,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card:not(.yslg-has-media) > .popup-content,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card:not(.yslg-has-media) > .popup-left {
  flex: 0 0 460px !important;
  max-width: 480px !important;
}

/* Middle / template main image column - DO NOT HIDE OR DISTORT */
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .popup-right,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .touch-right,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .music-right,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .popup-image,
.ysleadgen-popup.yslg-has-product-recommendations .popup-right,
.ysleadgen-popup.yslg-has-product-recommendations .touch-right,
.ysleadgen-popup.yslg-has-product-recommendations .music-right,
.ysleadgen-popup.yslg-has-product-recommendations .popup-wrapper > .popup-image,
.ysleadgen-popup.yslg-has-product-recommendations .popup-section > .popup-image,
.ysleadgen-popup.yslg-has-product-recommendations .popup-container > .popup-image {
  flex: 1 1 260px !important;
  max-width: 320px !important;
  min-width: 220px !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .popup-right img,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .touch-right img,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .music-right img,
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .popup-image img,
.ysleadgen-popup.yslg-has-product-recommendations .popup-right img,
.ysleadgen-popup.yslg-has-product-recommendations .touch-right img,
.ysleadgen-popup.yslg-has-product-recommendations .music-right img,
.ysleadgen-popup.yslg-has-product-recommendations .popup-wrapper > .popup-image img,
.ysleadgen-popup.yslg-has-product-recommendations .popup-section > .popup-image img,
.ysleadgen-popup.yslg-has-product-recommendations .popup-container > .popup-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Right recommendations container */
.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations {
  flex: 1 1 480px !important;
  min-width: 220px !important;
  max-width: none !important;
  width: auto !important;
  padding: 24px 28px 20px 24px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  border-left: 1px solid #f1f5f9 !important;
  margin: 0 !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations[data-count="1"] {
  flex: 0 0 200px !important;
  min-width: 180px !important;
  max-width: 220px !important;
}
.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations[data-count="2"] {
  flex: 0 0 300px !important;
  min-width: 280px !important;
  max-width: 320px !important;
}
.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations[data-count="3"] {
  flex: 0 0 400px !important;
  min-width: 380px !important;
  max-width: 420px !important;
}
.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations[data-count="4"] {
  flex: 0 0 480px !important;
  min-width: 440px !important;
  max-width: 500px !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-heading {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 16px 0 !important;
  text-align: left !important;
  line-height: 1.25 !important;
  letter-spacing: -0.2px !important;
}

/* Close button - Top right of the combined modal */
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .ysi-close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > .close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card > [data-gjs-type="close-button"]:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup.yslg-has-product-recommendations .ysi-close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup.yslg-has-product-recommendations .close-btn:not(.ysi-back-btn):not(.ysi-claim-btn),
.ysleadgen-popup.yslg-has-product-recommendations [data-gjs-type="close-button"]:not(.ysi-back-btn):not(.ysi-claim-btn) {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 10000 !important;
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  cursor: pointer !important;
}

/* Grid View (6 Columns default, adaptive for fewer products) */
.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid[data-count="1"] {
  grid-template-columns: minmax(110px, 150px) !important;
}
.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(110px, 150px)) !important;
}
.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid[data-count="3"] {
  grid-template-columns: repeat(3, 1fr) !important;
}
.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid[data-count="4"] {
  grid-template-columns: repeat(4, 1fr) !important;
}
.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid[data-count="5"] {
  grid-template-columns: repeat(5, 1fr) !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid .yslg-product-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 8px !important;
  padding: 6px 5px 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid .yslg-product-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid .yslg-product-card-image-wrap {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  margin-bottom: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  padding: 0 !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid .yslg-product-card-image {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: block !important;
  margin: 0 !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid .yslg-product-card-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  margin-bottom: 6px !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid .yslg-product-card-title {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin: 0 0 2px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
  text-align: center !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid .yslg-product-card-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid .yslg-product-card-price {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid .yslg-product-card-price del {
  opacity: 0.6 !important;
  margin-right: 3px !important;
  font-size: 9.5px !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid .yslg-product-card-cta {
  background: #6D28D9 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 5px 4px !important;
  border-radius: 6px !important;
  width: 100% !important;
  text-align: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  border: none !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease !important;
  box-sizing: border-box !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid .yslg-product-card-cta:hover {
  background: #5B21B6 !important;
  color: #ffffff !important;
}

/* List View (2 Columns of Product Rows) */
.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px 14px !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list[data-count="1"] {
  grid-template-columns: 1fr !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list .yslg-product-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 4px 6px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list .yslg-product-card:hover {
  background: #f8fafc !important;
  border-radius: 8px !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list .yslg-product-card-image-wrap {
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list .yslg-product-card-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: block !important;
  margin: 0 !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list .yslg-product-card-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: left !important;
  gap: 2px !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list .yslg-product-card-title {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list .yslg-product-card-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list .yslg-product-card-price {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #4b5563 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list .yslg-product-card-price del {
  opacity: 0.6 !important;
  margin-right: 4px !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list .yslg-product-card-cta {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  background: #6D28D9 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  border: none !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease !important;
}

.ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list .yslg-product-card-cta:hover {
  background: #5B21B6 !important;
  color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .ysleadgen-popup.yslg-has-product-recommendations .yslg-pr-card,
  .ysleadgen-popup.yslg-has-product-recommendations .popup-wrapper,
  .ysleadgen-popup.yslg-has-product-recommendations .popup-section,
  .ysleadgen-popup.yslg-has-product-recommendations .popup-container,
  .ysleadgen-popup.yslg-has-product-recommendations .touch-wrapper,
  .ysleadgen-popup.yslg-has-product-recommendations .music-promo-wrapper {
    flex-direction: column !important;
    max-width: 520px !important;
    width: 95% !important;
    margin: 30px auto !important;
  }

  .ysleadgen-popup.yslg-has-product-recommendations .popup-left,
  .ysleadgen-popup.yslg-has-product-recommendations .touch-left,
  .ysleadgen-popup.yslg-has-product-recommendations .music-left,
  .ysleadgen-popup.yslg-has-product-recommendations .popup-right,
  .ysleadgen-popup.yslg-has-product-recommendations .touch-right,
  .ysleadgen-popup.yslg-has-product-recommendations .music-right,
  .ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations {
    flex: 1 1 auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations {
    border-left: none !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 20px !important;
  }

  .ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-list {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .ysleadgen-popup.yslg-has-product-recommendations .yslg-product-recommendations-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Conversational Forms UI (Live Popups) */
.ysleadgen-form[data-is-conversational="true"] .conversational-wrapper {
  position: relative;
  overflow: visible;
}

.conversational-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.conversational-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ysleadgen-form[data-is-conversational="true"] .conversational-step label {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
  color: inherit;
}

.ysleadgen-form[data-is-conversational="true"] .conversational-step input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.ysleadgen-form[data-is-conversational="true"] .conversational-step textarea,
.ysleadgen-form[data-is-conversational="true"] .conversational-step select {
  font-size: 1.1rem;
  padding: 14px 16px;
  border-radius: 8px;
  width: 100%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s;
}

.ysleadgen-form[data-is-conversational="true"] .conversational-step input:focus,
.ysleadgen-form[data-is-conversational="true"] .conversational-step textarea:focus {
  border-color: #3b82f6;
  outline: none;
}

.conversational-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.conversational-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
}

.conversational-btn:hover {
  background: #2563eb;
}

.conversational-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.conversational-btn-back {
  background: #f3f4f6;
  color: #4b5563;
}

.conversational-btn-back:hover {
  background: #e5e7eb;
}

.conversational-progress-container {
  flex: 1;
  margin: 0 20px;
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.conversational-progress-bar {
  height: 100%;
  background: #3b82f6;
  width: 0%;
  transition: width 0.3s ease;
}

.conversational-error {
  color: #ff4d4f !important;
  background: rgba(255, 77, 79, 0.15) !important;
  border: 1px solid rgba(255, 77, 79, 0.4) !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  display: none;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: left !important;
  z-index: 999 !important;
}

/* Prevent full viewport height and remove scrollbar on non-fullscreen popups like template 35 */
html.ysleadgen-popup-active,
body.ysleadgen-popup-active {
  overflow: hidden !important;
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  height: 100% !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html.ysleadgen-popup-active::-webkit-scrollbar,
body.ysleadgen-popup-active::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.ysleadgen-popup:not(.ysleadgen-fullscreen) [style*="min-height:100vh"],
.ysleadgen-popup:not(.ysleadgen-fullscreen) [style*="min-height: 100vh"],
.ysleadgen-popup:not(.ysleadgen-fullscreen) [style*="height:100vh"],
.ysleadgen-popup:not(.ysleadgen-fullscreen) [style*="height: 100vh"] {
  min-height: auto !important;
  height: auto !important;
}

.ysleadgen-popup .popup-wrapper {
  margin: 0 auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.ysleadgen-popup .popup-wrapper::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.ysleadgen-popup:not(.ysleadgen-fullscreen):not([style*="overflow-y: scroll"]) {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.ysleadgen-popup:not(.ysleadgen-fullscreen):not([style*="overflow-y: scroll"])::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Ensure page wrappers inside popup do not add padding or margins */
.ysleadgen-popup > .yslg-page {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Template-52 Thank You Page */
.ysleadgen-popup .touch-thankyou {
  width: 460px !important;
  max-width: 92vw !important;
  min-width: 320px !important;
  box-sizing: border-box !important;
  padding: 35px 30px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  position: relative !important;
  overflow: visible !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18) !important;
  text-align: center !important;
}

.ysleadgen-popup .touch-thankyou h2 {
  font-size: 24px !important;
  line-height: 1.3 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  padding: 0 24px !important;
  color: #1f2937 !important;
  font-weight: 600 !important;
}

.ysleadgen-popup .touch-thankyou p {
  font-size: 13px !important;
  color: #666666 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

.ysleadgen-popup .touch-thankyou .ysi-close-btn,
.touch-thankyou button.ysi-close-btn,
.touch-thankyou [data-gjs-type="close-button"] {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  border-radius: 50% !important;
  background: #eeeeee !important;
  background-color: #eeeeee !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 18px !important;
  color: #374151 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 99 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  line-height: 1 !important;
}

.ysleadgen-popup .touch-thankyou .ysi-close-btn:hover,
.touch-thankyou button.ysi-close-btn:hover {
  background: #e0e0e0 !important;
  color: #111827 !important;
}

.ysleadgen-popup .touch-thankyou .ysi-back-btn {
  padding: 12px 24px !important;
  background: #6D28D9 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  min-width: 100px !important;
  margin: 0 auto !important;
  display: inline-block !important;
}

@media (max-width: 480px) {
  .ysleadgen-popup .touch-thankyou {
    width: 92vw !important;
    min-width: unset !important;
    padding: 30px 18px !important;
  }
}

/* ==========================================================================
   YSLeadGen Free Shipping Progress Bar
   ========================================================================== */
.yslg-shipping-bar-wrapper {
  display: block;
  width: 100%;
  min-width: 200px;
  box-sizing: border-box;
  margin: 8px 0;
  padding: 4px 6px;
}

.yslg-shipping-bar-text {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.35;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: color 0.3s ease;
}

.yslg-shipping-bar-track {
  display: block;
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.yslg-shipping-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background-color: #10B981;
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  position: relative;
}

/* Specific Fit for Horizontal Floating Bars */
.floating-bar-inner .yslg-shipping-bar-wrapper,
.ysleadgen-type-floating-bar .yslg-shipping-bar-wrapper,
.floating-bar-content .yslg-shipping-bar-wrapper {
  margin: 0 12px;
  min-width: 220px;
  max-width: 360px;
  flex: 0 1 auto;
  align-self: center;
}

.floating-bar-inner .yslg-shipping-bar-text,
.ysleadgen-type-floating-bar .yslg-shipping-bar-text,
.floating-bar-content .yslg-shipping-bar-text {
  font-size: 12.5px;
  margin-bottom: 4px;
  white-space: nowrap;
}

/* Unlocked Celebration Style */
.yslg-shipping-bar-wrapper.yslg-shipping-unlocked .yslg-shipping-bar-fill {
  background: linear-gradient(90deg, #10B981 0%, #34D399 50%, #059669 100%);
  background-size: 200% 100%;
  animation: yslg-shimmer-bar 2.5s infinite linear;
}

.yslg-shipping-bar-wrapper.yslg-shipping-unlocked .yslg-shipping-bar-text {
  font-weight: 700;
}

@keyframes yslg-shimmer-bar {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility / Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .yslg-shipping-bar-fill {
    transition: none !important;
    animation: none !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .floating-bar-inner .yslg-shipping-bar-text,
  .ysleadgen-type-floating-bar .yslg-shipping-bar-text,
  .floating-bar-content .yslg-shipping-bar-text {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .yslg-shipping-bar-text {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .yslg-shipping-bar-wrapper {
    margin: 4px 0;
    min-width: 100%;
  }
}

/* ==========================================================================
   Sticky Teaser Styles & Animations
   ========================================================================== */

.yslg-sticky-teaser {
  position: fixed !important;
  z-index: 99998 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 16px !important;
  border-radius: 9999px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  user-select: none !important;
  box-sizing: border-box !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              box-shadow 0.2s ease,
              opacity 0.25s ease !important;
  opacity: 0;
  max-width: calc(100vw - 32px) !important;
}

.yslg-sticky-teaser:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}

/* Click feedback state - applies background color properties */
.yslg-sticky-teaser.yslg-teaser-clicked {
  background-color: var(--ys-teaser-bg-click, #2563eb) !important;
  color: #ffffff !important;
  transform: scale(0.96) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  transition: background-color 0.15s ease, transform 0.15s ease !important;
}

.yslg-sticky-teaser.yslg-teaser-visible {
  opacity: 1 !important;
}

/* Position Variants */
.yslg-sticky-teaser.yslg-pos-bottom-right,
.yslg-sticky-teaser.yslg-teaser-pos-bottom-right {
  bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
  right: max(20px, env(safe-area-inset-right, 20px)) !important;
  animation: yslgTeaserSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.yslg-sticky-teaser.yslg-pos-bottom-left,
.yslg-sticky-teaser.yslg-teaser-pos-bottom-left {
  bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
  left: max(20px, env(safe-area-inset-left, 20px)) !important;
  animation: yslgTeaserSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.yslg-sticky-teaser.yslg-pos-bottom-center,
.yslg-sticky-teaser.yslg-teaser-pos-bottom-center {
  bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  animation: yslgTeaserSlideUpCenter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.yslg-sticky-teaser.yslg-pos-bottom-center:hover,
.yslg-sticky-teaser.yslg-teaser-pos-bottom-center:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.02) !important;
}

.yslg-sticky-teaser.yslg-pos-bottom-center.yslg-teaser-clicked,
.yslg-sticky-teaser.yslg-teaser-pos-bottom-center.yslg-teaser-clicked {
  transform: translateX(-50%) scale(0.96) !important;
}

.yslg-sticky-teaser.yslg-pos-top-right,
.yslg-sticky-teaser.yslg-teaser-pos-top-right {
  top: max(20px, env(safe-area-inset-top, 20px)) !important;
  right: max(20px, env(safe-area-inset-right, 20px)) !important;
  animation: yslgTeaserSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.yslg-sticky-teaser.yslg-pos-top-left,
.yslg-sticky-teaser.yslg-teaser-pos-top-left {
  top: max(20px, env(safe-area-inset-top, 20px)) !important;
  left: max(20px, env(safe-area-inset-left, 20px)) !important;
  animation: yslgTeaserSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Content & Icon */
.yslg-teaser-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
  cursor: pointer !important;
  outline: none !important;
}

.yslg-teaser-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.yslg-teaser-text {
  display: inline-block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 280px !important;
}

/* Close Button */
.yslg-teaser-close {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: inherit !important;
  font-size: 14px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  outline: none !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
  opacity: 0.8 !important;
  flex-shrink: 0 !important;
}

.yslg-teaser-close:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

/* Suppressed when full modal is active */
.yslg-teasers-suppressed .yslg-sticky-teaser,
body.ysleadgen-popup-active .yslg-sticky-teaser {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Exit transition */
.yslg-sticky-teaser.yslg-teaser-hiding {
  opacity: 0 !important;
  transform: scale(0.85) !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

/* Animations */
@keyframes yslgTeaserSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes yslgTeaserSlideUpCenter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes yslgTeaserSlideDown {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Electronics Sticky Teaser Pill (template-112) */
.st-teaser-pill,
.yslg-sticky-teaser.st-teaser-pill {
  position: fixed !important;
  z-index: 99998 !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 28px 10px 20px !important;
  background: #0c192c !important;
  background-color: #0c192c !important;
  border: 2px solid #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 3px 8px rgba(0, 0, 0, 0.15) !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  cursor: pointer !important;
  user-select: none !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.st-teaser-pill:hover,
.yslg-sticky-teaser.st-teaser-pill:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.st-teaser-pill .st-teaser-close-btn,
.yslg-sticky-teaser.st-teaser-pill .yslg-teaser-close,
.yslg-sticky-teaser .st-teaser-close-btn,
button.st-teaser-close-btn {
  position: absolute !important;
  top: -9px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  border-radius: 50% !important;
  background: #0c192c !important;
  background-color: #0c192c !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.15s ease, background-color 0.15s ease !important;
}

.st-teaser-pill .st-teaser-close-btn:hover,
.yslg-sticky-teaser.st-teaser-pill .yslg-teaser-close:hover,
.yslg-sticky-teaser .st-teaser-close-btn:hover,
button.st-teaser-close-btn:hover {
  background: #1e293b !important;
  background-color: #1e293b !important;
  transform: scale(1.1) !important;
}

.st-teaser-content {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.st-teaser-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  line-height: 1 !important;
}

.st-teaser-divider {
  width: 1.5px !important;
  height: 28px !important;
  background: rgba(255, 255, 255, 0.55) !important;
}

.st-teaser-text-group {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  line-height: 1.15 !important;
  text-align: left !important;
}

.st-teaser-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  font-family: inherit !important;
}

.st-teaser-subtitle {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #e2e8f0 !important;
  letter-spacing: 0px !important;
  white-space: nowrap !important;
  margin-top: 2px !important;
  font-family: inherit !important;
}

/* Festive Snowy Gifts (Template 113) Red Teaser Pill */
.fsg-teaser-pill,
.yslg-sticky-teaser.fsg-teaser-pill {
  padding: 12px 34px 12px 24px !important;
  background: #dc2626 !important;
  background-color: #dc2626 !important;
  border: 3px solid #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.45), 0 3px 10px rgba(0, 0, 0, 0.18) !important;
}

.fsg-teaser-pill:hover,
.yslg-sticky-teaser.fsg-teaser-pill:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 14px 34px rgba(220, 38, 38, 0.55), 0 5px 14px rgba(0, 0, 0, 0.22) !important;
}

.fsg-teaser-pill .st-teaser-title,
.yslg-sticky-teaser.fsg-teaser-pill .st-teaser-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px !important;
  line-height: 1 !important;
}

/* Newsletter Discount (Template 115) Green Teaser Pill */
.nwd-teaser-pill,
.yslg-sticky-teaser.nwd-teaser-pill {
  padding: 12px 34px 12px 24px !important;
  background: linear-gradient(180deg, #096117 0%, #044410 100%) !important;
  background-color: #054e16 !important;
  border: 3px solid #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 28px rgba(5, 78, 22, 0.45), 0 3px 10px rgba(0, 0, 0, 0.18) !important;
}

.nwd-teaser-pill:hover,
.yslg-sticky-teaser.nwd-teaser-pill:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 14px 34px rgba(5, 78, 22, 0.55), 0 5px 14px rgba(0, 0, 0, 0.22) !important;
}

.nwd-teaser-pill .st-teaser-title,
.yslg-sticky-teaser.nwd-teaser-pill .st-teaser-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px !important;
  line-height: 1 !important;
}
/* ==========================================================================
   Multi-Step Progressive Profiling / Micro-Commitment Popups
   ========================================================================== */
.yslg-multi-step-container {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  overflow: visible;
  padding: 8px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.yslg-ms-step {
  width: 100%;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.yslg-ms-step.yslg-ms-hidden {
  display: none !important;
  opacity: 0;
  transform: translateX(16px);
}

.yslg-ms-step.yslg-ms-active {
  display: block !important;
  opacity: 1;
  transform: translateX(0);
}

.yslg-ms-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.yslg-ms-dark-theme .yslg-ms-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.yslg-ms-light-theme .yslg-ms-badge {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.yslg-ms-headline {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.yslg-ms-dark-theme .yslg-ms-headline {
  color: #ffffff !important;
}

.yslg-ms-light-theme .yslg-ms-headline {
  color: #0f172a !important;
}

.yslg-ms-subtitle {
  font-size: 13px;
  margin: 0 0 16px 0;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.yslg-ms-dark-theme .yslg-ms-subtitle {
  color: #cbd5e1 !important;
}

.yslg-ms-light-theme .yslg-ms-subtitle {
  color: #475569 !important;
}

.yslg-ms-options-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.yslg-ms-option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  user-select: none;
  text-align: center;
  box-sizing: border-box;
}

.yslg-ms-option-card:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.yslg-ms-option-card:active,
.yslg-ms-option-card.yslg-ms-selected {
  border-color: #2563eb;
  background: #eff6ff;
  transform: scale(0.98);
}

.yslg-ms-option-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.yslg-ms-option-label {
  flex: 1;
  text-align: left;
  line-height: 1.25;
}

.yslg-ms-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  background: #ecfdf5;
  color: #059669;
  border: 1px dashed #10b981;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.yslg-ms-disclaimer {
  font-size: 12px;
  margin-top: 8px;
}

.yslg-ms-email-input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  border-radius: 8px !important;
  border: 1.5px solid #d1d5db !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  margin-bottom: 12px !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  display: block !important;
  line-height: 1.4 !important;
}

.yslg-ms-email-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.yslg-ms-dark-theme .yslg-ms-email-input {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

.yslg-ms-dark-theme .yslg-ms-email-input::placeholder {
  color: #94a3b8 !important;
}

.yslg-ms-submit-btn {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 13px 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: none !important;
  background: #2563eb !important;
  color: #ffffff !important;
  cursor: pointer !important;
  margin-bottom: 8px !important;
  transition: background 0.2s ease, transform 0.1s ease !important;
  display: block !important;
}

.yslg-ms-submit-btn:hover {
  background: #1d4ed8 !important;
}

.yslg-ms-submit-btn:active {
  transform: scale(0.99) !important;
}

.yslg-ms-dark-theme .yslg-ms-disclaimer {
  color: #94a3b8 !important;
}

.yslg-ms-light-theme .yslg-ms-disclaimer {
  color: #64748b !important;
}

.yslg-ms-success {
  padding: 20px 12px;
  text-align: center;
}

.yslg-ms-success-icon {
  font-size: 40px;
  margin-bottom: 12px;
  animation: yslg-bounce 0.6s ease;
}

@keyframes yslg-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 640px) {
  .yslg-ms-options-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Multi-Step Progressive Profiling for Floating Bars
   ========================================================================== */

/* Automatically expand floating bar height & prevent overflow clipping */
.ysleadgen-type-floating-bar.yslg-has-multi-step .floating-bar-inner,
.floating-bar-inner.yslg-ms-floating-active,
.yslg-has-multi-step .floating-bar-inner {
  height: auto !important;
  min-height: 85px !important;
  max-height: none !important;
  overflow: visible !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-sizing: border-box !important;
}

/* Adjust form layout from horizontal row to centered column stack in floating bars */
.ysleadgen-type-floating-bar.yslg-has-multi-step .floating-bar-content,
.floating-bar-content.yslg-ms-floating-active,
.yslg-has-multi-step .floating-bar-content {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  gap: 4px !important;
  padding: 4px 16px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Make existing title text compact when multi-step is active in floating bars */
.floating-bar-inner.yslg-ms-floating-active .floating-bar-content > div:not(.yslg-multi-step-container):not(.yslg-multi-step-preview-overlay),
.yslg-has-multi-step .floating-bar-content > div:not(.yslg-multi-step-container):not(.yslg-multi-step-preview-overlay) {
  font-size: 13.5px !important;
  line-height: 1.25 !important;
  margin-bottom: 2px !important;
}

/* Compact multi-step container inside floating bar */
.floating-bar-inner .yslg-multi-step-container,
.floating-bar-inner .yslg-multi-step-preview-overlay,
.yslg-ms-preview-floating {
  width: 100% !important;
  max-width: 780px !important;
  margin: 0 auto !important;
  padding: 2px 8px !important;
  box-sizing: border-box !important;
}

.floating-bar-inner .yslg-ms-badge {
  font-size: 10px !important;
  padding: 2px 8px !important;
  margin-bottom: 4px !important;
}

.floating-bar-inner .yslg-ms-headline {
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 0 3px 0 !important;
  line-height: 1.25 !important;
}

.floating-bar-inner .yslg-ms-subtitle {
  font-size: 12px !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.2 !important;
}

/* Sleek horizontal chip buttons for Step 1 in Floating Bars */
.floating-bar-inner .yslg-ms-options-grid,
.yslg-ms-preview-floating .yslg-ms-options-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
  width: 100% !important;
}

.floating-bar-inner .yslg-ms-option-card,
.floating-bar-inner .yslg-ms-option-btn,
.yslg-ms-preview-floating .yslg-ms-option-btn {
  flex: 0 1 auto !important;
  min-width: 110px !important;
  max-width: 220px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  border-radius: 9999px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Horizontal inline fields row for Step 2 in Floating Bars */
.floating-bar-inner .yslg-ms-fields-container,
.yslg-ms-preview-floating .yslg-ms-fields-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 620px !important;
  margin: 0 auto !important;
}

.floating-bar-inner .yslg-ms-email-input,
.floating-bar-inner .yslg-ms-input-preview,
.yslg-ms-preview-floating .yslg-ms-input-preview {
  flex: 1 1 200px !important;
  max-width: 280px !important;
  margin-bottom: 0 !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  height: 38px !important;
  box-sizing: border-box !important;
}

.floating-bar-inner .yslg-ms-submit-btn,
.floating-bar-inner .yslg-ms-submit-preview,
.yslg-ms-preview-floating .yslg-ms-submit-preview,
.floating-bar-inner button[type="submit"] {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 220px !important;
  margin-bottom: 0 !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  height: 38px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.floating-bar-inner .yslg-ms-reward-badge {
  padding: 3px 10px !important;
  font-size: 11.5px !important;
  margin-bottom: 6px !important;
}

.floating-bar-inner .yslg-ms-disclaimer {
  font-size: 11px !important;
  margin-top: 4px !important;
  width: 100% !important;
  text-align: center !important;
}

/* Decorative side images scale down cleanly */
.floating-bar-inner.yslg-ms-floating-active .side-image,
.yslg-has-multi-step .side-image {
  max-height: 85px !important;
  align-self: center !important;
}

@media (max-width: 768px) {
  .floating-bar-inner.yslg-ms-floating-active .side-image,
  .yslg-has-multi-step .side-image {
    display: none !important;
  }
  .floating-bar-inner .yslg-ms-fields-container,
  .yslg-ms-preview-floating .yslg-ms-fields-container {
    flex-direction: column !important;
    width: 100% !important;
  }
  .floating-bar-inner .yslg-ms-email-input,
  .floating-bar-inner .yslg-ms-submit-btn,
  .floating-bar-inner button[type="submit"] {
    max-width: 100% !important;
    width: 100% !important;
  }
}