/* ATD post-release UAT polish: tasks #2, #4 and #5.
   Only visual changes scoped to the canonical booking flow. */

/* #2: icons inside the compact 'Find a trip' edit fields must not grow to the
   same size as full homepage location buttons. Keep 31px input alignment. */
body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-uber-inline-control .atd-h-entry>.atd-h-locate{
 flex:0 0 28px!important;width:28px!important;min-width:28px!important;
 height:28px!important;min-height:28px!important;max-height:28px!important;
 padding:4px!important;margin:0!important;border-radius:7px!important
}
body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-uber-inline-control .atd-h-entry>.atd-h-static-pin{
 display:grid!important;place-items:center;flex:0 0 25px!important;
 width:25px!important;min-width:25px!important;height:28px!important;min-height:28px!important;
 padding:0!important
}
body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-uber-inline-control .atd-h-entry :is(.atd-h-locate,.atd-h-static-pin) svg{
 display:block!important;width:15px!important;height:15px!important;max-width:15px!important
}
body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-uber-inline-control .atd-h-entry :is(.atd-h-locate,.atd-h-static-pin) + input{
 font:600 12px/1.4 Manrope,Arial,sans-serif!important;padding:5px 6px!important
}

/* #4: clear branded secondary button instead of unstyled '← Back' text. */
body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-inpage-flow .atd-flow-back{
 appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;
 border:1px solid #c8b9e6!important;background:#f5efff!important;color:#5a3297!important;
 min-height:35px;padding:7px 14px;border-radius:9px;
 font:850 12px/1.3 Manrope,Arial,sans-serif!important;letter-spacing:0;
 box-shadow:0 2px 6px #3216640d;cursor:pointer;text-decoration:none
}
body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-inpage-flow .atd-flow-back:hover{
 border-color:#8755d0!important;background:#ede3ff!important
}
body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-inpage-flow .atd-flow-back:focus-visible{
 outline:3px solid #1a83ef;outline-offset:3px
}

/* #5: use the site's Manrope typography; prevent long native date renders from
   forcing the date control outside the pill on desktop or small screens. */
body[data-atd-redesign="approved"] #atd-horizontal-booking :is(.atd-h-date-pill,.atd-h-time-pill){
 min-width:0!important;overflow:hidden
}
body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-h-date-pill input[type="date"],
body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-h-time-pill select{
 display:block;min-width:0!important;max-width:100%!important;width:100%!important;
 font:750 12px/1.35 Manrope,Arial,sans-serif!important;
 letter-spacing:-.015em;color:#162b4c!important
}
body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-h-datetime-controls{
 min-width:0!important
}
@media(max-width:640px){
 body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-h-date-pill input[type="date"],
 body[data-atd-redesign="approved"] #atd-horizontal-booking .atd-h-time-pill select{font-size:12px!important}
}
