// !!! Warning !!! CSS files are generated from their associated SCSS files. Don't modify the CSS files directly,
// modify the SCSS files and then compile them using compass. This will generate the CSS file for you.

// NuSkin color variables:
$ns-blue: #008ab0;
$ns-gray: #d3d3d3;
$red: #c71013;

// Could also say: .#{$ns-blue}
.ns-blue {
  color: $ns-blue;
}

.main-checkout {
  display: flex;
  flex-direction: column;
}
.checkout-main, .side-bar {
  width: 100%;
}

.side-bar, 
.order-review-scrim, 
#orderReview {
  -moz-transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

#content .side-bar .checkoutSection {
  z-index: map-get($otherUtils, z-primary);
  h1 {
    color: map-get($baseColors, blackhole);
  }
}

boxed-layout {
  display: block
}

.action-link {
  display: inline-block;
  padding-top: 10px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: map-get($themeColors, color-interactive-1) !important;
}

// Prevent the user from scrolling the page horizontally
@media (max-width:767px) {
  max-width: 100%;
  overflow-x: hidden;
}

.parsys > .text {
  padding: 0;
}

.shippingAddressStaticName {
  display: block;
  position: relative;
  margin-left: 7px;
  margin-top: 34px;
  font-size: 22px;
}

.orderSummaryError {
  font-weight: bold !important;
  color: $red;
}

#page-checkout .container .error:before,
body[page="checkout"] .container .error:before,
.orderSummaryError:before {
  content: '*';
  margin-right: 0.25em;
}

.product-warning {
  display: flex;

  img {
    margin-right: 10px;
  }
}

// Negates the margin-bottom from the address ship form coming in via AEM. That way we don't get the extra spacing.
#userPassword {
  margin-top: -20px;
}

#orderSummaryRoot {
  display: none;
  
  &.no-side-bar {
    width: 1000px;
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    
    .checkout-main {
      width: 100%;
    }
    
    table {
      width: auto;
    }
    
    .agree-to-terms {
      margin: 10px 0;
      float: right;
      width: 240px !important;
      clear: right;
      input {
        float:left;
        margin-right:0;
      }
      label{
        float: left;
        margin-left: 5px;
        line-height: 1.2;

        span {
          padding-left: 5px;

          // p tags should never be in span tags. AEM makes this necessary.
          p {
            display: inline;
          }
        }
      }
    }
    
    .agree-to-terms, #orderCreateButton {
      @media screen and (max-width: 480px) {
        display: block;
        float: right;
      }
    }
    
    div.reviewOrderDetails {
      float: right;
      
      .button-spacing {
        height: 60px;
        clear: both;
      }

      > button {
        position: absolute;
        right: 10px;
        bottom: 10px;
      }
    }
    
    .orderTotal, .psvTotal {
      font-size: 18px;
    }
    
    @media (max-width: 480px) {
      padding: 0;
    }
    
    @media only screen and (max-width: 420px) {
      width: 100%;
    }
  }
}

.clearfix:after {
	visibility: hidden;
	display: block;
	content: "";
	clear: both;
	height: 0;
	}
* html .clearfix             { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */

.breadcrumb {
  display: none;
}
.bodyContent input {
  font-size: 16px;
  border: 1px solid $nsbordergrey;
  border-radius: 4px;
  padding: 6px 6px 2px;
  max-width: 100%;
  color: #666666;
  display: inline-block;
  margin-right: .5rem !important;
}
.bold {
  font-weight: bold;
}
label {
  font-weight: normal;
  margin-bottom:3px;
}
body.es_AR {
  width: 100% !important;
}
.dropdown.section {
  min-width: 50px;
  margin-bottom: 15px;
}
form .singleRadio div {
  display: inline-block;
}
.section.singleCheckbox {
  margin-bottom:8px;
  display: table;
  label {
      width: auto;
      position: relative;
      float: left;
      padding-left: 1.5rem
  }
  input[type="checkbox"] {
    margin-right: 0;
    float: left;
    position: absolute;
    left: 0;
    display: block;
  }
}
.transBankError {
  color: #c71013;
}
.spinner {
  background: url('/content/dam/apps/checkout/icon-spinner.gif') no-repeat;
  background-size: contain;
  height: 50px;
}
#new_form_shippingState {
  min-height: 30px;
}

.newPayment, .newAddress {
  padding-bottom: 1em;
  border-bottom-style: dashed;
  border-bottom-width: 1px;
  border-bottom-color: rgb(211, 211, 211);
}

.editPayment, .newPayment, .editAddress, .newAddress {
  padding-bottom: 1em;
  border-bottom: dashed 1px $ns-gray;
  max-width: 700px;
  width: 100%;
}

.paymentMessage {
  max-width: 95%;
}

.paymentLogo{
  margin-bottom: 10px;
  max-height: 40px;
}

#paymentMethod img {
  max-height: 30px;
}

.payPalLink{
  margin-left: 15px;
}

#paymentAgree{
  text-align: right;
  display: inline-block;
  padding: 20px 0;
}

.red {
  color: red;
}

.singlecheckout_c2fa {
  .no-show-ageloc {
    display: none;
  }
}

body.in_ID {
  .editPayment, .newPayment, .editAddress, .newAddress {
    form .bodyContent {
      width:100%;

      &>.section  {
          display:inline-block;
          margin-right:2em;
          width:300px;
          max-width:100%;
      }

      &>.section.dropdown select  {
          min-width:100px;
      }

      &>.section.singleCheckbox {
          width:100%;
          margin-bottom:5px!important;
      }
    }
  }

  .editPayment, .newPayment {
    form .bodyContent {
      &>.section:first-child {
        display: block;
      }
      .dropdown:nth-child(3) {
          display:block!important;
      }
    }
  }
}

.editPayment {
  fieldset label, fieldset input {
    display: block;
  }
}

.singleCheckout {
  .ord-confirm-spinner {
    background-color: #fafafa;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 65px;
  }
}

#signupConfirmation {
  position: relative;
}

.paymentMessage {
  clear: both;
  width: 70%;
  padding-top: 5px;
}

#backToCartButton {
  margin-bottom: 14px;
  &.iw {
    padding-left: 0;
    padding-right: 15px;
    text-align: right;
    iron-icon {
      margin-left: 5px;
      margin-right: 0!important;
    }
    
    &+ h1, &+ h1 + h1 {
      padding-left: 0;
      padding-right: 15px;
    }
  }

  a {
    color: $ns-blue;
    padding-top: 15px;
    font-size: 13px;
  }
}

.inputGroup {
  display: table;
  position: relative;
  margin-top:5px;
  input {
    border-radius: 4px 0 0 4px;
    height: 35px;
    display: table-cell;
    float: left;
    border-right: 0;
    max-width: 50% !important;
    width: auto;
    margin-right:0!important;
    border-radius:2px 0 0 2px!important;
  }
  button[class^="btn-"] {
    border-radius: 0 4px 4px 0;
  }
}

