/* "Now Open in Surprise" side panel.
   Paired with assets/surprise-popup.js. Loaded from index.html (all React
   routes) plus the standalone wash-options and polish-tunnel pages.

   Deliberately NOT a centre modal: it slides in at the bottom-right and never
   blocks the page, so a visitor can keep browsing and dismiss it when ready.

   Everything is namespaced under .msp- so it cannot collide with the compiled
   Tailwind classes in assets/index-BS4OMGI9.css. */

.msp-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;              /* above page content; below a full-screen modal */
  width: 340px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 20px 20px 22px;
  border-radius: 16px;
  border: 2px solid #00AEEF;
  background: #fff;
  color: #334155;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  box-shadow: 0 18px 44px rgba(3, 48, 72, 0.32);

  /* hidden starting state */
  opacity: 0;
  transform: translateX(24px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 0.38s;
}

.msp-panel.msp-open {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 0s;
}

.msp-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;              /* generous touch target */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0374BB;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.msp-close:hover,
.msp-close:focus-visible {
  background: rgba(3, 116, 187, 0.12);
  opacity: 1;
}

.msp-pill {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #8CC740;
  color: #fff;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.msp-title {
  margin: 0 0 6px;
  padding-right: 28px;       /* clear of the close button */
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #0374BB;
}

.msp-sub {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

.msp-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
}

.msp-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  color: #334155;
}

.msp-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8CC740;
}

.msp-cta {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  background: #8CC740;
  color: #fff;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.msp-cta:hover,
.msp-cta:focus-visible {
  background: #0374BB;
  color: #fff;
  transform: translateY(-1px);
}

/* Keyboard focus must stay visible on the white background. */
.msp-panel :focus-visible {
  outline: 3px solid #0374BB;
  outline-offset: 2px;
}

/* Phones: full-width card along the bottom, sliding up instead of in. */
@media (max-width: 480px) {
  .msp-panel {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
    padding: 18px 18px 20px;
    transform: translateY(24px);
  }

  .msp-panel.msp-open {
    transform: translateY(0);
  }

  .msp-title { font-size: 19px; }
}

/* Short viewports (landscape phones): trim the vertical weight. */
@media (max-height: 520px) {
  .msp-list { margin-bottom: 12px; }
  .msp-list li { margin-bottom: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .msp-panel,
  .msp-panel.msp-open {
    transform: none;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
  }
  .msp-cta:hover,
  .msp-cta:focus-visible { transform: none; }
}
