.store-order-title { position: relative; min-width: 0; }
.store-order-title > .product-stage-title { display: inline; overflow-wrap: anywhere; }

body:not(.admin-body) :is(.store-order-title > .store-order-trigger, .store-made-to-order > .store-order-label) {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  width: max-content;
  max-width: 100%;
  border: 1px solid #bfd9cf;
  border-radius: 999px;
  background: #eaf6f0;
  color: #185341 !important;
  font: 700 11px/1.2 var(--theme-font-family, Manrope, sans-serif);
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}
.store-order-trigger {
  min-height: 28px;
  padding: 3px 8px;
  margin-inline-start: .22rem;
  vertical-align: .16em;
  cursor: pointer;
}
body:not(.admin-body) .store-order-title > .store-order-trigger:hover { border-color: #79ad98; background: #dcefe6; }
.store-order-trigger:focus-visible { outline: 2px solid #0d7857; outline-offset: 2px; }
.store-order-trigger > svg, .store-order-label > svg { flex: 0 0 auto; }
/* The product stage gives buttons white icons by default; this pill is light. */
body:not(.admin-body) .store-order-title > .store-order-trigger :is(svg, svg *) {
  color: #185341 !important;
  stroke: #185341 !important;
  fill: none !important;
}

body:not(.admin-body) .store-order-title > .store-order-tooltip {
  position: absolute;
  z-index: 10;
  inset: 100% auto auto 0;
  width: min(100%, 310px);
  padding: 9px 12px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #143b31;
  color: #fff !important;
  font: 500 12px/1.5 var(--theme-font-family, Manrope, sans-serif);
  box-shadow: 0 4px 14px #173a3529;
  visibility: hidden;
}
html:not(.store-stock-dialog-open) .store-order-title:not([data-order-help-dismissed]):has(.store-order-trigger:focus-visible) > .store-order-tooltip { visibility: visible; }
@media (hover: hover) {
  html:not(.store-stock-dialog-open) .store-order-title:not([data-order-help-dismissed]):has(.store-order-trigger:hover, .store-order-tooltip:hover) > .store-order-tooltip { visibility: visible; }
}
@media (pointer: coarse) {
  .store-order-trigger { min-height: 32px; }
}

body:not(.admin-body) .store-made-to-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  max-width: 100%;
  margin-block-end: 10px;
  font-size: 12px;
  text-align: start;
}
body:not(.admin-body) .store-made-to-order.is-compact { margin: 5px 0 0; }
body:not(.admin-body) .store-made-to-order > .store-order-label { flex: none; margin: 0; padding: 3px 7px; }
body:not(.admin-body) .store-made-to-order > .store-order-estimate {
  display: block;
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  color: #38534a !important;
  font: 500 12px/1.4 var(--theme-font-family, Manrope, sans-serif);
  white-space: normal;
}
.store-order-consult { margin-block-start: 10px; }
