/*custom toggle*/
.switch {
    position: relative;
    display: inline-block;
    width: 130px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border: 1px solid #979797;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: #979797;
    -webkit-transition: .4s;
    transition: .4s;
}

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

input:focus + .slider {
    /*box-shadow: 0 0 1px #2196F3;*/
}

input:checked + .slider:before {
    -webkit-transform: translateX(95px);
    -ms-transform: translateX(95px);
    transform: translateX(95px);
    background-color: #15B371;
}

input:checked + .slider .slider-text {
    margin-left: 15px;
}

/*hide/show text*/
input + .slider .slider-text.checked-input-text {
    display: none;
}

input + .slider .slider-text.unchecked-input-text {
    display: inline-flex;
}

input:checked + .slider .slider-text.checked-input-text {
    display: inline-flex;
}

input:checked + .slider .slider-text.unchecked-input-text {
    display: none;
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider-text {
    display: inline-flex;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-left: 40px;
    box-sizing: content-box;
    vertical-align: middle;
    font-size: 12px;
    line-height: 14px;
    color: black;
    font-weight: normal;
}

/*element used to help centering flex items with different widths: https://stackoverflow.com/a/33856609/4043487*/
.invisible-flex-item {
    visibility: hidden;
}

/* #####################
    NOTIFICATION BAR
########################*/
.notification {
    position: fixed;
    top: 0;
    z-index: 99999999999999999;
    background: #4cb470;
    left: 0;
    right: 0;
    height: 35px;
    color: white;
    text-align: center;
    line-height: 30px;
    padding-top: 10px;
}

.success-notification {
    background-color: #4cb470;
}

.error-notification {
    background-color: red;
}

.info-notification {
    background-color: darkgray;
}

.notification p {
    color: white;
    opacity: 1;
    font-size: 16px;
}

/*Sidebar*/
.mkt-sidebar {
    z-index: 1;
    margin-left: -100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /*background-color: rgba(0,0,0,0.4);*/
}

.mkt-sidebar-content {
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    width: 66.7vw;
    height: 100vh;
}

.mkt-sidebar.out {
    animation: slideOutFromLeft .3s ease-in forwards, lightenBackground 10ms ease-in forwards;
}
.mkt-sidebar.in {
    animation: slideInFromLeft .3s ease-in forwards, darkenBackground .3s ease-in .3s forwards;
}

.btn-lg {

}

@keyframes slideInFromLeft {
  from {
      margin-left: -100%;
  }
  to {
      margin-left: 0;
  }
}

@keyframes slideOutFromLeft {
  from {
      margin-left: 0;
  }
  to {
      margin-left: -100%;
  }
}
@keyframes darkenBackground {
  from {
      background-color: rgba(0,0,0,0);
  }
  to {
      background-color: rgba(0,0,0,0.6);
  }
}

@keyframes lightenBackground {
  from {
      background-color: rgba(0,0,0,0.6);
  }
  to {
      background-color: rgba(0,0,0,0);
  }
}

.full-opacity {
    opacity: 1;
}
.bold {
    font-weight: bold;
}

.divider {
    border-top: 1px solid #eee;
}
.break-words {
    word-break: break-all;
}
.card-number {
    background-image: url(/site_media/static/icons/credit-card.png),url(/site_media/static/icons/credit-card.png);
    background-position: 2px -121px,260px -61px;
    background-size: 120px 361px,120px 361px;
    background-repeat: no-repeat;
    padding-left: 54px;
    width: 290px
}
.valid.visa {
   background-position: 2px -163px,260px -87px;
}
.valid.visa_electron {
    background-position: 2px -205px,260px -87px;
}
.valid.mastercard {
    background-position: 2px -247px,260px -87px;
}
.hov-pointer {
    cursor: pointer;
}
.showing-language-picker {
    margin-top: 45px;
}
#company-profile.showing-language-picker {
    margin-top: 0;
 }
.showing-notification {
    margin-top: 30px;
}

.s-24 {
    height: 24px;
    width: 24px;
}

.max-w-full {
    max-width: 100%;
}

.line-separator {
    border-bottom: 2px solid #9797974d;
}

.p-l-15 {
    padding-left: 15px;
}
.p-r-15 {
    padding-right: 15px;
}
.list-style-none {
    list-style: none;
}
.w-90 {
    width: 90%
}
.m-0-auto {
    margin-left: auto;
    margin-right: auto;
}

/*only works on modern browsers */
.side-shadowed-box {
    box-shadow: 0 0 10px 5px rgba(0,0,0,0.34);
    clip-path: inset(0px -15px 0px -15px);
    /* position and left properties required to bring element out from edge of parent
    so that shadow can be seen; margin-left would also achieve the same thing */
    position: relative;
}

.equal-height-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
}

.equal-height-row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.dffd{
    border: 1px solid #cdcdcd
}
.v-100 {
    height: 100%;
}