&.layout-2 {
  width: calc(var(--toggle-width) * var(--toggle-scale));
  background: var(--toggle-bg-light);
  border-radius: var(--toggle-border-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--toggle-padding);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  border-width: var(--toggle-border-w);
  border-style: solid;
  border-color: var(--toggle-border-color-light);

  .dracula-toggle-icon {
    width: calc(var(--toggle-text-size) * 1.5);
    aspect-ratio: 1;
    background-color: var(--toggle-text-color-light);
    mask: var(--toggle-icon-light);

    &.position-after {
      margin-left: var(--toggle-icon-spacing);
    }

    &.position-before {
      margin-right: var(--toggle-icon-spacing);
    }

  }

  .dracula-toggle-label {
    color: var(--toggle-text-color-light);
    margin-right: 5px;
    line-height: 1;
    font-size: var(--toggle-text-size);
    font-weight: normal;
  }

  &:not(.mode-dark) {
    .dracula-toggle-label {
      .--dark {
        display: none;
      }
    }
  }

  &.mode-dark {
    background: var(--toggle-bg-dark);
    border-color: var(--toggle-border-color-dark);

    .dracula-toggle-icon {
      background-color: var(--toggle-text-color-dark);
      mask: var(--toggle-icon-dark);
    }

    .dracula-toggle-label {
      color: var(--toggle-text-color-dark);
      margin-right: auto;

      .--dark {
        display: block;
      }

      .--light {
        display: none;
      }

    }

  }

}