button {
  font-family: Lato;
}

button:focus {
  outline: 0;
}

button:disabled,
button[disabled] {
  background-color: #f5f5f5;
  color: #c4c4c4;
  font-weight: bold;
}

button:disabled:hover,
button[disabled]:hover {
  background-color: #f5f5f5 !important;
  color: #c4c4c4 !important;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 5px 0 rgba(0, 0, 0, 0.12);
  font-weight: bold;
}

.btn {
  position: relative;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  align-self: center;
  border: 0;
  outline: none !important;
  user-select: none;
  background-color: white;
}

.btn:active {
  transform: translateY(1px);
}

.btn-mini {
  font-size: 11px;
  padding: 5px;
}

.z-depth-1,
.btn,
.btn-floating {
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 5px 0 rgba(0, 0, 0, 0.12);
}

.z-depth-1-half,
.btn:hover,
.btn-floating:hover {
  box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.18), 0 4px 8px 0 rgba(0, 0, 0, 0.15);
}

.btn-default {
  color: #0F1111;
  background-color: #FFD814;
  font-weight: normal;
}

.btn-default:hover,
.btn-default:focus {
  background-color: #F7CA00 !important;
}

.btn-cart-back {
  color: #38414a;
  background-color: white;
  border: 1px solid #eee;
  margin-right: 10px;
}

.btn-red {
  color: #fff;
  background-color: #ee6e73;
}

.btn-blue {
  color: #fff;
  background-color: #3498db;
}

.btn-green {
  color: #fff;
  background-color: #26ae90;
}

.btn-green:hover,
.btn-green:focus {
  background-color: #229d80 !important;
  color: #fff !important;
}

.btn-red:hover,
.btn-red:focus {
  background-color: #ee6e73 !important;
  color: #fff !important;
}

.waves-effect {
  position: relative;
  cursor: pointer;
  display: inline-block;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  vertical-align: middle;
  z-index: 1;
  will-change: opacity, transform;
  -webkit-transition: all 0.03s ease-out;
  -moz-transition: all 0.03s ease-out;
  -o-transition: all 0.03s ease-out;
  -ms-transition: all 0.03s ease-out;
  transition: all 0.03s ease-out;
}

.waves-effect .waves-ripple {
  position: absolute;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.2);
  -webkit-transition: all 0.7s ease-out;
  -moz-transition: all 0.7s ease-out;
  -o-transition: all 0.7s ease-out;
  -ms-transition: all 0.7s ease-out;
  transition: all 0.7s ease-out;
  -webkit-transition-property: -webkit-transform, opacity;
  -moz-transition-property: -moz-transform, opacity;
  -o-transition-property: -o-transform, opacity;
  transition-property: transform, opacity;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
  pointer-events: none;
}

.waves-effect .waves-ripple {
  background-color: rgba(255, 255, 255, 0.45);
}

/* Firefox Bug: link not triggered */
a.waves-effect .waves-ripple {
  z-index: -1;
}

.plus {
  float: left;
  background-color: white;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  width: 27px;
  height: 27px;
  font-size: 22px;
  float: left;
  border: 1px solid #adadad;
}

.minus {
  background-color: white;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  width: 27px;
  height: 27px;
  font-size: 22px;
  float: left;
  border: 1px solid #adadad;
  border-top: 1px;
}

/* MATERIAL INPUT */

.mat-label {
  position: relative;
  font-size: 13px;
  color: #26ae90;
  left: 5px !important;
  top: -56px;
}

select::-ms-expand {
  display: none;
  /* hide the default arrow in ie10 and ie11 */
}

.select-style {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url(../img/icon/arrow.svg) no-repeat right;
  width: 100%;
  font-size: 17px;
  border: 0;
  border-bottom: 1px solid #c6c6c6;
  padding: 10px 12px;
}

.select-style:focus {
  outline: none;
}

/* UTILIZZATO NEI FORM DI USER E PAGAMENTO */
.input-style {
  height: 40px;
  font-size: 16px;
}

.input1 {
  float: left;
  width: 50px;
  height: 50px;
  border: solid 1px #adadad;
  border-right: 1px;
  font-size: 16px;
  text-align: center;
}

.input-login {
  height: 50px;
  width: 100%;
  border-top: none;
  border-left: none;
  border-right: none;
  outline: none;
  padding-left: 10px;
  font-size: 16px;
}

.input-login:focus {
  border-bottom: 2px solid #26ae90;
}

