/* V6.22.2 — targeted iOS/Android layout fixes. No data or login rules changed. */
:root { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
/* Home header: original theme button contains a moon SVG/text span. The older
   mobile CSS drew another moon via ::after, which created two stacked icons. */
@media (max-width:850px) {
  #themeToggle.theme-switch::after,
  #themeToggle.afra-theme-toggle::after {content:none!important;display:none!important;}
  #themeToggle.theme-switch>span:first-child,
  #themeToggle.afra-theme-toggle>span:first-child {
    display:grid!important;place-items:center!important;flex:0 0 auto!important;
    font:700 23px/1 system-ui,sans-serif!important;
    width:100%;height:100%;color:#1c5c8d!important;
  }
  #themeToggle.theme-switch .theme-word {display:none!important;}
  html[data-theme="dark"] #themeToggle.theme-switch>span:first-child {color:#f5d88b!important;}
  /* Safari already has back/forward buttons. Reserve the bottom for the site's dock. */
  .afra-history-nav {display:none!important;}
  .afra-app-install {max-width:135px!important;min-height:38px!important;padding:7px 12px!important;
    font-size:11px!important;bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;}
  .afra-app-dock {padding-bottom:env(safe-area-inset-bottom,0px);}
  .topbar .head-links #customerChatShortcut:not([hidden]) {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:41px!important;min-width:41px!important;max-width:41px!important;height:41px!important;
    padding:0!important;position:relative!important;flex:0 0 41px!important;
    border:1px solid #c6dbea!important;border-radius:12px!important;background:#edf5fb!important;
    color:#1e5f8c!important;font:800 23px/1 system-ui,sans-serif!important;
  }
  .topbar .head-links #customerChatShortcut>span {display:none!important;}
  .topbar .head-links {max-width:none!important;gap:4px!important;min-width:0!important;}
  .topbar .brand {flex:1 1 auto!important;min-width:0!important;}
  #customerTheme::after {content:none!important;display:none!important;}
  #customerTheme .afra-theme-icon {display:grid!important;place-items:center!important;
    font:700 23px/1 system-ui,sans-serif!important;color:#1c5c8d!important;width:100%;height:100%;}
  #customerTheme .afra-theme-label {display:none!important;}
  html[data-theme="dark"] #customerTheme .afra-theme-icon{color:#f6d783!important;}
  html[data-theme="dark"] .topbar .head-links #customerChatShortcut:not([hidden]){
    color:#ecf6ff!important;background:#214662!important;border-color:#3a6582!important;}
}
#customerUnreadCount:not([hidden]) {position:absolute!important;top:-8px!important;left:-7px!important;
  display:grid!important;place-items:center!important;min-width:19px!important;height:19px!important;
  background:#b92746!important;color:#fff!important;font:800 11px/1 Vazirmatn,sans-serif!important;
  border-radius:999px!important;padding:2px 5px!important;box-shadow:0 2px 5px #0002;}
/* Native iOS <select> was showing the platform double up/down spinner. Use one
   clearly placed arrow, while keeping the real accessible native select. */
body[data-travel-page="request"] #bookingService {
  -webkit-appearance:none!important;appearance:none!important;
  background-color:#f9fcff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232b628a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='m5 9 7 7 7-7'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:left 16px center!important;
  background-size:19px 19px!important;padding-inline:14px 50px!important;
  text-align:right!important;direction:rtl!important;line-height:1.6!important;
  min-height:54px!important;
}
body[data-travel-page="request"] #bookingService::-ms-expand {display:none!important;}
body[data-travel-page="request"] #bookingService option {font-size:16px!important;color:#163c5a;}
body[data-travel-page="request"] .tp-form-grid input[type="date"] {
  -webkit-appearance:auto!important;appearance:auto!important;direction:ltr!important;text-align:left!important;
  min-height:54px!important;line-height:1.6!important;color:#163c5a!important;
  background:#f9fcff!important;cursor:pointer!important;
}
body[data-travel-page="request"] .tp-form-grid input[type="date"]::-webkit-date-and-time-value{
  text-align:left!important;min-height:24px!important;
}
body[data-travel-page="request"] .tp-form-grid input[type="date"]::-webkit-calendar-picker-indicator{
  cursor:pointer;opacity:.85;min-width:22px;min-height:22px;
}
body[data-travel-page="request"] .afra-date-hint{
  display:block;color:#577c9a;font-size:11px;font-weight:500;line-height:1.7;
  margin-top:0;overflow-wrap:anywhere;
}
html[data-theme="dark"] body[data-travel-page="request"] #bookingService{
  background-color:#122d48!important;color:#e9f5ff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23b5daf2' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='m5 9 7 7 7-7'/%3E%3C/svg%3E")!important;
}
html[data-theme="dark"] body[data-travel-page="request"] .tp-form-grid input[type="date"]{
  background:#132d45!important;color:#eff7ff!important;
}
html[data-theme="dark"] body[data-travel-page="request"] .afra-date-hint {color:#b8cde0;}
/* Identity-provider buttons must not imply that unconfigured OAuth is functional. */
.afra-social-auth>a.afra-social-not-configured,
.afra-social-connect>a.afra-social-not-configured {
  opacity:.72!important;cursor:not-allowed!important;border-style:dashed!important;
}
.afra-social-auth>a:focus-visible,.afra-social-connect>a:focus-visible {outline:3px solid #397eb4;outline-offset:2px;}
@media(max-width:520px){
  body[data-travel-page="request"] .tp-form-grid{gap:14px!important;}
  body[data-travel-page="request"] .tp-form-grid label{font-size:13px!important;}
  body[data-travel-page="request"] .tp-form-grid input,
  body[data-travel-page="request"] .tp-form-grid select{font-size:16px!important;min-width:0!important;}
  body[data-travel-page="request"] .tp-form-panel{overflow:hidden;}
  .afra-social-auth>a{min-height:51px;}
}
