/**
 * @package     Plumrocket_ShippingTracking
 * @copyright   Copyright (c) 2018 Plumrocket Inc. (https://www.plumrocket.com)
 * @license     https://www.plumrocket.com/license/  End-user License Agreement
 */

/*         ShippingTracking Form         */
.form-shippingtracking_wrp{
  border: 1px solid #DDDDDD;
  border-radius: 5px;
  overflow: hidden;
}

.form-shippingtracking_title{
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #3E3E3E;
  margin: 0;
  padding: 10px 22px;
  border-bottom: 1px solid #DCDCDC;
  background: #F8F8F8;
  min-height: 76px;
  box-sizing: border-box;
}

.form-shippingtracking{
  padding: 22px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: #3E3E3E;

}

.fieldset.shippingtracking{
  margin: 0;
}

#shippingtracking-form .label{
  font-size: 13px;
  margin-bottom: 5px;
  color: #3E3E3E;
}

.form-shippingtracking .input-text{
  min-height: 40px;
  border: 1px solid #DDDDDD;
  border-radius: 2px;
}

.form-shippingtracking .actions-toolbar{
  margin-top: 25px;
}

.form-shippingtracking .shippingtracking.primary{
  min-width: 128px;
  min-height: 40px;
  background: #2C7BE5;
  transition: background-color .3s ease;
}

.form-shippingtracking .shippingtracking.primary:hover{
  background: #146be0;
}



/*  Order list  */
.shippingtracking-grid{
  display: grid;
  grid-gap: 20px;
  align-items: start;
}

.shippingtracking-subtitle{
  grid-column: 1/-1;
  margin: 0 0 10px 0;
  padding-bottom: 10px;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: #3E3E3E;
  border-bottom: 1px solid #DDDDDD;

}

.order-list_wrapper--free{
  padding: 22px;
  color: #3E3E3E;
  border: 1px solid #DDDDDD;
  border-radius: 5px;
  overflow: auto;
}

.order-list_item{
  border: 1px solid #DDDDDD;
  border-radius: 5px;
  margin-bottom: 20px;
  overflow: hidden;
}

.item-not-available{
  margin: 0;
  padding: 22px;
}

.order-list_item:last-of-type{
  margin: 0;
}

.order-item_head{
  padding: 10px 22px;
  border-bottom: 1px solid #DCDCDC;
  display: flex;
  gap: 15px;
  flex-direction: column;
  align-items: center;
  background: #F8F8F8;
  min-height: 76px;
  box-sizing: border-box;
  font-size: 16px;
  color: #3E3E3E;
  margin-bottom: 15px;
}

.order-item_head > .order-item_head-title{
  margin-bottom: 0;
}

.order-item_head-info{
  display: grid;
  justify-content: start;
  align-items: center;
  grid-gap: 40px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.order-item_head-info--4col{
  width: 100%;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #DFDFDF;
}

.order-item_head-section{
  display: flex;
  flex-direction: column;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: #464E5F;
  position: relative;
  margin: 0;
}

.order-item_head-section:not(:last-of-type):not(.order-item_status-bg):after{
  content: '';
  position: absolute;
  width: 1px;
  right: -20px;
  top: 0;
  bottom: 0;
  background: #E1E1E1;
}

.order-item_head-title{
  font-weight: 700;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #9C9C9C;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.order-item_head-title img{
  flex-shrink: 0;
  margin-right: 5px;
}

.order-item_status{
  display: flex;
  align-items: center;
  text-transform: capitalize;
  font-weight: 600;
}

.order-item_status--pending_payment{
  color: #767594;
}
.order-item_status--processing{
  color: #51B6A6;
}
.order-item_status--complete{
  color: #008A41;
}
.order-item_status--closed{
  color: #525252;
}
.order-item_status--canceled{
  color: #DF3120;
}
.order-item_status--holded{
  color: #26529D;
}
.order-item_status--payment_review{
  color: #E08E14;
}

.order-item_status-bg .order-item_status{
  padding: 3px 10px;
  border-radius: 3px;
}

.order-item_status--bg-pending_payment{
  background: #D8DCF0;
  color: #767594;
}
.order-item_status--bg-processing{
  background: #C5F0EB;
  color: #51B6A6;
}
.order-item_status--bg-complete{
  background: #CBF0C5;
  color: #008A41;
}
.order-item_status--bg-closed{
  background: #DCDCDC;
  color: #525252;
}
.order-item_status--bg-canceled{
  background: #F0C5C5;
  color: #DF3120;
}
.order-item_status--bg-holded{
  background: #C5DBF0;
  color: #26529D;
}
.order-item_status--bg-payment_review{
  background: #F3EEC1;
  color: #E08E14;
}

.order-item_status img{
  flex-shrink: 0;
  margin-right: 5px;
  display: block;
}

.order-item_track-wrapper{
  margin-left: auto;
  align-self: center;
}

.order-item_track-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  max-width: 100%;
  min-height: 34px;
  padding: 5px;
  border: 1px solid #DDDDDD;
  background: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  color: #59A1D9;
  box-sizing: border-box;
  text-decoration: none;
  transition: all .2s ease;
}

