/*
 * Badge Factor 2
 * Copyright (C) 2019 ctrlweb
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

.c-bf2 {
  --text-main-color: black;
}

.c-bf2__list__item {
  --items-per-line-mobile: 1;
  --items-per-line-tablet: 3;
  --items-per-line-desktop: 4;
}

.c-bf2__badge {
  --badge-shadow: 0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);
  --badge-border: 1px solid #eaeaea;
  --badge-border-radius: 5px;
  --badge-background: white;
  --badge-text-color: black;
}

.c-bf2__btn {
  --button-text-color: white;
  --button-background: #ce3a52;
}

.c-bf2__single {
  --sidebar-position-mobile: 1;
  --sidebar-position-desktop: 2;
}

.c-bf2__title {
  margin-bottom: 2rem;
}

.c-bf2__section {
  padding: 0rem 0 10rem;
}

.c-bf2__section__title {
  padding: 0;
  margin: 0 0 1rem;
}

textarea.c-bf2__input {
  margin-bottom: 2rem;
  min-height: 250px;
  resize: none;
}

.c-bf2__btn {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 4px;
  color: black;
  background: var(--button-background);
  color: var(--button-text-color);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.7rem;
  -webkit-box-shadow: 0 3px 3px -2px rgba(0, 0, 0, 0), 0 3px 4px 0 rgba(0, 0, 0, 0), 0 1px 8px 0 rgba(0, 0, 0, 0);
          box-shadow: 0 3px 3px -2px rgba(0, 0, 0, 0), 0 3px 4px 0 rgba(0, 0, 0, 0), 0 1px 8px 0 rgba(0, 0, 0, 0);
}

.c-bf2__btn:hover {
  -webkit-box-shadow: 0 3px 3px -2px rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12);
          box-shadow: 0 3px 3px -2px rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12);
  -webkit-transition: -webkit-box-shadow 0.5s ease-out;
  transition: -webkit-box-shadow 0.5s ease-out;
  -o-transition: box-shadow 0.5s ease-out;
  transition: box-shadow 0.5s ease-out;
  transition: box-shadow 0.5s ease-out, -webkit-box-shadow 0.5s ease-out;
}

.c-bf2 {
  margin-left: auto;
  margin-right: auto;
}

.c-bf2--badges {
  max-width: calc(var(--responsive--alignwide-width) + 4rem);
}

.c-bf2--single {
  max-width: var(--responsive--alignwide-width);
}

.c-bf2__badge {
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-right: 2rem;
}

.c-bf2__badge__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100%;
  width: 100%;
  -webkit-box-shadow: var(--badge-shadow);
          box-shadow: var(--badge-shadow);
  border: var(--badge-border);
  border-radius: var(--badge-border-radius);
  padding: 3rem 1.3rem;
  background: var(--badge-background);
  text-decoration: none;
}

.c-bf2__badge__image {
  height: auto;
  max-width: 100%;
  margin-bottom: 0.9rem;
}

.c-bf2__badge__title {
  font-size: 1.8rem;
  margin: 0;
  text-align: center;
}

.c-bf2__badge__actions {
  text-align: center;
}

.c-bf2__badge__action {
  margin: 2rem 0;
}

.c-bf2__list__items {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.c-bf2__list__item {
  -ms-flex-preferred-size: calc(100% / var(--items-per-line-mobile));
      flex-basis: calc(100% / var(--items-per-line-mobile));
}

@media screen and (min-width: 768px) {
  .c-bf2__list__item {
    -ms-flex-preferred-size: calc(100% / var(--items-per-line-tablet));
        flex-basis: calc(100% / var(--items-per-line-tablet));
  }
}

@media screen and (min-width: 1024px) {
  .c-bf2__list__item {
    -ms-flex-preferred-size: calc(100% / var(--items-per-line-desktop));
        flex-basis: calc(100% / var(--items-per-line-desktop));
  }
}

.c-bf2__single {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.c-bf2__single .c-bf2__header {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
}

.c-bf2__single .c-bf2__body {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  -webkit-box-ordinal-group: var(--sidebar-position-desktop);
      -ms-flex-order: var(--sidebar-position-desktop);
          order: var(--sidebar-position-desktop);
}

@media screen and (min-width: 1024px) {
  .c-bf2__single .c-bf2__body {
    -ms-flex-preferred-size: 70%;
        flex-basis: 70%;
    -webkit-box-ordinal-group: var(--sidebar-position-mobile);
        -ms-flex-order: var(--sidebar-position-mobile);
            order: var(--sidebar-position-mobile);
  }
}

.c-bf2__single .c-bf2__sidebar {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  -webkit-box-ordinal-group: var(--sidebar-position-mobile);
      -ms-flex-order: var(--sidebar-position-mobile);
          order: var(--sidebar-position-mobile);
}

@media screen and (min-width: 1024px) {
  .c-bf2__single .c-bf2__sidebar {
    -ms-flex-preferred-size: 30%;
        flex-basis: 30%;
    -webkit-box-ordinal-group: var(--sidebar-position-desktop);
        -ms-flex-order: var(--sidebar-position-desktop);
            order: var(--sidebar-position-desktop);
  }
}

/* Change assertion privacy popup */
.assertion_privacy_popup_overlay {
  display: none;
  position: fixed;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.28);
}
.assertion_privacy_popup_overlay .assertion_privacy_popup_wrap {
  position: relative;
  width: 45%;
  height: auto;
  background-color: white;
}
@media only screen and (max-width: 480px) {
  .assertion_privacy_popup_overlay .assertion_privacy_popup_wrap {
    width: 95%;
  }
}
@media only screen and (max-width: 1024px) {
  .assertion_privacy_popup_overlay .assertion_privacy_popup_wrap {
    width: 65%;
  }
}
.assertion_privacy_popup_overlay .assertion_privacy_popup_wrap .assertion_privacy_popup_content {
  padding: 30px;
}
.assertion_privacy_popup_overlay .assertion_privacy_popup_wrap .assertion_privacy_popup_content .assertion_privacy_popup_action_message {
  display: none;
  padding: 10px;
  border: 1px solid green;
  margin-bottom: 15px;
}
.assertion_privacy_popup_overlay .assertion_privacy_popup_wrap .assertion_privacy_popup_content .show {
  display: block;
}