/* CSS LOADER SPIN START */
/* INCLUDI <div class="loader"></div> PER MOSTRARLO */

.loader {
  margin: auto;
  border: 7px solid #eee;
  /* Light grey */
  border-radius: 50%;
  width: 37px;
  height: 37px;
  animation: spin 1s linear infinite;
}

.loader-white {
  margin: auto;
  border: 7px solid #ffffff;
  /* Light grey */
  border-radius: 50%;
  width: 37px;
  height: 37px;
  animation: spin 1s linear infinite;
}

.loader_green {
  border-top: 7px solid #2bbbad;
}

.loader_red {
  border-top: 7px solid #ee6e73;
}

.loader_blue {
  border-top: 7px solid #38414a;
}

/* carrello  */

.loader_cart_container {
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
}

.loader_cart {
  border: 10px solid #ffffff;
  /* Light grey */
  border-radius: 50%;
  width: 79px;
  height: 79px;
  margin: auto;
  animation: spin 1s linear infinite;
  border-top: 10px solid #38414a;
}

/* carrello hover  */
.loader-cart-hover {
  margin: auto;
  border: 6px solid #ffffff;
  border-radius: 50%;
  height: 38px;
  width: 38px;
  animation: spin 1s linear infinite;
  border-top: 6px solid #38414a;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* CSS LOADER SPIN START */

/* INIZIO SWITCH */

.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 26px;
  margin: 0 10px;
}

/* Hide default HTML checkbox */

.switch input {
  display: none;
}

/* slider */

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border: 2px solid #26ae90;
}

/* Bottone */

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 12px;
  left: 3px;
  bottom: 2px;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border: 2px solid #26ae90;
  background-color: #26ae90;
}

input:checked+.slider {
  background-color: white;
  border: 2px solid #26ae90;
}

input:checked+.slider:before {
  background-color: #26ae90;
  border: 2px solid #26ae90;
  transform: translateX(19px);
}

/* Rounded sliders */

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* FINE SWITCH */

/* TOOLTIP */
.tooltip {
  display: inline-block;
  position: relative;
}

/* larghezza */
.tooltip-auto {
  white-space: nowrap;
}

.tooltip-small {
  width: 200px;
}

.tooltip-medium {
  width: 400px;
}

.tooltip-large {
  width: 600px;
}

.tooltip-show {
  display: inline-block !important;
}

/* posizione */
.tooltip-top,
.tooltip-top-qty,
.tooltip-top-qty-header,
.tooltip-left,
.tooltip-right,
.tooltip-bottom {
  display: none;
  position: absolute;
  background-color: #69696c;
  color: white;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
  z-index: 999;
}

/* diamo 10px di margine a tutti i tooltip */

.tooltip-top-qty {
  top: -5px;
  left: 50%;
  transform: translate(-50%, -130%);
  background-color: #ee6e73 !important;
}

.tooltip-top-qty-header {
  top: -2px;
  left: 50%;
  transform: translate(-50%, -130%);
  background-color: #ee6e73 !important;
}

.tooltip-top {
  left: 50%;
  transform: translate(-50%, -100%);
}

.tooltip-left {
  top: 50%;
  right: calc(100% + 10px);
  transform: translate(0, -50%);
}

.tooltip-right {
  top: 50%;
  left: calc(100% + 10px);
  transform: translate(0, -50%);
}

.tooltip-bottom {
  left: 50%;
  transform: translate(-50%, 100%);
}

.tooltip:hover>.tooltip-left {
  display: inline-block;
}

.tooltip:hover>.tooltip-top {
  display: inline-block;
}

.tooltip:hover>.tooltip-right {
  display: inline-block;
}

.tooltip:hover>.tooltip-bottom {
  display: inline-block;
}

.tooltip:hover>.tooltip-call {
  display: none;
}

/* FIME TOOLTIP */

/* QTY BTN */

#qty-div-container {
  display: grid;
  margin: auto;
}

.qty-div {
  display: flex;
  align-items: center;
  text-align: center;
  margin: auto;
}

.qty-num {
  display: inline-block;
  width: 27px;
}