.order-item_track-btn:visited,
.order-item_track-btn:focus{
  color: #59A1D9;
}

.order-item_track-btn:hover{
  box-shadow: 0 0 5px #82c6ff;
  text-decoration: none;
}


.order-item_images-wrp{
  padding: 22px;
  display: grid;
  align-items: center;
  justify-content: start;
  grid-template-columns: repeat(auto-fit, 56px);
  grid-gap: 15px;
}

.order-item_image{
  border: 1px solid #DDDDDD;
  border-radius: 5px;
  overflow: hidden;
}

.order-item_image .product-image-container{
  display: block;
}

.pr-order-list tbody tr{
  border-bottom: 1px solid #e9ebee;
}

.pr-order-list td, .pr-order-list th{
  padding: 15px 10px;
}

.pr-order-list tr > th:first-child,
.pr-order-list tr > td:first-child{
  padding-left: 30px;
}

.pr-order-list tr > th:last-child,
.pr-order-list tr > td:last-child{
  padding-right: 30px;
  width: 50%;
}

.pr-track-info{
  padding: 25px 40px 25px 25px;
}

.track-info-grid{
  display: grid;
  padding: 15px 20px 15px 15px;
  font-weight: 400;
  font-size: 13px;
  color: #55636B;
  min-width: 600px;
}
.track-info-grid-col-2{
  grid-template-columns: 40px auto;
}
.track-info-grid-col-3{
  grid-template-columns: 40px repeat(2,auto);
}
.track-info-grid-col-4{
  grid-template-columns: 40px repeat(3,auto);
}
.track-info-grid-col-5{
  grid-template-columns: 40px repeat(4,auto);
}
.track-info-grid-col-6{
  grid-template-columns: 40px repeat(5,auto);
}

.track-item-title{
  font-weight: 600;
  font-size: 12px;
  color: #3E3E3E;
}

.pr-point{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  margin-left: -15px;
}

.pr-point .bubble{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #CBF0C5;
  box-sizing: border-box;
}

.pr-point.pr-point--first .bubble{
  background: #CBF0C5;
  width: 12px;
  height: 12px;
}

.pr-point:not(.pr-point--first) .bubble:before{
  content: '';
  position: absolute;
  top: 0;
  bottom: calc(50% + 10px);
  left: 50%;
  width: 3px;
  background: #CBF0C5;
  transform: translateX(-50%);
}

.pr-point.pr-point--last .bubble:before{
  bottom: calc(50% + 12px);
}

.pr-point:not(.pr-point--last) .bubble:after{
  content: '';
  position: absolute;
  bottom: 0;
  top: calc(50% + 10px);
  left: 50%;
  width: 3px;
  background: #CBF0C5;
  transform: translateX(-50%);
}

.pr-point.pr-point--first .bubble:after{
  top: calc(50% + 14px);
}

.track-item-col{
  padding: 15px 5px;
}

.track-item-col:not(.track-item-col__last){
  border-bottom: 1px solid #ECECEC;
}

.pr-accordion_wrapper{
  padding: 0 22px 22px;
  color: #3E3E3E;
}

.pr-shipp .page-title.pr-accordion_title{
  flex-wrap: wrap;
}

.pr-accordion_title{
  position: relative;
  cursor: pointer;
  padding: 10px 40px 10px 15px;
  background: #fff;
}


.pr-accordion_title-icon{
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 20px;
  transition: all .3s ease-in-out;
}

.pr-accordion_title[aria-expanded='true'] .pr-accordion_title-icon,
details[open] .pr-accordion_title .pr-accordion_title-icon{
  transform: translateY(-50%) rotate(-90deg);
}

.pr-accordion_body{
  border-top: 1px solid #DFDFDF;
}

.pr-accordion_body--padding{
  padding-left: 30px;
  padding-right: 30px;
}

.pr-accordion_body-content{
  background: #FFFFFF;
  border: 1px solid #DFDFDF;
  border-radius: 6px;
  margin: 15px;
  overflow: auto;
}

.pr-accordion_body p{
  margin: 0;
  font-weight: 600;
}

