/*
 * Copyright (c) 2026 Conscious Industries Irrevocable Trust.
 * All rights reserved.
 */

.olm-shell {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: clamp(1.1rem, 3vw, 2.2rem);
  color: #f8f1da;
  background: #f4edd9;
}

.olm-board-frame {
  position: relative;
  box-sizing: border-box;
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: clamp(0.7rem, 1.8vw, 1.25rem);
  border: 1px solid #3c2212;
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(255, 214, 145, 0.16) 0 8%, transparent 9%),
    radial-gradient(ellipse at 80% 66%, rgba(49, 24, 10, 0.2) 0 10%, transparent 11%),
    repeating-linear-gradient(94deg, #7b4a27 0 14px, #8f5b31 14px 28px, #6d3e20 28px 43px, #965f32 43px 58px);
  box-shadow: 0 18px 44px rgba(31, 24, 14, 0.28), inset 0 0 0 3px rgba(255, 222, 166, 0.17);
}

.olm-board-frame::before,
.olm-board-frame::after {
  position: absolute;
  right: 8%;
  left: 8%;
  height: 2px;
  background: rgba(52, 27, 14, 0.35);
  content: "";
}

.olm-board-frame::before { top: 0.48rem; }
.olm-board-frame::after { bottom: 0.48rem; }

.olm-board-surface {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  border: 1px solid rgba(240, 226, 188, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 16%, rgba(174, 216, 98, 0.07), transparent 24rem),
    radial-gradient(circle at 88% 88%, rgba(255, 221, 143, 0.06), transparent 25rem),
    linear-gradient(145deg, #173c2b 0%, #102f22 58%, #0d281d 100%);
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.35);
}

.olm-board-surface::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: repeating-linear-gradient(0deg, transparent 0 7px, #fff 8px);
  content: "";
}

.olm-pin {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 10px;
  border: 1px solid #33200f;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4dd9c 0 18%, #a4783c 42%, #5c3a1b 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.olm-pin--tl { top: 9px; left: 12px; }
.olm-pin--tr { top: 9px; right: 12px; }
.olm-pin--bl { bottom: 9px; left: 12px; }
.olm-pin--br { right: 12px; bottom: 9px; }

.olm-board-header,
.olm-board-footer,
.olm-inventory-region,
.olm-category-grid,
.olm-empty-state {
  position: relative;
  z-index: 1;
}

.olm-cart-toast {
  position: absolute;
  z-index: 4;
  top: 1rem;
  right: 1rem;
  max-width: min(360px, calc(100% - 2rem));
  padding: 0.72rem 1rem;
  border: 1px solid rgba(245, 228, 176, 0.5);
  border-radius: 999px;
  color: #173c2b;
  background: #f5e4b0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.olm-cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.olm-board-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(248, 241, 218, 0.22);
}

.olm-board-header > div:first-child {
  min-width: 0;
}

.olm-eyebrow {
  margin: 0 0 0.45rem;
  color: #a8d65b;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.olm-board-header h2 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.olm-intro {
  max-width: 740px;
  margin: 0.75rem 0 0;
  color: #dfe8d7;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.6;
}

.olm-live-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: 0.3rem;
  width: 310px;
  min-width: 310px;
  overflow: hidden;
  padding: 0.3rem;
  border: 1px solid rgba(168, 214, 91, 0.25);
  border-radius: 14px;
  color: #eff6e8;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.olm-live-status:hover,
.olm-live-status:focus-visible {
  border-color: rgba(245, 228, 176, 0.58);
  color: #fffaf0;
  background: rgba(0, 0, 0, 0.28);
}

.olm-status-row {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.42rem;
  align-items: center;
  min-width: 0;
  padding: 0.48rem 0.52rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.olm-status-row + .olm-status-row {
  border-left: 1px solid rgba(248, 241, 218, 0.14);
}

.olm-status-row strong {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.olm-status-row small {
  grid-column: 2;
  margin-top: 0.12rem;
  color: #b9c8b7;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.olm-live-dot {
  grid-row: 1 / 3;
  align-self: center;
  width: 9px;
  height: 9px;
  margin: 0;
  border-radius: 50%;
  background: #a8d65b;
  box-shadow: 0 0 0 4px rgba(168, 214, 91, 0.14);
}

.olm-cart-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 13px;
  height: 13px;
  margin: 0;
  overflow: visible;
  fill: none;
  stroke: #f3c96a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.olm-cart-status small {
  color: #e9dcae;
}

.olm-cart-status .woocommerce-Price-amount {
  color: inherit;
}

.olm-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.olm-category {
  min-width: 0;
}

.olm-category h3 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin: 0 0 0.7rem;
  color: #f5e4b0;
  font-size: 1.35rem;
  font-weight: 800;
}

.olm-category h3 small {
  color: #aebfad;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.olm-items {
  display: grid;
  gap: 0.65rem;
}

.olm-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  grid-template-areas:
    "image copy stock"
    "image actions actions";
  gap: 0.8rem;
  align-items: start;
  padding: 0.72rem;
  border: 1px solid rgba(248, 241, 218, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.olm-item:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 214, 91, 0.35);
  background: rgba(255, 255, 255, 0.09);
}

