//==============================================
// Module/Reservation details
//==============================================
// Reservation summary and details on Complete

@mixin product-detail-container-mixin() {
  display: grid;
  grid-template-columns: 1fr;
  /*grid-gap: 30px;*/
  padding: 30px;
  margin: 0 auto;
  align-content: center;
  line-height: 1;
  h5 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--product-detail-dates-titles);
  }
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1.4;
  }
}

// Product detail for complete
.mybooking-reservation_detail {
  background: var(--product-detail-bg-color);
  margin-top: 15px;
  border-radius: 10px 10px 0 0;
}

.mybooking-reservation_detail-container {
  @include product-detail-container-mixin();
}

.mybooking-reservation_product-item--multi {
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

// Reservation Summary
.mybooking-reservation_detail-content--multi {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.mybooking-reservation_product-image {
  max-width: 100%;
}

.mybooking-reservation_product-image--multi {
  width: 35%;
}

.mybooking-reservation_detail-info--multi {
  width: 65%;
}

.mybooking-reservation_product-name {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
  color: var(--product-detail-group-name);
}

.mybooking-reservation_product-name--multi {
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
  color: var(--product-detail-group-name);
}

.mybooking-reservation_detail-title {
  text-transform: uppercase;
  font-weight: 400!important;
  margin-top: 1.2rem;
  font-size: 1em;
}

.mybooking-reservation_product--multi {
  line-height: 1;
  font-weight: 900;
  margin-top: 1.2rem;
  font-size: 1.2em;
}

.mybooking-reservation_detail-date {
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 5px;
}

.mybooking-reservation_detail-duration {
  font-size: 1.4em;
  font-weight: 900;
  text-transform: uppercase;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  margin: 1rem 0 2rem 0;
}


// Reservation Details
.mybooking-detail_product-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mybooking-detail_product-item--multi {
  display: flex;
  justify-content: space-between;
  padding: .3rem 0;
  border-bottom: 1px solid #eee;
}

.mybooking-detail_product-price {
  display: flex;
  justify-content: flex-end;
  font-size: 1.3em;
  font-weight: 900;
  color: var(--brand-primary);
  min-width: 50%;
}

.mybooking-detail_product-price--multi {
  display: flex;
  justify-content: flex-end;
  font-size: 1em;
  font-weight: 900;
  color: var(--brand-primary);
  min-width: 50%;
}

.mybooking-detail_product-info {
  display: flex;
  justify-content: space-between;
  padding: .3rem 0;
}

.mybooking-detail_promotion-item {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin-bottom: 0.5rem;
}

// Detail Extras
.mybooking-detail_extra-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: .3rem 0;
  border-bottom: 1px solid #eee;
}

.mybooking-detail_extra-item:last-child {
  border: none;
}

.mybooking-detail_extra-name {
  font-size: 14px;
  text-transform: capitalize;
}

.mybooking-detail_extra-price {
  font-weight: 900;
  color: var(--brand-primary);
}

.mybooking-detail_total-box {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  color: var(--brand-primary);
  background-color: rgba(50, 110, 68, 0.2);
  border-radius: 0 0 10px 10px;
  font-size: 1.8em;
  font-weight: 900;
  box-shadow: 0 2px 0 rgba(0,0,0,.06);
}

// Deposit and Guaranty
.mybooking-detail_deposit-view {
  margin: 1rem 0 2rem 0;
}

.mybooking-detail_deposit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  margin: 0 1rem;
  color: #666;
  background-color: transparent;
  border-bottom: 1px solid #ddd;
  list-style: none;
  .mybooking-detail_deposit-name {
    font-weight: 400;
  }
  .mybooking-detail_deposit-price {
    font-weight: 400;
  }  
}

.mybooking-detail_deposit-item--multi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 14px;
  font-weight: 700;
  /*
  .mybooking-detail_deposit-name {
    width: 60%; 
  }
  */
}

.mybooking-detail_deposit-item:last-of-type {
  border: none;
  .mybooking-detail_deposit-name,
  .mybooking-detail_deposit-price {
    font-size: 1em;
    color: #333;
    font-weight: 900;
  }  
}


// Reservation Payment
label.mybooking-payment_option-item {
  display: block;
  padding: 1rem;
  font-size: 1em;
  font-weight: 900;
  text-transform: uppercase;
  color: white;
  cursor: pointer;
  background-color: var(--brand-primary);
  margin: 0;
  margin-top: 0.5rem;
}

label.mybooking-payment_option-item:hover {
  background-color: #333;
}

label.mybooking-payment_option-item input {
  width: 0;
  height: 0;
  display: none;
}


// Product detail inside list in summary
.product-detail_separator {
  i {
    color: var(--brand-primary);
    float: left;
    margin-top: 5px;
  }
}

// Product detail summary
.product-detail-summary-dates {
  background-color: var(--gray-50);
  margin-top: 30px;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  padding: 1rem;
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: auto;
  }
}
.product-detail-list-img-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}
.product-detail-list-img {
  max-width: 100%;
  object-fit: contain;
}
.list-group.resume-product-list {
  li.product-detail-list:first-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  }
}

// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) {
  .product-detail-image {
    max-width: 400px;
  }
}

// Large devices (desktops, 992px and up)
@media (min-width: 992px) {
  .product-detail-container,
  .product-detail-container-several-products {
    max-width: 960px;
  }
  .product-detail-separator {
    display: flex;
  }
}
@media (min-width: 1200px) {
  .product-detail-container,
  .product-detail-container-several-products {
    max-width: 1140px;
  }
}

// Small devices (landscape phones, less than 768px)
@media (max-width: 767.98px) {
  table.product-detail-table {
    border: 0;
  }

  table.product-detail-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  table.product-detail-table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: 0.625em;
  }

  table.product-detail-table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: 0.8em;
    text-align: right;
  }

  table.product-detail-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }

  table.product-detail-table td:last-child {
    border-bottom: 0;
  }
}