#content {
  #mainContent {
    padding: 0 0 20px;
    flex: 1;
    position:relative;
    .container {
      width: 100%;
      max-width: 1440px;
      padding: 0 20px;
      margin: 0 auto;
      text-align: left;
      border: none;
      .agree-to-terms {
        width: 100%;
        padding-bottom: 10px;
        color: map-get($baseColors, blackhole);
      }
      /*testing*/
      h1.checkoutHeader {
        margin-bottom: 10px;
        padding-bottom: 0;
      }

      .errorDialogue {
        margin-bottom: 25px;
        h3 {
          font-size: 16px;
          font-weight: bold;
          margin-bottom: 10px;
        }
        li {
          list-style-type: disc;
          margin-left: 25px;
        }
      }
      .cartIcon{
        margin-right: 5px;
        width: 24px;
        height: 18px;
      }
      input.ng-invalid.ng-dirty {
        border: 1px solid #C71013!important;
      }
    }
    #qasWidget {
      .container {
        min-height: 1px;
      }
    }
  }
  #orderedProducts {
    &> div {
      margin: 1rem;
      background: transparent;
    }
  }
  .checkoutSection {
    overflow: hidden;
    &.active {
      overflow: visible;
      border: 2px solid map-get($baseColors, blackhole);
    }
    .completed {
      position: absolute;
      left: 0px;
      width: 4px;
      height: 100%;
      top: 0;
      background: map-get($baseColors, progress-color);
      border-radius: 3px 0 0 0;
      &.iw {
        left: auto;
        right: 0;
        border-radius: 0 3px 3px 0;
      }
    }
    header {
      h1 {
        float: left;
        font-size: 20px;
        color: $nsbordergrey;
        text-transform: uppercase;
        padding-right: 0;
        padding-bottom: 0;
        display: table;
        font-weight: 400;
        
        &.section-completed {
          color: map-get($baseColors, backhole);
        }
      }
      h1 div {
        font-size: 20px;
      }
      .order-total-mobile {
        display: none;
        font-size: 18px;
        font-weight: map-get($typography, font-weight-bold);
        
        &.iw {
          text-align: right;
        }
      }
      .review-show-hide {
        top: 5px;
        right: 0;
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 35px;
        
        &.iw {
          left: 0;
          right: auto;
        }
      }
      #orderReview {
        height: 20px;
        width: 20px;
        color: map-get($baseColors, blackhole);
        pointer-events: none;
      }
      .order-review-show-hide {
        margin-top: -4px;
        text-transform: uppercase;
        font-size: 10px;
      }
      .edit-action {
        float: right;
        text-transform: uppercase;
        color: map-get($baseColors, shells);
        font-weight: 600;
        font-size: 14px;
        line-height: 2;
        padding-right: 10px;
        cursor: pointer;
        
        &.iw {
          padding-left: 10px;
          padding-right: 0;
          float: left;
        }
        @media (max-width: 500px) {
          display: none;
        }
      }
      .edit-action-mobile {
        display: none;
        text-transform: uppercase;
        color: map-get($baseColors, shells);
        font-weight: 600;
        font-size: 14px;
        line-height: 2;
        cursor: pointer;
        
        &.iw {
          text-align: right;
        }
        @media (max-width: 500px) {
          display: block;
        }
      }
    }
    &.reviewOrder {
      header {
        h1 {
          font-weight: bold;
          text-transform: none;
          color: map-get($baseColors, blackhole);

          .itemCnt {
            font-weight: normal;
          }
        }
      }
    }
    &.active {
      header {
        h1 {
          color: #555555;
        }
      }
    }
    .inputGroup{
      input.code {
        width:55%;
      }
    }
    h3 {
      font-size: 15px;
      font-weight: bold;
      margin-bottom: 10px;
      clear: both; // genLOC Me on LG device
    }
    h4 {
      font-weight: bold;
      margin-top: 10px;
    }
    #checkout_container {
      border-bottom: 1px solid #d1d1d1;
      padding: 1rem 1rem 0.5rem 0;
      .productThumb {
        margin-right: 8px;
      }
    }
    .checkout_items {
      display: flex;
      align-items: flex-start;
      .badge {
        display:none;
      }
      .productThumb {
        margin-right: 8px;
        height: 64px;
        width: 85px;
      }
      .productTitle {
        @media only screen and (max-width: 767px) {
          padding-left: 1px;
          width: 55%;
        }
        h3 {
          margin-bottom: 0;
          margin-left: 20px; /* give the image some space */
          text-transform: none;

          &.adr-product {
            margin-left: 40px;
          }
        }
        p {
          margin:0;
        }
      }
      .prod_numbers {
        display: flex;
        justify-content: space-between;
        width: 50%;
        align-self: center;
        flex-wrap: wrap;
        > div {
          min-width: 20%;
          text-align: right;
          &.itemSubtotal, &.itemSubtotal + div {
            text-align: right;
          }
        }
        div {
          @media only screen and (max-width: 767px) {
            float:none;
            margin-right: 0;
          }
          @media only screen and (max-width: 480px) {
            margin-left: 0;
          }
        }
        @media screen and (max-width: 767px) {
          > div {
            width: 50%;
          }
          .productSKU { order: 0; }
          .productPrice { order: 2; }
          .qtyCell { order: 1; }
          .itemSubtotal { order: 3; }
          .item-sku { order: 5; }
        }
      }
      .badge {
        display:block;
        position: absolute;
        background-size: 25px;
        min-width: 25px;
        min-height: 25px;
        margin-right:7px;

        &.aroBadge {
          top: 8px;
        }
        &.adpBadge {
          top: 7px;
        }
      }
      .adrBadge {
        background: url("/content/dam/apps/checkout/logo-adr.svg") no-repeat;
      }
      .aroBadge {
        background: url("/content/dam/apps/checkout/logo-aro-gray.svg") no-repeat;
      }
      .adpBadge {
        background: url("/content/dam/apps/checkout/logo-adp-gray.svg") no-repeat;
      }
      @media screen and (max-width: 767px) {
        flex-wrap: wrap;
      }
    }
    .cart-subtotal {
      text-align: right;
      padding: 1rem;
    }
    
    // This abomination is due to the fact that AEM inject <p> tags into the rich text component and <p> tags are block level elements. Yay...
    .rich-text-span {
      > p {
        display: inline;
      }
    }
    .backdate_check {
      margin-top:15px;
      .action{
        margin-bottom:10px;
      }
      .disclaimer{
        font-size:12px;
        font-style:italic;
      }
    }
    input[type="checkbox"] {
      display: none;
      &:not(:checked) {
        &+ label {
          &::after, iron-icon {
            opacity: 0;
            visibility: hidden;
          }
        }
      }
      
      &+ label {
        font-size: 14px;
        position: relative;
        cursor: pointer;
        font-weight: 400;
        padding-left: 30px;
        user-select: none;
        transition: map-get($otherUtils, global-transition);
        display: block;
        
        iron-icon {
          position: absolute;
          width: 14px;
          height: 14px;
          top: 2px;
          left: 3px;
          color: map-get($baseColors, white);
          z-index: 5;
          transition: map-get($otherUtils, global-transition);
        }
        
        &:before {
          content: "";
          position: absolute;
          left: 0;
          top: 9px;
          border: map-get($otherUtils, global-border);
          background-color: #fff;
          width: 18px;
          height: 18px;
          border-radius: 2px;
          transition: map-get($otherUtils, global-transition);
        }
        
        &:after {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          background-color: map-get($themeColors, color-interactive-7);
          background-size: .75rem;
          width: 18px;
          height: 18px;
          border-radius: 2px;
          transition: map-get($otherUtils, global-transition);
        }
        
        &.iw {
          padding-left: 0;
          padding-right: 30px;
          
          &::before {
            left: auto;
            right: 0;
          }
          
          &::after {
            left: auto;
            right: 0;
          }
          
          iron-icon {
            left: auto;
            right: 2px;
          }
        }
      }
    }
    
    form {
      input[type="checkbox"] {
        display: block;
      }
    }
    
    div.reviewOrderDetails {
      input[type="checkbox"] + label {
        &::before {
          top: 0;
        }
        
        &.legacy-review::before {
          top: 9px;
        }
      }
      div p {
        font-size: 14px;
      }
    }
  }
  .checkout-section {
    .checkoutSection#checkout-review-order {
      overflow: visible;
    }
  }

  .payment-selection {
    padding-bottom: 20px;

    ns-button {
      padding-left: 5px;
    }
  }
}

.custTypeMessage {
  position: absolute;
  top: 70%;
  max-width: 40%;
  max-height: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  @media screen and (max-width: 480px) {
    top: 16%;
    max-height: 120px;
  }
}

