/**
 * @file
 * Holds the CSS for the welcome modal. We do it in the module b/c this module
 * needs to work across multiple themes (quicken_2014 and quicken_nessie)
 */

/* Bring over some BootstrapV4 styles to ensure consistent appearance */
.welcome-modal .modal-dialog-centered {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  min-height: calc(100% - 1rem);
}

@media (min-width: 576px) {
  .welcome-modal .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }
}

/* Begin welcome modal custom styles */
.welcome-modal {
  padding-right: 0 !important;
}

.welcome-modal .modal-content {
  overflow: hidden;
  border: none;
  width: 100%;
}

.welcome-modal .modal-header .close {
  margin: 0;
  font-size: 35px;
  font-weight: 100;
  color: white;
  padding: 0;
  top: 4px;
  right: 14px;
  position: absolute;
  opacity: .5;
}

.welcome-modal .modal-body {
  padding: 0;
}

.welcome-modal .modal-header {
  border: none;
  padding: 0;
  height: 0;
  z-index: 100;
  position: relative;
}

.welcome-modal .modal-title {
  visibility: hidden;
  position: absolute;
}

.welcome-modal img {
  max-width: 100%;
  height: auto;
}

.welcome-modal h5 sup {
  font-size: .3em;
  top: -1.65em;
}

.welcome-modal-min {
  display: none;
  position: fixed;
  z-index: 10000;
  bottom: 30px;
  right: 30px;
  background: #c20832;
  padding: 10px 30px 14px 30px;
  border-radius: 2em;
  border: none;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
  color: #fff;
  font-size: 16px;
  line-height: 13px;
  font-weight: 100;
}

.welcome-promo-disabled .welcome-modal-min {
  display: none !important;
}

.welcome-modal-min img {
  vertical-align: bottom;
  margin-right: 7px;
}

.welcome-modal-min strong {
  font-weight: 400;
}

.welcome-modal .modal-body--top-content {
  text-align: center;
  color: white;
  background-color: #333;
  height: 249px;
  padding-top: 74px;
  background-size: cover;
}

.welcome-modal .modal-body--top-content h4 {
  font-size: 23px;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.welcome-modal .modal-body--top-content h5 {
  font-size: 81px;
  margin-top: 9px;
  line-height: 1;
  font-style: normal;
}

.welcome-modal .modal-body--bottom-content {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 25px;
}

.welcome-modal .modal-body--bottom-content h4 {
  color: #c20832;
  font-size: 24px;
  padding: 0 12px;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.welcome-modal .modal-body--bottom-content p {
  margin: 17px;
  font-size: 14px;
  line-height: 1.5;
}

.welcome-modal .btn-hollow {
  background: transparent;
  border: 1px solid #007ac9;
  color: #007ac9;
}

.welcome-modal .modal-body--bottom-content .btn-maroon {
  border-color: #c20832;
  color: #c20832;
  background: #fff;
}

.welcome-modal .modal-body--bottom-content .btn-rounded {
  border-radius: 2em;
}

.welcome-modal .modal-body--bottom-content .btn {
  margin-top: 8px;
  padding: 8px 63px 7px;
  text-transform: none;
  font-weight: normal;
  font-size: 18px;
}

.welcome-modal .modal-body--bottom-content .btn-maroon:hover {
  background: #c20832;
  color: #fff;
}

.welcome-modal .modal-body--bottom-content .countdown {
  font-size: 12.3px;
  margin-top: 29px;
  margin-bottom: 37px;
}

.welcome-modal .countdown--time {
  color: #c20832;
}

.welcome-modal .diagonal-bar {
  background: #c20832;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  border: 18px solid transparent;
  position: absolute;
  width: 191px;
}

.welcome-modal .diagonal-bar-top {
  top: 24px;
  left: -52px;
}

.welcome-modal .diagonal-bar-bottom {
  bottom: 20px;
  right: -52px;
}

@media (min-width: 576px) {
  .welcome-modal .modal-dialog {
    max-width: 536px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 576px) {
  .welcome-modal .desktop-only {
    display: none;
  }

  .welcome-modal .modal-body--top-content h5 {
    font-size: 68px;
  }

  .welcome-modal .modal-body--bottom-content p {
    font-size: 12px;
  }

  .welcome-modal .diagonal-bar-bottom {
    right: -88px;
  }

  .welcome-modal-min {
    right: 15px;
    bottom: 15px;
  }
}
