.fshp {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 99990;
  box-sizing: border-box;
  width: min(var(--fshp-w, 380px), calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px 24px 22px;
  background: var(--fshp-bg, #fff);
  color: var(--fshp-text, #37353a);
  border-top: 4px solid var(--fshp-line, #d29c09);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);
  font-family: Montserrat, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
}
.fshp[hidden] { display: none; }
.fshp.is-visible { opacity: 1; transform: translateY(0); }

.fshp__close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fshp-text, #37353a);
  cursor: pointer;
}
.fshp__close:hover,
.fshp__close:focus-visible { background: var(--fshp-hover, #ffe9b8); color: var(--fshp-accent, #015992); }
.fshp__close:focus-visible,
.fshp__btn:focus-visible { outline: 2px solid var(--fshp-accent, #015992); outline-offset: 2px; }

.fshp__title {
  margin: 0 36px 12px 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--fshp-accent, #015992);
}
.fshp__text { font-size: 15px; line-height: 1.6; }
.fshp__text p { margin: 0 0 12px; }
.fshp__text p:last-child { margin-bottom: 0; }
.fshp__text strong { font-weight: 600; }

.fshp__btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 26px;
  border: 2px solid var(--fshp-accent, #015992);
  background: var(--fshp-accent, #015992);
  color: #fff !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease;
}
.fshp__btn:hover,
.fshp__btn:focus-visible { background: var(--fshp-hover, #ffe9b8); color: var(--fshp-accent, #015992) !important; }

@media (max-width: 767px) {
  .fshp {
    left: 50%;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: var(--fshp-mw, 92%);
    max-height: var(--fshp-mh, 50vh);
    padding: 20px 18px 18px;
    transform: translate(-50%, 16px);
  }
  .fshp.is-visible { transform: translate(-50%, 0); }
  .fshp__title { font-size: 17px; }
  .fshp__text { font-size: 14px; }
  .fshp__btn { display: block; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .fshp, .fshp__btn { transition: none; }
}
