/* -------------------------------------------- *
 *           2020 STYLE FOR GUIDEBOOK           *
 * -------------------------------------------- */

/* ----- GUIDEBOOK COVER MODAL ----- */

#guidebook_cover .modal-header {
  font-family: 'FiraSansBold';
  font-size: 16px;
  color: #092240;
}

#guidebook_cover .modal-body {
  max-height: inherit !important;
}

#guidebook_cover .form-horizontal {
  align-items: center;
}

#guidebook_cover .form-horizontal label span {
  margin: 0 0 0 10px;
}

#guidebook_cover .form-horizontal #customization_cover_customization_frontImage_control_group #customization_cover_customization_frontImage,
#guidebook_cover .form-horizontal #customization_cover_customization_authorImage_control_group #customization_cover_customization_authorImage {
  position: inherit !important;
  margin: auto !important;
  padding: 12px 8px 0 15px;
  opacity: 1;
}

#guidebook_cover .form-horizontal .btn.btn-blue span {
  padding: 0;
}

/* ----- GUIDEBOOK QUOTE MODAL ----- */

#guidebook_quote .modal-header {
  font-family: 'FiraSansBold';
  font-size: 16px;
  color: #092240;
}

#guidebook_quote .modal-body {
  max-height: inherit;
}

#guidebook_quote .modal-body .control-group,
#guidebook_quote .modal-body .control-group textarea {
  width: 100%;
}

#guidebook_quote .modal-body a {
  color: #F68A7F;
}

#guidebook_quote .modal-body button span {
  padding: 0;
}
 
/* ----- GUIDEBOOK TUTORIAL MODAL ----- */

#guidebook_tutorial .modal-header {
  border-bottom: none;
}

#guidebook_tutorial .modal-header h2 {
  font-family: 'FiraSansBold';
  font-size: 16px;
  font-weight: inherit;
  color: #092240;
  text-align: center;
}

#guidebook_tutorial .modal-footer .btn.btn-orange span {
  background: none;
  padding: 0;
  text-shadow: none;
}

#guidebook_tutorial .modal-footer .btn.btn-orange:hover span {
  color: #F68A7F;
}

/* ----- GUIDEBOOK PAGE MODAL ----- */

#guidebook_page {
  margin: -360px 0 0 -280px;
}

#guidebook_page .modal-body {
  padding-bottom: 0;
}

#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-orange {
  right: inherit;
  bottom: inherit;
  margin: 10px 0 0 0;
}

#guidebook_page .modal-body .btn.btn-blue span,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-blue.btn-invert span,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-orange span {
  background: none;
  padding: 0;
  text-shadow: none;
}

#guidebook_page .modal-body .btn.btn-blue:hover span,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-blue.btn-invert:hover span,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-orange:hover span {
  color: #F68A7F;
}

#guidebook_page .modal-footer #page_downgrade_warning {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

#guidebook_page .modal-footer #page_downgrade_warning .bello,
#guidebook_page .modal-footer #page_downgrade_warning p {
  text-align: center;
}

#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-blue.btn-invert span {
  background: none;
}

/* ----- GUIDEBOOK NAV MODAL ----- */

#guidebook_nav .modal-header {
  font-family: 'FiraSansBold';
  font-size: 16px;
  color: #092240;
}

/* ----- GUIDEBOOK THEME MODAL ----- */

#guidebook_theme {
  top: 44%;
  width: 80%;
  margin: inherit !important;
  transform: translate(-50%, -50%);
}

#guidebook_theme .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: inherit;
}

#guidebook_theme .modal-body .thumbnails {
  width: 100%;
  margin: 0 0 10px 0;
}

#guidebook_theme .modal-body .thumbnails .thumbnail {
  height: 90px;
}

#guidebook_theme .modal-body .preview_themes {
  position: inherit;
  float: none;
  width: 140px;
  margin: 10px auto;
}

#guidebook_theme .modal-body .preview_themes img {
  margin: auto;
}

#guidebook_theme .modal-body .btn.btn-blue.right span {
  background: none;
  padding: 0;
  text-shadow: none;
}

#guidebook_theme .modal-body .btn.btn-blue.right:hover span {
  color: #F68A7F;
}

/* ----- GUIDEBOOK RELIURE MODAL ----- */

