/* "Bring It Home" basket: header pill and slide-in drawer. */
.bih-wrap { position: absolute; top: 50%; transform: translateY(-50%); right: 9.6rem; z-index: 30; }
/* Icon button: same size and look as the other header buttons. */
.bih-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.08rem; height: 2.08rem; padding: 0;
  border-radius: 999px; cursor: pointer; background: var(--panel, #f2e7d6); border: 1px solid #e3d3bd; color: #0f4c4f;
  box-shadow: 0 1px 4px rgba(15, 76, 79, 0.1); backdrop-filter: blur(4px); transition: background-color 0.15s ease;
}
.bih-pill::after { content: ""; position: absolute; inset: -6.5px; }
.bih-pill svg { flex: none; }
.bih-pill:hover { background: rgba(240, 228, 210, 0.95); }
.bih-pill:focus-visible { outline: 2px solid #b5533c; outline-offset: 1px; }
.bih-count { display: none; position: absolute; top: -6px; right: -6px; min-width: 1.15rem; padding: 0.15rem 0.35rem; border-radius: 999px; background: #b5533c; color: #fff; font-size: 0.68rem; line-height: 1; text-align: center; box-shadow: 0 0 0 2px var(--bg, #f9f0e4); }
.bih-count.on { display: inline-block; }
@keyframes bihbump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.bih-count.bump { animation: bihbump 0.35s ease; }
/* Header title row: transparent wrapper except on phones. */
.hrow { display: contents; }
@media (max-width: 56rem) {
  body header.has-lang, body header { padding-top: 2.9rem; }
  body header .lang-picker { top: 0.45rem; transform: none; }
}
@media (max-width: 40rem) {
  /* Phones: title and logo on top, pills in a row below with a gap. */
  /* Only the logo and brand row stays pinned; the buttons scroll away with the page. */
  html body header.has-lang, html body header { position: relative; padding-top: calc(0.75rem + 44px); padding-bottom: 4.65rem; }
  html body header .hrow { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 0.9rem; padding: 0.75rem 1rem; background: var(--bg); }
  html body header .lang-picker { top: auto; bottom: 0.5rem; transform: none; }
}
@media (max-width: 24rem) {
  html body header.has-lang, html body header { padding-top: calc(0.75rem + 34px); }
  html body header .hrow { gap: 0.55rem; padding-left: 0.6rem; padding-right: 0.6rem; }
}

.bih-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(20, 12, 8, 0.45); opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.bih-overlay.open { opacity: 1; visibility: visible; }
.bih-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(24rem, 100vw); display: flex; flex-direction: column;
  background: var(--bg-dialog, #fbf6ef); color: #6b5d57; box-shadow: -6px 0 24px rgba(15, 76, 79, 0.2);
  transform: translateX(100%); visibility: hidden; transition: transform 1s ease, visibility 1s, width 0.3s ease;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.95rem; line-height: 1.4;
}
.bih-drawer.open { transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .bih-drawer, .bih-overlay { transition: none; } .bih-count.bump { animation: none; } }
.bih-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1rem; border-bottom: 1px solid #e3d3bd; }
.bih-head h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.5rem; color: #0f4c4f; margin: 0; }
.bih-x { font: inherit; font-size: 0.85rem; border: 0; border-radius: 999px; padding: 0.45rem 0.9rem; background: var(--panel, #f2e7d6); color: #0f4c4f; cursor: pointer; border: 1px solid #e3d3bd; }
.bih-x:focus-visible, .bih-qty button:focus-visible, .bih-rm:focus-visible, .bih-clear:focus-visible, .bih-item a:focus-visible { outline: 2px solid #b5533c; outline-offset: 2px; }
.bih-list { list-style: none; margin: 0; padding: 0.5rem 1rem; overflow-y: auto; flex: 1 1 auto; }
.bih-empty { padding: 2rem 1rem; text-align: center; }
.bih-item { display: grid; grid-template-columns: 4rem 1fr auto; gap: 0.75rem; padding: 0.8rem 0; border-bottom: 1px solid #eadfce; align-items: start; }
.bih-item img, .bih-item .bih-noimg { width: 4rem; height: 5rem; object-fit: cover; border-radius: 8px; background: #eadfce; display: block; }
.bih-item a { font-family: "Cormorant Garamond", Georgia, serif; color: #0f4c4f; font-weight: 700; text-decoration: none; }
.bih-item a:hover { color: #b5533c; }
.bih-unit { font-size: 0.85rem; }
.bih-qty { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.bih-qty button { width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid #d9c7ad; background: var(--panel, #f2e7d6); color: #0f4c4f; font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.bih-qty button:disabled { opacity: 0.4; cursor: default; }
.bih-qty span { min-width: 1.4rem; text-align: center; }
.bih-side { text-align: right; }
.bih-line { color: #0f4c4f; font-weight: 500; }
.bih-rm { font: inherit; font-size: 0.8rem; margin-top: 0.5rem; background: none; border: 0; padding: 0; color: #b5533c; text-decoration: underline; cursor: pointer; }
.bih-foot { padding: 0.9rem 1rem 1.1rem; border-top: 1px solid #e3d3bd; }
.bih-total { display: flex; justify-content: space-between; font-size: 1.1rem; color: #0f4c4f; font-weight: 500; }
.bih-clear { font: inherit; font-size: 0.85rem; margin-top: 0.7rem; background: none; border: 0; padding: 0; color: #6b5d57; text-decoration: underline; cursor: pointer; }

/* Add button on the art detail page */
.bih-add {
  display: inline-block; margin-top: 1.25rem; font: inherit; font-size: 0.85rem; line-height: 1.4;
  color: #0f4c4f; background: var(--panel, #f2e7d6); border: 1px solid #0f4c4f; border-radius: 8px;
  padding: 0.3rem 0.8rem; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.bih-add:hover, .bih-add:focus-visible { background: #0f4c4f; color: #f9f0e4; }
.bih-add:disabled { opacity: 0.6; cursor: default; }
.bih-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Request These Artworks */
.bih-req {
  display: block; width: 100%; margin-top: 0.8rem; font: inherit; font-size: 0.85rem; line-height: 1.4;
  color: #0f4c4f; background: var(--panel, #f2e7d6); border: 1px solid #0f4c4f; border-radius: 8px;
  padding: 0.45rem 0.8rem; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.bih-req:hover, .bih-req:focus-visible { background: #0f4c4f; color: #f9f0e4; }
.bih-req:disabled { opacity: 0.6; cursor: default; }
.bih-form-wrap, .bih-done { flex: 1 1 auto; overflow-y: auto; padding: 0.8rem 1rem 1.2rem; }
.bih-form-wrap h3, .bih-done h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.4rem; color: #0f4c4f; margin: 0.4rem 0 0.3rem; }
.bih-back { font: inherit; font-size: 0.85rem; background: none; border: 0; padding: 0; color: #0f4c4f; text-decoration: underline; cursor: pointer; }
.bih-sum { margin: 0 0 0.4rem; color: #0f4c4f; font-weight: 500; }
.bih-note, .bih-fine { font-size: 0.8rem; margin: 0 0 0.8rem; }
.bih-f { margin-bottom: 0.7rem; min-width: 0; }
.bih-f label { display: block; font-size: 0.8rem; margin-bottom: 0.2rem; color: #0f4c4f; font-weight: 500; }
.bih-f input, .bih-f select, .bih-f textarea {
  width: 100%; font: inherit; font-size: 0.9rem; color: #6b5d57; background: #fff; border: 1px solid #d9c7ad; border-radius: 8px; padding: 0.4rem 0.55rem;
}
.bih-f textarea { resize: vertical; }
.bih-f input:focus-visible, .bih-f select:focus-visible, .bih-f textarea:focus-visible { outline: 2px solid #0f4c4f; outline-offset: 1px; }
.bih-f [aria-invalid="true"] { border-color: #a12b1f; }
.bih-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.bih-err, .bih-msg { color: #a12b1f; font-size: 0.8rem; min-height: 0; }
.bih-err:empty, .bih-msg:empty { display: none; }
.bih-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bih-dates { background: var(--panel, #f2e7d6); border: 1px solid #e3d3bd; border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0.4rem 0 0.9rem; }
.bih-dt { font-weight: 500; color: #0f4c4f; margin-bottom: 0.3rem; }
.bih-ship { background: var(--panel, #f2e7d6); border: 1px solid #e3d3bd; border-radius: 10px; padding: 0.6rem 0.9rem; margin: 0 0 0.8rem; font-size: 0.9rem; }
.bih-ship .bih-fine { margin: 0.3rem 0 0; }
.bih-dates .bih-fine { margin: 0.4rem 0 0; }

/* Policy acceptance */
.bih-agree label { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.8rem; font-weight: 400; color: #6b5d57; line-height: 1.45; cursor: pointer; }
.bih-agree input { width: 1.05rem; height: 1.05rem; margin-top: 0.1rem; flex: 0 0 auto; accent-color: #0f4c4f; }
.bih-agree a { color: #0f4c4f; text-underline-offset: 2px; }
.bih-agree a:hover, .bih-agree a:focus-visible { color: #b5533c; }
.bih-agree [aria-invalid="true"] { outline: 2px solid #a12b1f; outline-offset: 1px; }

/* Policy summary on the request form */
.bih-policies { background: var(--panel, #f2e7d6); border: 1px solid #e3d3bd; border-radius: 10px; padding: 0.55rem 0.8rem; margin: 0.2rem 0 0.6rem; }
.bih-pt { font-weight: 500; color: #0f4c4f; font-size: 0.85rem; margin-bottom: 0.25rem; }
.bih-pg { display: grid; grid-template-columns: 1fr; gap: 0.3rem 1.2rem; }
.bih-pi { font-size: 0.72rem; line-height: 1.35; }
.bih-pi a { color: #0f4c4f; font-weight: 500; text-underline-offset: 2px; }
.bih-pi a:hover, .bih-pi a:focus-visible { color: #b5533c; }
.bih-agree { margin-bottom: 0.4rem; }

/* Form view: compact on phones, wide two-column panel on laptops and desktops so it fits without scrolling. */
.bih-form-wrap { padding: 0.5rem 0.85rem 0.8rem; }
.bih-form-wrap h3 { margin: 0.2rem 0 0.15rem; }
.bih-form .bih-f { margin-bottom: 0.4rem; }
.bih-form .bih-f label { margin-bottom: 0.1rem; }
.bih-form .bih-f input, .bih-form .bih-f select, .bih-form .bih-f textarea { padding: 0.3rem 0.5rem; }
.bih-form .bih-f textarea { height: 3.1rem; }
.bih-form .bih-err { font-size: 0.72rem; }
.bih-form-wrap .bih-note { font-size: 0.75rem; margin-bottom: 0.5rem; }
.bih-form-wrap .bih-sum { margin-bottom: 0.15rem; }
.bih-form .bih-msg { margin-bottom: 0.3rem; }
@media (min-width: 48rem) {
  .bih-drawer.wide { width: min(58rem, 100vw); }
  .bih-drawer.wide .bih-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; align-items: start; }
  .bih-drawer.wide .bih-form > .bih-policies, .bih-drawer.wide .bih-form > .bih-agree, .bih-drawer.wide .bih-form > .bih-msg, .bih-drawer.wide .bih-form > .bih-req { grid-column: 1 / -1; }
  .bih-drawer.wide .bih-pg { grid-template-columns: 1fr 1fr; }
  .bih-drawer.wide .bih-form-wrap { padding: 0.5rem 1.4rem 0.8rem; }
  .bih-drawer.wide .bih-form-wrap .bih-note { max-width: none; margin-bottom: 0.4rem; }
  .bih-drawer.wide .bih-form-wrap h3 { font-size: 1.25rem; }
  .bih-drawer.wide .bih-policies { margin-bottom: 0.35rem; }
  .bih-drawer.wide .bih-form .bih-f { margin-bottom: 0.5rem; }
  .bih-drawer.wide .bih-form .bih-f textarea { height: 3.2rem; }
  .bih-drawer.wide .bih-pi { font-size: 0.74rem; }
}

/* Phones: Apartment and City share a row to save height */
@media (max-width: 47.99rem) {
  .bih-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.6rem; align-items: end; }
  .bih-form > * { grid-column: 1 / -1; }
  .bih-form > .half { grid-column: auto; }
}

/* Narrow wide-panel: title row, and spacing that grows to use the full height */
.bih-fhead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.bih-fhead h3 { margin: 0.2rem 0 0.15rem; }
.bih-form-wrap { display: flex; flex-direction: column; }
.bih-form-wrap > .bih-form { flex: 1 1 auto; }
@media (min-width: 48rem) {
  .bih-drawer.wide { width: min(40rem, 100vw); }
  .bih-drawer.wide .bih-form { align-content: space-between; }
  .bih-drawer.wide .bih-pg { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 48rem) {
  .bih-drawer.wide .bih-form .bih-f { margin-bottom: 0.4rem; }
  .bih-drawer.wide .bih-form .bih-f textarea { height: 3rem; }
  .bih-drawer.wide .bih-pg { gap: 0.2rem 1rem; }
}
.bih-form-wrap[hidden], .bih-done[hidden] { display: none; }

/* Tight spacing: no spreading, small gaps */
@media (min-width: 48rem) {
  .bih-drawer.wide .bih-form { align-content: start; column-gap: 0.7rem; }
  .bih-drawer.wide .bih-form .bih-f { margin-bottom: 0.3rem; }
  .bih-drawer.wide .bih-form .bih-row { gap: 0.4rem; }
  .bih-drawer.wide .bih-form-wrap { padding: 0.4rem 0.9rem 0.6rem; }
  .bih-drawer.wide .bih-form .bih-f label { font-size: 0.75rem; }
}

/* Width: as narrow as still fits without scrolling for the screen height */
@media (min-width: 48rem) {
  .bih-drawer.wide { width: min(32rem, 100vw); }
}
@media (min-width: 48rem) and (min-height: 760px) {
  .bih-drawer.wide { width: min(28rem, 100vw); }
}

/* Compact controls: select matches inputs; State column wide enough for "Choose State" */
.bih-form .bih-f input, .bih-form .bih-f select { height: var(--fh, 2rem); padding-top: 0; padding-bottom: 0; }
.bih-form .bih-row { grid-template-columns: 1.8fr 1fr; }
.bih-form .bih-f select { padding-left: 0.4rem; padding-right: 0.1rem; font-size: 0.85rem; }
.bih-form .bih-f label { line-height: 1.2; }
.bih-form > .bih-req { height: 2.5rem; padding-top: 0; padding-bottom: 0; }

/* Taller screens: spare height (--ex, measured on the visible screen) goes into the controls, notes box and spacing.
   Uses dvh so browser toolbars on Safari/mobile are not counted, and keeps well under the free height. */
@media (min-width: 48rem) {
  .bih-drawer.wide { --ex: clamp(0px, calc(100vh - 700px), 200px); --fh: calc(2rem + var(--ex) * 0.03); }
  @supports (height: 100dvh) { .bih-drawer.wide { --ex: clamp(0px, calc(100dvh - 700px), 200px); } }
  .bih-drawer.wide .bih-form .bih-f { margin-bottom: calc(0.3rem + var(--ex) * 0.04); }
  .bih-drawer.wide .bih-form .bih-f textarea { height: calc(2.6rem + var(--ex) * 0.14); }
  .bih-drawer.wide .bih-policies { padding: calc(0.5rem + var(--ex) * 0.03) 0.8rem; }
  .bih-drawer.wide .bih-pg { gap: calc(0.2rem + var(--ex) * 0.03) 1rem; }
  .bih-drawer.wide .bih-form-wrap { padding-bottom: 0.5rem; }
  /* Any height still left over is shared evenly between the rows, so nothing is ever pushed off screen. */
  .bih-drawer.wide .bih-form { align-content: space-between; }
}

/* Checkbox centred on its text; Send Request only as wide as it needs on laptops and desktops */
.bih-agree label { align-items: center; }
.bih-agree input { margin: 0; }
@media (min-width: 48rem) {
  .bih-drawer.wide .bih-form > .bih-req { width: auto; justify-self: center; padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* Space above the first fields; ZIP below State on laptops and desktops, notes box fills the height beside them */
.bih-form { padding-top: 0.7rem; }
@media (min-width: 48rem) {
  .bih-drawer.wide .bih-form .bih-row { grid-template-columns: 1fr; gap: 0; }
  .bih-drawer.wide .bih-form .bih-f.notes { display: flex; flex-direction: column; align-self: stretch; }
  .bih-drawer.wide .bih-form .bih-f.notes textarea { flex: 1 1 auto; height: auto; min-height: 2.6rem; resize: none; }
}

/* Width and spare-height tiers (the form needs about 700px of height at 28rem wide, 650px at 32rem wide, plus the header) */
@media (min-width: 48rem) {
  .bih-drawer.wide { width: min(32rem, 100vw); --ex: clamp(0px, calc(100vh - 740px), 60px); }
  @supports (height: 100dvh) { .bih-drawer.wide { --ex: clamp(0px, calc(100dvh - 740px), 60px); } }
}
@media (min-width: 48rem) and (min-height: 790px) {
  .bih-drawer.wide { width: min(28rem, 100vw); --ex: clamp(0px, calc(100vh - 790px), 200px); }
  @supports (height: 100dvh) { .bih-drawer.wide { --ex: clamp(0px, calc(100dvh - 790px), 200px); } }
}
@media (min-width: 48rem) and (max-height: 739px) {
  .bih-drawer.wide { --ex: 0px; --fh: 1.8rem; }
  .bih-drawer.wide .bih-form { padding-top: 0.5rem; }
  .bih-drawer.wide .bih-form .bih-f { margin-bottom: 0.2rem; }
  .bih-drawer.wide .bih-pi { font-size: 0.7rem; line-height: 1.3; }
  .bih-drawer.wide .bih-policies { padding: 0.4rem 0.7rem; margin-bottom: 0.25rem; }
  .bih-drawer.wide .bih-form-wrap .bih-note { margin-bottom: 0.2rem; }
}

/* Even vertical spacing: one gap (--rg) between every field, the policy box, the checkbox and the button */
@media (min-width: 48rem) {
  .bih-drawer.wide { --rg: calc(0.35rem + var(--ex) * 0.13); }
  .bih-drawer.wide .bih-form { row-gap: var(--rg); align-content: start; }
  .bih-drawer.wide .bih-form .bih-f, .bih-drawer.wide .bih-form > .bih-policies, .bih-drawer.wide .bih-form > .bih-agree, .bih-drawer.wide .bih-form > .bih-req { margin-top: 0; margin-bottom: 0; }
  .bih-drawer.wide .bih-form .bih-row { display: flex; flex-direction: column; gap: var(--rg); }
}
@media (min-width: 48rem) and (max-height: 739px) {
  .bih-drawer.wide { --rg: 0.2rem; }
}

/* Basket: the Request These Artworks button is only as wide as its text, centered */
.bih-foot .bih-req { width: auto; margin-left: auto; margin-right: auto; }

/* Request form: room under the Send Request button, and about half the space above and below the consent checkbox. */
html .bih-drawer .bih-form-wrap, html .bih-drawer.wide .bih-form-wrap { padding-bottom: 1.25rem; }
html .bih-drawer .bih-form > .bih-agree, html .bih-drawer.wide .bih-form > .bih-agree { margin-top: calc(var(--rg, 0.6rem) * -0.5); margin-bottom: calc(var(--rg, 0.6rem) * -0.5); }

/* Optional account offer on the "Request Sent" screen */
.bih-acct { margin: 0.9rem 0 1rem; background: var(--bg-dialog, #fbf6ef); border: 1px solid #e3d3bd; border-radius: 12px; padding: 0.85rem 0.95rem; }
.bih-acct h3 { margin-top: 0.1rem; }
.bih-eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b5d57; }
.bih-saved { background: var(--panel, #f2e7d6); border: 1px solid #e3d3bd; border-radius: 10px; padding: 0.55rem 0.8rem; margin: 0.2rem 0 0.7rem; font-size: 0.85rem; }
.bih-sv { display: flex; flex-wrap: wrap; gap: 0 0.7rem; line-height: 1.45; }
.bih-sk { min-width: 4rem; color: #6b5d57; }
.bih-acct .bih-agree { margin-bottom: 0.5rem; }
.bih-acts { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.5rem; }
.bih-abtn {
  display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 0.9rem; line-height: 1.4; min-height: 2.5rem; padding: 0 1.4rem; text-decoration: none;
  color: #0f4c4f; background: var(--panel, #f2e7d6); border: 1px solid #0f4c4f; border-radius: 8px; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.bih-abtn:hover, .bih-abtn:focus-visible { background: #0f4c4f; color: #f9f0e4; }
.bih-abtn:disabled { opacity: 0.6; cursor: default; }
.bih-linkbtn { font: inherit; font-size: 0.9rem; min-height: 2.5rem; padding: 0 1rem; color: #0f4c4f; background: transparent; border: 1px solid #d9c7ad; border-radius: 8px; cursor: pointer; }
.bih-linkbtn:hover, .bih-linkbtn:focus-visible { background: var(--panel, #f2e7d6); border-color: #0f4c4f; }
.bih-acct input[aria-invalid="true"] { border-color: #a12b1f; }
.bih-acct .bih-f input:focus-visible { outline: 2px solid #0f4c4f; outline-offset: 1px; }

/* Signed-in details card, Edit fields and the inline Sign In steps inside the request form. */
.bih-form[hidden], .bih-form [hidden] { display: none !important; }
.bih-form > .bih-idcard, .bih-form > .bih-idacts { grid-column: 1 / -1; }
.bih-sumrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 1rem; }
.bih-sumrow .bih-sum { margin: 0; }
.bih-idrow { font-size: 0.85rem; font-weight: 700; color: #b5533c; padding: 0.1rem 0.7rem; border: 1px solid #d9c7ad; border-radius: 8px; }
.bih-form > .bih-idrow, .bih-form > .bih-editbanner { grid-column: 1 / -1; }
.bih-editbanner { font-size: 0.8rem; padding: 0.45rem 0.7rem; border-radius: 8px; background: #f1e6d3; color: #3a2a22; }
.bih-editbanner[hidden] { display: none; }
.bih-notesbox .bih-textbtn { display: block; }
@media (min-width: 48rem) { .bih-drawer.wide .bih-form .bih-notesbox { display: flex; flex-direction: column; align-self: stretch; } }
.bih-idrow[hidden] { display: none; }
.bih-textbtn { font: inherit; font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.25rem; color: #b5533c; background: none; border: 0; border-radius: 4px; text-decoration: underline; cursor: pointer; }
.bih-textbtn:hover { color: #8f3b27; }
.bih-textbtn:focus-visible { outline: 2px solid #b5533c; outline-offset: 1px; }
.bih-idcard { margin-bottom: 0.4rem; }
.bih-idcard .bih-saved { margin: 0.1rem 0 0.5rem; }
.bih-idcard .bih-linkbtn { min-height: 2.2rem; }
.bih-idacts { margin-top: 0.1rem; }
.bih-idmsg { color: #a12b1f; font-size: 0.8rem; margin-bottom: 0.3rem; }
.bih-idmsg:empty { display: none; }
.bih-idacts .bih-acts { margin-top: 0.2rem; }
.bih-signin { margin: 0.4rem 0 0.6rem; }
.bih-signin .bih-f input { padding: 0.4rem 0.55rem; }
.bih-signin h4 { margin: 0.2rem 0 0.2rem; }
/* While details are edited the rows below are hidden; keep the fields where they were instead of spreading them out. */
.bih-form.editing, .bih-drawer.wide .bih-form.editing { align-content: start !important; }
/* Wide drawer: State and ZIP sit side by side, and the collapsed notes link takes one slim row, so the Sign In bar fits without scrolling. */
@media (min-width: 48rem) {
  .bih-drawer.wide .bih-form .bih-row { display: grid; grid-template-columns: 1.8fr 1fr; column-gap: 0.7rem; row-gap: 0; }
  .bih-drawer.wide .bih-form .bih-notesbox { display: block; grid-column: 1 / -1; align-self: start; }
}
.bih-idrow { padding: 0 0.7rem; }
.bih-idrow .bih-textbtn { padding: 0.2rem 0.25rem; }
.bih-form > .bih-idrow { margin-bottom: 0.55rem; }
@media (min-width: 48rem) { .bih-drawer.wide .bih-form > .bih-idrow { margin-bottom: 0; line-height: 1.15; } }

/* Phones: Close and "Bring It Home" get a 44px tap area without changing how they look. */
@media (max-width: 47.9rem) {
  .bih-x, .bih-add { position: relative; }
  .bih-x::after { content: ""; position: absolute; inset: -5px 0; }
  .bih-add::after { content: ""; position: absolute; inset: -7px 0; }
}

/* Phones: the request form heading and Back To Basket share one line. */
@media (max-width: 47.9rem) {
  .bih-fhead { gap: 0.6rem; align-items: center; }
  .bih-fhead h3, .bih-form-wrap .bih-fhead h3 { font-size: 1.1rem; line-height: 1.2; }
  .bih-back { position: relative; white-space: nowrap; flex: none; }
  .bih-back::after { content: ""; position: absolute; inset: -14px -6px; }
}