#mainHeader {
  background: $nsbordergrey;
  padding: 20px 0;
}
.section #mainContent table, #mainContent table {
  padding: 20px 0;
  flex: 1;
  max-width: 100%;
  margin: 0;
  float: right;
}
.section table td, table td {
  border: none;
  padding: 0;
  margin: 0;
}
.productThumb.textRight > img {
  float: left;
  margin-left: 35px;
  margin-top: -2px;
}
.productThumb.textRight.order-details img {
  margin-left: 0;
  max-height: 64px;
  max-width: 64px;
}
#content #mainContent {
  .promotion-code-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    -moz-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;

    &.immediate {
      -moz-transition-duration: 0s;
      -webkit-transition-duration: 0s;
      -o-transition-duration: 0s;
      transition-duration: 0s;
    }

    &.promo-shown {
      padding-top: 20px;
      max-height: 90px;

      @media screen and (max-width: 1023px) {
        max-height: 165px;
      }
    }

    &.promo-shown-tall {
      padding-top: 20px;
      max-height: 170px;

      @media screen and (max-width: 1023px) {
        max-height: 270px;
      }
    }

    &.promo-hidden {
      padding-top: 0;
      max-height: 0;
    }

    .promo-expander {
      cursor: pointer;

      iron-icon {
        &.rotate {
          transform: rotate(180deg);
          transition-duration: .5s;
        }
        &.unrotate {
          transform: rotate(0deg);
          transition-duration: .5s;
        }
      }    }

    .promo-code-btn {
      max-width: 300px;

      @media screen and (max-width: 767px) {
        max-width: 100%;
      }
    }

    .promo-selector {
      overflow: hidden;
      -moz-transition: all 0.5s ease-in-out;
      -webkit-transition: all 0.5s ease-in-out;
      -o-transition: all 0.5s ease-in-out;
      transition: all 0.5s ease-in-out;
      max-height: 0;

      &.shown {
        max-height: 50px;

        @media screen and (max-width: 1023px) {
          max-height: 200px;
          margin-bottom: 10px;
          margin-top: 4px;
        }
      }
      &.shown-tall {
        max-height: 125px;

        @media screen and (max-width: 1023px) {
          max-height: 215px;
          margin-bottom: 10px;
        }
      }
    }

    .promo-combo {
      display: flex;
      flex-direction: row;

      @media screen and (max-width: 767px) {
        flex-direction: column;
      }

      .promo-input {
        min-width: 250px;

        @media screen and (max-width: 1023px) {
          min-width: 165px;
          max-height: 60px;
        }
      }
    }

    .selectedCode{
      font-size: 15px;

      .discount-code {
        font-size: 15px;
        font-weight: bold;
        display: inline-block;
      }
      .removeCodeLink {
        font-weight: bold;
      }
    }
    .savings{
      .promotionalSavings {
        font-size: 15px;
        background-color: #c7eec3;
        border-radius: 0;
        padding: 10px;
        color: black;
        display:inline-block;

        .savingsAmount{
          font-weight: bold;

        }
      }
      .removeCodeLink{
        font-weight: bold;
      }
    }
    .promoTable-or-continue{
      text-align: center;
      height: 2em;
      margin-bottom: 16px;
      margin-top: 22px;
      max-width: 300px;

      @media screen and (max-width: 767px) {
        margin: 22px auto 16px;
      }

      div{
        border-bottom: 1px solid #ccc;
        height: .8em;
        margin-top: .5em;
        span{
          font-size: 16px;
          background-color: #11B000;
          color: #fff;
          padding: 8px 10px 25px;
          position: relative;
          top: -8px;
        }
      }
    }
  }

  #promotionalCodeGroup, .shippingPromoCodeGroup {
    &>span {
      display:block;
    }
    ns-input {
      display: inline-block
    }

    button.btn-secondary {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      float:left;/* Fix for IE*/

      @media (max-width:480px) {
        height: 48px;
      }
    }

    .compound-element {
      > * {
        font-size: 12px;
      }
    }
  }

  .payment-summary-view {
    .compound-element {
      > * {
        font-size: 12px;
      }

      ns-input {
        max-width: 150px;
      }
    }
  }

  .promo-button {
    margin-left: 10px;

    @media screen and (max-width: 767px) {
      margin-left: 0;
    }
  }
}

@-webkit-keyframes myfirst {
  from {
    background: rgba(76, 216, 255, .2);
  }
}

@keyframes myfirst {
  from {
    background: rgba(76, 216, 255, .2);
  }
}

// Sticky Error Headers

