@font-face {
  font-family: 'autoship';
  src:  url('../fonts/icomoon.eot?644i3q');
  src:  url('../fonts/icomoon.eot?644i3q#iefix') format('embedded-opentype'),
    url('../fonts/icomoon.ttf?644i3q') format('truetype'),
    url('../fonts/icomoon.woff?644i3q') format('woff'),
    url('../fonts/icomoon.svg?644i3q#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="autoship-iconfont"], [class*=" autoship-iconfont"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'autoship' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.autoship-icon-cloud-clock:before {
  content: "\e900";
}
.autoship-icon-cloud-error:before {
  content: "\e901";
}
.autoship-icon-cloud-off:before {
  content: "\e902";
}
.autoship-icon-cloud-queue:before {
  content: "\e903";
}
.autoship-icon-schedule-unknown:before {
  content: "\e904";
}
.autoship-icon-scheduled-order:before {
  content: "\e905";
}
.autoship-icon-scheduled-orders:before {
  content: "\e906";
}
.autoship-icon-scheduled-orders-error:before {
  content: "\e907";
}

.autoship_update_all_orders {

  padding: 4px;
  margin-right: 2px;
  border-radius: 2px;

  border:1px solid;
  background-color: #fff;

  &:before{
    content: "\27F3";
    font-size: 14px;
    font-style: normal;
  }

}

.autoship-widget-iframe {
  border: none;
  width: 100%;
  height: 100%;
}

.autoship-scheduled-orders-iframe {
  border: none;
  width: 100%;
  height: 100%;
}

#autoship-select-frequency-dialog, #autoship-select-next-occurrence-dialog {
  display: none;
  position: fixed;
  top: 100px;
  right: 100px;
  height:400px;
  width: 400px;
  background: white;
  border: 1px solid black;
  z-index: 10000;
}

#autoship-customer-bot {
  position: relative;
  height: 350px;
  width: 100%;
  border: 1px solid gray;
}

.autoship-schedule-cart {
  position: relative;
  width: 100%;

  .frequency-title {
    white-space: nowrap;

    h3 {
      width: 60%;
      display: inline-block;
      margin-right: 0;
      margin-left: 0;
      white-space: normal;
    }

    .next-occurrence {
      width: 40%;
      display: inline-block;
      margin-right: 0;
      margin-left: 0;
      white-space: normal;
    }
  }

  table.autoship-schedule-cart-items {
    border: none;

    td {
      border: none;
    }
  }

  .autoship-schedule-cart-item {
    margin-top: 5px;
    margin-bottom: 5px;

    img {
      width: 25px;
    }
  }
}

.autoship-schedule-options {
  margin: 20px 0;

  .frequency-type-label {
    font-weight: bold;
  }

  .autoship-old-price {
    color: grey;
    text-decoration: line-through;
    font-style: italic;
  }

  .autoship-discounted-price {
    color: red;
  }

  select {
    display: inline;
  }

  select.autoship-frequency-select {
    .current-frequency {
      font-weight: bold;
    }
  }

  .loading {
    display: none;
  }

  .autoship-frequency {
    display: none;
  }

  .autoship-frequency.active {
    display: block;
  }

}

.autoship-schedule-options.hidden {
  display: none;
}

.autoship-schedule-options.loading {
  > * {
    display: none;
  }
  .loading {
    display: block;
  }
}


/* Scheduled Order(s) Template
============================== */

.autoship-button {

  margin-right: 2px;
  border-radius: 2px;

  border:1px solid #eee;
  background-color: #fff;
  color: #000;

  width: 30px;
  height: 30px;
  font-size: 15px;
  line-height: 30px;

  -webkit-transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
  -omstransition: all .3s ease-in-out;
  transition: all .3s ease-in-out;

  &:hover,
  &:focus,
  &:active {
    border:1px solid #000;
    background-color: #000;
    color: #fff;
  }

  &.deleted {
    opacity: .5;
  }

}

.autoship-icon-button {

  font-family: dashicons;
  display: inline-block;
  width: 30px;
  height: 30px;
  font-size: 15px;
  line-height: 30px;
  text-decoration: none !important;
  font-weight: 400;
  font-style: normal;
  vertical-align: top;
  text-align: center;
  transition: color .1s ease-in 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;

  &.paused::after {
    content: "\f523";
  }
  &.active::after {
    content: "\f522"
  }
  &.edit::after {
    content: "\f464";
  }
  &.failed::after {
    content: "\f534";
  }
  &.deleted::after {
    content: "\f182";
  }
  &.pending::after {
    content: "\f469";
  }
  &.view::after {
    content: "\f177";
  }

}

