@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/figtree-400.woff2) format('woff2');
}

.cta {
  font-family: 'Figtree', Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: #364650;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(.cta) svg {
  display: block;
  flex-shrink: 0;
}

:where(.cta) button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:where(.cta) a {
  color: inherit;
  text-decoration: none;
}

.cta__card {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 150;
  box-sizing: border-box;
  width: 290px;
  height: 147px;
  background-color: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px;
}

.cta__body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 15px 10px;
  text-align: center;
}

.cta__heading-top {
  margin: 0;
  line-height: 1;
}

.cta__heading-bottom {
  margin: 5px 0 0;
  line-height: 1;
}

.cta__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.cta__phone-icon {
  margin-right: 5px;
  color: #40a2d9;
}

.cta__phone-number {
  font-size: 20px;
  line-height: 1;
}

.cta__terms {
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1.2;
}

.cta__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: #364650;
}

.cta__bar {
  display: none;
}

.cta__show {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 150;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border: 2px solid #40a2d9;
  border-radius: 50px;
  background-color: #40a2d9;
  box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px 0;
  transition: all 0.2s;
}

.cta__show:hover {
  transform: scale(1.1);
  box-shadow: rgba(0, 0, 0, 0.4) 0 0 5px 0;
}

.cta__show svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.cta.is-closed .cta__card,
.cta.is-closed .cta__bar {
  display: none;
}

.cta.is-closed .cta__show {
  display: flex;
}

@media (max-width: 900px) {
  .cta__card {
    display: none;
  }

  .cta__bar {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 150;
    display: flex;
    width: 100%;
    height: 50px;
    background: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.1) 0 -5px 10px 0;
  }

  .cta__bar-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    text-align: center;
  }

  .cta__bar-btn:first-child {
    border-right: 1px solid #e8ecf0;
  }

  .cta__bar-icon {
    margin: 0 5px 0 0;
    color: #40a2d9;
  }

  .cta__bar-close {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    padding: 10px;
  }
}
