/* r70 / r111: "Få hjälp"-bubbla nere till höger + enkelt frågeformulär */
.smort-help {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147482990; /* under cookiebannern */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.smort-help__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 6px 1.15rem 6px 6px;
  border-radius: 999px;
  background: #0A0A0A;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(245, 245, 240, 0.12), 0 14px 34px -10px rgba(10, 10, 10, 0.45);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, opacity 0.25s ease;
}
.smort-help__toggle:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(226, 250, 179, 0.5), 0 18px 40px -12px rgba(10, 10, 10, 0.5); }
.smort-help__toggle:focus-visible { outline: 2px solid #E2FAB3; outline-offset: 3px; }

.smort-help__faces {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F5F5F0;
}
.smort-help__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.smort-help__face.is-active { opacity: 1; }
.smort-help__dot {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #E2FAB3;
  box-shadow: 0 0 0 2px #0A0A0A;
}
.smort-help__text { display: flex; flex-direction: column; line-height: 1.2; }
.smort-help__title { font-size: 0.9375rem; font-weight: 500; color: #FFFFFF; }
.smort-help__sub { font-size: 0.75rem; color: rgba(245, 245, 240, 0.66); }

.smort-help__panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(22.5rem, calc(100vw - 32px));
  max-height: min(32rem, calc(100vh - 7rem));
  overflow: auto;
  box-sizing: border-box;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1.25rem;
  background: #F5F5F0;
  color: #0A0A0A;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.08), 0 18px 40px -16px rgba(10, 10, 10, 0.45);
}
.smort-help.is-open .smort-help__panel,
#fa-hjalp:target .smort-help__panel,
#smort-help-panel:target {
  display: block !important;
}

.smort-help__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0A0A0A;
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
}
.smort-help__close:hover { background: #FFFFFF; }
.smort-help__close:focus-visible { outline: 2px solid #E2FAB3; outline-offset: 2px; }

.smort-help__eyebrow {
  margin: 0 0 0.2rem;
  font-family: var(--body-font, inherit);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.52);
}
.smort-help__heading {
  margin: 0 1.5rem 0.4rem 0;
  font-family: var(--heading-font, inherit);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0A0A0A;
}
.smort-help__intro {
  margin: 0 0 1rem;
  font-family: var(--body-font, inherit);
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(10, 10, 10, 0.66);
}

.smort-help__form {
  display: grid;
  gap: 0.7rem;
}
.smort-help__form[hidden] { display: none !important; }

.smort-help__field {
  display: grid;
  gap: 0.3rem;
}
.smort-help__field span {
  font-family: var(--body-font, inherit);
  font-size: 0.78rem;
  color: rgba(10, 10, 10, 0.56);
}
.smort-help__field span em {
  font-style: normal;
  color: rgba(10, 10, 10, 0.4);
}
.smort-help__field input,
.smort-help__field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 0.9rem;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.08);
  padding: 0.75rem 0.85rem;
  color: #0A0A0A;
  font-family: var(--body-font, inherit);
  font-size: 0.95rem;
  outline: none;
}
.smort-help__field textarea {
  resize: vertical;
  min-height: 5.2rem;
}
.smort-help__field input:focus,
.smort-help__field textarea:focus {
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0), 0 0 0 2px rgba(226, 250, 179, 0.85);
}

.smort-help__submit { padding-top: 0.15rem; }
.smort-help__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #0A0A0A;
  color: #FFFFFF;
  font-family: var(--body-font, inherit);
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
}
.smort-help__button:hover { box-shadow: 0 0 0 1px rgba(226, 250, 179, 0.5); }
.smort-help__button:focus-visible { outline: 2px solid #E2FAB3; outline-offset: 2px; }

.smort-help__panel .smort-forms__status,
.smort-help__panel .smort-forms__thanks {
  margin-bottom: 0.4rem;
}

@media (max-width: 640px) {
  .smort-help { right: 14px; bottom: 14px; }
  .smort-help__toggle { padding: 5px; gap: 0; }
  .smort-help__faces { width: 46px; height: 46px; }
  .smort-help__text { display: none; }
  /* Dölj bubblan medan cookiebannern är öppen på mobil */
  body:has(.scb-banner:not([hidden])) .smort-help { opacity: 0; pointer-events: none; }
  .smort-help__panel { width: calc(100vw - 28px); }
}
@media print { .smort-help { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .smort-help__toggle, .smort-help__face { transition: none; }
  .smort-help__toggle:hover { transform: none; }
}