.autoship-scheduled-orders-header-actions {
  display: flex;
  justify-content: flex-end;
}

.woocommerce table.shop_table.autoship-scheduled-orders-table tbody tr.Active.order-locked .status-icon::after {
  font-family: dashicons;
  display: inline-block;
  width: 30px;
  height: 20px;
  font-size: 15px;
  line-height: 20px;
  content: "\f160";
  vertical-align: middle;
}

.autoship-notice-row,
.autoship-notice-block {

  .autoship-order-notice {

    padding: 10px !important;

    p {
      position: relative;
      margin: 0px;
      padding: 1em 1.618em;
      border-radius: 5px;
      font-size: 12px;
      border: 2px solid red;
      color: red;
      text-align: left;
    }

    &.action-notice p {
      border: 2px solid rgba(61, 156, 210, 1);
      color: rgba(61, 156, 210, 1);
    }


  }

}

.woocommerce table.shop_table.autoship-scheduled-orders-table tbody tr.autoship-notice-row {
  border-top: 0px;

  td:nth-child(1) {

    border-top:0px;

    p {
      font-size: 12px;
    }

  }

}

.autoship-scheduled-order-template {
  * {
    box-sizing: border-box;
  }
  form,
  .autoship-scheduled-order-view-template {
    display: inline-block;
    width:100%;
  }

  h2 {
    font-size: 30px;
  }
  h3 {
    font-size: 25px;
    position: relative;
  }

  .activate-action,
  .deactivate-action,
  .autoship-action-link,
  .autoship-action-btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid;
    border-radius: 5px;

    &.small-autoship-action {
      padding: 3px 6px;
      font-size: 10px;
      margin-left: 5px;
      text-transform: uppercase;
    }
    &.slim-autoship-action {
      padding: 0px;
      border: none;
    }

  }
  .autoship-action-btn {
    &.deleted {
      opacity: .5;
    }
  }

  .action-info {
    display: inline-block;
    margin-bottom: 20px;
    width:100%;
  }

  .payment-method-name {
    font-style: normal;
    margin-bottom: 0;
    border: 1px solid rgba(0,0,0,.1);
    text-align: left;
    width: 100%;
    border-radius: 5px;
    padding: 6px 12px;
  }
  .product-name .autoship-item-notice {
    font-style: italic;
    max-width: 277px;
    margin-top: 8px;
    opacity: 0.75;
  }

  form.processing {
    .autoship-scheduled-order-items-table {
      .scheduled_order_item {
        opacity: .6;
      }
    }
    .scheduled-order-add-ons-placeholder {
      td.auto_loader {
        position: relative;
      }
      td.auto_loader > span::after{
        height: 1em;
        width: 1em;
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -.5em;
        margin-top: -.5em;
        content: '';
        -webkit-animation: spin 1s ease-in-out infinite;
        animation: spin 1s ease-in-out infinite;
        background: url(../images/loader.svg) center center;
        background-size: cover;
        line-height: 1;
        text-align: center;
        font-size: 2em;
        color: rgba(0,0,0,.75);
      }
    }
  }
  .autoship-scheduled-order-items-table {

    .scheduled-order-add-ons-msg {
      display: none;
      text-align: center;
    }
    .scheduled-order-add-ons-placeholder {
        display: none;

        td {
          border-top: 1px dashed !important;
          border-bottom: 1px dashed !important;
        }
        td:first-of-type {
          border-left: 1px dashed !important;
        }
        td:last-of-type {
          border-right: 1px dashed !important;
        }
        img {
          width: 100px!important;
          height: auto!important;
        }
    }

    .scheduled-order-add-ons {

      select,
      input {
        height: 40px;
        line-height: 40px;
        border: 1px solid #ebebeb;
        color: #686868;
        box-sizing: border-box;
        font-size: 14px;
        font-weight: 400;
        padding-left:12px;
        min-width: 100%;
        width: 100%;
      }
      .add-on-action {

        text-align: center;

        a {
          height: 40px;
          width: 40px;
          font-weight: bold;
          line-height: 40px;
          display: inline-block;
        }

      }
    }
    .scheduled-order-coupons {

      ul {
        list-style: none;
        padding:0;
        margin:0;
      }

      li {

        display: inline-block;
        padding: 5px 10px;
        border: 1px solid #eee;
        border-radius: 2px;
        margin: 5px;
        margin-bottom: 5px;

        a {

          padding-right: 5px;
          font-weight: bold;

        }

        span {
          font-weight: bold;
        }

        &:hover,
        &:focus,
        &:active {
          border: 1px solid;
        }

      }

    }

    tr.outofstock td:not(.product-remove){
      opacity: .5;
    }

    td.product-remove {
      text-align: center;
    }
    td.product-remove > * {
      margin: 0 auto;
    }
    tr.outofstock td.product-name >:not(.autoship-item-notice)  {
      text-decoration: line-through;
    }
    tr .autoship-item-notice{
      display: block;
    }

  }


  .autoship-scheduled-order-summary,
  .autoship-scheduled-order-payment-method-summary {

    margin: .85em 0;

    h3 {
      font-size: 1.5em;
    }

    p {
      font-size: 1.2em;
      margin: 0;
    }

    mark {
      font-weight: 600;
    }

  }

  .autoship-address-summary {
    .autoship-address-summary-subnote {
      font-size: 12px;
      opacity: .75;
      font-style: italic;
    }
  }
  .autoship-order-details-summary-form,
  .autoship-order-payment-details-summary-form {

    border:1px solid #eee;
    padding:20px;

    > div {
      display: inline-block;
      margin: .85em;
    }

    label {
      margin-right: 6px;
    }
    select,
    input {
      height: 40px;
      line-height: 40px;
      border: 1px solid #ebebeb;
      color: #686868;
      box-sizing: border-box;
      font-size: 14px;
      font-weight: 400;
      padding-left:12px;
      min-width: 100%;
    }
    button {
      width:100%;
    }

  }

  .autoship-edit-scheduled-order-schedule-form,
  .autoship-edit-scheduled-order-payment-form,
  .autoship-edit-scheduled-order-shipping-address-form {
    display: none;
  }

  .activated.autoship-edit-scheduled-order-schedule-form,
  .activated.autoship-edit-scheduled-order-payment-form,
  .activated.autoship-edit-scheduled-order-shipping-address-form {
    display: inline-block;
  }

  .autoship-scheduled-order-view-template,
  .autoship-scheduled-order-edit-form {
    .no-items-notice {
      display: none;
    }
  }

  .autoship-scheduled-order-view-template.empty-order,
  .autoship-scheduled-order-edit-form.empty-order {

    margin:50px 0px;

    .autoship-order-totals-section,
    .autoship-update-action {

      display: none;

      &.no-items {
        display: table-cell;
      }

    }

    .no-items-notice {
      display: block;
      text-align: center;
      padding:20px;
      border: 1px solid #eee;
    }

  }

  .autoship-edit-scheduled-order-shipping-address-form {
    .autoship-order-details-summary-form > div:first-of-type {
      width:100%;
    }
  }

}

