/* Site preferences / consent notice - Trovely
   Warm paper look matching the landing: cream surface, coral accent, Quicksand,
   soft hand-drawn rounded corners. Bottom-left toast, max 440px.
   Neutral class names (sp-*) so cookie-/consent-blockers don't hide it. */

.sp-notice {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  width: calc(100vw - 48px);
  max-width: 440px;
  background: #fffaf2;
  border: 2px solid rgba(214, 150, 90, 0.45);
  border-radius: 20px 18px 21px 17px;
  box-shadow: 0 16px 38px rgba(120, 70, 40, 0.22), 0 3px 9px rgba(120, 70, 40, 0.12);
  padding: 20px 22px 18px;
  font-family: 'Quicksand', system-ui, sans-serif;
  color: #4a3826;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
}

.sp-notice.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sp-notice__title {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #3a2a1c;
  margin: 0 0 8px;
  line-height: 1.25;
}

.sp-notice__body {
  font-size: 14px;
  line-height: 1.55;
  color: #8a6a52;
  margin: 0 0 16px;
}

.sp-notice__body a {
  color: #a23b30;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sp-notice__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.sp-btn {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 16px 14px 17px 13px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  line-height: 1.2;
}

.sp-btn--accept {
  background: #f4796b;
  color: #fff;
  border-color: #f4796b;
  box-shadow: 0 8px 18px rgba(244, 121, 107, 0.30), inset 0 -2px 0 rgba(162, 59, 48, 0.18);
}

.sp-btn--accept:hover {
  transform: translateY(-1px) rotate(-1deg);
}

.sp-btn--decline {
  background: transparent;
  color: #8a6a52;
  border-color: rgba(214, 150, 90, 0.5);
}

.sp-btn--decline:hover {
  background: rgba(214, 150, 90, 0.12);
}

@media (max-width: 540px) {
  .sp-notice {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    bottom: 16px;
    padding: 18px 18px 16px;
  }
  .sp-btn {
    flex: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-notice {
    transition: opacity 0.18s ease;
    transform: none;
  }
}
