/* Additions the old theme did not need: order page, form status, cart count. */
.hidden { display: none !important; }
/* The theme's header is fixed and takes no space, so pages that start with a
   plain heading (order, policies, search) had it hidden under the header.
   site.js sets --grip-header-h to the header's real height. */
:root { --grip-header-h: 78px; }
@media (min-width: 768px) { :root { --grip-header-h: 90px; } }
.grip-cart, .shopify-policy__container, .container:has(.blog-filters) { margin-top: var(--grip-header-h); }
#collection-ajax:has(#PageSearch) { padding-top: var(--grip-header-h); }
.grip-cart { max-width: 1000px; margin-left: auto; margin-right: auto; }
.grip-cart__table { width: 100%; border-collapse: collapse; }
.grip-cart__table th, .grip-cart__table td { padding: 12px 8px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); text-align: left; vertical-align: middle; }
.grip-cart__table th { font-weight: 600; font-size: 0.875em; }
.grip-num { text-align: right !important; white-space: nowrap; }
.grip-cart__item { display: flex; gap: 12px; align-items: center; }
.grip-cart__item img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.grip-qty { width: 72px; padding: 6px 8px; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 6px; text-align: right; font: inherit; }
.grip-order-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grip-order-form .field { position: relative; }
.grip-order-form textarea.field__input { min-height: 96px; padding-top: 22px; }
.grip-span-2 { grid-column: span 2; }
.grip-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.grip-cart__sent { text-align: center; padding: 40px 0; }
.grip-form-status { margin-top: 12px; font-size: 0.9375em; }
.grip-form-status:empty { display: none; }
.grip-form-status--error { color: #b00020; }
.grip-turnstile:empty { display: none; }
.grip-org { position: relative; }
.grip-org__list {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none;
  max-height: 288px; overflow-y: auto; background: #fff; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.grip-org__list li { padding: 8px 12px; cursor: pointer; line-height: 1.3; }
.grip-org__list li span { font-size: 0.875em; margin-left: 4px; }
.grip-org__list li[aria-selected="true"], .grip-org__list li:hover { background: rgba(0, 0, 0, 0.06); }
.grip-org__hint { margin: 6px 0 0; }
.grip-cart-count {
  position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #111; color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
@media (max-width: 767px) {
  .grip-order-form__grid { grid-template-columns: 1fr; }
  .grip-span-2 { grid-column: auto; }
  .grip-cart__table thead { display: none; }
  .grip-cart__table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
  .grip-cart__table td { border: 0; padding: 2px 0; }
  .grip-cart__table td:first-child { grid-column: 1 / -1; }
  .grip-cart__table td[data-label]::before { content: attr(data-label) ': '; font-size: 0.8125em; opacity: 0.7; }
  .grip-cart__table tfoot tr { display: flex; justify-content: space-between; }
}