.autoship-error-template {

  padding: 20px;
  border: 1px solid red;

  &.no-error {
    display: none;
  }

  h2 {
    font-size: 33px;
  }
  h3 {
    font-size:23px;
  }
  h3 > span {
    display: inline-block;
  }
  h3 > span:after {
    color:red;
    content: "\f534";
    font-family: dashicons;
    display: inline-block;
    position: absolute;
    width: 40px;
    font-size: 26px;
    text-decoration: inherit;
    font-weight: 400;
    font-style: normal;
    vertical-align: top;
    text-align: center;
    transition: color .1s ease-in 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
  }

}

@media (min-width:768px){

  .autoship-scheduled-order-template {

    .autoship-order-details-summary-form,
    .autoship-order-payment-details-summary-form {

      > div {
        display: inline-block;
      }

      select,
      input {
        min-width:inherit;
      }
      button {
        width:inherit;
      }

    }

  }

}


/* My Account > Orders
============================== */
.woocommerce-MyAccount-orders {
  th.woocommerce-orders-table__header-order-autoship-icon {
    > span{
      display: inline-block;
      width: 100%;
      text-align: center;
       &::after {
        content: url(../images/scheduled_order.svg);
        width: 100%;
      }
    }
  }
  td.woocommerce-orders-table__cell-order-autoship-icon {
    .order-origin-icon {
      display: inline-flex;
      line-height: 1;
      border-radius: 4px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      margin: 0;
      cursor: inherit !important;
      white-space: nowrap;
      max-width: 100%;
      background: transparent;
      color: #0073aa;
      padding: 9px;
      font-weight: bold;

      &.created > span::after {
        content: url(../images/scheduled_order.svg);
        width: 100%;
      }
      &.scheduled > span::after {
        content: url(../images/scheduled_orders.svg);
        width: 100%;
      }
    }
  }
}