#guidebook_reliure {
  width: auto;
  margin: inherit !important;
  transform: translate(-50%, -50%);
}

#guidebook_reliure .modal-header {
  font-family: 'FiraSansBold';
  font-size: 16px;
  color: #092240;
}

#guidebook_reliure .modal-body {
  max-height: inherit;
}

#guidebook_reliure .modal-body .factsheets.unstyled.clearfix.selection {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 !important;
}

#guidebook_reliure .modal-body .preview_price.pull-right {
  position: inherit !important;
  float: none;
  margin: 0;
}

#guidebook_reliure .modal-body .btn.btn-blue.right span {
  background: none;
  padding: 0;
  text-shadow: none;
}

#guidebook_reliure .modal-body .btn.btn-blue.right:hover span {
  color: #F68A7F;
}

/* ----- GUIDEBOOK CONTENT FORM MODAL ----- */

div#iframe_form,
div#iframe_form.modal_pluplod {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px !important;
  height: 660px;
  margin: 0;
}

div#iframe_form.modal_pluplod {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 570px !important;
  height: 430px;
  margin: 0;
  padding: 20px;
}

/* ----- GUIDEBOOKS MODALS BUTTONS ----- */

#guidebook_cover .form-horizontal .btn.btn-blue,
#guidebook_quote .form-horizontal .btn.btn-blue,
#guidebook_tutorial .modal-footer .btn.btn-orange,
#guidebook_page .modal-body .btn.btn-blue.right,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-blue.btn-invert,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-orange,
#guidebook_theme .modal-body .btn.btn-blue.right,
#guidebook_reliure .modal-body .btn.btn-blue.right {
  position: relative;
  display: inline-block;
  width: auto;
  height: auto !important;
  padding: 18px 25px;
  border-width: 1px;
  border-style: solid;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #F68A7F;
  border-color: #F68A7F;
  box-shadow: none;
  font-family: 'FiraSansMedium';
  font-size: 14px;
  font-weight: inherit;
  line-height: inherit;
  text-align: center;
  text-shadow: none;
  color: #FFFFFF;
  transition: background-color 0.3s, color 0.3s;
  -webkit-appearance: none;
}

#guidebook_cover .form-horizontal .btn.btn-blue::before,
#guidebook_quote .form-horizontal .btn.btn-blue::before,
#guidebook_tutorial .modal-footer .btn.btn-orange::before,
#guidebook_page .modal-body .btn.btn-blue::before,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-blue.btn-invert::before,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-orange::before,
#guidebook_theme .modal-body .btn.btn-blue.right::before,
#guidebook_reliure .modal-body .btn.btn-blue.right::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border-width: 2px;
  border-style: solid;
  border-color: #F68A7F;
  opacity: 0;
  -webkit-transform: scale3d(0.6, 0.6, 1);
  transform: scale3d(0.6, 0.6, 1);
  -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
  transition: transform 0.3s, opacity 0.3s;
  -webkit-transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
  transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
}

#guidebook_cover .form-horizontal .btn.btn-blue:hover::before,
#guidebook_quote .form-horizontal .btn.btn-blue:hover::before,
#guidebook_tutorial .modal-footer .btn.btn-orange:hover::before,
#guidebook_page .modal-body .btn.btn-blue:hover::before,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-blue.btn-invert:hover::before,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-orange:hover::before,
#guidebook_theme .modal-body .btn.btn-blue.right:hover::before,
#guidebook_reliure .modal-body .btn.btn-blue.right:hover::before {
  transform: scale3d(1, 1, 1);
  opacity: 1;
}

#guidebook_cover .form-horizontal .btn.btn-blue:visited,
#guidebook_quote .form-horizontal .btn.btn-blue:visited,
#guidebook_tutorial .modal-footer .btn.btn-orange:visited,
#guidebook_page .modal-body .btn.btn-blue:visited,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-blue.btn-invert:visited,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-orange:visited,
#guidebook_theme .modal-body .btn.btn-blue.right:visited,
#guidebook_reliure .modal-body .btn.btn-blue.right:visited {
  color: #FFFFFF;
}

