@import "../../../styles/generic/variables";
@import url('https://fonts.googleapis.com/css?family=Open+Sans');

$open-sans: 'Open Sans';

#sfc-gp-cart {
  .checkout-page-container{
    text-align: left;
    font-family: $open-sans;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    letter-spacing: normal;

    #billingAddressForm label, #shippingAddressForm label{
      font-family: $open-sans;
      font-size: 12px;
      color: $label-color;
      line-height: 1.33;
      margin-bottom: 4px;
      display: inline-block;
    }
    #shippingAddressForm{
      margin-top: 34px;

      @media screen and (max-width: 1159px) and (min-width: 850px){
        margin-bottom: 57px;
      }
    }
    label[for=lastName], label[for=addressLine1], label[for=apartment], label[for=city], label[for=stateOrProvince],
    label[for=postalCode], label[for=city], label[for=country], label[for=phoneNumber], .label-ground-ship{
      @media screen and (max-width: 575px) {
        margin-top: 24px;
      }
    }
    .combo-code-form input {
      box-sizing: border-box;

      box-shadow: none;
      -webkit-appearance: none;
      display: block;
    }
    .combo-code-form select {
      box-shadow: none;
      -webkit-appearance: none;
    }


    .billing-address{
      margin-bottom: 27px;
      padding-left: 0;
    }
    .label-po-box{
      margin-bottom: 0;

      //@media screen and (min-width: 576px) {
      //  font-size: 11px !important;
      //}
      //
      //@media screen and (min-width: 850px) {
      //  font-size: 10px !important;
      //}
    }

    .checkout-page-row{
      margin-right: auto;
      margin-left: auto;
      display: flex;
      flex-wrap: wrap;

      @media screen and (min-width: 10px) {
        max-width: 272px;
      }
      @media screen and (min-width: 576px) {
        max-width: 560px;
      }
      @media screen and (min-width: 850px) {
        max-width: 832px;
      }
      @media screen and (min-width: 1160px) {
        max-width: 1128px;
      }
      .sfc-col-8{
        @media screen and (min-width: 10px) {
          //max-width: 272px;
        }
        @media screen and (min-width: 576px) {
          //max-width: 560px;
        }
        @media screen and (min-width: 850px) {
          width: 551px;
        }
        @media screen and (min-width: 1160px) {
          width: 744px;
        }
      }
    }

    .sfc-cc-left {
      @media screen and (min-width: 100px) {
        margin-right: 0;
      }
      @media screen and (min-width: 576px) {
        margin-right: 17px;
      }
      @media screen and (min-width: 850px) {
        margin-right: 23px;
      }
      @media screen and (min-width: 1160px) {
        margin-right: 24px;
      }
    }
    .sfc-row{
      display: flex;
      flex-wrap: wrap;
    }
    .sfc-row.input-row:nth-child(2), .sfc-row.input-row:nth-child(3), .sfc-row.input-row:nth-child(4), .sfc-row.input-row:nth-child(5){

      @media (min-width: 576px){
        margin-top: 32px;
      }
    }
    .form-area{
      @media (min-width: 576px){
        //width: 271px;
      }
      @media (min-width: 850px){
        margin-right: 17px;
      }
      @media (min-width: 1160px){
        margin-right: 24px;
      }

    }

    .form-control.apartment{
      width: 264px;
    }


    .billing-address label, .shipping-address label{
      font-size: 12px;
      font-weight: normal;
      font-style: normal;
      font-stretch: normal;
      line-height: 1.33;
      letter-spacing: normal;
      color: $label-color;
      margin-bottom: 4px;

    }
    .ship-label{
      display: inline-block;
      margin-left: 16px;
      font-size: 14px;
      font-weight: normal;
      font-style: normal;
      font-stretch: normal;
      line-height: 1.29;
      letter-spacing: normal;
      color: $input-text;
    }

    .checkbox-container {
      color: $input-text;
      display: block;
      position: relative;
      padding-left: 38px;
      margin-bottom: 12px;
      cursor: pointer;
      font-size: 14px;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;

      input{
        position: absolute;
        cursor: pointer;
        height: 16px;
        width: 16px;
        top: -1px;
        left: -1px;

        &:focus {
          box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1977d4;
          border-radius: 2px;
        }
      }

      &:hover{
        input ~ .check-mark {
          background-color: #ccc;
        }
      }

      input:checked ~ .check-mark {
        border: solid 2px $radio-checkbox;
        background-color: $radio-checkbox;
      }

      .check-mark {
        position: absolute;
        top: 0;
        left: 0;
        height: 20px;
        width: 20px;

        border-radius: 4px;
        background-color: #c7c7c7;
        transition: background 0.25s linear;
        -webkit-transition: background 0.25s linear;

        &:after{
          font-family: FontAwesome;
          content: '\f00c';
          font-weight: 100;
          position: absolute;
          display: none;

          color: white;
          font-size: 14px;
          line-height: 1.2;
          margin-left: 1px;

        }
      }

      input:checked ~ .check-mark {
        border: solid 2px $radio-checkbox;
        background-color: $radio-checkbox;
        transition: background 0.25s linear;
        -webkit-transition: background 0.25s linear;
        height: 16px;
        width: 16px;

      }

      input:checked ~ .check-mark:after {
        display: block;
        transition: background 0.25s linear;
        -webkit-transition: background 0.25s linear;
      }

    }

    .checkbox-container.ship-address{
      margin-bottom: 0;
    }

    .step-title {
      font-family: $open-sans, sans-serif;
      font-size: 20px;
      font-weight: 600;
      font-style: normal;
      font-stretch: normal;
      line-height: 1.4;
      letter-spacing: normal;
      color: $title-color;
      margin-top: 56px;
      margin-bottom: 34px;
    }
    .step-title.method{
      margin-bottom: 14px;
      margin-top: 57px;

      @media screen and (max-width: 1159px) and (min-width: 850px){
        margin-top: 0px;
      }
    }
    .step-title.payment{
      margin-bottom: 8px;
    }
    .form-control{
      height: 36px;
      border-radius: 4px;
      border: solid 1px $input-border;
      background-color: $white;
      margin-right: 0;
      font-family: $open-sans, sans-serif;
      font-size: 14px;
      font-weight: normal;
      font-style: normal;
      font-stretch: normal;
      line-height: 1.29;
      letter-spacing: normal;
      color: $input-text;
      margin-bottom: 0;

      &:focus{
        outline: 0;
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1977d4;
      }

      @media screen and (min-width: 100px) {
        width: 271px;
      }
      @media screen and (min-width: 576px) {
        width: 271px;
      }
      @media screen and (min-width: 850px) {
        width: 264px;
      }
      @media screen and (min-width: 1160px) {
        width: 360px;
      }
    }

    .selectdiv {
      position: relative;


      &:before{
        display: inline-block;
        position: absolute;
        top: 1px;
        right: 1px;
        height: 34px;
        content: "";
        background-color: white;
        border-radius: 0;
        pointer-events: none;
      }
      &:after{
        display: inline-block;
        position: absolute;
        top: 10px;
        right: 5px;
        height: 0;
        content: url(../../../icons/dropdown-open-sm.svg);
        pointer-events: none;
      }


      @media screen and (min-width: 100px) {
        //margin-right: 0;
      }
      @media screen and (min-width: 576px) {
        //margin-right: 17px;
      }
      @media screen and (min-width: 850px) {
        width: 118px;
      }
      @media screen and (min-width: 1160px) {
        width: 165px;
      }

    }


    .zip-code{
      @media screen and (min-width: 100px) {
        width: 128px;
      }
      @media screen and (min-width: 850px) {
        width: 121px;
      }
      @media screen and (min-width: 1160px) {
        width: 168px;
      }
    }
    .state{
      @media screen and (min-width: 100px) {
        width: 128px;
      }
      @media screen and (min-width: 850px) {
        width: 121px;
      }
      @media screen and (min-width: 1160px) {
        width: 168px;
      }

    }
    .sfc-cc-state{
      @media screen and (min-width: 100px) {
        margin-right: 16px;
      }
      @media screen and (min-width: 850px) {
        margin-right: 24px;
      }
    }
    .has-error{
      .form-control{
        border-color: #a94442;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
      }
      .help-block{
        font-size: 12px;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        line-height: 1.33;
        letter-spacing: normal;
        color: $error-text;
      }
    }
    .ship-method-bold{
      font-size: 14px;
      font-weight: 600;
      font-style: normal;
      font-stretch: normal;
      line-height: 1.5;
      letter-spacing: normal;
      color: $title-color;
    }
    .ship-method-text{
      font-size: 14px;
      font-weight: normal;
      font-style: normal;
      font-stretch: normal;
      line-height: normal;
      letter-spacing: normal;
      color: $shipping-text;
      margin-bottom: 10px;
    }
    .comments_preview_sample{
      .sfc-col-12{
        padding-right: 0;
        padding-left: 0;
      }
    }

    .radio-container {
      ul{
        list-style: none;
        margin: 0;
        padding: 0;
        overflow: hidden;
      }
      ul li{
        display: block;
        position: relative;
        width: 100%;
        height: 40px;
        margin-left: 5px;
      }

      ul li input[type=radio]{
        position: absolute;
        top: 12px;
        left: -4px;
        -webkit-appearance: none;


        &:focus{
          //box-shadow: 0 0 0 6px #fff, 0 0 0 8px #1977d4;
          //border-radius: 6px;

          width: 22px;
          height: 22px;

          border-radius: 50%;
          box-shadow: 0 0 0 2px #1977d4;
          outline: none;
        }

      }

      ul li label{
        display: block;
        position: relative;
        padding: 16px 0 0 25px;
        z-index: 9;
        cursor: pointer;
        -webkit-transition: all 0.25s linear;
      }

      ul li .check{
        display: block;
        position: absolute;
        border: 2px solid #c7c7c7;
        border-radius: 100%;
        height: 16px;
        width: 16px;
        top: 16px;
        z-index: 5;
        transition: border .25s linear;
        -webkit-transition: border .25s linear;


      }
      .check-focus{
        outline: 0;
        box-shadow: 0 0 0 1px #fff, 0 0 0 2px #1977d4;
      }


      ul li .check::before {
        display: block;
        position: absolute;
        content: '';
        border-radius: 100%;
        height: 12px;
        width: 12px;
        top: 2px;
        left: 2px;
        margin: auto;
        transition: background 0.25s linear;
        -webkit-transition: background 0.25s linear;
      }

      input[type=radio]:checked ~ .check {
        border: 2px solid $radio-checkbox;

      }

      input[type=radio]:checked ~ .check::before{
        background: $radio-checkbox;
      }

    }
    .radio-container.payment ul li {
      display: inline-block;
      position: relative;

      @media screen and(min-width: 576px){
        width: auto;
      }
    }
    .radio-container.payment ul li:nth-child(2){
      @media screen and(min-width: 576px){
        margin-left: 36px;
      }

    }
    .credit-card-label, .paypal-label{
      padding: 8px 0 0 25px !important;

    }
  }

}