#mainContent .checkoutSection {
  background: #ffffff;
  position: relative;
  padding: 10px;
  border: 1px solid $nsbordergrey;
  border-radius: $radius;
  margin-bottom: 10px;
  header {
    position: relative;
    .ordinal {
      display: inline-block;
      width: 30px;
      height: 30px;
      text-align: center;
      margin-right: 10px;
      position: relative;
      
      &.iw {
        margin: 0 0 0 10px;
        
        iron-icon.check-mark {
          left: 0;
          right: auto;
        }
        
        .flipped {
          transform: none;
        }
      }
      
      iron-icon {
        height: 20px;
        width: 20px;
        
        &.check-mark {
          height: 12px;
          width: 12px;
          position: absolute;
          bottom: 2px;
          right: 0;
          color: map-get($baseColors, progress-color);
        }
      }
      
      .flipped {
        transform: rotateY(180deg);
      }
    }
    .title,
    .itemCnt {
      display: table-cell;
      line-height: 1;
      font-size:17px;
      &:first-child {
        //padding: 20px 0 0 44px;
        @media (max-width: 480px){
          padding-left: 0;
        }
      }
    }
    .flex-container {
      display: flex;
      justify-content: space-between;
    }
    .summary {
      display: block;
      width: 90%;
      clear: both;
      margin-left: 45px;
      margin-right: 0;

      .summaryColumn {
        width: 50%;
        min-width: 400px;
        display:inline-block;
        overflow:hidden;
        li {
          list-style: none;
        }

        &:first-child {
          float: left;
          clear: left;
        }

        .truncate {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }

        .inline {
          display: inline-block;
        }

        h3 {
          margin-top:0;
          margin-bottom:0.25em;
          font-size:15px;
        }
      }
      .truncate {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
      .inline {
        display: inline-block;
      }
      span {
        display: block;
      }

    }
    .rotate {
      transform: rotate(180deg);
      transition-duration: .5s;
    }
    .unrotate {
      transform: rotate(0deg);
      transition-duration: .5s;
    }
    button, .section-edit {
      float:right;
      cursor: pointer;
      right: 0;
      top: 0;
      color: map-get($themeColors, color-interactive-1);
    }
    .section-edit-hebrew {
      float: left;
      cursor: pointer;
      right: 0;
      top: 0;
    }
    .section-title-hebrew {
      float: right;
    }
  }
  section {
    &.reviewSection {
      padding: 0;
      margin: 0;

      .summary-shipping {
        padding-top: 10px;
      }

      .orderItems {
        padding-top: 15px;
      }

      .itemsHeader {
        color: map-get($baseColors, blackhole);
        font-weight: bold;
        font-size: 13px;
        padding-bottom: 5px;
        text-transform: uppercase;

        iron-icon {
          width: 18px;
          height: 18px;
          top: -1px;
        }
      }

      .recurItems {
        padding-top: 10px;
      }

      .reviewOrderItems {
        display: flex;
        flex-direction: column;
        margin: 5px 0 10px;

        .orderItem {
          display: flex;
          flex-direction: row;
          align-items: center;
          border-top: 1px solid map-get($baseColors, eyore);
          min-height: 54px;
          color: map-get($baseColors, blackhole);

          &:last-child {
            border-bottom: 1px solid map-get($baseColors, eyore);
            margin-bottom: 10px;
          }

          .thumbNail {
            height: 30px;
            width: 30px;
            min-width: 30px;
            margin-right: 10px;

            img {
              max-width: 100%;
              max-height: 100%;
            }
          }

          .item {
            display: flex;
            flex-direction: row;
            align-items: center;
            width: 100%;
            font-weight: normal;
            line-height: 1.2;

            .title {
              width: 55%;
              overflow: hidden;
              font-size: 13px;
              padding: 5px 0;
            }

            .psv {
              white-space: nowrap;
              font-weight: 300;
              font-size: 13px;
            }

            .qty {
              padding: 0 5px 0 5px;
              font-weight: 500;
              font-size: 13px;
            }

            .valuesDisplay1 {
              display: flex;
              flex-direction: row;
              justify-content: space-between;
              width: 45%;
            }

            .valuesDisplay2 {
              display: flex;
              flex-direction: row;
              align-items: center;
              width: 45%;

              .values {
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                width: 100%;
                padding: 0;
              }
            }

            .valuesDisplay3 {
              display: flex;
              flex-direction: column;
              align-items: flex-end;
              //align-items: center;
              width: 45%;

              .values {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                width: 100%;
              }
            }
          }
        }

        .recurring-items-subtotal {
          display: flex;
          justify-content: space-between;
          line-height: 1.6;
          color: var(--blackhole);
          padding-bottom: 5px;
          font-size: 16px;

          div {
            &:first-child {
              font-size: 13px;
              text-transform: uppercase;
            }
          }
        }
      }

      .pre-subtotal-disclaimer {
        padding-top: 10px;
        color: var(--dryink);
      }
    }

    margin-top: 10px;
    padding: 0 0 0 44px;
    @extend .clearfix;
    &.product-box {
      border: 1px solid #d1d1d1;
      padding: 20px 0 20px 10px;
      margin-bottom: 1.5rem;
    }
    
    &.data-shippingSection {
      .data-shippingSection {
        padding-left: 0;
      }
    }
  }

  .errorDialogue, .infoDialogue {
    margin: 20px 0;
  }
  table {
    figure.qty {
      text-align: center;
      input {
        width: 50px;
        max-width: 50px;
        text-align: center;
        margin: 0;
        padding: 6px 6px 2px;
      }
      figcaption {
        margin-top: 5px;
        font-size: 11px;
      }
    }
  }
  div.error {
    margin-top:5px;
  }
  .payment-summary-view {
    width: 95%;
    .pay-sum-left, .pay-sum-right {
      width: 50%;
      float: left;
    }
  }
  .promo-table {
    clear: both;
    .tableSaveControls {
      display: inline-block;
      float: right;
      margin-top: 30px;
      padding-right: 20px;
      padding-bottom: 20px;
      padding-left: 10px;
      width: 22%;
      .savings{
        font-size: 16px;
        color: black;
      }
      .savingsAmount{
        font-weight: bold;
      }
      #savePromoCode{
        margin-top:10px;
        margin-bottom:10px;
      }

    }
  }
  .payment-method-section{
    clear: left;
  }
  .tableContainer {
    width: 78%;
    display: inline-block;
    table {
      border: 1px solid $ns-gray;
    }
    caption h3 {
      text-align: left;
    }
    tr {
      &.promo-header {
        font-weight: bold;
        border: none;
        th {
          border: none;
          text-align: left;
          white-space: nowrap;
        }
      }
      &.promo-details {
        cursor: pointer;
        &.highlighted {
          -webkit-animation: myfirst 3s;
          animation: myfirst 3s;
        }
        td.promo-desc p {
          margin: 3px;
        }
      }
      &.active {
        background: $ns-blue;

        td, td label {
          color: #ffffff;
        }
      }

      td:nth-child(1) {
        padding: 10px 15px 10px 20px;
      }

      td {
        vertical-align: middle;
        padding: 10px 5px;

        &.promo-desc {
          text-align: left;
        }
        h3 {
          margin-bottom: 0;
        }
        input[type="radio"] {
          vertical-align: middle;
        }
        label {
          font-weight: bold;
          display: none;
        }
      }
    }

  }
}

#mainContent #firstAddressSection {
  form input[type="checkbox"] {
    display: none;
  }
  
  form label input[type="checkbox"] {
    display: block;
  }
}

.ship-method-selection {
  display: flex;
  flex-wrap: wrap;
  .col {
    width: 45%;
    min-width: 250px;
  }
  .pickup-person {
    margin-left: 30px;
  }
}

.simulateRequest {
  position: static;

  &:after {
    position: absolute;
    top: 50%;
    margin-top: -9px;
  }
  &.processingRight {
    position: relative;
    &:after {
      content:'';
      background: url('/content/dam/apps/checkout/icon-spinner.gif');
      background-size:contain;
      width:32px;
      height:32px;
      margin-left: 25px;
      margin-top: -10px;
    }
  }
  &.validRight {
    position: relative;
    &:after {
      content: url('/content/dam/apps/checkout/icon-valid.svg');
      margin-left: 25px;
      margin-top: -10px;
    }
  }
  .pickup-address {
    margin: 5px 0 10px 23px;
    max-width: 275px;
  }
}

#shippingMethod {
  display: inline-block;

  fieldset label {
    display: block;
    @media screen and (min-width: 768px) {
      padding: 2px 0;
    }
  }

  #shippingRatePopupLink {
   display:inline-block;
  }
}

.newAddress{
  padding-right: 20px;
  clear: both;
  label {
    float: left;
    width: 100%;
    margin: 5px 0;
    font-weight: normal;
  }
  .city {
    width: 42%;
    margin-right: 3%;
  }
  .state {
    width: 22%;
    margin-right: 3%;
  }
  .zip {
    width: 30%;
  }
}

.creditCardSelector {
  tr.selected {
    border-radius: 4px;
    background: rgba($nsblue, .25) !important;
    td:first-child {
      border-radius: 4px 0 0 4px;
    }
    td:last-child {
      border-radius: 0 4px 4px 0;
    }
  }
}

.two-col {
  @extend .clearfix;
  > div {
    width: 48%;
    margin-right: 2%;
    float: left;
  }
}

.three-col {
  @extend .clearfix;
  > div {
    width: 33.3%;
    float: left;

    &.reviewOrderDetails {
      width: auto;
    }
  }
  > div.colspan-2 {
    width: 66.6%;
  }
}
#checkout-shipping-address {
  .section-controls {
    display: block;
    clear: both;
    padding-top: 10px;
  }
  #qasWrapper {
    #shippingAddresses{
      position: relative;
    }
    fieldset {
      clear: both;
    }
  }

  .disclaimer {
    font-size: 12px;
    padding: 11px 43px 21px 43px;

    &.california-warnings {
      padding-bottom: 0;
    }

    &.warning-message {
      padding-top: 5px;
      p {
        margin-top: 0;
      }
    }

    &> p {
      margin-bottom: 0;
    }
  }
}

/*
#checkout-edit-shipping-method {
  #shippingRatePopupLink {
    display: inline-block;
    padding: 10px 0 10px 0;

    @media screen and (max-width: 1023px) {
      padding: 20px 0 10px 0;
    }
  }

  .disclaimer {
    font-size: 12px;
    padding: 11px 43px 21px 43px;

    &.california-warnings {
      padding-bottom: 0;
    }

    &.warning-message {
      padding-top: 5px;
      p {
        margin-top: 0;
      }
    }

    &> p {
      margin-bottom: 0;
    }
  }
}
*/

#checkout-edit-payment {
  .disclaimer {
    font-size: 12px;
    padding: 11px 43px 21px 43px;
  }
}

@media screen and (max-width: 769px) {
  input#emailOptIn {
    transform: scale(1.4);
  }
}

@media screen and (max-width: 769px) {
  input#paymentAgreeCheckbox {
    transform: scale(1.4);
  }
}

// On iphone you have to click twice to click the label this makes it so you don't
#mainContent label.shipToSelection > *,
#mainContent label.billingSelection > * {
  pointer-events: none;
}

