/* R108_CCC_AAA_ROOM_PICKER_V54_1_ACTIVE
   Copied from the proven AAA Resort108 mobile room picker.
   Approved type scale from DDD V54.1: room name 15px, meta 13px; 14px/12px on narrow phones. */
.booking-room-mobile-trigger,
.booking-room-mobile-picker {
  display: none;
}

@media (max-width: 760px) {
  html body.khaokho-theme.ploysea-theme .booking-modal .booking-room-field select[data-room-select] {
    display: none !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-modal .booking-room-mobile-trigger {
    display: flex !important;
    width: 100% !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1.5px solid #b6c0cf !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #1f2937 !important;
    padding: 10px 36px 10px 12px !important;
    font-family: "Prompt", "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    position: relative !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-modal .booking-room-mobile-trigger::after {
    content: '⌄';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #4b5563;
  }

  html body.khaokho-theme.ploysea-theme .booking-modal .booking-room-mobile-trigger.is-placeholder {
    color: #6b7280 !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker[hidden] {
    display: none !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050 !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, .62) !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__panel {
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    top: 5vh !important;
    max-height: 90vh !important;
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.28) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 14px 10px !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__header strong {
    font-family: "Prompt", "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #111827 !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__close {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    border: 1px solid #d1d5db !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__list {
    overflow: auto !important;
    padding: 4px 0 10px !important;
    scrollbar-width: none !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__list::-webkit-scrollbar {
    display: none !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__item {
    width: 100% !important;
    border: 0 !important;
    border-top: 1px solid #edf2f7 !important;
    background: #fff !important;
    text-align: left !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    font-family: "Prompt", "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__item:first-child {
    border-top: 0 !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__item:disabled {
    opacity: .45 !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__item.is-active {
    background: #eff6ff !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__text {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__name {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #111827 !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__meta {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    color: #4b5563 !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__mark {
    flex: 0 0 auto !important;
    font-size: 19px !important;
    line-height: 1 !important;
    color: #2563eb !important;
  }

  html body.booking-room-picker-open {
    overflow: hidden !important;
  }
}

@media (max-width: 390px) {
  html body.khaokho-theme.ploysea-theme .booking-modal .booking-room-mobile-trigger {
    font-size: 10px !important;
    min-height: 42px !important;
    padding-left: 10px !important;
    padding-right: 34px !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__name {
    font-size: 14px !important;
  }

  html body.khaokho-theme.ploysea-theme .booking-room-mobile-picker__meta {
    font-size: 12px !important;
  }
}