/**
 * Sales Booster Modern UI Styles (Soft UI)
 */

:root {
  --molti-green: #404c40;
  --molti-yellow: #e4c45c;
  --molti-yellow-hover: #d4b13c;
  --molti-white: #ffffff;
  --molti-soft-bg: #f8f9fa;
  --molti-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --molti-radius: 14px;
}

/* Progress Bar */
.molti-shipping-progress {
  background: var(--molti-soft-bg);
  border-radius: var(--molti-radius);
  padding: 20px;
  box-shadow: var(--molti-shadow);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.molti-shipping-progress__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--molti-green);
  margin-bottom: 12px;
  display: block;
}

.molti-shipping-progress__bar-wrap {
  height: 10px;
  background: rgba(64, 76, 64, 0.1);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.molti-shipping-progress__bar {
  height: 100%;
  background: var(--molti-yellow);
  border-radius: 999px;
  width: 0;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* Shimmer Effect */
.molti-shipping-progress__bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: molti-shimmer 2s infinite;
}

@keyframes molti-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Shipping Timer */
.molti-shipping-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--molti-green);
  margin-top: 8px;
}

.molti-shipping-timer b {
  color: var(--molti-yellow-hover);
}

/* Skeleton Screens */
.molti-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast Notifications */
.molti-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: auto;
  min-width: 320px;
  pointer-events: none;
}

.molti-toast {
  background: var(--molti-white);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-bottom: 4px solid var(--molti-yellow);
  width: min(420px, calc(100vw - 32px));
  pointer-events: auto;
}

.molti-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.molti-toast__icon {
  font-size: 20px;
}

.molti-toast__content {
  font-size: 13px;
  color: var(--molti-green);
  line-height: 1.4;
}

.molti-toast__content strong {
  display: block;
}

@media (max-width: 767px) {
  .molti-toast-container {
    top: 76px;
    left: 12px;
    right: auto;
    bottom: auto;
    transform: none;
    align-items: flex-start;
    width: calc(100vw - 24px);
    min-width: 0;
    z-index: 10010;
  }

  .molti-toast {
    width: min(320px, calc(100vw - 24px));
    padding: 10px 12px;
    border-radius: 10px;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  }

  .molti-toast__icon img {
    width: 24px;
    height: 24px;
  }

  .molti-toast__content {
    font-size: 12px;
    line-height: 1.35;
  }
}

/* Button Animations */
.molti-cp-btn-primary {
  background: var(--molti-yellow);
  color: var(--molti-green);
  border: 0;
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(228, 196, 92, 0.3);
}

.molti-cp-btn-primary:hover {
  transform: translateY(-3px);
  background: var(--molti-yellow-hover);
  box-shadow: 0 8px 25px rgba(228, 196, 92, 0.4);
}

.molti-cp-btn-primary:active {
  transform: translateY(0);
}

/* Pulsing place order button */
#place_order {
  animation: molti-pulse 2s infinite;
}

@keyframes molti-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); box-shadow: 0 0 20px rgba(228, 196, 92, 0.6); }
  100% { transform: scale(1); }
}

/* Skeleton Screens for fragments loading */
.molti-is-loading {
  position: relative;
  pointer-events: none;
}

.molti-is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 10;
  opacity: 0.8;
}

.molti-skeleton-box {
  height: 20px;
  background: #eee;
  border-radius: 4px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.molti-skeleton-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.5s infinite;
}

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

.molti-social-proof {
    position: fixed;
    bottom: -100px; /* Start below the screen */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 15px;
    z-index: 999999;
    width: 320px;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.molti-social-proof.is-visible {
    bottom: 20px; /* Slide up into view */
}

.molti-social-proof__image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.molti-social-proof__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.molti-social-proof__info {
    display: flex;
    flex-direction: column;
}

.molti-social-proof__name {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px;
}

.molti-social-proof__name strong {
    color: #111;
}

.molti-social-proof__time {
    font-size: 11px;
    color: #999;
}

.molti-social-proof__close {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #ccc;
    line-height: 1;
}

.molti-social-proof__close:hover {
    color: #333;
}
