/* UBN Group 9.9 — mobile-first top nav and white mark with dark typography */
.ubn-ref-header{background:#fff!important;color:#111827!important}
.ubn-ref-top{background:#fff!important}
.ubn-ref-top-inner{position:relative;gap:10px!important}
.ubn-ref-brand{display:inline-flex!important;align-items:center;gap:9px;background:#fff;border-radius:12px;padding:5px 7px;text-decoration:none!important;min-width:0!important}
.ubn-ref-brand img{object-fit:contain!important;width:clamp(124px,13vw,188px)!important;height:52px!important;filter:none!important;object-view-box:inset(20% 5% 28% 5%)}
.ubn-ref-brand span,.ubn-ref-brand b,.ubn-ref-brand small{color:#fff!important}
.ubn-ref-header .ubn-ref-top a:not(.ubn-ref-brand){font-weight:700}
.ubn-ref-header .ubn-ref-top a.ubn-ref-client-login{color:#113568!important;background:#eff3f8;border-color:#7ba4dd}
.ubn-ref-header .ubn-ref-top a.ubn-ref-client-login:hover{background:#e5ebf3}
.ubn-ref-header .ubn-ref-top a.ubn-ref-client-login:focus-visible{outline:2px solid #3463a4;outline-offset:2px}
.ubn86-access-actions a.ubn86-access-client{color:#113568!important;background:#eff3f8}
.ubn-ref-header .ubn-ref-nav{background:#fff!important;border:1px solid #e1e7ef!important;box-shadow:0 5px 18px #122c5114!important}
.ubn-ref-header .ubn-ref-nav>a:not(.ubn-community-nav-btn){color:#111827!important}
.ubn-v99-mobile-registration{display:none}
.ubn-v99-menu-toggle{display:none;cursor:pointer;border:1px solid #ccd8e8;background:#fff;border-radius:11px;color:#131922;font-weight:800;padding:11px 14px}
.ubn-v99-video-upload{background:#eff3f8!important;color:#1a447e!important}
@media(max-width:900px){
 .ubn-ref-top-inner{
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;
   padding:8px 0!important;align-items:center;
 }
 .ubn-ref-brand{grid-area:1 / 1;justify-self:start}
 .ubn-ref-brand img{width:clamp(108px,36vw,150px)!important;height:43px!important}
 .ubn-ref-brand b{font-size:14px!important}
 .ubn-ref-brand span small{display:none}
 .ubn-v99-menu-toggle{grid-area:3 / 2;display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:44px;padding:8px;font-size:13px}
 .ubn-ref-top .ubn-ref-client-login,
 .ubn-ref-top .ubn-ref-staff-login,
 .ubn-ref-top .ubn-ref-post{
   display:flex!important;align-items:center;justify-content:center;min-height:44px;min-width:0;
   width:100%;gap:5px;padding:8px!important;text-align:center;font-size:13px!important;white-space:normal;
 }
 .ubn-ref-client-login{grid-area:2 / 1}
 .ubn-ref-staff-login{grid-area:2 / 2}
 .ubn-ref-post{grid-area:3 / 1}
 .ubn-ref-lang{grid-area:1 / 2;justify-self:end}
 .ubn-mobile-action-icon{font-size:11px;line-height:1;flex:none}
 .ubn-ref-lang select{min-height:44px;min-width:56px;font-size:16px!important}
 .ubn-ref-address,.ubn-ref-phone,.ubn-ref-social{display:none!important}
 .ubn-ref-header .ubn-ref-nav > a.ubn-v99-registration{display:none!important}
 .ubn-v99-mobile-registration{
   display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 8px;
   min-height:44px;margin:0 12px 8px;padding:8px 10px;border:1px solid #7ba4dd;
   border-radius:12px;background:#eff3f8;color:#113568;font-size:14px;text-align:center;
   text-decoration:none;
 }
 .ubn-v99-mobile-registration strong{white-space:nowrap;font-variant-numeric:tabular-nums}
 .ubn-v99-nav{
   display:none!important;margin:0 auto 8px!important;flex-direction:column!important;gap:3px!important;
   width:calc(100% - 24px)!important;max-width:none!important;overflow:visible!important;
   padding:7px!important;border-radius:15px!important;
 }
 .ubn-v99-nav.is-open{display:flex!important}
 .ubn-v99-nav>a{
   width:100%;min-height:44px;justify-content:flex-start!important;padding:10px 13px!important;
   border-radius:9px!important;font-size:14px!important;
 }
 .mobile-bottom-nav{z-index:55}
 .ubn-ref-header a,.ubn-v99-menu-toggle{touch-action:manipulation}
 .auth-wrap .client-auth-choice{padding:10px!important;gap:12px}
 .client-auth-choice input{min-height:44px;font-size:16px}
 .client-auth-choice .btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px}
}
.ubn-mobile-filter-toggle { display:none; }
.ubn-mobile-filter-content { display:contents; }

@media (max-width:720px) {
  html body .ubn-purple-home-hero {
    min-height:0!important; padding:26px 0 28px!important;
  }
  html body .ubn-purple-home-hero .ubn-intro h1 {
    font-size:clamp(27px,8vw,38px)!important; line-height:1.1; margin:8px 0;
  }
  .ubn-purple-home-hero .ubn-ref-benefits,
  .ubn-purple-home-hero .ubn-ref-types { display:none; }
  .ubn-purple-home-hero .ubn-stock { min-height:44px; }
  .ubn88-discovery.section { padding:14px 0 18px!important; }
  .ubn88-search-shell { padding:12px; }
  .ubn88-discovery-heading { gap:8px; }
  .ubn88-discovery-heading a { display:inline-flex; align-items:center; min-height:44px; }
  .ubn88-search label { min-width:0; }
  .ubn88-search label:has(input[type="search"]) { grid-column:1/-1; grid-row:1; }
  .ubn88-search label:has(input[name="max"]) { grid-column:1/-1; }
  .ubn88-search :is(input,select) { min-height:44px; font-size:16px!important; }
  .ubn88-category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ubn88-category { min-height:72px; padding:8px 4px; text-align:center; }
  .ubn88-category b { font-size:clamp(11px,3.1vw,14px); overflow-wrap:anywhere; }
  .ubn88-category-arrow { display:none; }

  .ubn-purple-catalog-hero { min-height:0; padding:18px 14px; margin-bottom:12px; border-radius:16px; }
  .ubn-purple-catalog-hero h1 { font-size:clamp(24px,7vw,32px); margin:6px 0; }
  .ubn-purple-catalog-hero .ubn-purple-perks,
  .ubn-purple-catalog-container > .section-head .muted { display:none; }
  .ubn-purple-category-tabs { padding:6px; margin-bottom:12px; }
  .ubn-purple-category-tabs a { flex:none; min-height:44px; padding:8px 12px; }
  .ubn-mobile-filter-toggle:not([hidden]) {
    display:flex; align-items:center; justify-content:space-between;
    width:100%; min-height:44px; padding:10px 12px;
    border:1px solid #85aade; border-radius:11px; background:#f2f5f9;
    color:#113568; font:inherit; font-weight:750; cursor:pointer;
  }
  .ubn-mobile-filter-toggle[aria-expanded="true"] span { transform:rotate(180deg); }
  .ubn-mobile-filter-content.is-collapsed { display:none; }
  .home-offers-filters { display:block; }
  .ubn82-offers .ubn-mobile-filter-toggle { margin-bottom:12px; }
  .catalog-filter-options {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;
  }
  .catalog-filter-options > :is(.ubn-advanced-filters,.ubn-advanced-toggle) { grid-column:1/-1; }
  .ubn-purple-filters .ubn-advanced-filters:not([hidden]) {
    display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .ubn-purple-filters :is(input,select),
  .ubn82-filter-pair input { min-height:44px!important; font-size:16px!important; }
  .ubn-purple-filters :is(.btn,.ubn-advanced-toggle,.search-inline-button),
  .ubn82-filter-apply { min-height:44px; }
  .ubn82-offers-tools select { min-height:44px; font-size:16px; max-width:100%; }
  .ubn82-offers-tools .ubn82-grid-toggle { display:none; }
  html body .ubn82-card-grid .ubn82-heart {
    width:44px; height:44px; border-radius:50%; background:#13243be0!important;
  }
  .ubn82-card-grid .ubn82-photo-tags { right:60px; }
  .ubn82-card-grid .ubn82-detail h3 { font-size:17px; }
  .ubn82-card-grid .ubn82-location { font-size:14px; -webkit-line-clamp:2; }
  .ubn82-card-grid .ubn82-attributes { display:flex; flex-wrap:wrap; gap:6px 12px; }
  .ubn-purple-catalog-container .ubn-page-link { min-width:44px; height:44px; }
}
/* Site links use the whole navigation strip and wrap on narrow screens. */
.ubn-ref-header .ubn-v99-nav {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 3px;
  overflow: visible;
  min-height: 0;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 16px;
}
.ubn-ref-header .ubn-v99-nav > a:not(.ubn-community-nav-btn) {
  min-height: 36px;
  padding: 5px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: clamp(12px, .92vw, 14px);
  font-weight: 750;
}
.ubn-ref-header .ubn-v99-nav > a:not(.ubn-community-nav-btn):hover { background: #eaf0f8; }
.ubn-ref-header .ubn-v99-nav a:focus-visible { outline: 2px solid #94651a; outline-offset: 1px; }
@media (min-width: 901px) {
  body:has(.ubn-ref-header) .ubn-ref-header .ubn-v99-nav {
    width: calc(100% - 48px);
    max-width: none;
  }
}
@media (max-width: 900px) {
  .ubn-ref-header .ubn-v99-nav.is-open {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: stretch;
  }
  .ubn-ref-header .ubn-v99-nav > a:not(.ubn-community-nav-btn) {
    white-space: normal;
    min-height: 44px;
  }
}
