/* ═════════════════════════════════════════════════════════════════
 * BABYFUN SHIPPING — MANG HẠNH PHÚC CHO BÉ
 * 100% Pixel-Identical Match to BabyFun_Shipping.html
 * Zero-Collision Scoped Selectors (#bbf-shipping-app & dialog#bbf-ship-booking)
 * ═════════════════════════════════════════════════════════════════ */

/* ── FLATSOME PAGE WRAPPER RESET ───────────────────────────────── */
body.bbf-shipping-page .entry-header,
.page:has(#bbf-shipping-app) .entry-header {
  display: none !important;
}

body.bbf-shipping-page #content.page-wrapper,
.page:has(#bbf-shipping-app) #content.page-wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.bbf-shipping-page .row.row-main,
.page:has(#bbf-shipping-app) .row.row-main {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.bbf-shipping-page .large-12.col,
.page:has(#bbf-shipping-app) .large-12.col,
body.bbf-shipping-page .col-inner,
.page:has(#bbf-shipping-app) .col-inner,
body.bbf-shipping-page .entry-content,
.page:has(#bbf-shipping-app) .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ── BASE VARIABLES & TYPOGRAPHY (EXACT DEMO SPEC) ─────────────── */
#bbf-shipping-app,
dialog#bbf-ship-booking {
  --ink: #29192e;
  --mute: #65546a;
  --pink: #ffd6e0;
  --accent: #a71953;
  --pale: #fff5f7;
  --line: #ebdbe3;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

#bbf-shipping-app {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #fffcfd;
  display: block;
}

#bbf-shipping-app *,
#bbf-shipping-app *::before,
#bbf-shipping-app *::after,
dialog#bbf-ship-booking *,
dialog#bbf-ship-booking *::before,
dialog#bbf-ship-booking *::after {
  box-sizing: border-box;
}

#bbf-shipping-app [hidden],
dialog#bbf-ship-booking [hidden] {
  display: none !important;
}

#bbf-shipping-app h1,
#bbf-shipping-app h2,
#bbf-shipping-app h3,
dialog#bbf-ship-booking h2,
dialog#bbf-ship-booking h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: var(--ink);
  text-transform: none;
  width: auto;
}

#bbf-shipping-app a,
dialog#bbf-ship-booking a {
  color: inherit;
  text-decoration: none;
}

#bbf-shipping-app p,
dialog#bbf-ship-booking p {
  color: var(--mute);
  margin-top: 0;
  margin-bottom: 1em;
}

#bbf-shipping-app button,
#bbf-shipping-app input,
#bbf-shipping-app select,
#bbf-shipping-app textarea,
dialog#bbf-ship-booking button,
dialog#bbf-ship-booking input,
dialog#bbf-ship-booking select,
dialog#bbf-ship-booking textarea {
  font-family: inherit !important;
  font-size: inherit;
  line-height: inherit;
  text-transform: none !important;
  letter-spacing: normal;
  box-shadow: none !important;
  margin: 0 !important;
}

#bbf-shipping-app button,
#bbf-shipping-app summary,
dialog#bbf-ship-booking button,
dialog#bbf-ship-booking summary {
  cursor: pointer;
}

#bbf-shipping-app a:focus-visible,
#bbf-shipping-app button:focus-visible,
#bbf-shipping-app summary:focus-visible,
dialog#bbf-ship-booking a:focus-visible,
dialog#bbf-ship-booking button:focus-visible,
dialog#bbf-ship-booking summary:focus-visible {
  outline: 3px solid #843962;
  outline-offset: 4px;
}

/* ── HEADER & SHELL ────────────────────────────────────────────── */
#bbf-shipping-app .bfs-shell {
  width: min(1140px, calc(100% - 44px));
  margin: 0 auto;
}

#bbf-shipping-app .bfs-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 25;
}

body.admin-bar #bbf-shipping-app .bfs-header {
  top: 32px;
}

body:has(.header-wrapper.stuck) #bbf-shipping-app .bfs-header {
  top: 70px;
}

body.admin-bar:has(.header-wrapper.stuck) #bbf-shipping-app .bfs-header {
  top: 102px;
}

#bbf-shipping-app .bfs-nav,
#bbf-shipping-app .bfs-navlinks,
#bbf-shipping-app .bfs-actions,
#bbf-shipping-app .bfs-brand,
#bbf-shipping-app .bfs-foot,
dialog#bbf-ship-booking .bfs-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  border: 0;
}

#bbf-shipping-app .bfs-nav {
  min-height: 70px;
  justify-content: space-between;
}

