:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted: rgba(11,18,32,.65);
  --border: rgba(11,18,32,.12);
  --card: rgba(11,18,32,.03);
  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(11,18,32,.08);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a{color:inherit}
.container{max-width:1140px;margin:0 auto;padding:0 16px}
.site-main{padding:24px 0 48px}

.sr-only{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.topbar{border-bottom:1px solid var(--border);background:#fff}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:10px}
.topbar-link{color:var(--muted);text-decoration:none}
.topbar-link:hover{color:var(--text)}

.site-header{position:sticky;top:0;background:#fff;z-index:50;border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.brand-text{font-weight:800;letter-spacing:-.02em}
.primary-nav .menu{list-style:none;margin:0;padding:0;display:flex;gap:14px;align-items:center}
.primary-nav .menu a{text-decoration:none;color:var(--muted)}
.primary-nav .menu a:hover{color:var(--text)}
.header-actions{display:flex;gap:10px;align-items:center}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius: var(--radius-pill);
  border:1px solid var(--border);
  text-decoration:none;
  font-weight:700;
  line-height:1;
}
.btn-primary{background:var(--text);color:#fff;border-color:var(--text)}
.btn-ghost{background:transparent;color:var(--text)}
.cart-count{opacity:.7}

.pill{
  display:inline-flex;align-items:center;justify-content:center;
  padding:6px 10px;border-radius:var(--radius-pill);
  border:1px solid var(--border);
  background:var(--card);
  font-size:13px;
}

.hero{padding:24px 0}
.hero-slim{padding:8px 0 18px}
.hero-inner{display:flex;flex-direction:column;gap:10px}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px}

.h1{font-size:42px;line-height:1.1;letter-spacing:-.03em;margin:0}
.h2{font-size:28px;margin:0}
.h3{font-size:18px;margin:0}
.lead{font-size:18px;color:var(--muted);margin:0}

.muted{color:var(--muted)}
.card{
  background: #fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.card-link{text-decoration:none;display:block}
.prose p{margin:0 0 12px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width: 900px){.grid-3{grid-template-columns:1fr} .h1{font-size:34px}}

.trust-strip{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}
.tracking-form{display:flex;gap:10px;align-items:center}
.tracking-form input{
  flex:1;
  padding:12px 14px;
  border-radius: var(--radius);
  border:1px solid var(--border);
}

.site-footer{border-top:1px solid var(--border);padding:24px 0 18px}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.footer-bottom{margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}
.footer-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.footer-menu a{text-decoration:none;color:var(--muted)}
.footer-menu a:hover{color:var(--text)}
@media (max-width: 900px){.footer-grid{grid-template-columns:1fr}}

.notice{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:12px 14px;
  background: var(--card);
  margin: 12px 0;
}
.notice-info{}
.notice-warning{}

.parcelgb-account-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}
@media (max-width: 900px){.parcelgb-account-grid{grid-template-columns:1fr}}
.stack{display:flex;flex-direction:column;gap:10px}


/* Logo sizing (fallback defaults; overridden by Customizer inline CSS if set) */
.brand .custom-logo-link{display:inline-flex;align-items:center}
.brand .custom-logo{height:44px;width:auto;max-width:220px;display:block}
@media (max-width:768px){.brand .custom-logo{height:36px;max-width:180px}}


.pgb-slider-shell{margin:16px 0}


/* Topbar widget area */
.topbar-widgets{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.topbar-widget{display:inline-flex;align-items:center;gap:8px}
.topbar-widget a{color:inherit;text-decoration:none}
.topbar-widget a:hover{text-decoration:underline}
.topbar-hint{font-size:12px;color:var(--muted)}
.topbar-widget .topbar-widget-title{display:none}

/* Optional: small icon sizing if using <svg> or <img> */
.topbar-widget svg{width:16px;height:16px}
.topbar-widget img{height:16px;width:auto;display:block}

/* ----------------------------------------------------
   Topbar responsive fixes (iPhone / small screens)
   Goals:
   - Never cut off text
   - Allow wrapping or horizontal scroll when needed
   - Keep right actions accessible
---------------------------------------------------- */
.topbar .topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap; /* allow wrap instead of clipping */
}

.topbar-left, .topbar-right{
  min-width: 0; /* allow flex items to shrink */
}

.topbar-widgets{
  min-width: 0;
  flex: 1 1 auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
}

.topbar-right{
  flex: 0 0 auto;
  display:flex;
  gap:12px;
  align-items:center;
  white-space:nowrap;
}

/* Ensure long emails/handles don't break layout */
.topbar-widget,
.topbar-widget a{
  max-width: 100%;
}
.topbar-widget a{
  overflow:hidden;
  text-overflow:ellipsis;
  display:inline-block;
  vertical-align:middle;
}

/* Mobile: stack into 2 lines and reduce font slightly */
@media (max-width: 430px){
  .topbar{
    padding: 8px 0;
  }
  .topbar .topbar-inner{
    gap:8px;
  }
  .topbar-widgets{
    width: 100%;
    order: 1;
  }
  .topbar-right{
    width: 100%;
    order: 2;
    justify-content:flex-start;
  }
  .topbar-link, .topbar-widget, .topbar-widget a{
    font-size: 12px;
    line-height: 1.2;
  }
}

/* Extra-small devices: allow smooth horizontal scroll rather than clipping */
@media (max-width: 360px){
  .topbar-widgets{
    flex-wrap:nowrap;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topbar-widgets::-webkit-scrollbar{ display:none; }
}

/* Topbar widget-only layout (no Track/Get Quote links) */
.topbar .topbar-inner{
  justify-content:flex-start;
}

@media (max-width: 430px){
  .topbar .topbar-inner{
    flex-wrap:nowrap; /* keep it one line */
  }
  .topbar-widgets{
    flex-wrap:nowrap;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }
  .topbar-widgets::-webkit-scrollbar{ display:none; }
}


/* Force hide Ship a Parcel button (fallback) */
.topbar a:contains('Ship a Parcel'),
.header a:contains('Ship a Parcel'){display:none!important}
.header .btn-ship, .header .ship-parcel, .nav-ship{display:none!important}


/* hide ship link by href (safety net) */
.header a[href*="/ship"], .site-header a[href*="/ship"], nav a[href*="/ship"]{display:none!important}
