#shop-dialog {
  --ticket-red: #a52125;
  width: min(490px, calc(100% - 24px));
  max-width: none;
  max-height: min(91vh, 760px);
  max-height: min(91dvh, 760px);
  border: 1px solid #9e3e35;
  border-radius: 14px;
  background: #fff9ed;
  box-shadow: 0 20px 70px #381e1d4d;
}
#shop-dialog .dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 15px 23px;
  background: var(--ticket-red);
  color: #fffaed;
  border: 0;
}
#shop-dialog .dialog-kicker {
  display: block;
  color: inherit;
  font: 700 10px/1.2 var(--sans);
  letter-spacing: .16em;
}
#shop-dialog .dialog-head h2 {
  margin-top: 3px;
  font-size: clamp(18px, 4.3vw, 22px);
  font-weight: 750;
  line-height: 1.4;
}
#shop-dialog .close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid #fff7ecab;
  border-radius: 50%;
  background: transparent;
  color: #fff9ef;
  font: 400 26px/1 var(--sans);
}
#shop-dialog .close:hover {background: #7f1921}
#shop-dialog .close:focus-visible {outline: 2px solid #fff8dd; outline-offset: 2px}
#shop-dialog .shop-product {
  gap: 13px;
  padding: 18px 23px 15px;
}
#shop-dialog .shop-product img {
  flex-shrink: 0;
  width: 76px;
  height: 55px;
  border: 1px solid #ead5c2;
  border-radius: 5px;
}
#shop-dialog .shop-product h3 {
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
#shop-dialog .shop-product p {
  margin-top: 2px;
  font-size: 11px;
  color: #6a534d;
}
#shop-dialog .shop-links {
  margin: 0 23px 22px;
  border: 0;
}
.retailer-list {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.retailer-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: stretch;
  min-height: 45px;
  overflow: hidden;
  border: 1px solid #dfc4aa;
  border-radius: 5px;
  background: #fffdf7;
  color: #432925;
}
.retailer-name {
  align-self: center;
  padding: 9px 14px;
  font: 750 clamp(15px, 4.4vw, 19px)/1.2 var(--sans);
  overflow-wrap: anywhere;
}
.retailer-state {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-left: 1px dashed #d2b49a;
  background: #f7ecdc;
  color: #705b50;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .05em;
  white-space: nowrap;
}
a.retailer-ticket {border-color: var(--ticket-red); color: var(--ticket-red)}
a.retailer-ticket .retailer-state {
  border-left-color: var(--ticket-red);
  background: var(--ticket-red);
  color: #fffaf0;
}
a.retailer-ticket:hover, a.retailer-ticket:focus-visible {background: #ffebdb}
.retailer-arrow {font: 700 13px/1 var(--sans)}
@media (max-width: 480px) {
  #shop-dialog .dialog-head {padding: 11px 15px}
  #shop-dialog .shop-product {padding: 13px 14px}
  #shop-dialog .shop-product img {width: 65px; height: 49px}
  #shop-dialog .shop-links {margin: 0 14px 16px}
  .retailer-ticket {grid-template-columns: minmax(0, 1fr) 78px}
  .retailer-name {padding: 8px 10px}
}