#guidebook_cover .form-horizontal .btn.btn-blue:hover,
#guidebook_quote .form-horizontal .btn.btn-blue:hover,
#guidebook_tutorial .modal-footer .btn.btn-orange:hover,
#guidebook_page .modal-body .btn.btn-blue:hover,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-blue.btn-invert:hover,
#guidebook_page .modal-footer #page_downgrade_warning .btn.btn-orange:hover,
#guidebook_theme .modal-body .btn.btn-blue.right:hover,
#guidebook_reliure .modal-body .btn.btn-blue.right:hover {
  background-color: #FFFFFF;
  color: #F68A7F;
}

/* ----- MOBILE MODAL ----- */

@media screen and (max-width: 767px) {
  #guidebook_cover,
  #guidebook_quote,
  #guidebook_nav,
  #guidebook_next,
  #guidebook_tutorial,
  div#iframe_form,
  div#iframe_form.modal_pluplod,
  #guidebook_page, 
  #guidebook_theme,
  #guidebook_reliure {
    width: 90% !important;
    margin: 0 !important;
    transform: translate(-50%,-50%);
  }

  #guidebook_cover .modal-body,
  #guidebook_quote .modal-body,
  #guidebook_nav .modal-body {
    width: 90%;
    margin: auto;
    padding: 0 !important;
  }

  #guidebook_cover .modal-body .form-horizontal,
  #guidebook_cover .modal-body .form-horizontal #customization_cover_cover_text_answers_0,
  #guidebook_cover .modal-body .form-horizontal .control-group,
  #guidebook_cover .modal-body .form-horizontal .controls,
  #guidebook_cover .modal-body .form-horizontal #customization_cover_cover_text_answers_1,
  #guidebook_quote .modal-body .form-horizontal {
    width: 100%;
  }

  #guidebook_cover .modal-body .form-horizontal .controls input {
    width: 90%;
  }

  #guidebook_cover .modal-body .form-horizontal .controls textarea,
  #guidebook_quote .modal-body .form-horizontal .controls textarea {
    width: 95%;
  }

  #guidebook_next .modal-footer {
    flex-direction: column;
    align-items: center;
  }

  #guidebook_next .modal-footer .btn.btn-blue.btn-invert {
    margin: 0 0 10px 0;
  }

  #guidebook_next .modal-footer .btn.btn-orange.pull-right span {
    padding: 0;
  }

  #guidebook_theme .thumbnails {
    max-height: 250px;
    overflow-y: scroll;
  }
}

@media screen and (max-width: 414px) {
  #guidebook_theme .thumbnails {
    max-height: 150px;
  }
}

@media screen and (max-width: 375px) {
  #guidebook_page .modal-header,
  #guidebook_theme .modal-header {
    padding: 11px 15px;
    font-size: 15px;
  }

  #guidebook_page .titleStep,
  #guidebook_theme .titleStep {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 11px;
  }

  #guidebook_page p,
  #guidebook_theme p {
    font-size: 12px;
    line-height: 14px;
  }

  #guidebook_page ul {
    margin: 0 !important;
  }

  #guidebook_page ul li {
    margin: 0 13px;
  }

  #guidebook_page .preview_price {
    height: auto;
    line-height: 36px;
    font-size: 20px;
  }

  #guidebook_page .btn.btn-blue.right {
    margin: 0;
  }

  #guidebook_theme .thumbnails {
    max-height: 100px;
  }

  #guidebook_theme .preview_themes {
    width: 90px !important;
  }
}

@media screen and (max-width: 320px) {
  #guidebook_cover .modal-header,
  #guidebook_quote .modal-header,
  #guidebook_reliure .modal-header {
    padding: 11px 15px;
    font-size: 15px;
  }

  #guidebook_quote .modal-body textarea {
    height: 95px;
  }

  #guidebook_cover .titleStep,
  #guidebook_quote .titleStep,
  #guidebook_reliure .titleStep {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 11px;
  }
  
  #guidebook_cover p,
  #guidebook_quote p,
  #guidebook_reliure p {
    font-size: 12px;
    line-height: 18px;
  }

  #guidebook_cover .modal-body .max-char-label,
  #guidebook_quote .modal-body .max-char-label {
    font-size: 12px;
  }

  #guidebook_cover .modal-body textarea {
    height: 50px;
  }
}