#mainContent label.shipToSelection,
#mainContent label.billingSelection {
  float: left;
  position: relative;
  padding: 10px;
  cursor: pointer;
  border:3px solid transparent;
  border-radius:2px;
  //  height: 275px; // It's too tall for some markets but when the button text is three lines it doesn't work at 255px
  background-color:#F5F5F5;

  .blueCheckBox{
    width:15px;
  }

  input[type="radio"] {
    display:none;
    position: absolute;
    left: 10px;
    top: 10px;
  }

  a, ns-button {
    pointer-events: auto;
  }

  ul {
    padding: 0px 10px 10px;
    //overflow: auto;
    clear: both;
    li {
      display: block;
      clear: both;
      word-wrap: break-word;
      position: relative;

      &.use-payment {
        display: flex;
        justify-content: flex-start;
        padding-top: 10px;
        max-width: 300px;

        @media (max-width: 1023px) {
          padding-top: 20px;
          max-width: 1024px;
        }
      }

      .simulateRequest {
        .valid-submit {
          left: -18px;
          width: 16px;
          height: 16px;
          bottom: 8px;
          position: absolute;
          z-index: 999;
          background: url("/content/dam/apps/checkout/icon-valid.svg");
          display: none;
        }
        &.valid {
          overflow: visible;
          .valid-submit {
            display: block;
          }
        }
        .process-submit {
          left: -18px;
          width: 16px;
          height: 16px;
          bottom: 8px;
          position: absolute;
          z-index: 999;
          background: url("/content/dam/apps/checkout/icon-spinner.gif");
          display: none;
        }
        &.processing {
          .process-submit {
            display: block;
          }
        }
      }
    }
  }
  &> div {
    padding: 10px;
    margin-top: 15px;
  }
  /**
   * Convenience class. Used by the tdc.checkoutElements in orderSummary.
   * That is a block of text with shipping info that needs to be padded
   * in order to be responsive.
   */
  .paddingTenPx {
    padding: 10px;
  }
  input[type="text"] {
    width: 80px;
  }
  a.btn-edit {
    display: block;
    padding-top: 10px;
    font-size: 14px;
    float: left;
  }
  a.cancel-shipping {
    margin-top: 10px;
    position: relative;
  }
  a.cancel-payment {
    margin-top: 10px;
    position: relative;
  }
  button.btn-primary-dialog {
    position: relative;
    display:inline;
    float:none;
  }
  div.modal-paragraph-center {
    text-align: center;
    padding-bottom: 20px;
  }
  .deleteThis {
    clear: both;
    float: right;
    background: url('/content/dam/apps/checkout/icon-trash.png') no-repeat;
    background-position: 50%;

    a {
      width: 26px;
      &:hover {
        text-decoration: none;
      }
    }
  }
  button {
    //    width: 83%;
    white-space: normal;
    margin: 0 auto;
    overflow: visible; // So IE displays spinner next to ship to this address button
    clear: both;
    max-width: 100%;
    width: 300px;
    position: absolute;
  }

  &.selected {
    border: 3px solid map-get($themeColors, color-interactive-1);
    border-radius: 4px;
  }
  .defaultOptionLabel {
    position: absolute;
    width: 77%;
    display: inline-block;
    text-align: center;
    font-size: 11px;
    color: darkgray;
    top: 3px;
    left: 12%;
  }
  .modal {
    height: auto;
    padding: 20px 20px 15px 20px;

    a  {
      text-align: center;
      float: none;
      display: inline-block;
      margin-right: 1em;
    }
  }
}

.modal-delete-buttons {
  display: flex;
  flex-direction: row-reverse;

  ns-button {
    width: auto;
    max-width: 170px;

    &.btn-spaced,
    &#cancelDeletePaymentButton,
    &#cancelDeleteShippingButton {
      margin-right: 10px;
    }
  }

  @media screen and (max-width: 1023px) {
    flex-direction: column;

    ns-button {
      width: auto;
      max-width: 100%;
      margin: 0;

      &#cancelDeletePaymentButton,
      &#cancelDeleteShippingButton {
        margin-top: 10px;
      }
    }
  }
}

.flex-buttons {
  display: flex !important;
  flex-direction: row;
  justify-content: flex-end;
  padding-top: 20px;

  ns-button {
    width: auto;
    max-width: 170px;

    &.btn-spaced {
      margin-right: 10px;
    }
  }

  @media screen and (max-width: 1023px) {
    &.mobile-wide {
      flex-direction: column-reverse;

      &.edge-margin {
        margin: 0 10px 0 10px;
      }

      ns-button {
        width: auto;
        max-width: 100%;
        margin: 0;

        &.btn-spaced {
          margin-top: 10px;
        }
      }
    }
  }
}

#mainContent {
  label.billingSelection {
    button {
      position: static;
      display: block;
    }
  }
}

label.shipToSelection {
  width: 55%;
  min-width: 200px;
  margin: 0 5px 5px 0;
  border:3px solid transparent;

  &:not(.selected) button {
    // display: none; Commented out for accessibility reasons - screen reader can't read what isn't there
  }
}

label.billingSelection {
  width: 55%;
  margin: 0 3% 5px 0;
  padding:15px;
  img {
    margin-top: -4px;
  }
  &:nth-child(3n+1) {
    clear: left;
  }
  button {
    display: none;
  }
}
.two-col label.billingSelection {
  width: 48%;
  margin: 0 2% 5px 0;
  &:nth-child(odd) {
    clear: left;
  }
  &:nth-child(3n+1) {
    clear: none;
  }
}
.expired {
  .error {
    display: inline;
  }
  a {
    color: red;
  }
}
.multiCardMath {
  margin-top: 20px;
  display: none;
}

#mainContent .checkoutSection .summaryCartItem {
  font-size:13px;
  position:relative;

  .aroBadge.badge {
    display: block;
    background-size: 25px;
    width: 25px;
    height: 25px;
    margin-right: 7px;
    background: url(/content/dam/global/images/logo-aro-gray.svg) no-repeat;
    position: absolute;
    left: -30px;
    top: 3px;
  }

  .productQuantity {
    font-size: 13px;
    display: inline-block;
    width: 20px;
    text-align: left;
    vertical-align: top;

  }
  .productTitle {
    font-size: 13px;
    display: inline-block;
    text-overflow: ellipsis;
    max-width: 350px;
    overflow-x: hidden;
    overflow-y: visible;
    position:relative;
  }
}

.productTitle {
  display: flex;
  position: relative;
  flex-direction: column;
  font-size: 18px;
  flex-grow: 5;
  max-width: 45%;
  text-align: left;
  align-self: center;
}
.productDetailSubtitle {
  position: relative;
  top: 0;
  font-size: 11px;
  margin: 0 0 0 20px;

  &.adr-product {
    margin: 0 0 0 40px;
  }

  .productSKU {
    display:inline;
    font-size: 11px;
    @media screen and (max-width: 767px) {
      display: block;
    }
  }
  .productCount, .productFlavor, .productShade, .productSize {
    display: block;
  }
  .agelocmeLabel {
    padding-left: 2em;
    @media screen and (max-width: 767px) {
      padding-left: 0;
      display: block;
    }
  }
  .productPrice {
    padding-left: 2em;
    display:inline;
    font-size: 11px;
    @media screen and (max-width: 767px) {
      padding-left: 0;
      display: block;
    }
  }
}
.scan_card {
  .scan_card_number {
    padding: 0;
  }
}

