/*!
 * 4W Consent
 *
 * Copyright 2021 4WORKS Solutions
 */

/* GLOBAL */


.fworks_consent_button,
.fworks_consent_button_settings {
  cursor: pointer;
  white-space: nowrap;
}

/* MOZZILA INPUT FIX */
.fworks_consent_modal input[type=checkbox] {
    -moz-appearance:initial;
  }

/* BOTTOM CONSENT BAR (initial) with buttons*/
.fworks_consent_bar {
  position: fixed;
  padding: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  bottom: 0;
  z-index: 900000;
  background: #000;
  color: #fff;
  -webkit-animation: slideUp 1.5s;
          animation: slideUp 1.5s;
}

.fworks_consent_bar_text,
.fworks_consent_bar_buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.fworks_consent_bar_init {
  width: 100%;
}

.fworks_consent_button {
  border: 1px solid #fff;
  padding: 8px 25px;
  margin-left: 15px;
  margin-right: 15px;
}

.fworks_consent_button:last-child {
  margin-right: 0;
}

.fworks_consent_enable_all {
  background: #fff;
  color: #000;
}
.fworks_consent_button_settings {
  margin-left: 15px;
  margin-right: 15px;
  text-decoration: underline;
}

/* BOTTOM CONSENT BAR SMALL (when set)*/
.fworks_consent_bar_mini {
  width: 200px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.fworks_consent_bar_init .fworks_consent_bar_mini_close {
  display: none;
}

.fworks_consent_bar_mini .fworks_consent_bar_mini_close {
  display: block;
}

.fworks_consent_bar_mini-inner {
  display: flex;
    align-items: center;
    justify-content: center;
}

.fworks_consent_bar_mini_close {
  cursor: pointer;
}

.fworks_consent_bar_mini .fworks_consent_button_settings {
  margin-left: 0;
}

/* CONSENT MODAL */
#fworks_consent_modal {
  z-index: 999999;
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.fworks_consent_modal_content {
  margin: auto;
  background-color: #fff;
  position: relative;
  padding: 0;
  outline: 0;
  width: 600px;
  max-width: 100vw;
}

/* MODAL - sections */
.fworks_consent_modal_footer,
.fworks_consent_modal_body,
.fworks_consent_modal_header {
  padding-left: 50px;
  padding-right: 50px;
}

.fworks_consent_modal_footer,
.fworks_consent_modal_header {
  padding-top: 20px;
  padding-bottom: 20px;
}

.fworks_consent_modal_header h2 {
  margin: 0;
  width: 90%;
}

.fworks_consent_modal_body {
  min-height: 400px;
  height: 60vh;
  overflow: auto;
}

.fworks_consent_modal_footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: end;
  border-top: 2px solid #e6e6e6;
}

/* MODAL - individual cookie row */
.fworks_checkbox_row {
  border-bottom: 2px solid #e6e6e6;
  position: relative;
  width: calc(100% - 6px);
  margin-bottom: 15px;
}

.fworks_checkbox_row:last-of-type {
  border-bottom: none;
}

/* MODAL - buttons settings */
.fworks_consent_set {
  background: #000;
  color: #fff;
  padding: 10px 35px;
}

.fworks_consent_modal_close {
  font-size: 28px;
  position: absolute;
  right: 25px;
  top: 0;
  cursor: pointer;
}

/* MODAL - all strings settings */
.fworks_consent_description,
.fworks_consent_modal_header h2,
.fworks_consent_modal_body,
.fworks_consent_modal_footer {
  color: #000 !important;
}

.fworks_consent_description p {
  margin-bottom: 0;
}

.fworks_consent_description h3 {
  margin-top: 0;
}

.fworks_consent_description {
  font-size: 14px !important;
  line-height: 1.6;
  padding: 25px 0;
}

/* MODAL - checkboxes */
input[type='checkbox'].fworks_consent_checkbox {
  display: block;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 20px;
  -moz-appearance: none;
  -webkit-appearance: none;
  -o-appearance: none;
  border: 0;
  color: rgba(255,255,255,0);
  border-color: rgba(255,255,255,0);
  background-color: rgba(255,255,255,0);
}

input[type='checkbox'].fworks_consent_checkbox:before {
  content: '';
  display: block;
  position: absolute;
  top: 0px;
  left: -23px;
  height: 28px;
  width: 46px;
  background-color: #bbb;
  border-radius: 14px;
  -webkit-transition: background-color 0.2s;
  -o-transition: background-color 0.2s;
  transition: background-color 0.2s;
  cursor: pointer;
}

input[type='checkbox'].fworks_consent_checkbox:after {
  content: '';
  display: block;
  position: absolute;
  transition: transform 0.2s, -webkit-transform 0.2s;
  top: 2px;
  left: -21px;
  border-radius: 12px;
  -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
          box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  background-color: #fff;
  height: 24px;
  width: 24px;
  cursor: pointer;
}


input[type='checkbox'].fworks_consent_checkbox:checked:after, input[type='checkbox'].fworks_consent_checkbox:disabled:after {
    -webkit-transform: translateX(18px);
        -ms-transform: translateX(18px);
            transform: translateX(18px);
  }

input[type='checkbox'].fworks_consent_checkbox:checked:before {
  background-color: #000; /* COLOR OF CHECKED CHECKBOX */
}

/* COLOR OF DISABLED CHECKBOX */
input[type='checkbox'].fworks_consent_checkbox:disabled:before {
  background-color: #dfdfdf;
}

/* ANIMATIONS */

@-webkit-keyframes slideUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(100px);
            transform: translateY(100px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(100px);
            transform: translateY(100px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
  }
}

/* RESPO */

@media only screen and (max-width: 500px) {
  .fworks_consent_modal_header, .fworks_consent_modal_body, .fworks_consent_modal_footer {
    padding-left: 15px;
    padding-right: 15px;
  }

  #fworks_consent_modal{
    padding-top: 0;
  }

  /*
  .fworks_consent_modal_content {
    height: 100vh;
  }

  .fworks_consent_modal_body {
    height: 70vh;
  }
  */

  input[type='checkbox'].fworks_consent_checkbox { 
    right: 30px;
  }
}

@media only screen and (max-height: 700px) {
  #fworks_consent_modal {
    height: 100%;
  }

  .fworks_consent_modal_header {
    height: 15vh;
    overflow: hidden;
  }

  .fworks_consent_modal_header h2{
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  .fworks_consent_modal_footer {
    
    /*position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    background-color: #fff;*/
    height: 25vh;
    overflow: hidden;
    max-height: fit-content;
  }
  .fworks_consent_modal_body {
    min-height: unset;
    height: 60vh;
  }
}

@media only screen and (max-width: 800px) {
  .fworks_consent_bar {
    flex-direction: column;
  }
  .fworks_consent_bar_buttons {
    flex-direction: column;
  }
  .fworks_consent_button,
  .fworks_consent_button_settings {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }

}

@media only screen and (max-width: 400px) {
  input[type='checkbox'].fworks_consent_checkbox:after {
    top: 0px;
  }
  
  input[type='checkbox'].fworks_consent_checkbox:before {
    top: -2px;
  }
}

.fworks_consent_bar_mini_left {
    justify-content: flex-start !important;
}

.fworks_consent_bar_mini_center {
    justify-content: center !important;
}

.fworks_consent_bar_mini_right {
    justify-content: flex-end !important;
}

.fworks_consent_button_settings_shortcode {
    margin-left: 0px !important;
    margin-right: 0px !important;
}