html.kzc-open { overflow: hidden; }
#kz-city-dialog { box-sizing:border-box; position:fixed; inset:0; margin:auto; width:min(610px,calc(100% - 32px)); height:450px; max-height:calc(100dvh - 40px); overflow:hidden; padding:28px; border:0; border-radius:8px; background:#fff; color:#232323; font:inherit; box-shadow:0 18px 70px #0003; z-index:2147483647; }
#kz-city-dialog[open] { display:flex; flex-direction:column; }
#kz-city-dialog::backdrop { background:rgba(22,24,28,.55); }
#kz-city-dialog * { box-sizing:border-box; }
#kz-city-dialog .kzc-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex:none; margin:0 0 16px; }
#kz-city-dialog h2 { color:inherit; font-size:24px; font-weight:650; line-height:1.25; margin:0; }
#kz-city-dialog .kzc-heading p { color:#5d6268; font-size:14px; margin:4px 0 0; line-height:1.4; }
#kz-city-dialog button { cursor:pointer; font:inherit; }
#kz-city-dialog .kzc-close { width:38px; height:38px; display:grid; place-items:center; padding:0; border:0; background:#f4f5f6; color:#252525; border-radius:50%; }
#kz-city-dialog .kzc-search { display:flex; gap:10px; align-items:center; flex:none; margin-bottom:16px; height:48px; padding:0 14px; border:1px solid #c9cbd0; border-radius:8px; color:#646872; }
#kz-city-dialog .kzc-search:focus-within { border-color:#505665; }
#kz-city-dialog .kzc-search:focus-within:has(input:focus-visible) { outline:2px solid #222; outline-offset:2px; }
#kz-city-dialog input { border:0; border-radius:0; outline:0; box-shadow:none; height:100%; flex:1; min-width:0; padding:0; font:inherit; font-size:16px; background:transparent; color:#202020; }
#kz-city-dialog .kzc-options { display:grid; flex:1; min-height:0; overflow-y:auto; align-content:start; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
#kz-city-dialog .kzc-options a { display:flex; align-items:center; min-height:38px; padding:7px 10px; border:1px solid transparent; border-radius:6px; color:#212326; font-size:15px; letter-spacing:normal; line-height:1.35; text-decoration:none; overflow-wrap:anywhere; }
#kz-city-dialog .kzc-options a:hover { background:#f3f4f6; }
#kz-city-dialog .kzc-options a[aria-current=true] { color:#202329; border-color:#b9bec6; font-weight:650; background:#f2f3f5; }
#kz-city-dialog .kzc-options a[hidden], #kz-city-dialog .kzc-status:empty { display:none; }
#kz-city-dialog .kzc-status { margin:0 0 10px; color:#39424b; font-size:14px; }
#kz-city-dialog :is(button,a):focus-visible, [data-kz-city-open]:focus-visible { outline:2px solid #222; outline-offset:2px; }
#kz-city-dialog .kzc-options a:focus-visible { outline-offset:-2px; }
[data-kz-city-open] { cursor:pointer; }
@media(max-width:580px) {
  #kz-city-dialog { width:calc(100% - 20px); height:624px; max-height:calc(100dvh - 20px); padding:18px; }
  #kz-city-dialog .kzc-close { width:44px; height:44px; }
  #kz-city-dialog .kzc-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
  #kz-city-dialog .kzc-options a { min-height:44px; }
}

/* Shared purchase controls for cards generated in the browser. */
.pb-buy-trigger[hidden], .pb-buy-quantity[hidden] { display:none!important }
.pb-buy-trigger.active + .pb-buy-quantity:not([hidden]) { display:block }
.pb-purchase { min-width:0; max-width:100% }
.pb-purchase .item-action { display:block }
.pb-purchase .pb-stepper {
  display:grid; grid-template-columns:minmax(28px,1fr) minmax(28px,1.3fr) minmax(28px,1fr);
  align-items:stretch; min-height:36px; border:1px solid var(--stroke_black,#ddd); border-radius:6px;
}
.pb-purchase .pb-stepper :is(.counter__action,.counter__count) {
  position:static; display:block; width:100%; height:auto; min-width:0; padding:0; margin:0;
  color:inherit; background:transparent; border:0; box-shadow:none; text-align:center; font:inherit;
}
.pb-purchase .pb-stepper .counter__action { cursor:pointer; font-size:20px }
.pb-purchase .pb-stepper .counter__action[aria-disabled=true] { opacity:.4 }
.pb-purchase .pb-stepper .counter__action::before,.pb-purchase .pb-stepper .counter__action::after { content:none }
.pb-purchase.cmp-cart { display:block; padding:0 }
.pb-purchase .pb-buy-trigger button { width:100% }

/* A desktop listing mounts this shared part directly under body. */
body.catalog-page > .catalog-viewed.pby-history-region[data-list-part] { display:block }
.catalog-viewed.pby-history-region[hidden] { display:none!important }
.pby-history-region .pby-viewed-card .catalog-viewed__item-wrap {
  display:flex; flex-direction:column; align-items:stretch; height:100%; box-sizing:border-box;
}
.pby-history-region .catalog-viewed__item__title {
  min-height:42px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; overflow-wrap:break-word; word-break:normal; font-size:14px; line-height:21px;
}
.pby-history-region .pby-viewed-card .price__new-val { font-size:15px; white-space:nowrap }
.pby-history-region .pby-viewed-card .pb-viewed-buy { width:100%; margin:8px 0 0 }
.pby-history-region .pby-viewed-card :is(.pb-viewed-buy .pb-buy-trigger button,a.pb-viewed-buy) {
  position:static; display:flex; align-items:center; justify-content:center; width:100%; height:36px;
  min-width:0; padding:0 8px; box-sizing:border-box; font-family:inherit;
  font-size:14px; font-weight:600; line-height:20px; white-space:nowrap; border-radius:var(--border-radius,8px);
  box-shadow:none;
}
.pby-history-region .pby-viewed-card .pb-buy-trigger button {
  inset:auto; margin:0; border:1px solid transparent; background:var(--theme-base-color,#db3022); color:white;
}
.pby-history-region .pby-viewed-card .pb-viewed-buy button::before,
.pby-history-region .pby-viewed-card .pb-viewed-buy button::after { content:none }
.pby-history-region .pby-viewed-card :is(.pb-stepper .counter__action,.pb-stepper .counter__count) {
  position:static; display:block; margin:0; height:auto; width:100%; inset:auto; border:0;
  background:none; color:inherit; box-shadow:none;
}
.pby-history-region .pby-viewed-card .pb-stepper { height:36px; box-sizing:border-box }
.pby-history-region .pb-viewed-sale {
  position:absolute; bottom:0; left:0; padding:2px 5px; border-radius:7px;
  font-size:12px; line-height:16px; color:#222; background:#ffed82; pointer-events:none;
}

@media (width < 992px) {
  .kz-warehouse-distance { display:none; }
}