.olm-item-image {
  grid-area: image;
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid rgba(245, 228, 176, 0.32);
  border-radius: 11px;
  background: #f7f1de;
}

.olm-item-image img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.olm-item-copy {
  grid-area: copy;
  min-width: 0;
}

.olm-item-copy h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.olm-item-copy h4 a {
  color: #fffaf0;
  text-decoration: none;
}

.olm-item-copy h4 a:hover,
.olm-item-copy h4 a:focus-visible {
  color: #a8d65b;
  text-decoration: underline;
}

.olm-price {
  margin-top: 0.22rem;
  color: #d6e3ce;
  font-size: 0.88rem;
  font-weight: 700;
}

.olm-price del { opacity: 0.58; }
.olm-price ins { color: #a8d65b; text-decoration: none; }

.olm-freshness {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.42rem;
}

.olm-freshness-date {
  display: grid;
  gap: 0.08rem;
  min-width: 92px;
  padding: 0.3rem 0.42rem;
  border: 1px solid rgba(245, 228, 176, 0.17);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.14);
  line-height: 1.15;
}

.olm-freshness-date small {
  color: #aebfad;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.olm-freshness-date time {
  color: #fffaf0;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.olm-freshness-date.is-consume-by {
  border-color: rgba(168, 214, 91, 0.3);
  background: rgba(168, 214, 91, 0.09);
}

.olm-freshness-date.is-consume-by small,
.olm-freshness-date.is-consume-by time {
  color: #d9efad;
}

.olm-stock {
  grid-area: stock;
  box-sizing: border-box;
  align-self: start;
  min-width: 78px;
  padding: 0.34rem 0.46rem;
  border: 1px solid rgba(168, 214, 91, 0.24);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.16);
  text-align: center;
}

.olm-stock strong {
  display: block;
  color: #a8d65b;
  font-size: 1.65rem;
  line-height: 1;
}

.olm-stock span {
  display: block;
  margin-top: 0.2rem;
  color: #c7d2c3;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.olm-item.is-low-stock .olm-stock strong,
.olm-item.is-low-stock .olm-stock span {
  color: #f3c96a;
}

.olm-item.is-unavailable {
  opacity: .8;
}

.olm-item.is-unavailable .olm-stock {
  border-color: rgba(199, 210, 195, .3);
  background: rgba(0, 0, 0, .23);
}

.olm-item.is-unavailable .olm-stock strong,
.olm-item.is-unavailable .olm-stock span {
  color: #d6ddd1;
}

.olm-not-available {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .5rem .75rem;
  border: 1px dashed rgba(199, 210, 195, .45);
  border-radius: 999px;
  color: #d6ddd1;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.25;
}

.olm-item-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  align-items: center;
}

.olm-item-info-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.olm-direct-order {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: start;
  gap: 0.42rem;
  align-items: center;
}

