/* The product, its starting price and its two purchase actions share one baseline. */
.shelf-purchase {
  --purchase-ink: #103047;
  order: 4;
  display: flex;
  flex: none;
  align-items: stretch;
  margin-top: 6px;
  border-radius: 100px;
  background: var(--purchase-ink);
  color: #fff;
}
[data-tier="katze"] .shelf-purchase,
[data-pet="katze"] .shelf-purchase { --purchase-ink: #65394a; }
.shelf-purchase > :is(a,button) {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 5px 7px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: 630 .87rem/1.16 var(--shop-schrift,Arial),sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.shelf-purchase > a { flex: 1; }
.shelf-purchase > .shelf-cart { display:none; }
.shelf-cart-ready .shelf-purchase:has(.shelf-cart) > a { border-radius:100px 0 0 100px; }
.shelf-cart-ready .shelf-purchase > .shelf-cart {
  position: relative;
  flex: 0 0 max(44px,26%);
  display: flex;
  overflow: hidden;
  border-inline-start: 1px solid #ffffff5c;
  border-radius: 0 100px 100px 0;
}
.shelf-purchase :is(button,a):hover { background-color: #ffffff15; }
.shelf-purchase :is(button,a):focus-visible { outline: 2px solid var(--purchase-ink); outline-offset: 2px; }
.shelf-cart.cart-add-confirmed > svg { visibility:hidden; }
.shelf-cart > svg { width: 19px; height:19px; }
#catalog-cart-status {
  position:fixed; bottom:17px; inset-inline-start: max(12px, calc((100% - 76rem)/2));
  z-index:20; max-width: min(360px,calc(100% - 88px)); margin:0;
  padding:9px 14px; border-radius:12px;
  background:#102d42; color:white; box-shadow:0 4px 18px #102d4224;
  font-size:.9rem; line-height:1.35;
}
#catalog-cart-status:empty { display:none; }
#catalog-cart-status a { color:inherit; white-space:nowrap; }
#sortiment .range-toolbar {
  --range-selected:#e5ecee;
  --range-mark:#153a4e;
  position:relative; z-index:2;
  container-type:inline-size;
  display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px;
  margin-bottom:clamp(15px,2vw,26px);
}
[data-pet="katze"] #sortiment .range-toolbar { --range-selected:#f2e7ea; --range-mark:#65394a; }
#sortiment .category-index { display:flex; align-items:center; flex-wrap:wrap; gap:2px; }
#sortiment .category-index > :is(a,button), #sortiment .range-all {
  display:inline-flex; align-items:center; min-height:44px; box-sizing:border-box;
  padding:8px 11px; border:0; border-radius:9px; margin:0;
  color:inherit; background:transparent; font:540 .95rem/1.28 var(--shop-schrift,Arial),sans-serif;
  text-decoration:none; cursor:pointer;
}
#sortiment .category-index > :is(a,button):hover { background:#102f430a; }
#sortiment .category-index > :is([aria-current="true"],[aria-pressed="true"]) {
  color:var(--range-mark); background:var(--range-selected); font-weight:650;
}
#sortiment .range-all {
  margin-inline-start:auto; padding-inline:3px; font-weight:600;
  text-decoration:underline; text-underline-offset:4px; text-decoration-color:#9ba8a9;
}
#sortiment .range-picker { display:none; }
#sortiment .range-picker::after { content:none; }
#sortiment .range-toolbar :is(a,button,summary):focus-visible {
  outline:2px solid var(--range-mark); outline-offset:2px;
}
#sortiment .category-bottom { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 16px; margin-top:10px; }
#sortiment .category-bottom .merch-status { margin:0; min-height:0; }
#sortiment .category-bottom .merch-status:empty { display:none; }
#sortiment .category-shop {
  display:inline-flex; align-items:center; min-height:44px; margin-inline-start:auto;
  color:inherit; font-weight:620; text-underline-offset:4px;
}
@container (max-width: 52rem) {
  #sortiment .category-index:has(+ .range-picker) { display:none; }
  #sortiment .range-picker {
    display:block; position:relative; flex:1 1 11rem; max-width:19rem;
    min-width:0; margin:0; border:0; background:transparent;
  }
  #sortiment .range-picker summary {
    position:relative; display:flex; flex-direction:column; align-items:start; justify-content:center;
    box-sizing:border-box; min-height:52px; padding:7px 35px 8px 13px;
    margin:0; border:0; border-radius:12px; color:var(--range-mark);
    background:var(--range-selected); cursor:pointer; list-style:none;
  }
  #sortiment .range-picker summary::-webkit-details-marker { display:none; }
  #sortiment .range-picker summary::after {
    content:""; position:absolute; right:15px; top:45%; width:7px; height:7px;
    border:solid currentColor; border-width:0 1.6px 1.6px 0; transform:rotate(45deg);
  }
  #sortiment .range-picker[open] summary::after { top:50%; transform:rotate(225deg); }
  #sortiment .range-label { font-size:.74rem; line-height:1.3; font-weight:500; }
  #sortiment .range-current { font-size:1rem; font-weight:650; line-height:1.25; }
  #sortiment .range-options {
    position:absolute; inset:calc(100% + 5px) 0 auto; z-index:8;
    min-width:min(222px, 75vw); padding:5px; border-radius:12px;
    background:#fffefd; box-shadow:0 4px 24px #15324726,0 0 0 1px #1532470c;
  }
  #sortiment .range-options button {
    width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px;
    min-height:44px; margin:0; padding:8px 10px; border:0; border-radius:8px;
    text-align:start; font:520 .95rem/1.3 var(--shop-schrift,Arial),sans-serif;
    background:transparent; color:#102d42; cursor:pointer;
  }
  #sortiment .range-options button[aria-pressed="true"] { background:var(--range-selected); color:var(--range-mark); font-weight:650; }
  #sortiment .range-options button[aria-pressed="true"]::after {
    content:""; width:5px; height:9px; margin-inline-end:3px;
    border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg);
  }
  #sortiment .range-options button:hover { background:var(--range-selected); }
}
@media(max-width:700px) {
  #sortiment .merch-card:nth-child(n+5) { display:none; }
  .shelf-purchase > :is(a,button) { font-size: .82rem; padding-inline:4px; }
}
