.shop-list-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.shop-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ib-line, #e4e7ec);
  border-radius: 999px;
  background: var(--ib-bg, #fff);
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.shop-list-btn:hover {
  border-color: var(--ib-accent, #008f76);
  color: var(--ib-accent-ink, var(--ib-accent, #008f76));
}

.shop-list-btn.is-active {
  border-color: var(--ib-accent, #008f76);
  color: var(--ib-accent-ink, var(--ib-accent, #008f76));
  background: var(--ib-accent-soft, #e3f1ec);
}

.shop-list-btn:disabled {
  opacity: .6;
  cursor: progress;
}

.shop-list-btn__icon {
  width: 16px;
  height: 16px;
  background: currentColor;
}

.shop-list-btn--wishlist .shop-list-btn__icon {
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10a1 1 0 0 1 1 1v15l-6-4-6 4V5a1 1 0 0 1 1-1z' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10a1 1 0 0 1 1 1v15l-6-4-6 4V5a1 1 0 0 1 1-1z' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.shop-list-btn--wishlist.is-active .shop-list-btn__icon {
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10a1 1 0 0 1 1 1v15l-6-4-6 4V5a1 1 0 0 1 1-1z' fill='%23000'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10a1 1 0 0 1 1 1v15l-6-4-6 4V5a1 1 0 0 1 1-1z' fill='%23000'/%3E%3C/svg%3E");
}

.shop-list-btn--compare .shop-list-btn__icon {
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 20V9M12 20V4M18 20v-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 20V9M12 20V4M18 20v-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.shop-list-btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
}

.shop-list-btn--icon .shop-list-btn__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.shop-list-count[hidden] {
  display: none;
}

.shop-list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ib-accent, #008f76);
  color: var(--ib-accent-contrast, #fff);
  font-size: 11px;
  line-height: 1;
}

.shop-list-empty {
  margin: 32px 0;
  color: var(--ib-muted, #5c6270);
}

.shop-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.shop-list-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--ib-line, #e4e7ec);
  border-radius: 14px;
}

.shop-list-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.shop-list-card__title {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.shop-compare__scroll {
  overflow-x: auto;
}

.shop-compare__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.shop-compare__table th,
.shop-compare__table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ib-line, #e4e7ec);
  text-align: left;
  vertical-align: top;
}

.shop-compare__label {
  width: 200px;
  color: var(--ib-muted, #5c6270);
  font-weight: 500;
}

.shop-compare__product {
  min-width: 220px;
}

.shop-compare__image {
  display: block;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.shop-compare__title {
  display: block;
  margin-bottom: 4px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.shop-compare__price {
  display: block;
  margin-bottom: 10px;
}

.shop-compare__table tr.is-different td {
  background: var(--ib-accent-soft, #e3f1ec);
}

.shop-compare__hint {
  margin-top: 16px;
  color: var(--ib-muted, #5c6270);
  font-size: 14px;
}

.shop-list-clear {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ib-accent-ink, var(--ib-accent, #008f76));
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.shop-list-toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + var(--ib-toast-lift, 0px) + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px);
  z-index: 9100;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ib-fg, #0f1115);
  color: var(--ib-bg, #fff);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.shop-list-toast:empty {
  padding: 0;
}

.shop-list-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-card__image .shop-list-actions {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  flex-direction: column;
  gap: 6px;
}

.product-card__image .shop-list-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 14px rgba(15, 17, 21, .12);
}

.block-products__card .shop-list-actions {
  margin-top: 12px;
}