#bbf-shipping-app .bfs-brand {
  gap: 10px;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-size: 21px;
  color: var(--ink);
}

#bbf-shipping-app .bfs-brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-top: 5px;
  font-weight: 800;
}

#bbf-shipping-app .bfs-mark {
  background: var(--pink);
  color: var(--accent);
  border-radius: 15px;
  padding: 10px 11px;
  font-size: 20px;
  line-height: 1;
}

#bbf-shipping-app .bfs-navlinks {
  font-size: 14px;
  font-weight: 650;
}

#bbf-shipping-app .bfs-header .bfs-navlinks a {
  padding: 12px 3px;
}

#bbf-shipping-app .bfs-header .bfs-navlinks a:hover {
  color: var(--accent);
}

/* ── BUTTONS ───────────────────────────────────────────────────── */
#bbf-shipping-app .bfs-btn,
dialog#bbf-ship-booking .bfs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #ffffff;
  font-weight: 750;
  line-height: 1.3;
  flex: 0 0 auto;
  width: auto;
}

#bbf-shipping-app .bfs-btn:hover,
dialog#bbf-ship-booking .bfs-btn:hover {
  filter: brightness(0.95);
  background: var(--accent);
  color: #ffffff;
}

#bbf-shipping-app .bfs-btn.bfs-light,
dialog#bbf-ship-booking .bfs-btn.bfs-light {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

#bbf-shipping-app .bfs-btn.bfs-light:hover,
dialog#bbf-ship-booking .bfs-btn.bfs-light:hover {
  background: #ffffff;
  color: var(--ink);
  filter: brightness(0.97);
}

/* ── HERO ──────────────────────────────────────────────────────── */
#bbf-shipping-app .bfs-hero {
  background: linear-gradient(110deg, #fff0f4, #ffedf1 60%, #ffe0ea);
  margin-top: 24px;
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 0.98fr;
  min-height: 453px;
  border: 1px solid #f5dce5;
  box-shadow: 0 18px 45px #5e243d0a;
}

#bbf-shipping-app .bfs-hero-copy {
  padding: 46px 48px;
  align-self: center;
}

#bbf-shipping-app .bfs-eyebrow {
  font-size: 13px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

#bbf-shipping-app .bfs-hero .bfs-eyebrow {
  display: inline-block;
  background: #fff;
  border: 1px solid #f0dbe3;
  padding: 6px 12px;
  border-radius: 30px;
  letter-spacing: 0.055em;
}

#bbf-shipping-app .bfs-hero h1 {
  font-size: clamp(43px, 6.3vw, 78px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 1.01;
  margin: 14px 0 24px;
}

#bbf-shipping-app .bfs-hero h1 span {
  color: var(--accent);
}

#bbf-shipping-app .bfs-hero p:not(.bfs-eyebrow) {
  max-width: 410px;
  margin: 0 0 25px;
}

#bbf-shipping-app .bfs-hero .bfs-btn {
  padding: 14px 23px;
}

#bbf-shipping-app .bfs-hero-media {
  position: relative;
  background: radial-gradient(circle at 65% 30%, #ffedf4, #f2a6bb);
  overflow: hidden;
  min-height: 300px;
}

#bbf-shipping-app .bfs-hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  position: absolute;
  inset: 0;
  margin: 0;
}

#bbf-shipping-app .bfs-media-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #fffaf7;
  color: var(--ink);
  border-radius: 30px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 750;
  z-index: 2;
}

/* ── QUICK NAV ─────────────────────────────────────────────────── */
#bbf-shipping-app .bfs-quick-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 17px;
  min-height: 0;
}

#bbf-shipping-app .bfs-quick-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  line-height: 1.3;
}

#bbf-shipping-app .bfs-quick-nav a:hover {
  border-color: var(--accent);
}

#bbf-shipping-app .bfs-quick-nav a:first-child {
  background: #fff2f7;
}

#bbf-shipping-app .bfs-quick-nav a > span {
  display: grid;
  place-items: center;
  background: #ffedf3;
  border-radius: 11px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  flex: none;
}

#bbf-shipping-app .bfs-quick-nav strong,
#bbf-shipping-app .bfs-quick-nav small {
  display: block;
}

#bbf-shipping-app .bfs-quick-nav strong {
  font-weight: 700;
  color: var(--ink);
}

#bbf-shipping-app .bfs-quick-nav small {
  color: var(--mute);
  margin-top: 3px;
  font-size: 13px;
}

