body {
    padding: 20px;
    font-family: "Iosevka", "Consolas", monospace;
}

.images-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
    font-size: 14px;
}

.image-off {
    display: none;
    width: 102px;
}

body.images-off .image-col {
    display: none;
}

body.images-off .image-off {
    display: table-cell;
}

.search-results {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.search-result.promotion a {
    background: #ffff00;
}

.search-thumb {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.search-thumb.placeholder {
    width: 100%;
    height: 100%;
    background: #d1d5db;
    display: block;
}

.product-image-frame {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.product-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-image-placeholder {
    background: #d1d5db;
}

.search-results {
    border-collapse: collapse;
    width: 100%;
}

.search-results th,
.search-results td {
    padding: 4px 8px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.search-results td a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.search-result.promotion {
    background: #ffff00;
}

.image-col {
    width: 100px;
}

.image-col a {
    width: 100px;
    height: 100px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.price-col { min-width: 150px; }
.amount-col { min-width: 120px; }
.shop-col { min-width: 90px; }
.name-col { min-width: 220px; white-space: normal; }

/* Inline code */
:not(pre) > code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  white-space: break-spaces;
  background-color: rgba(175, 184, 193, 0.2);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* Fenced code blocks */
pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
    "Liberation Mono", monospace;
}

pre code {
  padding: 0;
  margin: 0;
  font-size: inherit;
  white-space: pre;
  background: transparent;
  border: 0;
}