//.ccv {
//  display: block;
//}
#mainContent {
  .checkout-section {
    header {
      display: block;
      width: 100%;
      min-height: 40px;
    }
    footer {
      width: 100%;
      display: inline-block;
    }
    footer .actions {
      @media screen and (max-width: 1023px) {
        padding-top: 10px;
      }
      float: right;
    }
    .billingReadOnly {
      span.ccv {
        display: block;
        input {
          height: 30px;
          min-height: 30px;
          border-radius: 0;
          border: 1px solid map-get($baseColors, blackhole);
          @media screen and (max-width: 480px) {
            height: 45px;
          }
        }
        input:focus {
          box-shadow: 0 0 5px 2px rgba(113,35,217,0.2);
        }
      }
      a.changeBilling {
        display: block;
        float: left;
      }
    }
    #checkout-shipping-address {
        form[name="editShippingForm"] {
            clear: both;
        }
    }

    ns-button {
      display: inline-block;
    }
  }
}

form[name="ccvform"], form[name="forms.ccvform"] {
  display: inline-block;
  width: 64px;
}

.maskinput {
  text-security: disc;
  -webkit-text-security: disc;
  -moz-text-security: disc;
}

.paymentAgreeMessage {
  display:inline;
}

.reviewOrder {
  section {
    min-height: 110px;
  }
}

#mainContent .reviewOrderDetails {
  @media (max-width: 767px) {
    float: none;
  }
  &.agelocme-agree {
    > button {
      position: static;
      float: right;
    }
  }
  table + div {
    clear: both;
    p {
      margin-top: 0;
      padding-top: .5em;
    }
  }
}

#content {
  #mainContent {
    .container {
      .agelocme-agree {
        width: 100%;

        .ageloc-btn-agree {
          float: right;

          .agree-to-terms, #orderCreateButton {
            display: inline-flex;
            float: none;
          }          
          .agree-to-terms {
            @media screen and (max-width: 480px) {
              padding-right: 0;
            }
          }
        }
      }
    }
  }
}
div.reviewOrderDetails {
  .order-information {
    display: flex;
    flex-direction: column;
    
    &> div  {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      font-size: 13px;
      color: map-get($baseColors, blackhole);
      
      div {
        &:first-child {
          font-size: 13px;
        }
        
        &:nth-child(2),
        &:nth-child(3) {
          font-size: 16px;
        }
      }
    }
    
    .free-shipping {
      color: map-get($baseColors, progress-color);
      font-weight: map-get($typography, font-weight-bold);
    }
    
    .order-subtotal {
      line-height: 1.6;
      div {
        font-weight: map-get($typography, font-weight-bold);
        color: map-get($baseColors, blackhole);
        &:first-child {
          font-size: 13px;
          text-transform: uppercase;
        }
      }
    }
    
    .psvTotal {
      margin-bottom: 15px;
    }
    
    .promo-applied {
      color: map-get($baseColors, progress-color);
      font-weight: map-get($typography, font-weight-semibold);
      padding: 10px 0 0 0;
      
      iron-icon {
        height: 15px;
        width: 15px;
      }
    }

    .orderTotal {
      display: flex;
      flex-direction: column;
      padding: 15px 0;
      border-top: 2px solid map-get($baseColors, blackhole);
      margin-top: 10px;
      color: map-get($baseColors, blackhole);

      .total {
        width: 100%;
        display: flex;
        justify-content: space-between;
      }

      div {
        &:first-child {
          text-transform: uppercase;
          font-size: 18px;
        }
        &:nth-child(2) {
          font-weight: map-get($typography, font-weight-bold);
          font-size: 18px;
        }

        &.pre-total-disclaimer {
          font-weight: normal;
          font-size: 13px;
          width: 100%;
          text-align: right;
          color: var(--dryink);
        }
      }
      
      &.discount-displayed {
        padding-bottom: 0;
      }
    }
    
    .original-total {
      padding-bottom: 15px;
      color: map-get($baseColors, dryink);
    }
  }
  
  #orderCreateButton {
    margin-top: 10px;
  }
  
  input[type="checkbox"] {
    display: none;
    &:not(:checked) {
      &+ label {
        &::after, iron-icon {
          opacity: 0;
          visibility: hidden;
        }
      }
    }
    
    &+ label {
      font-size: 14px;
      position: relative;
      cursor: pointer;
      font-weight: 400;
      padding-left: 30px;
      user-select: none;
      transition: map-get($otherUtils, global-transition);
      display: block;
      
      iron-icon {
        position: absolute;
        width: 14px;
        height: 14px;
        top: 2px;
        left: 3px;
        color: map-get($baseColors, white);
        z-index: 5;
        transition: map-get($otherUtils, global-transition);
      }
      
      &:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        border: map-get($otherUtils, global-border);
        background-color: #fff;
        width: 18px;
        height: 18px;
        border-radius: 2px;
        transition: map-get($otherUtils, global-transition);
      }
      
      &:after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        background-color: map-get($themeColors, color-interactive-7);
        background-size: .75rem;
        width: 18px;
        height: 18px;
        border-radius: 2px;
        transition: map-get($otherUtils, global-transition);
      }
    }
  }
  
  

  > button {
    position: absolute;
    right: 10px;
    bottom: 10px;
  }

}

.section #mainContent  table.reviewOrderDetails, .reviewOrderDetails table {

  td {
    text-align: right;
    border-bottom: none;
    padding: 0 0 0 15px;
    white-space: nowrap;

    i.icon-info {
      span.toolTip-up {
        white-space: normal;
      }
    }
  }

  table tbody tr:nth-child(even) {
    background: none;
  }
}

.orderTotal {
  font-size: 18px;
}

.orderValue {
  font-weight: bold;
  color: map-get($baseColors, blackhole);

  &.vert {
    padding-bottom: 2px;
  }
}

#buttonBar{
  float: right;
}

.next_adr_order {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}
#nextOrderLabel {
  background-color: rgb(237, 237, 237);
  color: rgb(124, 124, 124);
  padding: 7px 10px;
  border: 1px solid rgb(226, 226, 226);
  z-index: 1;
  font-size: 14px;
}

#buttonBarTop button {
  position: relative;
  z-index: 2;
  margin-left: 10px;
}

.orderDate {
  .orderDateLabel {
    font-weight:bold;
  }
}

#pwebLogo {
  clear: both;
  text-align: right;
  padding-top: 35px;
}

.print-confirm-logo {
  height: 100px;
  display: none;
}

#mainFooter {
  background: #333333;
  color: white;
  padding: 20px 0;
}

.error {
  color: red;
}

/* ===================
   Error Messaging
   =================== */

.errorDialogue {
  background: rgba($error, .1);
  border: 1px solid $error;
  border-radius: $radius;
  padding: 15px;
  color: $error;
  margin-bottom: 10px;
  h3 {
    margin-bottom: 10px;
    font-size:16px;
    font-weight:bold;
  }
  ul {
    padding-left: 1em;
  }
  li {
    margin-left:25px;
    list-style-type:disc;
  }
}

.error {
  color: $error;
  label {
    font-weight: bold;
  }
  input, select {
    border: 1px solid $error;
    box-shadow: 0 0 0 3px rgba($error, .1);
    margin: 3px 0;
  }
  .errorMessage{
    display: inline;
    font-weight: normal;
    margin-bottom: 3px;
  }
}
.errorMessage {
  display: none;
}

.infoDialogue {
  background: 0 0 0 3px rgba($info, .1);
  border: 1px solid $info;
  border-radius: $radius;
  padding: 10px 15px;
  color: darken($info, 40%);
  margin-bottom: 20px;
  h3 {
    margin-bottom: 10px;
    font-size:16px;
    font-weight:bold;
  }
  ul {
    padding-left: 1em;
  }
  li {
    margin-left:25px;
    list-style-type:disc;
  }
}


/*** styling for column control **/
div.par {
  clear: both;
}
div.parsys_column {
  width: 100%;
  border: 0;
  vertical-align:top;
  padding: 0;
  width:100%;
  max-width:980px;
  margin: 5px auto 0;
}

div.parsys_column .section {
  overflow:hidden;
}

div.parsys_column .ghost {
  overflow:visible;
}

div.cq-colctrl-cols {
  width: 100%;
  float: left;
}
div.cq-colctrl-default {
  width: 100%;
}