/**
 * tiptip-jquery-plugin
 */
#tiptip_holder {
	display: none;
	z-index: 8675309;
	position: absolute;
	top: 0;

	/*rtl:ignore*/
	left: 0;

	&.tip_top {
		padding-bottom: 5px;

		#tiptip_arrow_inner {
			margin-top: -7px;
			margin-left: -6px;
			border-top-color: #333;
		}
	}

	&.tip_bottom {
		padding-top: 5px;

		#tiptip_arrow_inner {
			margin-top: -5px;
			margin-left: -6px;
			border-bottom-color: #333;
		}
	}

	&.tip_right {
		padding-left: 5px;

		#tiptip_arrow_inner {
			margin-top: -6px;
			margin-left: -5px;
			border-right-color: #333;
		}
	}

	&.tip_left {
		padding-right: 5px;

		#tiptip_arrow_inner {
			margin-top: -6px;
			margin-left: -7px;
			border-left-color: #333;
		}
	}
}
#tiptip_content {
	color: #fff;
	font-size: 0.8em;
	background: #333;
	text-align: center;
	border-radius: 3px;
	padding: 0.618em 1em;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);

	code {
		padding: 1px;
		background: #888;
	}

  &::not( .autoship-toolip-content ){
  	max-width: 230px;
  }
}

#tiptip_arrow,
#tiptip_arrow_inner {
	position: absolute;
	border-color: transparent;
	border-style: solid;
	border-width: 6px;
	height: 0;
	width: 0;
}


// Simple Modal
body.autoship-modal-open {
  overflow: hidden;
}
.autoship-modal {

  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 99998; /* Sit on top of all but admin bar*/
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */

  &.open {
    display: block;
  }

  &.small {
    .autoship-modal-content {
      max-width: 300px;
    }
  }

  &.medium {
    .autoship-modal-content {
      max-width: 500px;
    }
  }

  &.large {
    .autoship-modal-content {
      max-width: 800px;
    }
  }

  /* Modal Content/Box */
  .autoship-modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 25px;
    border: 1px solid #11a0d2;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    width: 80%; /* Could be more or less, depending on screen size */

    font-size: 14px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: autoshipmodalanimatetop;
            animation-name: autoshipmodalanimatetop;
    -webkit-animation-duration: 0.4s;
            animation-duration: 0.4s;
    h3 {
      font-weight: bold;
      font-size: 1.5em !important;
    }

  }

  &.customer-modal {
    .autoship-modal-content {
      border: 1px solid transparent;
    }
  }

  &.autoship-form-modal {
    .autoship-modal-content {
      max-width: 500px;
      width: calc( 100% - 20px );
      padding: 20px;
      @media(min-width: 500px){
        width: 80%;
        padding: 25px;
      }
    }
  }


  /* The Close Button */
  .close:not(.autoship-action-btn) {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;

    &:hover,
    &:focus {
      color: black;
      text-decoration: none;
      cursor: pointer;
    }

  }

  .autoship-update-action {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;

    @media( min-width: 375px ){
      flex-direction: row;
    }

    .refresh-rates-link {
      width: 100%;
    }

    .button{
      margin: 5px;
      width: 100%;
      font-size: 12px;

      @media( min-width: 375px ){
        width: auto;
        font-size: .97em;
      }

    }

  }

}
/* Autoship Modal Animation */
@-webkit-keyframes autoshipmodalanimatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}
@keyframes autoshipmodalanimatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

.autoship-info-link {
  padding-left: 5px;
}
.autoship-credits {
  margin-top:10px;
  font-size: 8px;
  text-align: right;
  letter-spacing: 1px;
}

#tiptip_content {
  .autoship-modal-content {
    > span.close {
      display: none;
    }
  }
}