.olm-quantity-label {
  color: #c7d2c3;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.olm-quantity-picker {
  display: grid;
  grid-template-columns: 30px 42px 30px;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid rgba(245, 228, 176, 0.32);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.olm-quantity-step,
.olm-quantity-input {
  box-sizing: border-box;
  min-width: 0;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fffaf0;
  background: transparent;
  font: inherit;
  line-height: 34px;
  text-align: center;
}

.olm-quantity-step {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.olm-quantity-step:hover,
.olm-quantity-step:focus-visible {
  color: #173c2b;
  background: #f5e4b0;
  outline: none;
}

.olm-shell input.olm-quantity-input {
  width: 100% !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1px solid rgba(245, 228, 176, 0.22) !important;
  border-left: 1px solid rgba(245, 228, 176, 0.22) !important;
  border-radius: 0 !important;
  color: #fffaf0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 34px !important;
  appearance: textfield;
}

.olm-shell input.olm-quantity-input:focus {
  color: #173c2b !important;
  background: #fffaf0 !important;
  outline: 2px solid #a8d65b;
  outline-offset: -2px;
}

.olm-quantity-input::-webkit-inner-spin-button,
.olm-quantity-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.olm-details-link,
.olm-batch-link,
.olm-shell .olm-add-button,
.olm-shell .olm-order-lock,
.olm-shell .added_to_cart {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(168, 214, 91, 0.42);
  border-radius: 999px;
  color: #ecf5e5;
  background: rgba(49, 143, 67, 0.18);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

button.olm-details-link,
button.olm-batch-link {
  cursor: pointer;
  font-family: inherit;
}

.olm-batch-link {
  border-color: rgba(243, 201, 106, 0.56);
  color: #f5e4b0;
  background: rgba(243, 201, 106, 0.1);
}

.olm-shell .olm-add-button {
  min-width: 98px;
  border-color: #a8d65b;
  color: #173c2b;
  background: #a8d65b;
}

.olm-shell .olm-order-lock {
  min-width: 118px;
  border-color: #f3c96a;
  color: #173c2b;
  background: #f3c96a;
}

.olm-live-status.is-guest-preview {
  border-color: rgba(243, 201, 106, 0.42);
}

.olm-details-link:hover,
.olm-details-link:focus-visible,
.olm-batch-link:hover,
.olm-batch-link:focus-visible,
.olm-shell .olm-add-button:hover,
.olm-shell .olm-add-button:focus-visible,
.olm-shell .olm-order-lock:hover,
.olm-shell .olm-order-lock:focus-visible,
.olm-shell .added_to_cart:hover,
.olm-shell .added_to_cart:focus-visible {
  color: #173c2b;
  border-color: #f5e4b0;
  background: #f5e4b0;
}

.olm-shell .olm-add-button.loading {
  cursor: wait;
  opacity: 0.7;
}

.olm-shell .olm-add-button.added {
  border-color: #f5e4b0;
}

.olm-shell .added_to_cart {
  border-style: dashed;
  color: #f5e4b0;
  background: transparent;
}

.olm-product-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-width: none;
  max-height: min(760px, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #53331c;
  border-radius: 22px;
  color: #173c2b;
  background: #f5eedb;
  box-shadow: 0 28px 90px rgba(7, 22, 16, 0.52);
}

.olm-product-dialog:not([open]) {
  display: none;
}

.olm-product-dialog::backdrop {
  background: rgba(7, 22, 16, 0.72);
  backdrop-filter: blur(3px);
}

.olm-product-dialog-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  min-height: 360px;
}

.olm-product-dialog-close {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(245, 228, 176, 0.45);
  border-radius: 50%;
  color: #fffaf0;
  background: #173c2b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
}

.olm-product-dialog-close:hover,
.olm-product-dialog-close:focus-visible {
  color: #173c2b;
  background: #f3c96a;
  outline: 3px solid rgba(168, 214, 91, 0.65);
  outline-offset: 2px;
}

.olm-product-dialog-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.92), transparent 58%),
    linear-gradient(150deg, #efe2be, #f8f3e6);
}

.olm-product-dialog-media img {
  display: block;
  width: 100%;
  max-height: 390px;
  margin: 0;
  border-radius: 15px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(68, 42, 21, 0.16));
}

.olm-product-dialog-content {
  min-width: 0;
  padding: clamp(1.7rem, 4vw, 2.7rem);
  padding-right: clamp(3.8rem, 6vw, 4.7rem);
}

.olm-product-dialog-eyebrow {
  margin: 0 0 0.42rem;
  color: #6b7e48;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.olm-product-dialog-content h3 {
  margin: 0;
  color: #173c2b;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.olm-product-dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.9rem;
}

