@import "shared/mixins-and-vars";

#double-focus-ring-example {
    background-image: linear-gradient(to right, #fffbd5, #b20a2c);

    a {
        margin: 5px;
        padding: 10px;
        background: #ffffcc;
        display: inline-block;
        color: @orange;
    }

    * {
        .enable-focus(
      {
        outline: solid 2px @focus-color;
        box-shadow: 3px 3px 0 white,
          -3px -3px 0 white,
          -3px 3px 0 white,
          3px -3px 0 white;
      },
      {
        outline: none;
        box-shadow: none;
      }
    );
    }
}

.has-kb-instructions {
  &__text {
    background-color: black;
    color: white;
    display: block;
    margin: 10px 0 15px 0 !important;
    padding: 4px;


    .enable__is-dark-mode & {
      background: #999;
      color: black;
    }
  }

  &__container:has(:focus-visible):focus-within &__text {
    .enable__visually-hidden--reverse();
    
  }
}

#kb-only-focus-within__example {
  text-align: center;
  
  legend {
    font-size: 20/@px;
    font-weight: bold;
    margin: 0 auto;
  }

  p {
    margin-bottom: 20px;
  }

  button[type="submit"] {
    margin: 20px auto;
    display: block;
    font-size: 16/@px;
    border-radius: 30px;
    padding: 5px 10px;
  }
}

.circleless-radio-buttons {
  display: inline-block;


  label {
    min-width: 100px;
    border: solid 1px #333;
    border-radius: 5px;
    padding: 3px;
    margin-right: 5px;
    float: left;

    .enable__is-dark-mode & {
      border: solid 1px white;
    }

    &::last-child {
      margin-right: none;
    }
  }

  input {
    .enable__visually-hidden();

    + label {
      text-align: center;
    }

    &:focus + label {
      outline: solid 2px @focus-color;
      outline-offset: 2px;
    }

    &:checked + label {
      background-color: #333;
      color: #fff;

      .enable__is-dark-mode & {
        background-color: #ccc;
        color: #000;
      }
    }
  }
}