@import '~bootstrap/scss/functions.scss';
@import '_variables.scss';
@import '~bootstrap/scss/bootstrap';

.pricing-header {
  .pricing-discount {
    color: #4F4F4F;
    font-size: 20px;
    font-weight: 300;
    text-align: center;
  }
  .pricing-toggle-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;

    .toggle-switch {
      position: relative;
      width: 300px;
      height: 40px;
      background: #f2f2f2;
      border-radius: 20px;
      display: flex;
      cursor: pointer;
      overflow: hidden;

      input {
        opacity: 0;
        position: absolute;

        &:checked + .toggle-slider {
          left: 50%;
          background-color: #f88e2c;

          ~ .toggle-labels .yearly {
            color: #333;
          }

          ~ .toggle-labels .monthly {
            color: white;
          }
        }

        &:not(:checked) + .toggle-slider {
          left: 0;
          background-color: #1747a6;

          ~ .toggle-labels .monthly {
            color: #333;
          }

          ~ .toggle-labels .yearly {
            color: white;
          }
        }
      }

      .toggle-slider {
        position: absolute;
        width: 50%;
        height: 100%;
        border-radius: 20px;
        transition: all 0.3s ease;
      }

      .toggle-labels {
        position: relative;
        display: flex;
        width: 100%;
        height: 100%;

        .yearly, .monthly {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 50%;
          height: 100%;
          font-size: 1rem;
          font-weight: 600;
          transition: color 0.3s ease;
          z-index: 1;
        }
      }
    }
  }

  // Адаптивность для мобильных устройств
  @media (max-width: 768px) {
    .pricing-toggle-container .toggle-switch {
      width: 240px;
      height: 36px;

      .toggle-labels {
        .yearly, .monthly {
          font-size: 0.9rem;
        }
      }
    }
  }
}

// Адаптивность для мобильных устройств
@media (max-width: 768px) {
  .pricing-toggle-container .toggle-switch {
    width: 240px;
    height: 36px;

    .toggle-labels {
      .yearly, .monthly {
        font-size: 0.9rem;
      }
    }
  }
}