/* Send by email popup */
.send_email_popup_overlay {
  display: none;
  position: fixed;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.28);
}
.send_email_popup_overlay .send_email_popup_wrap {
  position: relative;
  width: 45%;
  height: auto;
  background-color: white;
}
.send_email_popup_wrap .send_email_top_bar {
  padding: 0.2em 0.4em;
  text-align: right;
  font-size: 2em;
}
.send_email_top_bar .close_send_email {
  cursor: pointer;
}
@media only screen and (max-width: 480px) {
  .send_email_popup_overlay .send_email_popup_wrap {
    width: 95%;
  }
}
@media only screen and (max-width: 1024px) {
  .send_email_popup_overlay .send_email_popup_wrap {
    width: 65%;
  }
}
.send_email_popup_overlay .send_email_popup_wrap .send_email_popup_content {
  padding: 0 30px 30px 30px;
}
.send_email_popup_content p {
  text-align: center;
}
.send_email_popup_action_message {
  display: none;
  padding: 10px;
  margin-bottom: 15px;
}
.send_email_popup_action_message.error {
  border: 1px solid red;
  color: red;
}
.send_email_popup_action_message.success {
  border: 1px solid green;
  color: green;
}
.send_email_popup_overlay .send_email_popup_wrap .send_email_popup_content .show {
  display: block;
}

#send_email_btn_confirm:disabled {
  border: 2px solid #999 !important;
  background-color: #ccc;
  color: #999;
  cursor: not-allowed;
}

/* loader */
.sending_message {
  text-align: center;
  display: none;
  margin-bottom: 20px;
}
.progress{
  height: 40px;
  position: absolute;
  top: 40px;
  left: 50%;
  margin: -20px 0 0 -40px;
}
.progress span{
  transition: all 500ms ease;
  background: #4A72DA;
  box-shadow: 1px 2px 3px #999;
  height: 10px;
  width: 10px;  
  display: inline-block;
  border-radius: 10px;
  animation: wave 2s ease  infinite;
}  

.progress span:nth-child(1){  animation-delay: 0; }
.progress span:nth-child(2){  animation-delay: 100ms; }
.progress span:nth-child(3){  animation-delay: 200ms; }
.progress span:nth-child(4){  animation-delay: 300ms; }

@keyframes wave{
  0%, 40%, 100% { 
    transform: translate(0, 0);
    background-color: #4A72DA;    
  }
  10% { 
    transform: translate(0, -15px); 
    background-color: #4FC2DA;    
  }  
}