div.cq-colctrl-city-state-zip {}
div.cq-colctrl-city-state-zip-c0 {
  min-width: 188px;
  padding-right: 5px;
}
div.cq-colctrl-city-state-zip-c1 {
  float: left;
  //  width: 10%;
  min-width: 52px;
  padding-right: 5px;
}
div.cq-colctrl-city-state-zip-c2 {
  //  width: 20%;
  min-width: 100px;
}

// Signup Confirmation
#signupConfirmation {
  margin-bottom: 6em;

  &> div > br {
    display:none; // Not sure what's putting this break in
  }

  h1:first-child {
    display:inline;
  }

  .accountInformationTitle, .optionalCompleteSignupText {
    color: #6E6E6E;
    font-size: 16px;
    display:inline;
    margin-right:0.25em;
  }
  .textField {
    display: inline;
  }
  .distributorID {
    font-size: 28px;
    color: #363636;

    .distributorIdLabel {
      margin-right: 0.25em;
    }
  }
  table.signupDetails {
    margin: 0 0 15px 0;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
    padding: 25px 0;
    page-break-after: always;
    float: none;

    tr:first-child div {
      padding-top:1em;
    }

    td {
      line-height: 2em;
      font-size: 14px;

      &.fieldValue {
        width: 30%;
        text-align: left;
      }
      &:first-child {
        text-align: left;
        min-width: 120px;
      }
      &:nth-child(2) {
        text-align: left;
        width: 80%;
      }

      div {
        display: block;
        padding-bottom: 1em;
      }
    }
  }
} // END #signupConfirmation

button.addANewAddress {
  padding: 1em;
  border-radius: 2px;
}

#orderConfirmation {
  @media screen and (max-width:767px) {
    padding:5px;
  }
  > h1 {
    color: #6E6E6E;
    display: inline;
    font-size:12px;

    .orderConfirmationTitle {
      color: #6E6E6E;
      font-size: 12px;
      display: inline;
    }
  }

  .itemQuantity, .itemSubtotal, .itemPSVSubtotal {
    padding: 0;
    position: relative;
    //    top: -10px;
  }
  h2#orderType {
    margin-left: 3em;
    font-size: 12px;
    color: #6E6E6E;
    @media screen and (max-width: 400px) {
      display: block;
      width: 100%;
      clear: both;
    }
  }
  #orderNumbers {
    padding-top: 1px;
    padding-bottom: 0;
    border-top: 0;
    margin-bottom: 0.5em;

    #confirmationADRMark {
      img {
        width: 40px;
      }
    }
    header {
      float: left;
    }
    h1 {
      color: #363636;
      font-size:26px;
      span {
        font-size:26px;
      }
    }
    #orderType {
      font-size:12px;
    }
  }

  h2 {
    font-size: 14px;
    display: inline;
    margin-left: 2em;

    img {
      width: 14px;
      height: 14px;
      margin-top:-3px;
    }
  }
  h3 {
    font-weight: bold;
    margin: 0 0 8px 0;
    font-size: 15px;
  }
  #orderNumbers {
    header {
      float: left;
    }
    .orderNumber {
      color: #555;
      font-size: 25px;
      border-bottom: gray 1px solid;
      padding-bottom: 0.25em;
      margin-bottom: 1em;
    }
    .orderConfirmationTitle {
      font-size: 14px;
      padding-bottom: 0;
      color: #555;
    }
  }
  .itemPrice, .backOrderDate, .agelocmeLabel {
    float: left;
  }
  .itemPrice {
    &.stacked-price {
      margin-left: 0;
    }
  }
  .productSize, .productShade, .productFlavor, .productCount {
    display: block;
    clear: both;
  }
  #shippingAndPayment {
    .shippingPanel {
      float: left;
      width: 30%;
      padding: 10px;
      border-right: 1px solid #e1e1e1;
      min-height: 165px;
      white-space: normal;
      overflow: hidden;
      height: auto;

      * {
        white-space: normal;
      }

      .orderDate {
        margin-bottom: 2em;
      }

      &:last-child {
        border-right: 0;
        @media only screen and (max-width: 767px) {
          border-bottom: 0;
        }
      }
      @media only screen and (max-width: 767px) {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #e1e1e1;
        min-height: 0;
      }
    }
    p {
      margin: .25em 0;
    }
  }
  .subSection:not(:nth-child(2)) {
    //    margin: 0 0 15px 0;
    border-top: 1px solid #e1e1e1;
    padding: 15px 0;
    @media only screen and (max-width: 767px) {
      padding: 0;
    }
  }
  td.itemPSVTotal {
    font-size:18px;
    text-align: right;
    padding-right: 0;
  }
  h2 {
    margin: 15px 0;
  }
  #orderedProducts {
    td {
      width: 10%;
      background-size: 25px 25px !important;

      &.productThumb {
        position: relative;
        padding-right: 1rem;
        img.adr-logo {
          position: absolute;
          height: 25px;
          width: 25px;
          left: -30px;
          top: 24px;
        }
      }
    }
    td.itemQuantity, td.itemSubtotal, td.itemPSVSubtotal {
      padding-top: 1.4em;
      vertical-align: top;
    }
    td.productThumb.hideADRLogo {
      background:transparent !important;
    }
    .product-row {
      clear: both;
      margin: 10px 0;
      .no-padding {
        padding: 0;
        &.grid.small-1.columns {
          width: 8%;
          height: 25px;
        }
      }
      img.adr-logo {
        height: 25px;
        width: 25px;
      }
      .productSKU {
        float: left;
      }
      .small-6 {
        div {
          margin-top: 8px;
        }
      }
    }
    .backdating {
      clear: both;
    }
    .order-mssg {
      padding-top: 10px;
      clear: both;
    }
  }
  table.responsiveTable {
    margin-bottom: 20px;
    tr {
      margin: 0 0 15px 0;
      display: table;
      width: 100%;
      td {
        &:first-child {
          width: 21%;
          margin-bottom: 15px;
          @media only screen and (max-width: 767px) {
            margin-bottom: 46px;
          }
        }
        text-align: left;
        &.scan_card_number {
          width: 25%;
          margin-bottom: 15px;
          @media only screen and (max-width: 767px) {
            width: 100%
          }
        }
      }
    }
    #product_title {
      line-height: 22px;
      width: 40%;
      @media only screen and (max-width: 767px) {
        width: 76%;
      }
    }
    .productSKU {
      display: inline-block;
      float: left;
      text-align: left;
      color:#999;
    }
  }
  #processingDates {
    color: #999;
  }
  .reviewOrderDetails {
    max-width: 320px;
    width: 35%;
    page-break-inside:avoid;
    .order-information {
      display: flex;
      flex-direction: column;
      
      &> div  {
        display: flex;
      }
    }

    @media only screen and (max-width: 767px) {
      width: 65%;
    }
    td {
      padding: 3px 0;
      text-align: right;
    }
    .orderTotal {
      border-top: 1px solid #e1e1e1;
      padding: 0.5em 0;
      td {
        padding: 0.5em 0;
      }
    }
    tr {
      line-height: 2em;
    }
    td:nth-child(2) {
      width: 100px;
    }
    .orderTotal {
      border-top: 1px solid #e1e1e1;
      padding: 0.5em 0;
      td {
        padding: 0.5em 0;
      }
    }
    tr.orderTotal, tr.orderPSVTotal {
      font-size:18px;
    }
    tr {
      line-height: 2em;
    }
    td:nth-child(2) {
      width: 100px;
    }
  }
}
a.pweb-link.btn.btn-secondary {
  padding: 3px 15px;
  line-height: 2.1em;
  margin-left: 1px;
  @media screen and (max-width: 480px) {
    line-height: 3em;
    width: 100%;
  }
}
.checkoutElements {
  clear: both;
  p {
    text-align: left!important;
    padding-top: 30px;
    color: #999;
  }
}
.firstCol {
  float: left;
  width: 50%;
  clear: both;

  &.addressReadOnly {
    word-wrap: break-word;
  }
}

