/* TripWeave 6.56 • Place feedback and accessible comment actions */
.tw-community{min-width:0}
.tw-community .tw-community-form{order:0;display:flex;flex-direction:column;margin:0 0 15px;padding:15px;background:#f6fafb;border:1px solid #dce8ed;border-radius:14px;gap:8px}
.tw-community .tw-community-form label{font-weight:700;color:#17344b;font-size:15px}
.tw-community .tw-community-form textarea{width:100%;min-height:123px;box-sizing:border-box;font-size:15px;line-height:1.55;border-radius:12px;background:#fff}
.tw-community .tw-community-online{order:2;border-top:1px solid #e3eaee;padding-top:14px}
.tw-community .tw-community-policy{order:1;margin:0 0 8px;font-size:12px}
.tw-community .tw-community-login-help{order:1}
.tw-community .tw-community-stats{padding-bottom:10px}
.tw-community .tw-comment-item{position:relative;padding:13px 0 15px;border-bottom:1px solid #e2eaf0;min-width:0}
.tw-community .tw-comment-header{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:38px}
.tw-community .tw-comment-byline{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;min-width:0}
.tw-community .tw-comment-byline b{font-size:14px;font-weight:750;color:#142a40;overflow-wrap:anywhere}
.tw-community .tw-comment-byline time{font-size:12px;color:#74889b;white-space:nowrap}
.tw-community .tw-comment-item .tw-comment-body{font-size:15px;color:#203a51;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 38px 3px 0}
.tw-community .tw-comment-menu{position:relative;flex:none}
.tw-community .tw-comment-menu>summary{list-style:none;cursor:pointer;width:44px;height:40px;display:grid;place-items:center;font-size:23px;line-height:1;font-weight:700;color:#536a7b;border:1px solid transparent;border-radius:10px;user-select:none}
.tw-community .tw-comment-menu>summary::-webkit-details-marker{display:none}
.tw-community .tw-comment-menu[open]>summary,.tw-community .tw-comment-menu>summary:hover{background:#edf5f7;border-color:#cbdce5}
.tw-community .tw-comment-menu-list{position:absolute;right:0;top:calc(100% + 4px);width:136px;z-index:35;border:1px solid #cfdae5;border-radius:12px;background:#fff;box-shadow:0 12px 25px #16314924;padding:5px;display:grid;gap:3px}
.tw-community .tw-comment-menu-list button{width:100%;text-align:left;border:0;background:transparent;border-radius:8px;font-size:14px;color:#1d3b54;text-decoration:none;min-height:42px;padding:8px 12px}
.tw-community .tw-comment-menu-list button:hover,.tw-community .tw-comment-menu-list button:focus-visible{background:#edf5f7}
.tw-community .tw-comment-edit{border-radius:12px;background:#f5fafc;padding:12px;margin-top:8px}
.tw-community .tw-comment-edit label{display:block;color:#304a5d;font-size:13px;font-weight:650}
.tw-community .tw-comment-edit textarea{box-sizing:border-box;width:100%;margin:6px 0;padding:11px 12px;border:1px solid #c6d7e4;border-radius:10px;font-size:15px;min-height:110px;line-height:1.55;color:#173047}
.tw-community .tw-comment-edit-actions{display:flex;justify-content:flex-end;gap:8px}
.tw-community .tw-comment-edit-actions button{min-width:85px;min-height:44px;border-radius:9px;padding:8px 12px;border:1px solid #cddbe5;background:#fff;color:#173047;font-size:14px;text-decoration:none;font-weight:700}
.tw-community .tw-comment-edit-actions button[type=submit]{background:#14283f;color:#fff}
.tw-reason-summary{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.tw-reason-summary span{border-radius:20px;background:#f1f6f8;padding:7px 10px;font-size:12px;color:#385c71}
.tw-reason-dialog{padding:0;border:0;border-radius:22px;width:min(94vw,470px);max-height:min(88dvh,680px);overflow:auto;box-shadow:0 25px 75px #10243854;background:#fff;color:#172d44}
.tw-reason-dialog::backdrop{background:#0b2034aa;backdrop-filter:blur(3px)}
.tw-reason-head{padding:24px 22px 14px}
.tw-reason-kicker{color:#188d86;font-size:12px;font-weight:750;letter-spacing:.05em}
.tw-reason-head h2{font-size:23px;line-height:1.3;margin:7px 0 8px;color:#132840}
.tw-reason-head p{font-size:14px;color:#657d91;line-height:1.55;margin:0}
.tw-reason-options{display:grid;gap:9px;padding:4px 22px 19px;grid-template-columns:minmax(0,1fr)}
.tw-reason-options label{display:flex;align-items:center;gap:11px;min-height:52px;padding:10px 13px;border:1px solid #dbe5eb;border-radius:12px;cursor:pointer;font-size:15px;color:#243b53;background:#fff}
.tw-reason-options label.is-selected{background:#edf9f5;border-color:#1ca79a;box-shadow:inset 0 0 0 1px #1ca79a}
.tw-reason-options input{width:19px;height:19px;accent-color:#128e84;flex:none}
.tw-reason-footer{border-top:1px solid #e7edf2;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;flex-wrap:wrap}
.tw-reason-count{color:#526a7f;font-size:13px}
.tw-reason-footer>div{display:flex;gap:9px;margin-left:auto}
.tw-reason-footer button{min-height:46px;padding:9px 18px;border:1px solid #d2e0e8;background:#fff;border-radius:11px;color:#254159;font-size:14px;font-weight:750;cursor:pointer}
.tw-reason-footer button.tw-reason-confirm{background:#13283e;border-color:#13283e;color:#fff}
.tw-reason-footer button:disabled{opacity:.4;cursor:not-allowed}
.tw-comment-menu>summary:focus-visible,.tw-reason-dialog button:focus-visible,.tw-reason-options input:focus-visible{outline:3px solid #11aaa3;outline-offset:2px}
@media(max-width:640px){.tw-community .tw-community-form{padding:12px}.tw-community .tw-comment-byline{gap:7px}.tw-community .tw-comment-byline b{font-size:14px}.tw-community .tw-comment-byline time{font-size:12px}.tw-community .tw-comment-item .tw-comment-body{font-size:15px}.tw-reason-dialog{width:calc(100vw - 24px);margin:auto}.tw-reason-options{padding:4px 14px 14px}.tw-reason-head{padding:22px 17px 14px}.tw-reason-footer{padding:14px 17px}}
/* Keep the primary completion action reachable on small Android viewports. */
.tw-community .tw-community-form label{text-align:left;align-self:stretch;width:100%;flex:none}
.tw-reason-dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:min(88dvh,690px)}
.tw-reason-head,.tw-reason-footer{flex-shrink:0}
.tw-reason-options{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain}
@media(max-height:700px){.tw-reason-head{padding-top:12px;padding-bottom:8px}.tw-reason-head h2{font-size:20px}.tw-reason-options label{min-height:45px}}

/* v6.58.0: reason rows must not inherit generic column-label/input dimensions.
   Previously global label{flex-direction:column} and input{min-height:48px}
   pushed the reason text BELOW each clipped option on Android. */
.tw-reason-dialog .tw-reason-options > label {
  display:flex;
  flex-direction:row;
  justify-content:flex-start;
  align-items:center;
  gap:12px;
  width:100%;
  min-width:0;
  min-height:56px;
  height:auto;
  padding:12px 14px;
  text-align:left;
  line-height:1.5;
  font-size:15px!important;
}
.tw-reason-dialog .tw-reason-options > label > input[type="checkbox"] {
  display:block;
  box-sizing:border-box;
  flex:0 0 20px;
  width:20px;
  min-width:20px;
  max-width:20px;
  height:20px;
  min-height:20px!important; /* overrides atelier.css input min-height:50px!important */
  max-height:20px;
  padding:0;
  margin:0;
  align-self:center;
}
.tw-reason-dialog .tw-reason-options > label > span {
  display:block;
  flex:1 1 auto;
  min-width:0;
  width:auto;
  max-width:100%;
  overflow-wrap:anywhere;
  white-space:normal;
  line-height:1.5;
  color:#243b53;
  font-size:15px;
  text-align:left;
}
@media(max-width:380px){
  .tw-reason-dialog .tw-reason-options > label {gap:10px;padding:10px 11px;}
}