.pr-shipp-no-track-info{
  position: relative;
  background: #FFF0F0;
  padding: 10px 10px 10px 40px;
  margin: 15px -25px 0 0;
  display: flex;
  flex-basis: 100%;
  align-items: center;
  font-size: 13px;
  color: #55636B;
}

.pr-shipp-no-track-info:before{
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 20px;
  border-radius: 5px;
  background: url('../images/pr-warning.svg') no-repeat center;
}

.shippingtracking .primary {
  float: right;
}

.pr-shipp .page-title h1{
  margin-bottom: 0;
}

.pr-shipp .page-title h3{
  margin: 0;
}

.pr-accordion_item:not(:last-child){
  margin-bottom: 25px;
}

.pr-accordion_item{
  background: #F6F6F6;
  border: 1px solid #DCDCDC;
  border-radius: 5px;
  overflow: hidden;
}

.pr-shipp .page-title {
  display: flex;
  align-items: center;
}

.pr-shipp .page-title img {
  padding-right: 10px;
  height: 50px;
}

.pr-shipp .data-table thead {
  background-color: #f7f7f7;
}

.pr-track-form .field {
  max-width: 350px;
  margin-bottom: 10px;
}

.pr-track-form label {
  margin-bottom: 5px;
  display: inline-block;
}

.pr-track-form p.required {
  color: #f00;
  float: right;
  font-size: 12px;
}

.pr-track-form .required em {
  padding-right: 3px;
  color: #f00;
  font-size: 12px;
}

.pr-track-form .actions-toolbar .secondary {
  padding: 7px 15px 7px 0;
  vertical-align: middle;
  line-height: 1.2;
  float: left;
}

.pr-track-form .back-link small {
  vertical-align: top;
}

.pr-track-form .actions-toolbar .primary {
  float: right;
}
.pr-track-form .actions-toolbar::before,
.pr-track-form .actions-toolbar:after{
  clear: both;
  content: '';
  display: table;
}
.pr-track-form-wrapper{
  background:#f7f7f7;
  padding:12px;
}
.order.tracking td>a{
  font-size: 0;
  word-break: word-break;
}
.order.tracking td>a:before{
  content: 'View Details';
  display: inline;
  font-size: 14px;
}
.pr-shipp-table tr>td:nth-child(2),
.pr-shipp-table tr>td:nth-child(3){
  white-space: nowrap;
}

.pr-back_link{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  position: relative;
  transition: all .3s ease;
  padding: 5px 5px 5px 0;
}

.pr-back_link:hover{
  text-decoration: none;
}

.pr-back_link:hover:after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #006bb4;
}
.pr-back_link svg{
  margin-right: 5px;
  flex-shrink: 0;
  width: 15px;
}

@media (min-width: 480px){
  .order-item_head{
    flex-direction: row;
  }
}

@media (min-width: 768px){
  .pr-shipp .page-title h1{
    margin-bottom: 0;
  }

  .form-shippingtracking_wrp--guest{
    max-width: 430px;
  }

  .shippingtracking .control {
    max-width: 245px;
  }

  .shippingtracking-grid{
    grid-template-columns: 2.5fr 1.5fr;
  }

  .order-item_head-info--3col{
    grid-template-columns: repeat(3, auto);
  }

  .order-item_head-info--4col{
    grid-template-columns: repeat(4, auto);
  }
}

@media (min-width: 1024px){
  .pr-accordion_title{
    padding: 10px 400px 10px 15px;
  }

  .pr-shipp-no-track-info{
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 10px 10px 10px 40px;
    border-left: 1px solid #DCDCDC;
    margin: 0;
  }

  .track-info-grid{
    padding: 25px 40px 25px 25px;
  }

  .track-item-col{
    padding: 15px 5px;
  }
}

@media (max-width:767px){
  .pr-track-form p.required{
    font-size: 10px;
  }
  .pr-shipp .pr-shipp-table{
    font-size: 12px;
  }

  .order-item_head-info--4col{
    justify-content: space-between;
  }

  .order-item_head-info--3col,
  .order-item_head-info--4col{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }

  .order-item_head-info--4col .order-item_status-bg{
    flex-basis: 100%;
  }

  .order-item_head-info--3col .order-item_head-section:not(:last-of-type):not(.order-item_status-bg):after,
  .order-item_head-info--4col .order-item_head-section:not(:last-of-type):not(.order-item_status-bg):after{
    content: none;
  }

  .order-list_wrapper{
    overflow: auto;
  }
}
@media (max-width:450px){
  .pr-shipp .pr-shipp-table{
    font-size: 10px;
  }
  .pr-shipp .pr-shipp-table th,
  .pr-shipp .pr-shipp-table td{
    padding: 11px 3px;
  }
}