/* ── SECTIONS & FORM INPUTS ────────────────────────────────────── */
#bbf-shipping-app .bfs-section {
  display: block !important;
  padding: 49px 0 0;
  scroll-margin-top: 75px;
  width: 100%;
}

#bbf-shipping-app .bfs-section:focus {
  outline: none;
}

#bbf-shipping-app .bfs-section h2 {
  font-size: clamp(29px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin: 0 0 19px;
}

#bbf-shipping-app input,
#bbf-shipping-app select,
#bbf-shipping-app textarea,
dialog#bbf-ship-booking input,
dialog#bbf-ship-booking select,
dialog#bbf-ship-booking textarea {
  background-color: #ffffff !important;
  color: var(--ink) !important;
  width: 100%;
  height: auto !important;
  min-height: 0;
  border: 1px solid #dbc5d0 !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  line-height: 1.4;
}

#bbf-shipping-app select,
dialog#bbf-ship-booking select {
  padding-right: 32px !important;
}

#bbf-shipping-app label,
dialog#bbf-ship-booking label {
  display: grid;
  gap: 4px;
  font-weight: 650;
  font-size: 16px;
  color: var(--ink);
  margin: 0 !important;
}

/* ── GIFT CATALOG ──────────────────────────────────────────────── */
#bbf-shipping-app .bfs-catalog-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

#bbf-shipping-app .bfs-catalog-controls label {
  min-width: 0;
}

#bbf-shipping-app .bfs-catalog-controls select {
  min-height: 45px !important;
}

#bbf-shipping-app .bfs-catalog-status {
  margin: 0 0 16px;
  font-size: 14px;
}

#bbf-shipping-app .bfs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

#bbf-shipping-app .bfs-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 25px;
  background: #fff;
}

#bbf-shipping-app #bfs-catalog .bfs-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  box-shadow: 0 4px 15px #3d152407;
}

#bbf-shipping-app .bfs-gift-visual {
  height: 119px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #fff, #ffe0eb);
  font-size: 49px;
  line-height: 1;
  overflow: hidden;
}

#bbf-shipping-app .bfs-gift-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#bbf-shipping-app #bfs-catalog .bfs-card[data-age="toddler"] .bfs-gift-visual {
  background: radial-gradient(ellipse at 50% 45%, #fff, #feeaca);
}

#bbf-shipping-app #bfs-catalog .bfs-card[data-age="preschool"] .bfs-gift-visual {
  background: radial-gradient(ellipse at 50% 45%, #fff, #e8defa);
}

#bbf-shipping-app .bfs-gift-body {
  padding: 17px 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

#bbf-shipping-app .bfs-product-age {
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  margin-top: 0;
}

#bbf-shipping-app .bfs-card h3 {
  margin: 5px 0 2px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

#bbf-shipping-app .bfs-card p {
  margin: 6px 0 18px;
  flex: 1;
  font-size: 15px;
}

#bbf-shipping-app .bfs-gift-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

#bbf-shipping-app .bfs-gift-tags span {
  background: var(--pale);
  color: var(--accent);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 650;
}

#bbf-shipping-app .bfs-card .bfs-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin: 0 0 12px;
  padding: 0;
}

#bbf-shipping-app .bfs-gift-body .bfs-btn {
  width: 100%;
}

/* ── TRACKING SECTION ──────────────────────────────────────────── */
#bbf-shipping-app .bfs-track {
  margin-top: 4px;
  background: #2d2038;
  border-radius: 26px;
  color: #ffffff;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

#bbf-shipping-app .bfs-track h2 {
  color: #ffffff;
  margin-bottom: 8px;
}

#bbf-shipping-app .bfs-track p,
#bbf-shipping-app .bfs-track .bfs-eyebrow {
  color: #fbd4e2;
}

#bbf-shipping-app .bfs-track p:last-child {
  margin-bottom: 0;
}

#bbf-shipping-app .bfs-track form {
  margin: 0;
}

#bbf-shipping-app .bfs-track label {
  color: #ffffff;
  margin-bottom: 6px !important;
}

#bbf-shipping-app .bfs-lookup {
  display: flex;
  gap: 8px;
}

#bbf-shipping-app .bfs-lookup input {
  min-width: 0;
  flex: 1;
}

#bbf-shipping-app .bfs-track .bfs-btn {
  background: var(--pink);
  color: var(--ink);
}

#bbf-shipping-app .bfs-track .bfs-btn:hover {
  background: var(--pink);
  color: var(--ink);
}

