/* PM24 V381 — reliable compact dropdowns + mobile form containment. */
.pm24-v381-select-wrap{display:contents}
.pm24-v381-select-trigger,.pm24-v381-dropdown-menu{display:none}

@media (max-width:900px), (pointer:coarse){
  html,body{max-width:100%;overflow-x:hidden!important}
  *,*::before,*::after{box-sizing:border-box}

  .pm24-v381-select-wrap{position:relative;display:block;width:100%;max-width:100%;min-width:0}
  .pm24-v381-select-native{
    position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;
    min-width:1px!important;min-height:1px!important;margin:0!important;padding:0!important;border:0!important;
    opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;white-space:nowrap!important;
  }
  .pm24-v381-select-trigger{
    display:flex!important;align-items:center;justify-content:space-between;gap:10px;width:100%!important;
    max-width:100%!important;min-width:0!important;min-height:42px;margin:0!important;padding:10px 12px;
    border:1px solid #d5dfed;border-radius:12px;background:#fff;color:#17345e;font:inherit;font-size:14px;
    font-weight:700;line-height:1.25;text-align:left;cursor:pointer;-webkit-appearance:none;appearance:none;
    overflow:hidden;text-decoration:none;
  }
  .pm24-v381-select-trigger:focus-visible{outline:3px solid rgba(18,100,216,.2)!important;outline-offset:1px}
  .pm24-v381-select-trigger:disabled,.pm24-v381-select-trigger.is-disabled{
    cursor:not-allowed!important;background:#eef2f7!important;color:#7a899f!important;border-color:#dce3ed!important;
    box-shadow:none!important;-webkit-text-fill-color:#7a899f!important;
  }
  .pm24-v381-select-value{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
  .pm24-v381-select-trigger.is-placeholder .pm24-v381-select-value{opacity:.76}
  .pm24-v381-select-arrow{display:block;flex:0 0 auto;margin-left:auto;color:#56769e;font-size:12px;font-style:normal;line-height:1}

  .pm24-v381-dropdown-menu,
  .pm24-v381-dropdown-menu[popover]{
    display:block;position:fixed;inset:auto;margin:0;padding:5px;border:1px solid #cbd8e9;border-radius:12px;
    background:#fff;color:#17345e;box-shadow:0 14px 36px rgba(6,31,70,.24);overflow-x:hidden;overflow-y:auto;
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch;z-index:2147483647;
  }
  .pm24-v381-dropdown-menu::backdrop{display:none;background:transparent}
  .pm24-v381-dropdown-option{
    display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;max-width:100%;min-width:0;
    min-height:42px;margin:0;padding:9px 10px;border:0;border-radius:9px;background:#fff;color:#17345e;
    font:inherit;font-size:14px;font-weight:750;line-height:1.3;text-align:left;cursor:pointer;white-space:normal;
    overflow-wrap:anywhere;word-break:break-word;
  }
  .pm24-v381-dropdown-option+.pm24-v381-dropdown-option{margin-top:2px}
  .pm24-v381-dropdown-option>span{display:block;flex:1 1 auto;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
  .pm24-v381-dropdown-option>i{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:50%;font-size:12px;font-style:normal}
  .pm24-v381-dropdown-option:hover,.pm24-v381-dropdown-option:focus-visible{outline:0;background:#eef5ff;color:#0d52ad}
  .pm24-v381-dropdown-option.is-selected{background:#fff1f8;color:#b30c67}
  .pm24-v381-dropdown-option.is-selected>i{background:#ec168c;color:#fff}
  .pm24-v381-dropdown-option:disabled{opacity:.5;cursor:not-allowed}
  .pm24-v381-dropdown-empty{padding:12px;color:#6b7d96;font-size:14px;text-align:center}

  /* Retire the older modal/bottom-sheet select UIs on mobile. */
  .pm24-mobile-picker-overlay,.pm24-mobile-picker-sheet,.pm24-mobile-picker-trigger,
  .pm24-select-sheet,.pm24-select-trigger,
  .pm24-category-trigger,.pm24-category-sheet,
  .pm24-refund-mode-trigger,.pm24-refund-mode-sheet{display:none!important}
  body.pm24-mobile-picker-open,body.pm24-select-open,
  html.pm24-category-sheet-open,html.pm24-category-sheet-open body{overflow:auto!important}

  /* Every mobile form/card is contained inside its visible column. */
  .owner-app-content,.owner-page,.card,form,fieldset,label,
  .fd-dialog,.fd-dialog-head,.fd-checkin-form,.fd-form-grid,.fd-form-grid>*,.fd-room-locked-wrap,
  .v101-booking,.v101-form-wrap,.v101-form,.v101-form>*,.v101-category-control,
  .g-form,.g-form>*,.room-board-checkin-form,.room-board-checkin-form>*{
    min-width:0!important;max-width:100%!important;
  }
  input,select,textarea,button{max-width:100%}
  input:not([type="radio"]):not([type="checkbox"]),select,textarea,
  .fd-form-grid input,.fd-form-grid select,.fd-form-grid textarea,
  .v101-form input,.v101-form select,.v101-form textarea{
    width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  textarea{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
  textarea::placeholder{white-space:normal;overflow-wrap:anywhere;word-break:break-word}

  .fd-dialog{width:calc(100dvw - 16px)!important;max-width:calc(100dvw - 16px)!important;margin-inline:auto!important;overflow-x:hidden!important}
  .fd-dialog-head{width:100%;padding-left:14px!important;padding-right:14px!important}
  .fd-checkin-form{width:auto!important;margin-left:12px!important;margin-right:12px!important;padding-left:0!important;padding-right:0!important;overflow:visible!important}
  .fd-form-grid{width:100%!important;grid-template-columns:minmax(0,1fr)!important;overflow:visible!important}
  .fd-form-grid label.wide{grid-column:auto!important}
  .fd-room-locked,.fd-room-locked b,.fd-room-locked span{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
  .fd-dialog-actions{width:100%;min-width:0}
  .fd-dialog-actions .btn{width:100%;max-width:100%}
  .fd-optional-note{display:block!important;width:100%;max-width:100%;overflow:visible}
  .fd-optional-note>summary{display:list-item}
  .fd-optional-note textarea{display:block!important;width:100%!important;max-width:100%!important;min-height:82px!important}

  .v101-booking{width:100%!important;padding-left:8px!important;padding-right:8px!important;overflow-x:hidden!important}
  .v101-form-wrap{width:100%!important;margin-left:0!important;margin-right:0!important;padding:14px!important;overflow:hidden!important}
  .v101-form{width:100%!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .v101-wide{grid-column:auto!important}
  .v101-form>div,.v101-form>label{width:100%;min-width:0;max-width:100%;overflow:hidden}
  .v101-form>div>label{width:100%;min-width:0;max-width:100%}
  .v101-form label:has(>input[type="radio"]){display:flex!important;align-items:center;gap:10px;width:100%;min-width:0;padding-right:10px}
  .v101-form input[type="radio"],.v101-form input[type="checkbox"]{flex:0 0 auto;width:18px!important;min-width:18px!important;max-width:18px!important}
  .pm24-category-control>.v122-category-select,
  .pm24-refund-mode-control>select{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important}
  .v122-category-help,.pm24-category-control>small{display:block;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
  .v101-form textarea[name="rate_override_reason"]{min-height:92px!important;line-height:1.35}

  /* Prevent long values and helper text from creating horizontal scroll. */
  .fd-form-grid small,.v101-form small,.v101-form b,.v101-form span,.v101-form p,
  .pm24-category-control,.pm24-category-control *{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
}
