.ip-stage {
  display: grid;
  place-items: center;
  min-inline-size: 0;
  inline-size: 100%;
  min-block-size: 18rem;
  padding: clamp(14px, 4.8%, 36px);
  box-sizing: border-box;
  container-type: inline-size;
  isolation: isolate;
  font:
    500 1rem/1.35 var(--font-body, system-ui),
    sans-serif;
}
.ip-stage *,
.ip-stage *::before,
.ip-stage *::after {
  box-sizing: border-box;
}
.ip-stage :is(p, dt, dd, dl, fieldset, legend) {
  margin: 0;
  padding: 0;
}
.ip-stage details:not([open]) > :not(summary) {
  display: none;
}
.ip-stage :is(summary, label) {
  cursor: pointer;
}
.ip-stage :is(summary, input):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.ip-stage summary {
  min-height: 32px;
  align-content: center;
  font-weight: 650;
  font-size: 0.86rem;
}
.ip-stage label {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.85rem;
}
.ip-stage input {
  margin: 0;
  inline-size: 1rem;
  block-size: 1rem;
  flex: none;
}
.ip-mail,
.ip-catalogue,
.ip-order {
  inline-size: min(100%, 29rem);
  text-align: start;
  min-inline-size: 0;
}
.ip-post {
  color: #272449;
  background:
    repeating-linear-gradient(155deg, #797b9c55 0 1px, transparent 1px 7px),
    #4c4f70;
}
.ip-mail {
  padding: clamp(0.8rem, 4.4cqi, 1.55rem);
  border: 1px solid #b9b1b7;
  background: #faf3e8;
  box-shadow:
    4px 4px 0 #c5b9bd,
    6px 8px 0 #35395266;
}
.ip-mail-head,
.ip-shop-head,
.ip-cycle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ip-mail-head {
  padding-bottom: 0.66rem;
  border-bottom: 3px double #403c65;
}
.ip-mail-head strong {
  font:
    italic 650 clamp(1.7rem, 6.8cqi, 2.35rem)/1 Georgia,
    serif;
  letter-spacing: -0.055em;
}
.ip-mail-head > span,
.ip-shop-head > span,
.ip-cycle-head > div > span,
.ip-sender {
  font:
    650 0.69rem/1.2 var(--font-mono, ui-monospace),
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ip-mail-piece {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 3cqi, 1.1rem);
  margin: 1.15rem 0;
}
.ip-mail-piece > div:last-child,
.ip-product > div:last-child {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}
.ip-mail-piece strong,
.ip-result-change strong,
.ip-product strong {
  font-size: clamp(1.1rem, 5cqi, 1.62rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.ip-mail-piece > div > span:last-child,
.ip-product > div > span,
.ip-result-change span {
  font-size: 0.84rem;
  line-height: 1.32;
}
.ip-envelope {
  flex: none;
  position: relative;
  width: clamp(41px, 17cqi, 77px);
  aspect-ratio: 1.38;
  transform: rotate(-8deg);
  background:
    linear-gradient(145deg, transparent 48%, #b4504b 49% 50%, transparent 51%),
    linear-gradient(35deg, transparent 48%, #b4504b 49% 50%, transparent 51%),
    #f3907e;
  border: 1px solid #853f46;
  box-shadow: 2px 3px 0 #bdb4b4;
}
.ip-envelope:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffc6a6;
  clip-path: polygon(0 0, 100% 0, 50% 64%);
}
.ip-envelope i {
  position: absolute;
  inset: 37% 39% 28%;
  border-radius: 50%;
  background: #9d4246;
  border: 1px solid #813d48;
}
.ip-stage .ip-inbox-empty {
  display: none;
  margin: 1.18rem 0;
  font:
    italic 1.15rem Georgia,
    serif;
}
.ip-mail:has(.ip-archive-toggle[open]) .ip-mail-piece,
.ip-can-undo,
.ip-archive-toggle[open] .ip-can-archive,
.ip-confirm:has(.ip-archive-toggle[open]) > p {
  display: none;
}
.ip-mail:has(.ip-archive-toggle[open]) .ip-inbox-empty,
.ip-archive-toggle[open] .ip-can-undo {
  display: block;
}
.ip-archive-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ip-archive-toggle summary,
.ip-confirm > summary {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  list-style: none;
  min-height: 36px;
  padding: 0.36rem 0.9rem;
  border: 1px solid #302949;
  border-radius: 0.3rem;
  color: #fffaf2;
  background: #383357;
}
.ip-stage .ip-archive-toggle p,
.ip-stage .ip-confirm > p {
  font-size: 0.84rem;
  line-height: 1.4;
  margin: 0.45rem 0;
}
.ip-confirm > summary::-webkit-details-marker,
.ip-archive-toggle > summary::-webkit-details-marker {
  display: none;
}
.ip-confirm[open] > summary {
  background: transparent;
  color: #383357;
}

.ip-cycle {
  color: #173d2c;
  background:
    repeating-linear-gradient(90deg, #8da99455 0 2px, transparent 2px 20px),
    #acc7a8;
}
.ip-catalogue {
  border: 1px solid #405f42;
  background: #f8f5e4;
  box-shadow: 3px 4px 0 #768e73;
}
.ip-cycle-head {
  position: relative;
  overflow: hidden;
  color: #f6f5b4;
  background: #194b3b;
  padding: 0.85rem clamp(0.7rem, 4.1cqi, 1.5rem);
}
.ip-cycle-head > div:first-child {
  display: grid;
  gap: 0.2rem;
}
.ip-cycle-head strong {
  font:
    550 clamp(1.6rem, 6.8cqi, 2.5rem)/0.98 Georgia,
    serif;
  letter-spacing: -0.055em;
}
.ip-bike-mark {
  width: clamp(56px, 21cqi, 100px);
  aspect-ratio: 1.8;
  position: relative;
  flex: none;
  color: #eced8d;
}
.ip-bike-mark::before,
.ip-bike-mark::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 38%;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.ip-bike-mark::before {
  left: 0;
}
.ip-bike-mark::after {
  right: 0;
}
.ip-bike-mark i {
  position: absolute;
  inset: 4% 13% 29%;
  background: currentColor;
  clip-path: polygon(
    0 97%,
    23% 38%,
    80% 26%,
    76% 7%,
    69% 7%,
    67% 0,
    81% 0,
    100% 97%,
    95% 97%,
    82% 40%,
    47% 98%,
    0 98%,
    8% 90%,
    39% 90%,
    25% 54%,
    7% 91%,
    0 97%,
    29% 39%,
    43% 84%,
    74% 41%,
    29% 51%
  );
}
.ip-bike-mark b {
  position: absolute;
  left: 22%;
  top: 17%;
  width: 14%;
  height: 5%;
  background: currentColor;
  transform: rotate(2deg);
}
.ip-results {
  padding: 0.6rem clamp(0.7rem, 4.1cqi, 1.5rem) 1rem;
}
.ip-filter-panel {
  border-bottom: 1px solid #b0c2ab;
  padding-bottom: 0.36rem;
}
.ip-filter-panel label {
  color: #173d2c;
  background: #e5ead1;
  border: 1px solid #b0c2ab;
  border-radius: 3px;
  margin: 0.2rem 0 0.3rem;
  padding: 0.15rem 0.62rem;
}
.ip-filter-panel input {
  accent-color: #1a583e;
}
.ip-no-bikes,
.ip-one-bike {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  min-block-size: 5.5rem;
  padding-top: 0.5rem;
}
.ip-result-change span {
  color: #476450;
}
.ip-results:has(input:checked) .ip-one-bike,
.ip-results:not(:has(input:checked)) .ip-no-bikes {
  display: none;
}

.ip-print-shop {
  color: #303044;
  background: repeating-linear-gradient(0deg, #ce8168 0 2px, #da9279 2px 9px);
}
.ip-order {
  padding: clamp(0.8rem, 4.4cqi, 1.5rem);
  background: #f9f1dc;
  border: 1px solid #ab846a;
  box-shadow: 2px 4px 0 #9d675d;
}
.ip-shop-head {
  padding-bottom: 0.48rem;
  border-bottom: 1px solid #9f8e7c;
}
.ip-shop-head strong {
  font:
    750 clamp(1.6rem, 6.4cqi, 2.2rem)/0.9 var(--font-body, system-ui),
    sans-serif;
  letter-spacing: -0.075em;
}
.ip-product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
}
.ip-product b {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.ip-print {
  width: clamp(42px, 15cqi, 69px);
  aspect-ratio: 0.8;
  flex: none;
  position: relative;
  border: 3px solid #eee1bc;
  outline: 1px solid #ac9a79;
  background: #244995;
  box-shadow: 1px 2px 2px #4b3c2d45;
}
.ip-print i {
  position: absolute;
  inset: 8%;
  background: repeating-radial-gradient(
    ellipse at 50% 48%,
    #ffe0a1 0 4%,
    #263e84 5% 10%
  );
  clip-path: polygon(0 0, 100% 0, 100% 62%, 58% 100%, 0 100%);
}
.ip-fulfilment {
  border: 0;
  min-inline-size: 0;
  display: flex;
  gap: 0.45rem;
}
.ip-fulfilment legend {
  font-weight: 600;
  font-size: 0.75rem;
}
.ip-fulfilment label {
  padding: 0.2rem 0.53rem;
  border: 1px solid #b5a88e;
  border-radius: 2px;
  line-height: 1;
}
.ip-fulfilment label:has(:checked) {
  border-color: #344c75;
  background: #eee8cc;
}
.ip-fulfilment input {
  accent-color: #344c75;
}
.ip-cost {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  padding: 0.6rem 0 0.16rem;
  border-top: 1px solid #a89c87;
  font-weight: 700;
}
.ip-cost output {
  font-size: clamp(1.3rem, 5cqi, 1.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ip-breakdown {
  margin-top: 0.36rem;
}
.ip-breakdown summary {
  color: #49435d;
}
.ip-breakdown dl > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  margin: 0.18rem 0;
}
.ip-collect-price,
.ip-order:has(.ip-collect:checked) .ip-post-price {
  display: none;
}
.ip-order:has(.ip-collect:checked) .ip-collect-price {
  display: inline;
}
@media (pointer: coarse) {
  .ip-stage :is(label, summary) {
    min-height: 44px;
  }
}