#bbf-shipping-app .bfs-sample {
  color: #ffd6e0;
  background: none;
  border: 0;
  padding: 7px 0;
  min-height: 44px;
  text-decoration: underline;
  font-weight: 400;
  text-align: left;
}

#bbf-shipping-app #bfs-latest-order {
  display: block;
}

#bbf-shipping-app .bfs-result {
  grid-column: 1 / -1;
  background: #fff8fb;
  color: var(--ink);
  border-radius: 15px;
  padding: 18px;
}

#bbf-shipping-app .bfs-result p {
  color: var(--mute);
  margin: 6px 0 10px;
}

#bbf-shipping-app .bfs-result ol {
  padding-left: 22px;
  margin: 8px 0;
}

#bbf-shipping-app .bfs-result li {
  padding: 4px 0;
  margin: 0;
}

#bbf-shipping-app .bfs-result li[aria-current] {
  font-weight: 800;
  color: var(--accent);
  background: #ffedf5;
  border-radius: 6px;
  padding-inline: 6px;
}

#bbf-shipping-app .bfs-result li.bfs-pending {
  color: var(--mute);
}

#bbf-shipping-app details {
  padding: 12px 0 0;
  border-bottom: 1px solid var(--line);
}

#bbf-shipping-app summary {
  font-weight: 750;
}

/* ── KID RIDE CARD ─────────────────────────────────────────────── */
#bbf-shipping-app .bfs-ride-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#bbf-shipping-app .bfs-ride-card h2 {
  font-size: clamp(23px, 3vw, 34px);
  margin: 0;
}

#bbf-shipping-app .bfs-ride-card p:last-child {
  margin-bottom: 0;
}

#bbf-shipping-app .bfs-ride-card .bfs-btn {
  flex: none;
}

/* ── FOOTER ────────────────────────────────────────────────────── */
#bbf-shipping-app .bfs-footer {
  background: var(--pale);
  margin-top: 55px;
  padding: 26px 0;
}

#bbf-shipping-app .bfs-foot {
  justify-content: space-between;
  flex-wrap: wrap;
}

#bbf-shipping-app .bfs-foot p {
  margin: 0;
  font-size: 14px;
}

/* ── DIALOG MODAL & VIETQR BOX ─────────────────────────────────── */
dialog#bbf-ship-booking {
  width: min(510px, calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 24px;
  background: #ffffff;
  color: var(--ink);
  max-height: 90dvh;
  overflow-y: auto;
  margin: auto;
}

dialog#bbf-ship-booking::backdrop {
  background: #25172d99;
}

dialog#bbf-ship-booking .bfs-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

dialog#bbf-ship-booking .bfs-dialog-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

dialog#bbf-ship-booking .bfs-close {
  border: 0;
  background: var(--pale);
  color: var(--ink);
  border-radius: 9px;
  font-size: 21px;
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
}

dialog#bbf-ship-booking .bfs-dialog-note {
  margin: 8px 0 14px;
  font-size: 15px;
}

dialog#bbf-ship-booking .bfs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

dialog#bbf-ship-booking .bfs-full {
  grid-column: 1 / -1;
}

dialog#bbf-ship-booking .bfs-form-grid .bfs-btn {
  margin-top: 8px !important;
  width: 100%;
}

dialog#bbf-ship-booking .bfs-quote {
  margin: 4px 0;
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--pale);
}

dialog#bbf-ship-booking .bfs-quote div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
}

dialog#bbf-ship-booking .bfs-quote div:last-child {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 7px;
}

dialog#bbf-ship-booking .bfs-confirmation {
  background: var(--pale);
  padding: 17px;
  border-radius: 14px;
  margin-top: 18px;
}

dialog#bbf-ship-booking .bfs-confirmation h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}

dialog#bbf-ship-booking .bfs-confirmation p {
  margin: 5px 0 12px;
}

dialog#bbf-ship-booking .bfs-confirmation .bfs-actions {
  margin-top: 15px;
  gap: 8px;
  flex-wrap: wrap;
}

#bbf-shipping-app .bfs-order-details,
dialog#bbf-ship-booking .bfs-order-details {
  display: grid;
  grid-template-columns: minmax(0, 125px) minmax(0, 1fr);
  gap: 6px 10px;
  margin: 12px 0;
}

#bbf-shipping-app .bfs-order-details dt,
dialog#bbf-ship-booking .bfs-order-details dt {
  font-weight: 700;
  margin: 0;
}

#bbf-shipping-app .bfs-order-details dd,
dialog#bbf-ship-booking .bfs-order-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

