// ===================================================
// =====  STICKY-BAR CHOOSE PRODUCT
// ===================================================

// sticky bar choose product & complete
// common clases for pickup == return & special clases for pickup != return inside sandwitch-wrapper

.sticky-top {
  max-width: 100%;
  z-index: 25;
}
.separator {
  display: none;
}
.reservation-summary-sticky-wrapper {
  text-align: center;
  background-color: var(--sticky-bar-bg);
}
.reservation-summary-sticky {
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}
.reservation-summary_pickup_place {
  color: var(--sticky-bar-color);
  display: flex;
  width: 100%;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
  padding-left: 10px;
  padding-top: 10px;
  font-size: 0.8rem;
}
.reservation-summary_return_place {
  display: none;
}
.reservation-summary_pickup_date {
  color: var(--sticky-bar-color);
  display: flex;
  flex-wrap: nowrap;
  font-weight: 400;
  padding-left: 10px;
  padding-top: 10px;
  font-size: 1rem;
}
.reservation-summary_return_date {
  color: var(--sticky-bar-color);
  display: flex;
  flex-wrap: nowrap;
  font-weight: 400;
  justify-content: flex-end;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 1rem;
}
.overflow-ellipsis {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}
.modify-button-wrapper {
  border-top: 1px solid var(--gray-500);
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
}
.modify-button {
  height: 100%;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 300;
  text-transform: uppercase;
  background-color: transparent;
  color: var(--sticky-bar-link-color);
  &:hover {
    color: var(--sticky-bar-link-color-hover);
  }
}
// =============================
// ===   Pickup != return mobile
// =============================
.sandwitch-wrapper {
  display: flex;
  width: 100%;
  .reservation-summary_pickup_place {
    width: 65%;
  }
  .reservation-summary_return_place {
    color: var(--sticky-bar-color);
    display: flex;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    width: 65%;
    font-size: 0.8rem;
    padding-left: 10px;
    padding-top: 10px;
  }
  .reservation-summary_pickup_date {
    width: 40%;
    justify-content: flex-end;
    padding-right: 10px;
  }
  .reservation-summary_return_date {
    width: 40%;
  }
}

// Medium devices (tablets, 768px and up)
@media (min-width: 768px) {
  .modify-button {
    font-size: 1rem;
    margin-top: 5px;
  }
  .reservation-summary-sticky {
    justify-content: initial;
    padding-bottom: 10px;
  }
  .modify-button-wrapper {
    margin: 0 10px 0 2rem;
    padding: 0;
    width: 100px;
    border-top: none;
  }
  .push-to-the-right {
    margin-left: auto;
  }
  // old long arrow
  .separator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    padding: 0 1rem;
  }
  .reservation-summary_pickup_place,
  .reservation-summary_return_place {
    color: var(--sticky-bar-color);
    display: flex;
    width: fit-content;
    max-width: 23%;
    align-items: flex-end;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
  }
  .reservation-summary_return_place {
    justify-content: flex-end;
    margin-left: auto;
  }
  .reservation-summary_pickup_date {
    min-width: fit-content;
    width: auto;
    padding-top: 10px;
    padding-left: 10px;
    align-items: flex-end;
    justify-content: flex-start;
    font-size: 1rem;
  }
  .reservation-summary_return_date {
    min-width: fit-content;
    width: auto;
    padding-left: 10px;
    align-items: flex-end;
    justify-content: flex-end;
    font-size: 1rem;
  }
  // =============================================================
  // ===   Pickup != return Medium devices (tablets, 768px and up)
  // =============================================================
  .sandwitch-wrapper {
    width: 40%;
    .reservation-summary_pickup_place {
      width: 60%;
      max-width: fit-content;
    }
    .reservation-summary_return_place {
      padding-left: 10px;
      width: 60%;
      max-width: fit-content;
      font-size: 1rem;
    }
    .reservation-summary_pickup_date {
      width: auto; // reset width

      flex-wrap: nowrap;
    }
    .reservation-summary_return_date {
      width: auto; // reset width

      text-align: left;
      flex-wrap: nowrap;
    }
  }
}
// Large devices (desktops, 992px and up)
@media (min-width: 992px) {
  .reservation-summary_pickup_place,
  .reservation-summary_return_place {
    width: fit-content;
    max-width: 28%;
  }
}

// ======================
// STICKY-BAR COMPLETE
// =======================

.complete-summary-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 10px;
  align-items: center;
  margin-top: 10px;
  // background-color: rgba( 0,0,0,0.2 );
}

.complete-summary-price-wrapper {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1rem;
  line-height: 0.8;
}

.complete-summary-total-title {
  display: none;
}

.complete-summary-total-price {
  color: var(--sticky-bar-price-color);
  font-size: 1.3rem;
  font-weight: 900;
}

.complete-buttons-wrapper {
  display: flex;
}

.complete-button {
  display: flex;
  font-size: 0.8rem;
  align-self: flex-end;
  align-items: center;
  font-weight: 300;
  background-color: transparent;
  color: var(--sticky-bar-link-color);
  &:hover {
    color: var(--sticky-bar-link-color-hover);
  }
}

.complete-button .dashicons {
  margin-right: 5px!important;
}


// Medium devices (tablets, 768px and up)
@media (min-width: 768px) {
  .complete-sticky {
    .sandwitch-wrapper {
      width: 45%;
    }
  }
  .complete-summary-total-title {
    display: flex;
    color: white;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    line-height: 1;
    margin-right: 1rem;
  }
  .complete-summary-row {
    border-top: none;
    padding: 10px 0 0 10px;
    margin-top: 0;
    // background-color: var(--brand-primary);
  }
  .complete-button {
    border-left: none;
    height: auto;
    font-size: 1rem;
  }
  .complete-button:nth-child(2n) {
    padding-right: 10px;
  }
}
