/* ================================================
   MY LIFE DISCIPLINE — Social Proof Toast
   ================================================ */

#sp-widget {
  position: fixed;
  bottom: 32px;
  left: 28px;
  z-index: 99999;
  width: 320px;
  background: #FAFAF8;
  border: 1.5px solid rgba(201, 168, 76, 0.6);
  border-radius: 16px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.10);
  padding: 18px 18px 16px 18px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;

  /* hidden by default */
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

#sp-widget.sp-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Close button */
#sp-widget .sp-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: #999;
  line-height: 22px;
  text-align: center;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
#sp-widget .sp-x:hover {
  background: #eee;
  color: #333;
}

/* Top row: photo + name + job */
.sp-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.sp-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(201, 168, 76, 0.45);
  background: #ddd;
}

.sp-info { flex: 1; min-width: 0; }

.sp-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 2px;
}

.sp-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.sp-job {
  font-size: 11px;
  color: #888;
  margin-top: 1px;
}

/* Stars */
.sp-stars {
  font-size: 12px;
  color: #C9A84C;
  letter-spacing: 1px;
  margin-bottom: 7px;
}

/* Headline */
.sp-headline {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin-bottom: 5px;
}

/* Quote */
.sp-quote {
  font-size: 12px;
  color: #555;
  line-height: 1.55;
  font-style: italic;
  margin: 0;
}

/* Divider */
.sp-divider {
  height: 1px;
  background: rgba(201, 168, 76, 0.2);
  margin: 10px 0 8px;
}

/* Footer */
.sp-footer {
  font-size: 9px;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Mobile */
@media (max-width: 480px) {
  #sp-widget {
    width: calc(100vw - 32px);
    left: 16px;
    bottom: 20px;
    padding: 14px 14px 12px 14px;
    border-radius: 14px;
  }
  .sp-photo { width: 42px; height: 42px; }
  .sp-name { font-size: 13px; }
  .sp-headline { font-size: 12px; }
  .sp-quote { font-size: 11px; }
}
