.magic-ef-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 40px;
    height: 22px;
  
    input {
      opacity: 0;
      width: 0;
      height: 0;
    }
  
    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      transition: .4s;
  
      &:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: .4s;
      }
  
      &.round {
        border-radius: 22px;
  
        &:before {
          border-radius: 50%;
        }
      }
    }
  
    input:checked + .slider {
      background-color: #2196F3;
  
      &:before {
        transform: translateX(18px);
      }
    }
  
    &-text {
      margin-left: 30px;
      font-size: 14px;
      line-height: 1;
    }
  }
  /** popup */

  .popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);

    .popup-content {
        background-color: #fff;
        margin: 5% auto auto auto;
        padding: 20px;
        border-radius: 5px;
        width: 50%;
        max-width: 500px;

        .close {
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;

            &:hover {
                color: #555;
            }
        }
    }
}

.show {
    display: block;
}
.magic-ef-form {
  .magic-ef-options-wrapper {
    padding: 1.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #f8f9fa;

    .header-wrapper {
      margin-bottom: 1.5rem;
      text-align: center;

      h2 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: bold;
        color: #343a40;
      }
    }

    .form-group {
      margin-bottom: 1rem;

      label {
        display: inline-block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #495057;
      }

      .regular-text {
        display: block;
        width: 100%;
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
        color: #495057;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        border-radius: 0.25rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

        &:focus {
          border-color: #80bdff;
          outline: 0;
          box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        }
      }
    }

    .magic-ef-toggle-wrapper {
      margin-bottom: 1rem;

      .magic-ef-toggle {
        position: relative;
        display: flex;
        width: 40px;
        height: 20px;

        input {
          opacity: 0;
          width: 0;
          height: 0;
        }

        .slider {
          position: absolute;
          cursor: pointer;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          background-color: #ccc;
          transition: 0.4s;
          border-radius: 20px; // Match the height for perfect rounding

          &.round {
            border-radius: 20px; // Match the height for perfect rounding
          }
          .magic-ef-toggle-text{
            display: block;
          }
        }

        input:checked + .slider {
          background-color: #2196F3;
        }

        .slider:before {
          position: absolute;
          content: "";
          height: 16px;
          width: 16px;
          left: 2px;
          bottom: 2px;
          background-color: white;
          transition: 0.4s;
          border-radius: 50%;
        }

        input:checked + .slider:before {
          transform: translateX(20px);
        }

        .magic-ef-toggle-text {
          vertical-align: middle;
          font-weight: 500;
          color: #495057;
        }
      }
    }

    .magic-ef-display-options {
      margin-bottom: 1rem;

      p {
        margin-bottom: 1rem;

        label {
          display: block;
          margin-bottom: 0.5rem;
          font-weight: 500;
          color: #495057;
        }

        select {
          display: block;
          width: 100%;
          padding: 0.375rem 0.75rem;
          font-size: 1rem;
          line-height: 1.5;
          color: #495057;
          background-color: #fff;
          background-clip: padding-box;
          border: 1px solid #ced4da;
          border-radius: 0.25rem;
          transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

          &:focus {
            border-color: #80bdff;
            outline: 0;
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
          }
        }
      }
    }

    .magic-ef-button-wrapper {
      text-align: right;
      margin-top: 2rem;

      .button {
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
        border-radius: 0.25rem;
        border: 1px solid transparent;
        cursor: pointer;
        transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        
        &.button-primary {
          color: #fff;
          background-color: #007bff;
          border-color: #007bff;

          &:hover {
            color: #fff;
            background-color: #0056b3;
            border-color: #004085;
          }
        }

        &.button-secondary {
          color: #fff;
          background-color: #6c757d;
          border-color: #6c757d;

          &:hover {
            color: #fff;
            background-color: #545b62;
            border-color: #4e555b;
          }
        }
      }
    }
  }
}