/**
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License version 3.0
* that is bundled with this package in the file LICENSE.md
* It is also available through the world-wide-web at this URL:
* https://opensource.org/license/osl-3-0-php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to support@qloapps.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to a newer
* versions in the future. If you wish to customize this module for your needs
* please refer to https://store.webkul.com/customisation-guidelines for more information.
*
* @author Webkul IN
* @copyright Since 2010 Webkul
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
*/

.booking_occupancy_wrapper {
  background: #ffffff !important;
  border: 1px solid #ebdccf !important;
  border-radius: 12px !important;
  max-height: 440px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-shadow: 0 18px 45px rgba(25, 12, 5, 0.22) !important;
  padding: 18px 20px !important;
  min-width: 360px !important;
  box-sizing: border-box !important;
}

.booking_occupancy_wrapper *,
.booking_occupancy_wrapper *::before,
.booking_occupancy_wrapper *::after {
  box-sizing: border-box !important;
}

.booking_occupancy_wrapper .occupancy-info-separator {
  margin: 14px 0 !important;
  border-top: 1px solid #f0e6db !important;
  clear: both !important;
}

.booking_occupancy_wrapper .occupancy_info_head {
  font-size: 14px !important;
  color: #2c1a0e !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #f0e6db !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  clear: both !important;
}

.booking_occupancy_wrapper .occupancy_info_head .room_num_wrapper {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #2c1a0e !important;
}

.booking_occupancy_wrapper .occupancy_info_head .remove-room-link {
  font-size: 12px !important;
  color: #c53030 !important;
  text-align: right !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-left: auto !important;
}

.booking_occupancy_wrapper .occupancy_info_block {
  width: 100% !important;
}

.booking_occupancy_wrapper .occupancy_info_block > .row:not(.children_age_info_block) {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  margin: 0 -8px !important;
  padding: 0 !important;
  width: calc(100% + 16px) !important;
}

.booking_occupancy_wrapper .occupancy_count_block {
  flex: 1 1 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  padding: 0 8px !important;
  margin-bottom: 0 !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.booking_occupancy_wrapper .occupancy_count_block .row {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.booking_occupancy_wrapper .occupancy_count_block label {
  padding: 0 !important;
  margin: 0 0 6px 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #2c1a0e !important;
  display: block !important;
  text-align: left !important;
  width: 100% !important;
  line-height: 1.3 !important;
}

.booking_occupancy_wrapper .occupancy_count_block > div,
.booking_occupancy_wrapper .occupancy_count_block .col-sm-12,
.booking_occupancy_wrapper .occupancy_count_block .col-sm-12.clearfix {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.booking_occupancy_wrapper .occupancy_count {
  width: 48px !important;
  min-width: 48px !important;
  height: 40px !important;
  line-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 1.5px solid #ebdccf !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #2c1a0e !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
}

.booking_occupancy_wrapper .occupancy_count > span {
  display: inline-block !important;
  text-align: center !important;
  width: 100% !important;
  line-height: 38px !important;
}

.booking_occupancy_wrapper .qty_direction {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  margin-left: 6px !important;
  width: auto !important;
  float: none !important;
}

.booking_occupancy_wrapper .occupancy_quantity_up,
.booking_occupancy_wrapper .occupancy_quantity_down {
  background: #faf6ef !important;
  border: 1px solid #ebdccf !important;
  border-radius: 4px !important;
  color: #5c4738 !important;
  width: 22px !important;
  height: 18px !important;
  line-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 10px !important;
  transition: all 0.2s ease !important;
}

.booking_occupancy_wrapper .occupancy_quantity_up:hover,
.booking_occupancy_wrapper .occupancy_quantity_down:hover {
  background: #d4a359 !important;
  border-color: #d4a359 !important;
  color: #ffffff !important;
}

.booking_occupancy_wrapper .label-desc-txt {
  font-size: 11.5px !important;
  color: #826f61 !important;
  margin: 4px 0 0 0 !important;
  display: block !important;
  padding: 0 !important;
  white-space: nowrap !important;
  text-align: left !important;
  width: 100% !important;
}

/* ALL CHILDREN & CHILD AGES FULL-WIDTH STACKED LAYOUT (Fix for Image 1) */
.booking_occupancy_wrapper .children_age_info_block,
.booking_occupancy_wrapper .occupancy_info_block > .children_age_info_block {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  display: block !important;
  float: none !important;
  margin: 12px 0 0 0 !important;
  padding: 0 !important;
  clear: both !important;
}

.booking_occupancy_wrapper .children_age_info_block label,
.booking_occupancy_wrapper .children_age_info_block .col-sm-12 label {
  display: block !important;
  width: 100% !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #2c1a0e !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.booking_occupancy_wrapper .children_age_info_block .col-sm-12 {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: block !important;
}

.booking_occupancy_wrapper .children_ages {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.booking_occupancy_wrapper .children_ages > div {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.booking_occupancy_wrapper select.guest_child_age,
.booking_occupancy_wrapper .children_ages select {
  width: 100% !important;
  max-width: 100% !important;
  height: 38px !important;
  background: #faf6ef !important;
  border: 1.5px solid #ebdccf !important;
  border-radius: 6px !important;
  color: #2c1a0e !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  display: block !important;
  cursor: pointer !important;
  outline: none !important;
}

.booking_occupancy_wrapper .occupancy_block_actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 14px !important;
  margin-top: 12px !important;
  border-top: 1px solid #f0e6db !important;
}

.booking_occupancy_wrapper .add_new_occupancy_btn {
  color: #b5741b !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
}

.booking_occupancy_wrapper .add_new_occupancy_btn:hover {
  color: #8c521a !important;
}

.booking_occupancy_wrapper .submit_occupancy_btn,
.booking_occupancy_wrapper .btn-primary {
  background: linear-gradient(135deg, #d49a38 0%, #b5741b 50%, #8c521a 100%) !important;
  border: none !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 7px 22px !important;
  box-shadow: 0 4px 12px rgba(181, 116, 27, 0.3) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.booking_occupancy_wrapper .submit_occupancy_btn:hover,
.booking_occupancy_wrapper .btn-primary:hover {
  background: linear-gradient(135deg, #e0a747 0%, #c48226 50%, #9c5d20 100%) !important;
  box-shadow: 0 6px 16px rgba(181, 116, 27, 0.4) !important;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .booking_occupancy_wrapper {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 14px 12px !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }
}