/* Shop — vertical cards matching kards.su layout */

:root {
  --shop-dock-gap: 0;
  --shop-card-border: rgba(148, 163, 184, 0.14);
  --shop-drawer-duration: 380ms;
  --shop-drawer-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shop-grid-gap: 16px;
  --shop-reorder-shift-ms: 190ms;
  --shop-card-hover-border: rgba(148, 163, 184, 0.28);
  --shop-card-active-border: rgba(148, 163, 184, 0.42);
  --shop-search-hover-border: rgba(148, 163, 184, 0.26);
  --shop-title-inset: calc(1px + 4px + 1rem);
  --shop-edge-pad: var(--dock-inset-x, 0.75rem);
  --shop-section-pad: var(--shop-edge-pad);
  --safe-area-top: env(safe-area-inset-top, 0px);
}

.shop-section {
  box-sizing: border-box;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--shop-section-pad);
  padding-top: 0;
}

@media (max-width: 768px) {
  html:has(body.shop-search-docked) {
    background-color: var(--ui-bg, #0f172a);
  }

  body.shop-search-docked.bg-surface-sunken {
    background-color: var(--ui-bg, #0f172a);
  }

  .shop-section {
    background-color: var(--ui-bg, #0f172a);
  }
}

@media (min-width: 640px) {
  :root {
    --shop-edge-pad: 1rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --shop-edge-pad: 1.5rem;
  }
}

.denominations-grid.is-animating {
  will-change: height;
}

.product-list-card-container {
  position: relative;
  overflow: visible;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  --shop-drag-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.product-list-card-container:not(.card-expanded):not(:has(.card-toggle:checked)) {
  content-visibility: auto;
  contain-intrinsic-size: auto 15rem;
}

.product-list-card-container.card-expanded,
.product-list-card-container:has(.card-toggle:checked) {
  content-visibility: visible;
  z-index: 30;
}

#product-list-body:has(.card-expanded) .product-list-card-container:not(.card-expanded),
#product-list-body:has(.card-toggle:checked) .product-list-card-container:not(:has(.card-toggle:checked)) {
  z-index: 0;
}

.store-card {
  background: var(--ui-surface, #1e293b);
  border-radius: var(--ui-radius-lg, 0.625rem);
  overflow: visible;
  box-shadow: none;
  border: 1px solid var(--shop-card-border);
  position: relative;
  box-sizing: border-box;
  width: 100%;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

body:not(.shop-card-reordering) .product-list-card-container:not(.card-expanded):not(:has(.card-toggle:checked)):hover .store-card {
  border-color: var(--shop-card-hover-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

body:not(.shop-card-reordering) .product-list-card-container.card-expanded .store-card,
body:not(.shop-card-reordering) .product-list-card-container:has(.card-toggle:checked) .store-card {
  border-color: var(--shop-card-active-border);
  border-bottom-color: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
}

.store-card:focus-visible {
  border-color: rgba(203, 213, 225, 0.35);
  outline: none;
  box-shadow: 0 0 0 1px rgba(203, 213, 225, 0.12);
}

.card-overlay-red {
  position: absolute;
  inset: 0;
  background: rgba(220, 38, 38, 0.08);
  pointer-events: none;
  z-index: 5;
  border-radius: 0.5rem;
}

.card-overlay-yellow {
  position: absolute;
  inset: 0;
  background: rgba(245, 158, 11, 0.06);
  pointer-events: none;
  z-index: 5;
  border-radius: 0.5rem;
}

.store-card-non-recheckable,
.store-card-unreliable,
.store-card-recent-success {
  border-radius: var(--ui-radius-lg, 0.625rem) var(--ui-radius-lg, 0.625rem) var(--ui-radius-lg, 0.625rem) 0;
  overflow: hidden;
}

.store-card-non-recheckable .card-content,
.store-card-unreliable .card-content,
.store-card-recent-success .card-content {
  border-bottom-left-radius: 0;
}

.store-card-non-recheckable .store-card-info,
.store-card-unreliable .store-card-info,
.store-card-recent-success .store-card-info {
  position: relative;
  border-bottom-left-radius: 0;
  background: var(--ui-surface, #1e293b);
  border-left-width: 4px;
  border-left-style: solid;
  /* Drop the info bottom-border so the colored left stripe renders as a clean
     rectangle instead of a diagonally-mitered corner where the two borders meet. */
  border-bottom: 0;
  overflow: hidden;
}

.store-card-non-recheckable .store-card-info {
  border-left-color: #dc2626;
}

.store-card-unreliable .store-card-info {
  border-left-color: #f59e0b;
}

.store-card-recent-success .store-card-info {
  border-left-color: #22c55e;
}

.store-card-non-recheckable .store-card-info::before,
.store-card-unreliable .store-card-info::before,
.store-card-recent-success .store-card-info::before {
  display: none;
}

.card-image {
  position: relative;
  overflow: hidden;
  background: var(--ui-bg, #0f172a);
  pointer-events: auto;
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.card-image::after {
  display: none;
}

.store-card-image {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  display: block;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

.store-card-image-fallback {
  width: 100%;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f8fafc;
  pointer-events: auto;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  background: linear-gradient(
    145deg,
    hsl(var(--brand-h, 210) 52% 46%) 0%,
    hsl(var(--brand-h, 210) 42% 34%) 100%
  );
}

.store-logo-tile-light .store-card-image {
  mix-blend-mode: multiply;
}

.store-card-indicators:empty {
  display: none;
}

.store-card-indicators {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--ui-border, rgba(148, 163, 184, 0.22));
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.1875rem 0.25rem;
  min-height: 1.625rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 20;
  pointer-events: all;
}

.indicator-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  min-height: 1.375rem;
  padding: 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 0.3125rem;
}

.indicator-rating .indicator-label,
.indicator-rating .text-yellow-400 {
  color: rgb(250 204 21);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 0;
  padding: 0 0.125rem;
}

.indicator-pdf .indicator-label {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
}

.indicator-bad .indicator-label {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.22);
}

.indicator-warn .indicator-label {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
}

.indicator-phone .indicator-label {
  color: #d4d4d8;
  background: rgba(161, 161, 170, 0.15);
  font-size: 0.8125rem;
}

.store-card-info {
  display: flex;
  align-items: stretch;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.store-card-info-link {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  padding: 0.75rem 1rem;
}

.store-card-info-link .flex {
  min-width: 0;
  align-items: center;
  min-height: 1.25rem;
  gap: 0.625rem;
}

body.shop-card-reordering {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.product-list-card-container {
  touch-action: pan-y;
}

.product-list-card-container.shop-card-shift {
  transition: transform var(--shop-reorder-shift-ms) cubic-bezier(0.2, 0, 0, 1);
  backface-visibility: hidden;
  will-change: transform;
}

body.shop-card-reordering .product-list-card-container {
  touch-action: none;
  content-visibility: visible;
}

.product-list-card-container.is-dragging {
  z-index: 60;
  pointer-events: none;
  transition: none;
  backface-visibility: hidden;
}

.product-list-card-container.is-dragging .store-card {
  box-shadow: var(--shop-drag-shadow);
  border-color: rgba(148, 163, 184, 0.28);
  overflow: hidden;
  border-bottom-left-radius: var(--ui-radius-lg, 0.625rem);
}

.product-list-card-container.is-dragging .store-card-non-recheckable,
.product-list-card-container.is-dragging .store-card-unreliable,
.product-list-card-container.is-dragging .store-card-recent-success {
  border-bottom-left-radius: 0;
}

.shop-reorder-placeholder {
  width: 100%;
  min-width: 0;
  border-radius: var(--ui-radius-lg, 0.625rem);
  background: rgba(148, 163, 184, 0.06);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  box-sizing: border-box;
  min-height: 4rem;
}

.store-card .card-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.store-card .discount-badge {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 700;
  color: #4ade80;
}

.store-card .discount-badge.is-zero {
  color: #64748b;
  font-weight: 600;
}

.warning-messages-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--ui-surface, #1e293b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.warning-message {
  font-size: 0.75rem;
  line-height: 1.4;
  display: block;
}

.warning-message-no-recheck {
  color: #f59e0b;
}

.warning-message-unreliable {
  color: #fbbf24;
}

.warning-message-phone {
  color: #d4d4d8;
}

.warning-message-text {
  display: block;
  font-weight: 700;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0.125rem;
  min-height: 1.375rem;
  line-height: 1;
}

.status-indicator .text-yellow-400 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tooltip {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.tooltip .tooltiptext {
  visibility: hidden;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--ui-surface, #1e293b);
  color: white;
  text-align: left;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  max-width: 280px;
  width: max-content;
  white-space: pre-wrap;
  line-height: 1.4;
  opacity: 0;
  z-index: 1000;
  pointer-events: none;
  transition: opacity 200ms ease-out;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-card-indicators .tooltip {
  position: static;
}

.store-card-indicators .tooltip .tooltiptext {
  left: auto;
  right: 0;
  transform: none;
  bottom: 125%;
  top: auto;
}

.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
  visibility: visible;
  opacity: 1;
  transition: none;
}

.denominations-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: -1px;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  background: var(--ui-surface, #1e293b);
  border: 1px solid var(--shop-card-border);
  border-top: none;
  border-radius: 0 0 var(--ui-radius-lg, 0.625rem) var(--ui-radius-lg, 0.625rem);
  box-shadow: none;
  --shop-drawer-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

.product-list-card-container.card-expanded .denominations-grid,
.product-list-card-container:has(.card-toggle:checked) .denominations-grid {
  border-color: var(--shop-card-active-border);
}

.denominations-grid.is-open:not(.is-animating),
.card-toggle:checked ~ .denominations-grid:not(.is-animating) {
  box-shadow: var(--shop-drawer-shadow);
}

.denominations-grid.is-preparing {
  visibility: hidden !important;
  overflow: hidden !important;
}

.denominations-drawer-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.denominations-items-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--ui-surface, #1e293b);
  overflow: hidden;
  border-radius: 0 0 calc(var(--ui-radius-lg, 0.625rem) - 1px) calc(var(--ui-radius-lg, 0.625rem) - 1px);
}

.denominations-grid .denomination-item,
.denominations-grid .denomination-grid-spacer {
  background: var(--ui-surface, #1e293b);
  border-left: 0;
  border-top: 0;
  box-sizing: border-box;
}

.denominations-grid .denomination-item:nth-child(3n+2),
.denominations-grid .denomination-item:nth-child(3n),
.denominations-grid .denomination-grid-spacer:nth-child(3n+2),
.denominations-grid .denomination-grid-spacer:nth-child(3n) {
  border-left: 1px solid var(--shop-card-border);
}

.denominations-grid .denomination-item:nth-child(n+4),
.denominations-grid .denomination-grid-spacer:nth-child(n+4) {
  border-top: 1px solid var(--shop-card-border);
}

.denominations-grid .denomination-grid-spacer {
  pointer-events: none;
}

.denominations-grid .denomination-item:hover,
.denominations-grid .denomination-item:focus-visible {
  background: var(--ui-surface-hover, #3b4a63);
}

.denominations-grid .warning-messages-container {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.denominations-grid .store-card-no-stock {
  background: transparent;
}

.denomination-item {
  background: var(--ui-surface, #1e293b);
  background-clip: padding-box;
  padding: 0.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.125rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms ease-out;
}

.denomination-item:hover {
  background: var(--ui-surface-hover, #3b4a63);
  z-index: 1;
  transition: none;
}

.denomination-item:focus {
  outline: none;
}

.denomination-item:focus-visible {
  background: var(--ui-surface-hover, #3b4a63);
  outline: 1px solid rgba(148, 163, 184, 0.35);
  outline-offset: -1px;
}

.denomination-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.denomination-stock {
  font-size: 0.675rem;
  color: var(--ui-text-muted, #94a3b8);
}


.card-toggle:checked ~ .denominations-grid,
.card-toggle:checked ~ .store-card .denominations-grid,
.denominations-grid.is-open {
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
  overflow: hidden;
}

.card-toggle:checked ~ .denominations-grid,
.denominations-grid.is-open {
  left: 0;
  right: 0;
  width: 100%;
}

.card-toggle:checked ~ .store-card {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.card-toggle:checked ~ .store-card .store-card-info {
  border-bottom-color: transparent;
}

@media (max-width: 768px) {
  .product-list-card-container.card-expanded .store-card-info,
  .product-list-card-container:has(.card-toggle:checked) .store-card-info {
    padding-top: max(0.75rem, var(--safe-area-top));
  }

  .product-list-card-container.card-expanded .store-card-info-link,
  .product-list-card-container:has(.card-toggle:checked) .store-card-info-link {
    padding-top: 0;
  }
}

.card-content {
  position: relative;
  display: block;
  height: 100%;
  pointer-events: auto;
  touch-action: pan-y;
  overflow: hidden;
  border-radius: var(--ui-radius-lg, 0.625rem) var(--ui-radius-lg, 0.625rem) 0 0;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.store-card-image,
.store-card-image-fallback,
.store-card-info {
  pointer-events: all;
}

.store-card-no-stock {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
}

.shop-catalog-loading {
  min-height: 12rem;
}

.shop-catalog-loading::after {
  content: "Loading stores…";
  display: block;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.875rem;
  color: var(--ui-text-muted, #94a3b8);
}

.shop-search-empty {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 0.75rem;
  border: 1px dashed var(--ui-border-strong, rgba(148, 163, 184, 0.32));
  border-radius: var(--ui-radius, 0.5rem);
  background: rgba(30, 41, 59, 0.35);
}

.shop-drawer-scroll-spacer {
  width: 100%;
  height: 0;
  flex-shrink: 0;
  pointer-events: none;
}

#product-list-body:not(.shop-order-ready) {
  visibility: hidden;
}

.product-list-body {
  display: grid;
  gap: var(--shop-grid-gap);
  grid-template-columns: minmax(0, 100%);
  align-items: start;
  margin-top: 0;
  width: 100%;
}

@media (min-width: 640px) {
  #product-list-body.product-list-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  #product-list-body.product-list-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  #product-list-body.product-list-body {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@supports not (width: round(down, 1px, 1px)) {
  .denominations-items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fixed-search-container {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.static-search-container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.fixed-search-container {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 39;
  background: transparent;
  box-shadow: none;
  padding: 0.375rem 0.75rem;
  border: none;
  outline: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease-out, visibility 160ms ease-out, transform 160ms ease-out;
}

.fixed-search-container.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.static-search-container {
  margin-bottom: 0.5rem;
}

.static-search-container .ui-search-input {
  padding-left: calc(var(--shop-title-inset) - 1px);
  background-image: none;
}

.static-search-container input,
.fixed-search-container input {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.static-search-container input:hover,
.fixed-search-container input:hover {
  border-color: var(--ui-chrome-hover-border, rgba(148, 163, 184, 0.32));
}

.static-search-container input:focus,
.fixed-search-container input:focus,
.static-search-container input:focus-visible,
.fixed-search-container input:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.38);
}

@media (max-width: 768px) {
  .static-search-container {
    display: none;
  }

  .fixed-search-container {
    transition: none;
    top: auto !important;
    bottom: calc(var(--menu-height) + var(--safe-area-bottom)) !important;
    left: 0 !important;
    right: 0 !important;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0.375rem 0.75rem 0;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed;
  }

  body.shop-search-docked:not(.keyboard-open) .fixed-search-container input,
  body.shop-search-docked:not(.keyboard-open) .fixed-search-container .ui-search-input {
    border-bottom: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: var(--ui-dropdown-shadow, 0 8px 24px rgba(0, 0, 0, 0.36)) !important;
  }

  .fixed-search-container input,
  .fixed-search-container .ui-search-input {
    background: var(--ui-bg, #0f172a) !important;
    border: 1px solid var(--ui-chrome-border, rgba(148, 163, 184, 0.18)) !important;
    border-radius: var(--ui-radius, 0.5rem) !important;
    box-shadow: none !important;
    min-height: 2.25rem !important;
    height: auto;
    color: var(--ui-text, #e2e8f0) !important;
    -webkit-text-fill-color: var(--ui-text, #e2e8f0);
    caret-color: var(--ui-text, #e2e8f0);
    font-size: 0.875rem !important;
    line-height: 1.25 !important;
    padding: 0.5rem 0.75rem 0.5rem 2.125rem !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'><path d='M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: left 0.625rem center !important;
    background-size: 1rem !important;
  }

  .fixed-search-container input::placeholder {
    color: var(--ui-text-muted, #94a3b8) !important;
    opacity: 1;
  }

  .fixed-search-container input:hover,
  .fixed-search-container .ui-search-input:hover {
    border-color: var(--ui-chrome-hover-border, rgba(148, 163, 184, 0.28)) !important;
  }

  .fixed-search-container input:focus,
  .fixed-search-container input:focus-visible {
    background: var(--ui-bg, #0f172a) !important;
    border-color: var(--ui-chrome-hover-border, rgba(148, 163, 184, 0.28)) !important;
    box-shadow: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    outline: none;
  }

  .dropdown-menu.is-open,
  .dropdown-menu.flex.is-open {
    top: auto !important;
    bottom: calc(var(--menu-height) + var(--safe-area-bottom)) !important;
    left: var(--shop-edge-pad) !important;
    right: var(--shop-edge-pad) !important;
    width: auto;
    min-width: 0 !important;
    max-width: none !important;
    transform: none !important;
    margin: 0;
    padding: 0.375rem;
    background: var(--ui-bg, #0f172a) !important;
    border: 1px solid var(--ui-chrome-border, rgba(148, 163, 184, 0.18)) !important;
    border-bottom: none !important;
    border-radius: var(--ui-radius-lg, 0.75rem);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: var(--ui-dropdown-shadow, 0 8px 24px rgba(0, 0, 0, 0.36));
    z-index: 50;
  }

  body.shop-search-docked {
    padding-bottom: calc(var(--shop-dock-reserve, calc(var(--menu-height) + var(--search-height))) + var(--safe-area-bottom));
  }

  body.shop-search-docked.keyboard-open {
    padding-bottom: var(--safe-area-bottom);
  }

  body.keyboard-open .fixed-search-container {
    top: var(--search-dock-top, 0) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    z-index: 60;
    padding: 0 0.75rem 0;
    margin: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none;
  }

  body.shop-search-docked.keyboard-open .fixed-search-container input,
  body.shop-search-docked.keyboard-open .fixed-search-container .ui-search-input {
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom: 1px solid var(--ui-chrome-border, rgba(148, 163, 184, 0.18)) !important;
    border-bottom-left-radius: var(--ui-radius, 0.5rem) !important;
    border-bottom-right-radius: var(--ui-radius, 0.5rem) !important;
    box-shadow: var(--ui-dropdown-shadow, 0 8px 24px rgba(0, 0, 0, 0.36)) !important;
  }

}

@media (min-width: 769px) {
  .fixed-search-container {
    display: none !important;
  }

  .static-search-container input {
    border-radius: var(--ui-radius, 0.375rem);
  }
}

.pdf-picker-tile.store-card {
  cursor: pointer;
  background: var(--ui-surface, #1e293b);
}

.pdf-picker-tile.store-card:focus-visible {
  border-color: rgba(228, 228, 231, 0.35);
  outline: none;
}

.pdf-picker-tile.is-loading {
  border-color: rgba(228, 228, 231, 0.35);
}

.pdf-picker-tile.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  pointer-events: none;
}
