/*
 * Sidebar
 */

.aff-template-main .error{
  color: red;
  font-weight: 500;
}


.aff-template-main #coupon_code {
    color: #007bff !important;
    font-weight: 500;
}

.aff-template-main #discount_percentage-error, .aff-template-main #discount_fixed_amount-error{
    position: absolute!important;
    bottom: -26px!important;
}



/*--------------------------------------------------*/
/* Loader CSS */
/*---------------------------------------------------*/

.aff-template-main .loader-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999; 
}

.aff-template-main .loader-div{
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.aff-template-main .loader {
  border: 4px solid #f3f3f3; 
  border-top: 4px solid #3498db; 
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite; 
  margin: -20px 0 0 -20px; 
}

.aff-template-main .loader-text{
    color: #fff;
    margin-top: 5px;
}

@keyframes dotsAnimation {
  0% {
    content: ".";
  }
  33% {
    content: "..";
  }
  66% {
    content: "...";
  }
  100% {
    content: ".";
  }
}

.aff-template-main .loader-text .dots {
  display: inline-block;
  width: 1em;
  text-align: left;
}

.aff-template-main .loader-text .dots::after {
  animation: dotsAnimation 2s infinite steps(2);
  content: ".";
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*-------------------------------------------------------------------*/
/*         START CODE FOR TOST DESIGN                                */
/*-------------------------------------------------------------------*/

.aff-template-main #toast {
    visibility: hidden;
    max-width: 50px;
    height: 50px;
    /*margin-left: -125px;*/
    margin: auto;
    background-color: transparent;
    color: #fff;
    text-align: center;
    border-radius: 2px;

    position: fixed;
    z-index: 99999;
    left: 0;right:0;
    bottom: 30px;
    font-size: 17px;
    white-space: nowrap;

    display: flex;
    justify-content: center;
    align-items: center;

}
.aff-template-main #toast #img{
    width: 50px;
    height: 50px;
    float: left;
    padding-top: 16px;
    padding-bottom: 16px;
    box-sizing: border-box;
    background-color: #111;
    color: #fff;
}

.aff-template-main #data-message {
    height: 100%!important;
    width: 100%!important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 50px;
}


.aff-template-main #toast.show {
    visibility: visible;
/*    -webkit-animation: fadein 0.5s, expand 0.5s 0.5s,stay 3s 1s, shrink 0.5s 2s, fadeout 0.5s 2.5s;*/
    animation: fadein 0.5s, expand 0.5s 0.5s,stay 3s 1s, shrink 0.5s 4s; /*fadeout 0.5s 4.5s;*/
}



@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes expand {
    from {min-width: 50px}
    to {min-width: 350px}
}

@keyframes stay {
    from {min-width: 350px}
    to {min-width: 350px}
}

@keyframes shrink {
    from {min-width: 350px;} 
    to {min-width: 50px;}
}

/*@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 60px; opacity: 0;}
}*/

/*-------------------------------------------------------------------*/
/*             Frontend template dashboard                     
/*-------------------------------------------------------------------*/


#add_promo_form label ,#updatePromoForm label, #add_referral_form label, #update_referral_form label{
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

#add_promo_form .error ,#updatePromoForm .error, #add_referral_form .error , #update_referral_form .error{
    font-size: 12px;
    color: red;
}

#add_promo_form input, #add_promo_form textarea, #add_promo_form .btn, #add_promo_form .btn-sm {
    box-shadow: none!important;
}

#updatePromoForm input, #updatePromoForm textarea, #updatePromoForm .btn, #updatePromoForm .btn-sm {
    box-shadow: none!important;
}

#add_referral_form input, #add_referral_form textarea, #add_referral_form .btn, #add_referral_form .btn-sm {
    box-shadow: none!important;
}

#update_referral_form input, #update_referral_form textarea, #update_referral_form .btn, #update_referral_form .btn-sm {
    box-shadow: none!important;
}

.promo-code-color{
    color: #007bff !important;
    font-weight: 500;
}

.custom-content-width{
    width: 100%!important;
   max-width: 100%!important;
}

.generate-code-text{
    font-weight: 600;
    cursor: pointer;
}

.generate-code-text:hover{
  color: #007bff;
}

#referral_code{
   color: #e83e8c !important;
   font-weight: 600; 
}