.qty-btn {
  width: 38px;
  height: 34px;
  margin: 2px 0;
  background-color: white;
  border-radius: 5px;
  background-position: center;
  background-size: 12px;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* usato in carrello ajax nell'header */
.qty-btn-small {
  width: 30px;
  height: 30px;
  margin: 2px 0;
  background-color: white;
  border: 1px solid #dededede;
  border-radius: 5px;
  background-position: center;
  background-size: 10px;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* FINE QTY BTN */

.check-animated,
.cross-animated {
  display: block;
  width: 35px;
  margin: auto;
}

.path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
}

.path.circle {
  -webkit-animation: dash 1s ease-in-out;
  animation: dash 1s ease-in-out;
}

.path.line {
  stroke-dashoffset: 1000;
  -webkit-animation: dash 1s 0.5s ease-in-out forwards;
  animation: dash 1s 0.5s ease-in-out forwards;
}

.path.check {
  stroke-dashoffset: -100;
  -webkit-animation: dash-check 1.2s 0.5s ease-in-out forwards;
  animation: dash-check 1.2s 0.5s ease-in-out forwards;
}




/* FILTER BAR start */

#top-filter {
  display: grid;
  grid-template-columns: 1fr 200px;
}

#products-num-container {
  background-color: white;
  padding: 10px 25px 10px 15px;
}

/* FILTER BAR end */

/* select starting stylings ------------------------------*/
.select {
  font-family:
    'Roboto', 'Helvetica', 'Arial', sans-serif;
  position: relative;
  width: 100%;
}

.select-text {
  position: relative;
  font-family: inherit;
  background-color: white;
  width: 100%;
  padding: 10px 10px 10px 5px;
  font-size: 16px;
  border-radius: 0;
  border: none;
}

/* Remove focus */
.select-text:focus {
  outline: none;
}



/* LABEL ======================================= */
.select-label {
  color: rgba(0, 0, 0, 0.26);
  font-size: 15px !important;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 0;
  top: 10px;
  transition: 0.2s ease all;
}

/* active state */
.select-text:focus~.select-label,
.select-text:valid~.select-label {
  color: #26AE90;
  top: -20px;
  transition: 0.2s ease all;
  font-size: 14px;
}

/* BOTTOM BARS ================================= */
.select-bar {
  position: relative;
  display: block;
  width: 100%;
}

.select-bar:before,
.select-bar:after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: #26AE90;
  transition: 0.2s ease all;
}

.select-bar:before {
  left: 50%;
}

.select-bar:after {
  right: 50%;
}

/* active state */
.select-text:focus~.select-bar:before,
.select-text:focus~.select-bar:after {
  width: 50%;
}

/* HIGHLIGHTER ================================== */
.select-highlight {
  position: absolute;
  height: 60%;
  width: 100px;
  top: 25%;
  left: 0;
  pointer-events: none;
  opacity: 0.5;
}





/* This approximates the ease-in-out-bounce animation from easings.net, which would require a plug-in to use*/
@keyframes bounce {
  0% {
    transform: translateX(0px);
    timing-function: ease-in;
  }

  37% {
    transform: translateX(5px);
    timing-function: ease-out;
  }

  55% {
    transform: translateX(-5px);
    timing-function: ease-in;
  }

  73% {
    transform: translateX(4px);
    timing-function: ease-out;
  }

  82% {
    transform: translateX(-4px);
    timing-function: ease-in;
  }

  91% {
    transform: translateX(2px);
    timing-function: ease-out;
  }

  96% {
    transform: translateX(-2px);
    timing-function: ease-in;
  }

  100% {
    transform: translateX(0px);
    timing-function: ease-in;
  }
}

@-webkit-keyframes dash {
  0% {
    stroke-dashoffset: 1000;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes dash {
  0% {
    stroke-dashoffset: 1000;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@-webkit-keyframes dash-check {
  0% {
    stroke-dashoffset: -100;
  }

  100% {
    stroke-dashoffset: 900;
  }
}

@keyframes dash-check {
  0% {
    stroke-dashoffset: -100;
  }

  100% {
    stroke-dashoffset: 900;
  }
}

/* Toastify - Toast notifications centrate su mobile */
@media (max-width: 450px) {
  .toastify {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 90% !important;
    min-width: 200px !important;
    width: auto !important;
  }

  .toastify.on {
    left: 50% !important;
    transform: translateX(-50%) translateY(0) !important;
  }

  .toastify-right {
    right: auto !important;
    left: 50% !important;
  }

  .toastify-left {
    left: 50% !important;
    right: auto !important;
  }

  /* Fix per il layout del toast su mobile */
  .toastify-text {
    padding: 12px 40px 12px 16px !important;
    text-align: center !important;
  }

  .toast-close {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.8 !important;
  }
}