.customer-modal.autoship-modal {

  .autoship-modal-content {
    position: relative;
    .autoship-modal-footer-content {
      position: absolute;
      bottom: -2px;
      right: 13px;
    }
  }

  .autoship-credits {
    font-size: 10px;
    img {
      width:30px;
    }
  }

  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    text-align: right;
    position: absolute;
    right: 6px;
    top: -2px;
    line-height: 28px;
  }

}

/** Upsell carousel */
.autoship-scheduled-order-upsell .autoship_upsell_product_wrap {
  display: flex;
  gap: 20px;
}

.autoship_upsell_product_wrap-left {
  display: flex;
  gap: 40px;
  flex-direction: column;
  flex-basis: 98px;
  min-width: 98px;
}

@media(min-width: 768px) {
  .autoship_upsell_product_wrap-left {
    flex-basis: 120px;
  }
}

.autoship_upsell_product_wrap-left img {
  max-height: 98px;
}

@media(min-width: 768px) {
  .autoship_upsell_product_wrap-left img {
    max-height: 120px;
  }
}

.autoship_upsell_product_wrap-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  white-space: normal;
}

.autoship_upsell_product_wrap-bottom {
  display: flex;
  gap: 20px;
  margin-top: auto;
  align-items: center;
  text-align: center;
}

.autoship_upsell_product_wrap-bottom .button {
  margin: 0;
  text-align: center;
  min-width: 95px;
}

@media(min-width: 768px) {
  .autoship_upsell_product_wrap-bottom .button {
    min-width: 100px;
  }
}

.autoship_upsell_product_wrap-right p {
  margin-bottom: 0;
}


.autoship_add_one_time_btn {
  font-size: 10px;
}

@media(min-width: 768px) {
  .autoship_add_one_time_btn {
    font-size: 14px;
  }
}

.autoship-scheduled-order-upsell h5 {
  margin-bottom: 35px;
  font-weight: normal;
}

.autoship_upsell_product_wrap a {
  text-decoration: none !important;
  color: inherit;
}

.autoship-scheduled-order-upsell:not(.flexslider) .upsells {
  overflow-x: auto;
  white-space: nowrap;
}

.autoship-scheduled-order-upsell ul {
  list-style: none;
}

.autoship-scheduled-order-upsell:not(.flexslider) ul.products li {
  display: inline-block;
  float: none !important;
  margin-bottom: 10px;
  max-width: 200px;
  margin-right: 8px;
}

@media(min-width: 768px) {
  .autoship-scheduled-order-upsell:not(.flexslider) ul.products li {
    max-width: 241px;
    margin-right: 20px;
  }
}

.autoship-scheduled-order-upsell.flexslider {
  position: relative;
}

.autoship-scheduled-order-upsell.flexslider ul.products li.product {
  clear: none !important;
  margin-bottom: 10px;
}

.autoship-scheduled-order-upsell.flexslider ul.products::before {
  content: none;
}

.autoship-scheduled-order-upsell.flexslider .upsells {
  margin: 0 0 60px;
  background: #fff;
  border: 0;
  position: relative;
  zoom: 1;
}
.autoship-scheduled-order-upsell.flexslider ul.products {
  zoom: 1;
}

.autoship-scheduled-order-upsell.flexslider ul.products:after {
  content: "\0020";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.autoship-scheduled-order-upsell.flexslider .flex-viewport {
  max-height: 2000px;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
.autoship-scheduled-order-upsell.flexslider .loading .flex-viewport {
  max-height: 300px;
}


@-moz-document url-prefix() {
  .autoship-scheduled-order-upsell.flexslider .loading .flex-viewport {
    max-height: none;
  }
}


.autoship-flex-direction-nav {
  display: flex;
  position: absolute;
  justify-content: space-between;
  width: calc(100% + 10px);
  z-index: 9999;
  top: 50%;
  transform: translateY(-50%);
}


.autoship-flex-direction-nav .custom-arrow {
  width: 29px;
  height: 29px;
}

.autoship-flex-direction-nav .flex-disabled {
  display: none;
}

.autoship-flex-direction-nav .flex-next {
  margin-left: auto;
}

.autoship-flex-direction-nav .flex-prev {
  margin-right: auto;
}


.autoship-scheduled-order-upsell.flexslider .flex-viewport { 
  display: flex; flex-direction: column; 
}
.autoship-scheduled-order-upsell  ul { 
  display: flex; 
}
.autoship-scheduled-order-upsell  ul > li { 
  display: flex !important; 
  flex-direction: column;
  gap: 30px;
}
