@import '~@cas-hub/acabim-common-client/src/styles/acabim_variables';
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins.scss";

/*
.cas-module-title-wrapper {
  padding-bottom: 2.3em !important;
}
*/

.cas-user-profile-wrapper {
  width: 90% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  margin-left: 1.5rem !important;
}

.cas-user-profile-title {
  font-size: small;
  color: dimgray;
}

.cas-user-profile {
  margin-left: 1.5rem !important;
  margin-bottom: 2rem !important;

}

.cas-user-profile-input {
  width: 100%;
  border: none;
  margin-bottom: 2rem !important;
  height: 25px;
  display: inline-block;
  font-size: small;
}

.cas-title-wrapper {
  font-weight: bold;
  font-size: small;
}

.cas-user-data-input {
  width: 100%;
  border: none;
  margin-top: 0.3rem;
  display: inline-block;
  font-size: small;
  height: 25px;
  margin-left: 0;
}

.cas-user-address-input {
  width: 100%;
  border: none;
  margin-top: 0.3rem;
  display: inline-block;
  font-size: small;
  height: 90px;
  margin-left: 0;
  resize: none;
}

.cas-button-rounded {
  width: 40px !important;
  height: 40px !important;
  background-color: transparent;
  border-color: transparent;
  border-radius: 50%;
  display: inline;
  color: #848484;
  box-shadow: 2px 2px 2px lightslategray;
  z-index: 50 !important;
}

.cas-button-rounded:hover {
  background-color: #e2e6ea !important;
  border-color: #e2e6ea !important;
  z-index: 50 !important;
}

.cas-button-rounded:focus {
  background-color: #e2e6ea !important;
  z-index: 50 !important;
}

.cas-plus {
  color: black;
  font-family: 'primeicons', sans-serif;
  speak: none;
  font-size: small;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  z-index: 100 !important;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cas-minus {
  color: red;
  font-family: 'primeicons', sans-serif;
  font-size: small;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  z-index: 100 !important;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cas-plus:before {
  z-index: 100 !important;
  content: "\e90d";
}

.cas-minus:before {
  z-index: 100 !important;
  content: "\e90f";
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  input[type='radio'] {
    --active: #017BFF;
    --active-inner: #fff;
    --focus: 2px rgba(39, 94, 254, .3);
    --border: #BBC1E1;
    --border-hover: #017BFF;
    --background: #fff;
    --disabled: #F6F8FF;
    --disabled-inner: #E1E6F9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background .3s, border-color .3s, box-shadow .2s;

    &:after {
      content: '';
      display: block;
      left: 0;
      top: 0;
      position: absolute;
      transition: transform (var(--d-t, .3s) var(--d-t-e, ease)), opacity var(--d-o, .2s);
    }

    &:checked {
      --b: var(--active);
      --bc: var(--active);
      --d-o: .8s;
      --d-t: .6s;
      --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
    }

    &:disabled {
      --b: var(--disabled);
      cursor: not-allowed;
      opacity: .9;

      &:checked {
        --b: var(--disabled-inner);
        --bc: var(--border);
      }

      & + label {
        cursor: not-allowed;
      }
    }

    &:hover {
      &:not(:checked) {
        &:not(:disabled) {
          --bc: var(--border-hover);
        }
      }
    }

    &:focus {
      box-shadow: 0 0 0 var(--focus);
    }

    &:not(.switch) {
      width: 21px;

      &:after {
        opacity: var(--o, 0);
      }

      &:checked {
        --o: 1;
      }
    }

    & + label {
      font-size: 14px;
      line-height: 21px;
      display: inline-block;
      vertical-align: top;
      cursor: pointer;
      margin-left: 4px;
    }
  }
  input[type='radio'] {
    border-radius: 50%;

    &:after {
      width: 19px;
      height: 19px;
      border-radius: 50%;
      background: var(--active-inner);
      opacity: 0;
      transform: scale(var(--s, .7));
    }

    &:checked {
      --s: .7;
    }
  }

}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cas-button-no-border {
  border: none;
  background: transparent;
  font-weight: bold;
  color: gray;
}

.cas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
}

.cas-alert-box {
  position: fixed;
  top: 30%;
  left: 30%;
  width: 65%;
  padding: 3%;
  z-index: 100;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
}

@include media-breakpoint-down(md) {
  .cas-alert-box {
    position: fixed;
    top: 30%;
    left: 10%;
    width: 65%;
    padding: 3%;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
  }
}
