/* Styles for the /registration page and its subsequent screens, mobile versions. */
/* See product_registration.aspx */

@media (max-width: 991px) {
  /* Allows for proper spacing of elements: */
  body * {
    box-sizing: border-box;
  }

  /* Hides the sidebar */
  .warranty_right_column {
    display: none;
  }

  /* Resizes the form column */
  .warrantyReg {
    padding: 0 18px;
    width: 100vw;
  }

  /* Overrides specific form widths set in desktop styles */
  .warrantyReg fieldset {
    max-width: 100%;
    width: 100%;
  }

  /* Widens form elements to fill screen */
  .warrantyReg table,
  .warrantyReg tbody,
  .warrantyReg tr,
  .warrantyReg table:not(.recommend) select,
  .warrantyReg table:not(.recommend) input:not(.zip-postal) {
    min-width: 100%;
    width: 100%;
  }

  .warrantyReg .flex {
    display: flex;
  }

  .warrantyReg input.zip-postal {
    width: 120px;
  }

  .warranty_reg_table tr {
    display: flex;
    flex-direction: column;
  }

  .warranty_reg_table .mobile-margin {
    margin-top: 12px;
  }

  .warrantyReg .contact-details {
    margin-top: 20px;
  }

  .warrantyReg .contact-details tr.flex {
    flex-direction: column;
  }

  .warrantyReg .contact-details .flex li input {
    max-width: 170px;
    min-width: 170px;
    width: 170px;
  }

  /* Removes excessive spacing between and around form fields */
  .warrantyReg fieldset li {
    padding: 0;
  }

  /* Styles the form labels */
  .warrantyReg label {
    font-size: 14px;
    letter-spacing: -0.44px;
    line-height: 24px;
  }

  .absolute {
    position: absolute;
  }

  .topMargin {
    margin-top: 11px;
  }

  /* Styles the select backgrounds  */
  .warrantyReg .warranty_reg_table select,
  .warrantyReg .warranty_reg_table input,
  .warrantyReg .contact-details input {
    appearance: none;
    background-color: transparent;
    background-image: none;
    border-color: unset;
    color: #333333;
    font-size: 16px;
    height: 54px;
    opacity: 50%;
    padding: 15px 16px;
  }

  .warrantyReg input::placeholder {
    color: transparent;
  }

  .warrantyReg .extremely_likely,
  .warrantyReg .not_likely {
    color: #8b8b8b;
    font-size: 12px;
    line-height: 24px;
    margin-left: 0;
    margin-right: 0;
  }

  .warrantyReg .recommend {
    margin: 26px 0 13px;
  }

  .warrantyReg .recommend tr {
    display: flex;
    justify-content: space-between;
  }

  .warrantyReg .recommend td input {
    height: 14px;
    left: 0;
    margin: 0;
    width: 14px;
  }

  .warrantyReg .recommend td label {
    text-align: center;
    text-align: left;
    padding-left: 3px;
    width: 16px;
  }

  .warrantyReg .limitWidth {
    margin-top: 32px;
  }

  .limitWidth label {
    font-size: 16px;
    line-height: 24px;
  }

  /* Section divider styles */
  .dots {
    border-top-color: #d8d8d8;
    border-top-style: solid;
    margin-bottom: 33px;
    margin-top: 34px;
    max-width: 100%;
    width: 100%;
  }
  .dots.bottom-section {
    margin-top: 4px;
  }

  /* Hides the feedback tab */
  #_hj_feedback_container {
    display: none;
  }

  /* Styles all the headers */
  h2 {
    font-family: 'Arial-BoldMT', Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: -0.1px;
    line-height: 32px;
  }

  h2.bottom-section {
    margin-bottom: 25px;
  }

  /* Styles all the form input labels */
  .warranty_reg_table label {
    color: #333333;
    letter-spacing: -0.44px;
  }

  /* Styles all the regular text */
  p,
  .regularPstyle {
    color: #464646;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 34px;
  }

  /* submit button mobile styles: */
  .warrantyReg fieldset.submit {
    margin-bottom: 64px;
    margin-top: 0;
    width: 100%;
  }

  .warrantyReg fieldset.submit input,
  .feedback-wrapper input {
    border: none !important;
    height: 48px;
    text-transform: uppercase;
    width: 100%;
  }

  .feedback-wrapper input {
    background: #007e44;
    color: #fff;
    display: block;
    font-family: 'Arial-BoldMT', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
  }

  /* Styles the error states */
  .flex.phone-number {
    flex-direction: column;
  }

  .flex.phone-number span:first-child {
    height: 0;
  }

  .flex.phone-number br {
    display: none;
  }

  .warrantyReg li span {
    font-size: 12px;
    line-height: 24px;
  }

  /* tooltip icons */
  .mobile.material-icons {
    cursor: pointer;
  }

  .mobile.material-icons.dropdown {
    color: #333333;
    cursor: pointer;
    font-size: 26px;
    position: relative;
    right: 14px;
    top: 40px;
    float: right;
  }

  /*  Modal styles */
  .popover {
    left: 0;
    position: fixed;
    top: 0;
    z-index: 101;
  }

  .popover:before {
    background-color: #000;
    content: '';
    color: #fff;
    height: 100vh;
    opacity: 0.7;
    position: fixed;
    width: 100vw;
  }

  .popover > div {
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    left: 16px;
    padding: 24px 0 0 0;
    position: fixed;
    top: 15vh;
    width: calc(100vw - 32px);
  }

  .popover h3 {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 15px;
    text-align: center;
  }

  .popover .wrapper {
    margin: 0 auto;
    padding: 0 24px;
  }

  .popover img {
    max-width: 100%;
  }

  .popover p {
    border-left: 16px solid #017b36;
    color: #424242;
    font-size: 16px;
    line-height: 16px;
    margin-bottom: 34px;
    margin-top: 34px;
    padding: 0px 12px;
    text-align: left;
    width: 100%;
  }

  .popover .close-tooltip {
    align-items: center;
    border-top: 2px solid #d8d8d8;
    display: flex;
    font-size: 16px;
    height: 52px;
    justify-content: center;
    line-height: 24px;
    width: 100%;
  }

  .popover.show {
    display: block;
  }

  .popover:not(.show) {
    display: none;
  }

  /* Dropdown select icons */
  .model ~ i.mobile.material-icons.dropdown {
    left: 6px;
  }

  .mobile.material-icons:not(.dropdown) {
    color: #007e44;
    float: right;
    font-size: 20px;
  }

  /* Thanks page styles:   */
  #ctl00_ctl00_BodyContent_InteriorContent_pnlFeedback {
    padding: 0 18px;
  }

  #ctl00_ctl00_BodyContent_InteriorContent_pnlThankyou {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
  }

  .feedback-wrapper .feedback-request + span {
    display: block;
  }

  .feedback-wrapper textarea {
    color: #464646;
    font-family: 'ArialMT', Arial, Helvetica, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    padding: 20px;
    width: 100%;
  }

  .feedback-wrapper textarea::placeholder {
    color: #a4a4a4;
  }

  /* Reorders items on the page in mobile view */
  .thanks-header {
    order: 0;
  }

  .product_display {
    order: 4;
  }

  .username {
    order: 1;
  }

  .thanks {
    order: 2;
  }

  .feedback-wrapper {
    order: 3;
  }

  /* Thanks page special ordering */

  #ctl00_ctl00_BodyContent_InteriorContent_pnlFeedback p.thanks + p {
    order: 3;
  }

  #ctl00_ctl00_BodyContent_InteriorContent_pnlFeedback h2 {
    order: 0;
  }

  #ctl00_ctl00_BodyContent_InteriorContent_pnlFeedback {
    display: flex;
    flex-direction: column;
  }

  /* Thanks page special text-styles */
  .username strong {
    font-weight: 100;
  }

  /* Product details mobile styles */
  .product_display {
    border-left: none;
    border-top: 1px solid #d8d8d8;
    display: flex;
    flex-direction: column;
    margin: 22px 0 0 0;
    padding: 40px 0 0 0;
    width: 100%;
  }

  .product_display img {
    margin: 0 auto;
    padding-bottom: 30px;
  }
}

@media (min-width: 992px) {
  .mobile {
    display: none !important;
  }

  .warrantyReg input.zip-postal {
    width: 100px;
  }

  input[name='email'] {
    width: 54opx;
  }

  .feedback-wrapper input {
    background: #007e44;
    border: double 3px #fff !important;
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 20px;
    padding: 10px;
    text-align: center;
    width: 250px;
  }
}

.limitWidth {
  max-width: 450px;
}