@media only screen and (max-width: 940px) {
  /* line 251, ../scss/_main.scss */
  #mainContent .checkoutSection fieldset.promo-table .tableContainer {
    width: 100%;
    /* display: inline-block; */
  }
  #mainContent .checkoutSection .promo-table .tableSaveControls {
    display: inline-block;
    float: left;
    padding-top: 10px;
    /* padding-right: 25px; */
    padding-bottom: 20px;
    padding-left: 10px;
    width: 100%;
  }

}

/******************* create timeout modal style ********************************/
.requestInProgress {
  max-width: 910px;
  margin: 25px;
  position: fixed;
  padding: 25px;
  //left: calc(50% - 300px);
  /*
  height: 400px;
  width: 600px;
  */
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  z-index: 1001;

  button.continue {
    float: right;
  }
}

/******************* ACCORDION STYLES BEGIN ************************************/

.accordion{
  width:300px;
  overflow:hidden;
  list-style:none;
  margin-bottom:10px;
  background:none repeat scroll 0 0 rgba(0, 0, 0, 0);
}
.accordion li{
  float:left;
  overflow:hidden;
  -moz-transition:width 0.2s ease-out;
  -webkit-transition:width 0.2s ease-out;
  -o-transition:width 0.2s ease-out;
  transition:width 0.2s ease-out;
  -moz-transition-delay:0.15s;
  -webkit-transition-delay:0.15s;
  -o-transition-delay:0.15s;
  transition-delay:0.15s;
}
.slide-01  { background:white; color:#333; }
.slide-02  { background:white; color:#333; }
.slide-03  { background:white; color:#333; }
.slide-04  { background:white; color:#333; }
#paymentSelection_order_1_vertical{
  height:300px;
  margin-top: 10px;
}
#paymentSelection_order_1_vertical li{
  float:none;
  height:10%;
  width:100%;
  -moz-transition:height 0.2s ease-out;
  -webkit-transition:height 0.2s ease-out;
  -o-transition:height 0.2s ease-out;
  transition:height 0.2s ease-out;
}
#paymentSelection_order_1_vertical:hover li{
  height:10%;
  width:100%;
}
#paymentSelection_order_1_vertical li:hover{
  height:60%;
  width:100%;
}
.accordion h3 {
  background-color: #EFEFEF;
  color: #363636;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  margin: 0 0 5px;
  padding: 5px;
}
.accordion p {padding:4px;}

/*------------------------------------*\
    VERTICAL
\*------------------------------------*/

.vertical{
  height: 350px;
}
.vertical li{
  float:none;
  height:25px;
  width:100%;
  -moz-transition:height 0.2s ease-out;
  -webkit-transition:height 0.2s ease-out;
  -o-transition:height 0.2s ease-out;
  transition:height 0.2s ease-out;
}
.vertical li:first-of-type{
  -moz-border-radius:10px 10px 0 0;
  -webkit-border-radius:10px 10px 0 0;
  -o-border-radius:10px 10px 0 0;
  border-radius:10px 10px 0 0;
}
.vertical li:last-of-type{
  -moz-border-radius:0 0 10px 10px;
  -webkit-border-radius:0 0 10px 10px;
  -o-border-radius:0 0 10px 10px;
  border-radius:0 0 10px 10px;
}
.vertical li:hover{
  height:60%;
  width:100%;
}
.vertical li, .vertical li p {
  font-size: 13px;
}

#firstAddressSection {
  h1 {
    width: 100%;
    a {
      float: right;
    }
  }
}
.credibancoLogo {
  clear: both;
  margin-left: -20px;
  img {
    height: 70px;
  }
}
table.responsiveTable#extraCCPaymentDetails {
  float:left;
  max-width:400px;

  tr{
    background: transparent;
  }
  tr.topSection {
    td {
      width: 100%;
      text-align: left;
    }
    img {
      height: 60px;
      margin-left: -20px;
    }
  }
  tr.midSection {
    border-top: 1px solid $ns-gray;
    .leftMid {
      width: 55%;
      text-align: left;
      .credito {
        margin-left: 15px;
      }
    }
    .rightMid {
      text-align: right;
    }
  }
  tr.bottomSection{
    border-top: 1px solid $ns-gray;
    td {
      width: 100%;
      text-align: left;
    }
  }
  div{
    margin-top: 5px;
  }
}

#checkout-edit-shipping, #checkout-edit-payment {
  #changeAddress, #shippingRatePopupLink, .changeBilling {
    font-size: 16px;
    margin-top: 1em;
    margin-bottom: 3em;
    display: block;
    color: $ns-blue;
  }
}

@media only screen and (max-width: 767px) {
  table.responsiveTable#extraCCPaymentDetails {
    tr td:first-child {
      margin-bottom: 0px;
    }
  }


    #shippingMethod label.simulateRequest {
      font-size:16px;
    }

    #shippingMethod input[type="radio"] {
      margin-top: 5px;
      transform: scale(1.5);
      -webkit-transform: scale(1.5);
    }
    #shippingMethod input {
        /****************************************************************************************************
         * In the order summary web page there's a parent style that has the following:
         * padding: 0 0 0 44px;
         *
         * This is throwing off the responsive layout of the Pickup Name and Pickup Number input text fields.
         * Rather then mess with that padding just counter it with a margin to the child elements.
         ***************************************************************************************************/
        margin: 0 0 0 11px;
    }

    #shippingMethod .radio-container {
      display: flex;
    }

    #shippingMethod label {
        padding-bottom: 1em;
        font-size:16px;
        margin-bottom: 0;
    }

    #mainContent .container #shippingRatePopupLink {
        font-size:14px;
        position:relative;
    }

    .checkoutSection h4 {
        padding:0;
        padding-bottom:0.25em;
        padding-left:0;
        font-size:13px;
        font-weight:bold;
        color:#424242;
    }

    #shippingMethod fieldset > div {
        border-bottom: thin dotted #E1E1D1;
        margin-bottom:0;
    }


    #shippingMethod span.ng-binding {
        margin-left: 9px;
    }
}
@media only screen and (max-width: 480px) {
  table.responsiveTable#extraCCPaymentDetails {
    tr.midSection {
      .rightMid {
        text-align: left;
      }
    }
  }
}
/******************* ACCORDION STYLES END ************************************/


#mainContent #giftReceiptToggle {
  span, input, label {
    display:inline-block;
  }
}

/******************* NEW STYLES FOR CHECKBOXES ON CHECKOUT PAGE **********************/

#termsConditionsCheckboxText,
#emailOptInLabel,
#giftReceiptToggle,
#tdcInstallmentsLabel,
#paymentAgreeLabel {
  position: relative;
}

#addPaymentForm {
  fieldset {
    input, label {
      display: block;
    }
  }
}
#termsFrame {
  table {
    float: none !important;
  }
}
.singleCheckbox {
  label {
    display: inline-block;
    position: relative;
  }
  input[type="checkbox"] {
    position: relative;
  }
}

.clear-both {
  clear: both;
}
.spinner-wrapper {
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, .4);
  overflow: hidden;
  z-index: 100;
}
.spinner-page-loading {
  background: #ffffff;
  position: fixed;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  height: 120px;
  width: 120px;
  border: 1px solid map-get($baseColors, londonfog);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  
  img {
    max-width: 100px;
    max-height: 100px;
  }
}

/***
 * Apply a media query for mobile views (tablets and phones) up to 769 pixels for checkboxes to scale up.
 * For laptops and desktop screens, just leave the checkbox alone. This is done so that the checkbox isn't
 * pixelated for wider screens and still looks good on mobile views.
 */
@media screen and (max-width: 769px) {
  input[type="checkbox"] {
    transform: scale(1.4) !important;
  }
}
