.banbo-location{position:relative;z-index:40;display:inline-flex;align-items:center;flex:0 0 auto}
.banbo-location-btn{
  display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;max-width:168px;height:36px;
  margin:0;padding:0 10px 0 11px;border:1px solid #c9def8;border-radius:999px;background:#fff;color:#0a1630;
  cursor:pointer;font:inherit;font-size:13px;font-weight:700;line-height:1;text-align:left;
  appearance:none;-webkit-appearance:none;box-sizing:border-box;
  transition:border-color .15s ease,color .15s ease,box-shadow .15s ease
}
.banbo-location-btn:hover,
.banbo-location-btn:focus-visible,
.banbo-location-btn[aria-expanded="true"]{
  border-color:#0878f5;color:#0878f5;box-shadow:0 0 0 3px rgba(8,120,245,.08);outline:none
}
.banbo-location-btn:focus{outline:none}
.banbo-location-pin{
  width:10px;height:10px;border-radius:50% 50% 50% 0;background:#0878f5;transform:rotate(-45deg);flex:0 0 auto
}
.banbo-location-flag{
  display:block;width:20px;height:15px;object-fit:cover;border-radius:2px;flex:0 0 auto
}
.banbo-location-flag-emoji{
  display:inline-flex;align-items:center;justify-content:center;width:20px;height:15px;font-size:16px;line-height:1
}
.banbo-location-btn-flag{padding-left:10px;padding-right:6px}
.banbo-location-name{
  font-style:normal;font-size:13px;font-weight:700;line-height:1;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;min-width:0;color:inherit
}
.banbo-location-chevron{
  width:0;height:0;margin-left:1px;flex:0 0 auto;
  border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #8aa0b8;
  transition:transform .15s ease
}
.banbo-location-btn[aria-expanded="true"] .banbo-location-chevron{transform:rotate(180deg);border-top-color:#0878f5}
.r-header .banbo-location-btn,
.r-tools .banbo-location-btn{
  border-radius:999px;background:#fff
}
.banbo-location-menu{
  position:absolute;top:calc(100% + 8px);right:0;left:auto;
  width:min(320px,calc(100vw - 24px));max-width:480px;
  box-sizing:border-box;border:1px solid #dbe4ef;border-radius:14px;background:#fff;
  padding:14px;box-shadow:0 16px 40px rgba(7,20,47,.12);z-index:50
}
.banbo-location-why,.banbo-location-status{
  margin:0 0 10px;color:#5c6b80;font-size:13px;line-height:1.4;overflow-wrap:anywhere;word-break:break-word
}
.banbo-location-actions{display:grid;gap:8px;margin-top:10px}
.banbo-location-actions button,.banbo-location-form button,.banbo-location-modal-actions button{
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;
  height:44px;border:1px solid #dbe4ef;border-radius:12px;background:#0878f5;color:#fff;font-weight:800;cursor:pointer
}
.banbo-location-actions button[data-action="use"]{background:#fff;color:#0a1630}
.banbo-location-actions button[data-action="use"]:hover:not(:disabled){border-color:#0878f5;color:#0878f5}
.banbo-location-modal-actions button.is-quiet{background:#fff;color:#0a1630}
.banbo-location-actions button:disabled,.banbo-location-modal-actions button:disabled{opacity:.55;cursor:not-allowed}
.banbo-location-form{display:grid;gap:8px;min-width:0}
.banbo-location-optional{font-weight:600;color:#8aa0b8;font-size:12px}
.banbo-location-country-search{display:grid;gap:6px;margin:0 0 8px;font-size:13px;font-weight:700;color:#163056}
.banbo-location-country-search input{height:42px;border:1px solid #dbe4ef;border-radius:10px;padding:0 12px;font:inherit}
.banbo-location-countries{
  display:grid;gap:4px;max-height:220px;overflow:auto;margin:0 0 12px;padding:4px;
  border:1px solid #e3ebf5;border-radius:12px;background:#f8fbff
}
.banbo-location-country{
  display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:8px 10px;
  border:0;border-radius:10px;background:transparent;cursor:pointer;text-align:left;font:inherit;font-weight:700;color:#0a1630
}
.banbo-location-country:hover,.banbo-location-country.is-selected{background:#fff;box-shadow:0 0 0 1px #c9def8}
.banbo-location-country.is-selected{color:#0878f5}
.banbo-location-country img{width:20px;height:15px;object-fit:cover;border-radius:2px;flex:0 0 auto}
.banbo-location-empty{margin:8px;color:#60708e;font-size:13px}
.banbo-location-form label{display:grid;gap:4px;font-size:13px;font-weight:700;color:#0a1630;min-width:0}
.banbo-location-form input{
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;
  height:40px;border:1px solid #dbe4ef;border-radius:10px;padding:0 12px;font:inherit
}
.banbo-location-form input:focus{outline:none;border-color:#0878f5;box-shadow:0 0 0 3px rgba(8,120,245,.12)}
html.banbo-location-modal-open{overflow:hidden}
.banbo-location-modal{
  position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:18px
}
.banbo-location-modal-backdrop{
  position:absolute;inset:0;border:0;padding:0;margin:0;background:rgba(7,20,47,.46);cursor:pointer
}
.banbo-location-modal-card{
  position:relative;z-index:1;width:min(420px,100%);
  border:1px solid #dbe4ef;border-radius:18px;background:#fff;
  padding:24px 22px 20px;box-shadow:0 24px 60px rgba(7,20,47,.22)
}
.banbo-location-modal-card h2{
  margin:0 0 10px;font-size:22px;letter-spacing:-.3px;color:#0a1630;line-height:1.25
}
.banbo-location-modal-copy{
  margin:0 0 18px;color:#5c6b80;font-size:15px;line-height:1.45
}
.banbo-location-modal-actions{display:grid;gap:10px}
.banbo-location-modal .banbo-location-status{margin:12px 0 0;color:#5c6b80;font-size:13px;line-height:1.4;min-height:0}
@media(max-width:760px){
  .banbo-location-modal{padding:14px}
  .banbo-location-modal-card{padding:20px 16px 16px;border-radius:16px}
  .banbo-location-modal-card h2{font-size:20px}
}
.host-location-suggest{
  margin:0 0 12px;padding:12px 14px;border:1px solid #dbe4ef;border-radius:12px;background:#f5f9ff;color:#0a1630
}
.host-location-suggest p{margin:0 0 8px;font-size:14px;line-height:1.4}
.host-location-suggest .msg{margin:8px 0 0}
@media(max-width:1024px){
  .banbo-location-btn,
  .r-header .banbo-location-btn,
  .r-tools .banbo-location-btn{
    border-radius:999px;
    border:1px solid #c9def8;
    background:#fff
  }
}
@media(max-width:760px){
  .r-header,
  .r-header .r-tools,
  .r-tools [data-banbo-location],
  .banbo-location{
    overflow:visible
  }
  /* Combined location/currency pill is hidden on phones; location lives in the mobile menu. */
  .r-header .banbo-pref-pill,
  .r-header .r-tools > [data-banbo-location],
  .r-header .r-tools > .banbo-location{
    display:none!important
  }
  .banbo-mobile-prefs .banbo-location,
  .banbo-mobile-prefs [data-banbo-location-mobile]{
    z-index:1;
    display:block;
    width:100%;
    max-width:none;
    min-height:0;
    margin:0
  }
  .banbo-mobile-prefs .banbo-location-btn{
    width:100%;
    max-width:none;
    height:44px;
    min-height:44px;
    justify-content:flex-start;
    padding:0 12px;
    border-radius:10px
  }
  .banbo-location-btn,
  .r-header .banbo-location-btn,
  .r-tools .banbo-location-btn{
    display:inline-flex;
    align-items:center;
    justify-content:flex-start;
    gap:6px;
    width:auto;
    max-width:100%;
    height:34px;
    min-height:34px;
    padding:0 8px 0 10px;
    border:1px solid #c9def8;
    border-radius:999px;
    background:#fff;
    box-shadow:none;
    appearance:none;
    -webkit-appearance:none
  }
  .banbo-location-pin{
    display:block;
    width:9px;
    height:9px;
    flex:0 0 auto;
    background:#0878f5
  }
  .banbo-location-name{
    display:block;
    font-size:12px;
    font-weight:700;
    line-height:1;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  .banbo-location-chevron{
    display:block;
    flex:0 0 auto;
    margin-left:1px
  }
  .banbo-location-menu{
    position:fixed;
    top:64px;
    left:12px;
    right:12px;
    width:calc(100vw - 24px);
    max-width:480px;
    margin-left:auto;
    margin-right:auto;
    max-height:min(70vh,520px);
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    padding:14px;
    border-radius:14px;
    z-index:1200
  }
  body > .banbo-location-menu{
    position:fixed;
    z-index:1200
  }
  .r-tools .banbo-location{order:-1}
}
@media(max-width:360px){
  .banbo-mobile-prefs .banbo-location-btn{height:44px;min-height:44px;padding:0 12px}
  .banbo-location-menu{left:10px;right:10px;width:calc(100vw - 20px);padding:12px}
  .banbo-location-actions button,.banbo-location-form button{height:42px}
}
