/* 漫步山嵐｜多房暫選後的操作導引。沿用現有訂房邏輯，不參與報價、庫存、付款。 */
/* 原站 #travelerOfficialLine 固定 bottom:20px、z-index:9000，高約 47px。
   將多房操作列放在 LINE 上方，兩個原有操作入口均不被遮住。
   留出 88px（包含 LINE 高度／底距／間隙）；不修改 LINE 本體。 */
#psbSelectedPanel { scroll-margin-top: 90px; }
.mist-selection-action-bar[hidden]{display:none!important}
.mist-selection-action-bar{
  position:fixed;z-index:80;bottom:calc(88px + env(safe-area-inset-bottom, 0px));right:max(16px,env(safe-area-inset-right));
  width:min(520px,calc(100vw - 32px));display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;border:1px solid #bbd4c4;border-radius:18px;
  background:rgba(255,255,255,.98);box-shadow:0 12px 42px rgba(12,48,29,.23);
  font-family:inherit;color:#17492f;
}
.mist-selection-action-info{min-width:0;display:flex;flex-direction:column;line-height:1.35}
.mist-selection-action-info strong{font-size:16px;font-weight:900}
.mist-selection-action-info span{font-size:12px;color:#52695c;font-weight:700}
.mist-selection-action-buttons{display:flex;gap:8px;flex-shrink:0}
.mist-selection-action-buttons button{min-height:44px;padding:9px 13px;border-radius:12px;font:inherit;font-weight:850;font-size:14px;cursor:pointer;white-space:nowrap}
.mist-selection-view{color:#17492f;background:#fff;border:1px solid #b1c9ba}
.mist-selection-next{color:#fff;background:#17492f;border:1px solid #17492f}
.mist-selection-action-buttons button:focus-visible{outline:3px solid #e9b94c;outline-offset:2px}
body.mist-has-selection-bar{padding-bottom:180px}
@media(max-width:600px){
  .mist-selection-action-bar{right:12px;left:12px;bottom:calc(88px + env(safe-area-inset-bottom, 0px));width:auto;max-width:none;gap:8px;
    border-radius:16px;padding:11px 12px 12px;
    box-shadow:0 -8px 26px rgba(12,48,29,.18)}
  .mist-selection-action-info{flex:1}
  .mist-selection-action-buttons{flex:1;justify-content:flex-end}
  .mist-selection-action-buttons button{padding:9px 10px;min-height:46px;font-size:13px}
  body.mist-has-selection-bar{padding-bottom:calc(193px + env(safe-area-inset-bottom, 0px))}
}
@media(max-width:360px){
  .mist-selection-action-bar{flex-wrap:wrap}
  .mist-selection-action-info{flex-basis:100%;flex-direction:row;justify-content:space-between;gap:6px}
  .mist-selection-action-buttons{flex-basis:100%;justify-content:stretch}
  .mist-selection-action-buttons button{flex:1}
  body.mist-has-selection-bar{padding-bottom:calc(242px + env(safe-area-inset-bottom, 0px))}
}

/* 原生 modal dialog：支援觸控、自動聚焦、Esc 與背景關閉，保留頁面目前捲動位置。 */
.mist-selected-dialog{box-sizing:border-box;width:min(520px,calc(100% - 24px));max-width:520px;
  max-height:min(80dvh,720px);margin:auto;padding:18px 18px 20px;border:1px solid #b9d3c1;
  border-radius:20px;background:#fff;color:#173f2b;box-shadow:0 24px 70px rgba(0,0,0,.25);overflow:auto}
.mist-selected-dialog::backdrop{background:rgba(0,25,11,.56)}
.mist-selected-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.mist-selected-dialog-head h2{margin:2px 0 8px;font-size:21px;line-height:1.3}
.mist-selected-dialog-kicker{color:#65786b;font-size:12px;font-weight:850}
.mist-selected-dialog-close{border:1px solid #d6e2d8;border-radius:50%;width:42px;height:42px;
  flex:0 0 42px;background:#fff;color:#17492f;font-size:23px;cursor:pointer}
.mist-selected-dialog-note{font-size:13px;line-height:1.5;margin:4px 0 14px;color:#5c6d62}
.mist-selected-dialog-list{display:flex;flex-direction:column;gap:9px;margin-bottom:12px}
.mist-selected-dialog-item{display:flex;justify-content:space-between;align-items:center;gap:12px;
  border:1px solid #dce8df;border-radius:13px;padding:11px;background:#f8fcf9}
.mist-selected-dialog-item-details{min-width:0;display:flex;flex-direction:column;gap:4px}
.mist-selected-dialog-item-details strong{font-size:15px;overflow-wrap:anywhere}
.mist-selected-dialog-item-details span{font-size:12px;color:#65746a;overflow-wrap:anywhere}
.mist-selected-dialog-remove{min-height:44px;min-width:58px;white-space:nowrap;cursor:pointer;
  border:1px solid #efd1d1;border-radius:10px;background:#fff4f4;color:#972b2b;font-weight:850}
.mist-selected-dialog-totals{display:flex;align-items:center;justify-content:space-between;gap:12px;
  border-top:1px solid #e0eae2;padding:13px 0}
.mist-selected-dialog-totals span{font-size:13px;color:#53675b}
.mist-selected-dialog-totals strong{font-size:18px;color:#17492f}
.mist-selected-dialog-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:10px}
.mist-selected-dialog-actions button{border-radius:12px;min-height:50px;padding:10px 12px;font:inherit;font-weight:900;cursor:pointer}
.mist-selected-dialog-secondary{border:1px solid #b9d4c0;background:#fff;color:#17492f}
.mist-selected-dialog-primary{border:1px solid #17492f;background:#17492f;color:#fff}
.mist-selected-dialog-clear{display:block;margin:10px auto 0;min-height:44px;padding:8px 14px;
  background:transparent;color:#a33232;border:0;text-decoration:underline;font:inherit;font-size:13px;cursor:pointer}
.mist-selected-dialog button:focus-visible{outline:3px solid #e9b94c;outline-offset:2px}
@media(max-width:600px){
  .mist-selected-dialog{width:100%;max-width:none;max-height:85dvh;margin:auto 0 0;
    padding:16px 16px calc(18px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}
  .mist-selection-action-bar{box-sizing:border-box}
}
@media(max-width:360px){
  .mist-selected-dialog-actions{grid-template-columns:1fr}
  .mist-selection-action-buttons{flex-basis:100%}
  .mist-selection-action-buttons button{flex:1}
}
