.subscribe-fab {
  --fab-toggle-width: 59px;
  position: fixed;
  right: 16px;
  top: 12%;
  transform: translateY(-50%);
  z-index: 1000;
  min-height: 59px;
}

.subscribe-fab__toggle {
  flex: 0 0 var(--fab-toggle-width);
  width: var(--fab-toggle-width);
  height: 59px;
  margin: 0 0 0 10px;
  border: 0;
  background: transparent;
  color: #ffffff66;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.subscribe-fab__icon {
  width: 32px;
  height: 32px;
  transform: scale(1.35);
  transform-origin: center;
}

.subscribe-fab__text {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.subscribe-fab__panel {
  position: absolute;
  width: 378px;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  min-width: 368px;
  height: 59px;
  padding: 0 10px 0 0;
  border-radius: 36px;
  background: #ffffff1a;
  border: 1px solid #ffffff80;
  transform: translateX(calc(100% - var(--fab-toggle-width)));
  transition: transform 0.25s ease, background-color 0.2s ease;
  backdrop-filter: blur(12px);
}

.subscribe-fab:hover .subscribe-fab__panel {
  background: #ffffff66;
}

.subscribe-fab.is-open .subscribe-fab__panel {
  background: #ffffff66;
  transform: translateX(44px);
}

.subscribe-fab:hover .subscribe-fab__toggle,
.subscribe-fab.is-open .subscribe-fab__toggle {
  color: #0e1b42;
}

.subscribe-fab__form {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.subscribe-fab.is-open .subscribe-fab__form {
  opacity: 1;
  pointer-events: auto;
}

.subscribe-fab__input {
  width: 190px;
  height: 30px;
  border: 0;
  padding: 0 10px;
  background: #ffffff80;
  color: #0e1b42;
  font-size: 12px;
}

.subscribe-fab__input::placeholder {
  color: #0e1b4288;
}

.subscribe-fab__submit {
  height: 30px;
  border: 0;
  padding: 0 10px;
  background: #ffffffcc;
  color: #0e1b42;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 375px) {
  .subscribe-fab__input {
    width: 150px;
  }

  .subscribe-fab.is-open .subscribe-fab__panel {
    transform: translateX(84px);
  }
}