.olm-product-dialog-price,
.olm-product-dialog-stock {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.olm-product-dialog-price {
  color: #fffaf0;
  background: #173c2b;
}

.olm-product-dialog-price .woocommerce-Price-amount {
  color: inherit;
}

.olm-product-dialog-stock {
  border: 1px solid #cbd5a9;
  color: #315f37;
  background: #edf2d8;
}

.olm-product-dialog-description {
  margin-top: 1rem;
  color: #33493c;
  font-size: 0.95rem;
  line-height: 1.62;
}

.olm-product-dialog-description > :first-child { margin-top: 0; }
.olm-product-dialog-description > :last-child { margin-bottom: 0; }

.olm-product-dialog-freshness {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.olm-product-dialog-freshness span {
  display: grid;
  gap: 0.12rem;
  padding: 0.58rem 0.68rem;
  border: 1px solid #d9cca8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
}

.olm-product-dialog-freshness small {
  color: #6b7e48;
  font-size: 0.59rem;
  font-weight: 850;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.olm-product-dialog-freshness time {
  color: #173c2b;
  font-size: 0.76rem;
  font-weight: 850;
}

.olm-product-dialog-guidance {
  margin: 1.15rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #d9cca8;
  color: #657468;
  font-size: 0.76rem;
  line-height: 1.45;
}

.olm-batch-dialog {
  width: min(680px, calc(100vw - 2rem));
}

.olm-batch-dialog-card {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  padding-right: clamp(3.8rem, 7vw, 4.8rem);
  background:
    linear-gradient(rgba(255, 250, 240, 0.93), rgba(245, 238, 219, 0.97)),
    repeating-linear-gradient(0deg, rgba(83, 51, 28, 0.05) 0 1px, transparent 1px 5px);
}

.olm-batch-dialog-heading h3 {
  margin: 0;
  color: #173c2b;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.08;
}

.olm-batch-status {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.3rem 0.58rem;
  border: 1px solid #c7a55b;
  border-radius: 999px;
  color: #725316;
  background: #fff4cc;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.olm-batch-status.is-complete {
  border-color: #91b75d;
  color: #24582f;
  background: #edf6d9;
}

.olm-batch-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.olm-batch-record-grid > div {
  min-width: 0;
  padding: 0.72rem 0.78rem;
  border: 1px solid #d9cca8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.olm-batch-record-grid dt {
  color: #6b7e48;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.olm-batch-record-grid dd {
  margin: 0.22rem 0 0;
  overflow-wrap: anywhere;
  color: #173c2b;
  font-size: 0.92rem;
  font-weight: 850;
}

.olm-batch-record-grid dd.is-pending {
  color: #8a6a3d;
  font-weight: 700;
}

.olm-batch-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.olm-batch-action {
  min-height: 38px;
  padding: 0.55rem 0.82rem;
  border: 1px solid #315f37;
  border-radius: 999px;
  color: #315f37;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
}

.olm-batch-action.is-primary,
.olm-batch-action:hover,
.olm-batch-action:focus-visible {
  color: #fffaf0;
  background: #315f37;
}

.olm-batch-record-note {
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid #d9cca8;
  color: #5f6f63;
  font-size: 0.75rem;
  line-height: 1.5;
}

.olm-batch-record-hash {
  display: grid;
  gap: 0.15rem;
  margin: 0.7rem 0 0;
  color: #708074;
  font-size: 0.62rem;
}

.olm-batch-record-hash span {
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.olm-batch-record-hash code {
  overflow-wrap: anywhere;
  color: #435548;
  font-size: 0.62rem;
}

.olm-empty-state {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  align-items: center;
  min-height: 130px;
  margin-top: 1.5rem;
  padding: 1.4rem;
  border: 1px dashed rgba(245, 228, 176, 0.35);
  border-radius: 14px;
  color: #e8eedf;
  text-align: center;
}

.olm-empty-state > span {
  color: #f3c96a;
  font-size: 1.6rem;
}

.olm-empty-state p { margin: 0; }

.olm-board-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 241, 218, 0.16);
  color: #aebfad;
  font-size: 0.74rem;
}

.olm-board-footer a {
  color: #f5e4b0;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.olm-member-gate {
  max-width: 560px;
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid #c7d8b5;
  border-left: 5px solid #318f43;
  border-radius: 10px;
  color: #24382b;
  background: #f5f8ec;
}

.olm-member-gate strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #193b2b;
}

.olm-member-gate p { margin: 0; }

.olm-member-gate a {
  color: #246f35;
  font-weight: 800;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .olm-shell { padding: 0.8rem; }
  .olm-board-frame { border-radius: 18px; }
  .olm-board-surface { padding: 1.25rem; }
  .olm-board-header { display: block; }
  .olm-live-status {
    width: 100%;
    min-width: 0;
    margin-top: 0.85rem;
  }
  .olm-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas:
      "image copy stock"
      "image actions actions";
  }
  .olm-item-image { width: 48px; height: 48px; }
  .olm-item-actions {
    justify-content: space-between;
    width: 100%;
  }
  .olm-direct-order {
    justify-content: end;
    margin-left: auto;
  }
  .olm-board-footer { display: grid; }

  .olm-product-dialog-card {
    grid-template-columns: 1fr;
  }

  .olm-product-dialog-media {
    min-height: 190px;
    padding: 1rem 3.5rem;
  }

  .olm-product-dialog-media img {
    max-height: 210px;
  }

  .olm-product-dialog-content {
    padding: 1.3rem;
  }

  .olm-product-dialog-content h3 {
    padding-right: 2.3rem;
  }

  .olm-batch-dialog-card {
    padding: 1.3rem;
    padding-right: 3.6rem;
  }

  .olm-batch-record-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .olm-item {
    grid-template-columns: minmax(0, 1fr) minmax(68px, 76px);
    grid-template-areas:
      "copy stock"
      "actions actions";
    column-gap: 0.48rem;
  }
  .olm-item-image { display: none; }
  .olm-item-copy {
    padding-right: 0;
  }
  .olm-stock {
    position: static;
    grid-area: stock;
    width: 100%;
    min-width: 0;
    padding-right: 0.3rem;
    padding-left: 0.3rem;
  }
  .olm-stock strong {
    font-size: 1.4rem;
  }
  .olm-stock span {
    font-size: 0.58rem;
    line-height: 1.14;
    white-space: normal;
  }
  .olm-item-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.38rem;
  }
  .olm-item-info-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .olm-details-link,
  .olm-batch-link {
    width: 100%;
    min-width: 0;
  }
  .olm-direct-order {
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch;
    gap: 0.38rem;
    width: 100%;
    margin-left: 0;
  }
  .olm-quantity-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .olm-quantity-picker {
    grid-template-columns: 26px 36px 26px;
  }
  .olm-details-link,
  .olm-batch-link,
  .olm-shell .olm-add-button,
  .olm-shell .olm-order-lock,
  .olm-shell .added_to_cart {
    padding-right: 0.58rem;
    padding-left: 0.58rem;
  }
  .olm-shell .olm-add-button {
    width: 100%;
    min-width: 0;
  }
  .olm-shell .olm-order-lock { min-width: 112px; }
  .olm-category h3 { display: grid; gap: 0.2rem; }
  .olm-freshness {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.24rem;
    margin-right: 0;
  }
  .olm-freshness-date {
    min-width: 0;
    padding: 0.28rem 0.36rem;
  }
  .olm-freshness-date time {
    font-size: 0.64rem;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .olm-item { column-gap: 0.38rem; }
}

@media (prefers-reduced-motion: reduce) {
  .olm-item,
  .olm-live-status { transition: none; }
}

@media print {
  html.olm-batch-printing body * {
    visibility: hidden !important;
  }

  html.olm-batch-printing .olm-batch-dialog[open],
  html.olm-batch-printing .olm-batch-dialog[open] * {
    visibility: visible !important;
  }

  html.olm-batch-printing .olm-batch-dialog[open] {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  html.olm-batch-printing .olm-batch-dialog-card {
    padding: 0;
    background: #fff;
  }

  html.olm-batch-printing .olm-product-dialog-close,
  html.olm-batch-printing .olm-batch-record-actions {
    display: none !important;
  }
}