dialog#bbf-ship-booking .bfs-qr-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0 14px;
  text-align: center;
}

dialog#bbf-ship-booking .bfs-qr-box img {
  max-width: 190px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto 8px;
}

dialog#bbf-ship-booking .bfs-qr-meta {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.45;
}

dialog#bbf-ship-booking .bfs-qr-status {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: #fff0f4;
  color: var(--accent);
}

dialog#bbf-ship-booking .bfs-qr-status.is-paid {
  background: #dcfce7;
  color: #166534;
}

/* ── MOBILE RESPONSIVE (EXACT DEMO BREAKPOINTS) ────────────────── */
@media (max-width: 750px) {
  #bbf-shipping-app .bfs-navlinks {
    display: none;
  }

  #bbf-shipping-app .bfs-shell {
    width: calc(100% - 28px);
  }

  #bbf-shipping-app .bfs-nav {
    min-height: 59px;
  }

  #bbf-shipping-app .bfs-nav > .bfs-btn {
    display: none;
  }

  #bbf-shipping-app .bfs-brand {
    font-size: 18px;
  }

  #bbf-shipping-app .bfs-brand .bfs-mark {
    padding: 8px;
  }

  #bbf-shipping-app .bfs-hero {
    margin-top: 12px;
    border-radius: 22px;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #bbf-shipping-app .bfs-hero-copy {
    padding: 24px 20px 21px;
  }

  #bbf-shipping-app .bfs-hero h1 {
    margin: 10px 0 13px;
  }

  #bbf-shipping-app .bfs-hero p:not(.bfs-eyebrow) {
    margin-bottom: 15px;
  }

  #bbf-shipping-app .bfs-hero-media {
    min-height: 0;
    height: clamp(170px, 49vw, 320px);
  }

  #bbf-shipping-app .bfs-media-caption {
    bottom: 11px;
    left: 11px;
  }

  #bbf-shipping-app .bfs-quick-nav {
    position: fixed;
    z-index: 95;
    bottom: 0;
    left: 0;
    right: 0;
    gap: 5px;
    margin: 0;
    padding: 6px 9px calc(6px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 24px #3d15240d;
  }

  #bbf-shipping-app .bfs-quick-nav a {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 2px;
    padding: 5px 2px;
    min-height: 49px;
    border: 0;
    font-size: 13px;
  }

  #bbf-shipping-app .bfs-quick-nav a > span {
    width: auto;
    height: auto;
    background: none;
    font-size: 17px;
  }

  #bbf-shipping-app .bfs-quick-nav small {
    display: none;
  }

  #bbf-shipping-app .bfs-section {
    scroll-margin-top: 62px;
    padding-top: 32px;
  }

  #bbf-shipping-app .bfs-catalog-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
    gap: 9px;
  }

  #bbf-shipping-app .bfs-catalog-controls label {
    font-size: 14px;
  }

  #bbf-shipping-app .bfs-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  #bbf-shipping-app .bfs-gift-visual {
    height: 83px;
    font-size: 37px;
  }

  #bbf-shipping-app .bfs-gift-body {
    padding: 11px;
  }

  #bbf-shipping-app .bfs-gift-body h3 {
    font-size: 16px;
  }

  #bbf-shipping-app .bfs-gift-body p {
    font-size: 14px;
    margin-bottom: 8px;
  }

  #bbf-shipping-app .bfs-gift-body .bfs-price {
    font-size: 17px;
  }

  #bbf-shipping-app .bfs-gift-tags span {
    font-size: 12px;
    padding: 2px 5px;
  }

  #bbf-shipping-app .bfs-track {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  #bbf-shipping-app .bfs-ride-card {
    align-items: flex-start;
    flex-direction: column;
  }

  #bbf-shipping-app .bfs-actions,
  dialog#bbf-ship-booking .bfs-actions {
    gap: 8px;
    flex-wrap: wrap;
  }

  #bbf-shipping-app .bfs-btn,
  dialog#bbf-ship-booking .bfs-btn {
    padding: 11px 13px;
  }

  dialog#bbf-ship-booking .bfs-form-grid {
    grid-template-columns: 1fr;
  }

  #bbf-shipping-app .bfs-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    margin-top: 30px;
  }
}

@media (max-width: 360px) {
  #bbf-shipping-app .bfs-lookup {
    flex-wrap: wrap;
  }

  #bbf-shipping-app .bfs-lookup input {
    flex: 1 1 100%;
  }

  #bbf-shipping-app .bfs-gift-body {
    padding: 9px;
  }
}
