.shopone-cs-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.shopone-cs-overlay[hidden] {
  display: none !important;
}
/* Przyciemnienie 1:1 jak widget Safe shopping (rgba 0,0,0,0.5 + fade 0.35s) */
.shopone-cs-overlay__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.shopone-cs-overlay.shopone-cs-overlay--open .shopone-cs-overlay__bg {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}
.shopone-cs-overlay.shopone-cs-overlay--no-dim .shopone-cs-overlay__bg {
  background-color: transparent;
}
html.shopone-cs-open,
body.shopone-cs-open {
  overflow: hidden !important;
}
.shopone-cs-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shopone-cs-width, 560px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--shopone-cs-bg, #fff);
  border-radius: var(--shopone-cs-radius, 8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  padding: 22px 22px 18px;
  box-sizing: border-box;
}
.shopone-cs-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #888;
  padding: 0;
}
.shopone-cs-close:hover {
  color: #111;
}
.shopone-cs-title {
  margin: 0 28px 6px 0;
  font-family: var(--shopone-cs-title-font, inherit);
  font-size: var(--shopone-cs-title-size, 18px);
  font-weight: var(--shopone-cs-title-weight, 600);
  line-height: 1.3;
  color: var(--shopone-cs-title, #111);
}
.shopone-cs-modal:not(:has(.shopone-cs-sub)) .shopone-cs-title {
  margin-bottom: 16px;
}
.shopone-cs-sub {
  margin: 0 0 16px;
  font-family: var(--shopone-cs-sub-font, inherit);
  font-size: var(--shopone-cs-sub-size, 13px);
  font-weight: var(--shopone-cs-sub-weight, 400);
  line-height: 1.45;
  color: var(--shopone-cs-sub, #666);
}
.shopone-cs-sub:empty {
  display: none;
}
.shopone-cs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.shopone-cs-item {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.shopone-cs-item__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 0 8px;
  background: #fafafa;
}
.shopone-cs-item__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 12px;
}
.shopone-cs-item__name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #111;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.shopone-cs-item__name:hover {
  text-decoration: underline;
}
.shopone-cs-item__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--shopone-cs-price, #111);
  margin: 0 0 8px;
}
.shopone-cs-item__price s {
  font-weight: 400;
  color: #999;
  margin-right: 6px;
}
.shopone-cs-item__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  padding: 8px 10px;
  font-family: var(--shopone-cs-btn-font, inherit);
  font-size: var(--shopone-cs-btn-size, 13px);
  font-weight: var(--shopone-cs-btn-weight, 500);
  color: var(--shopone-cs-btn-text, #fff);
  background: var(--shopone-cs-btn-bg, #111);
  border-radius: var(--shopone-cs-btn-radius, 4px);
}
.shopone-cs-item__btn:hover {
  opacity: 0.92;
}
.shopone-cs-item__btn[disabled] {
  opacity: 0.55;
  cursor: default;
}
.shopone-cs-dismiss {
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 8px;
  text-align: center;
  font-family: var(--shopone-cs-dismiss-font, inherit);
  font-size: var(--shopone-cs-dismiss-size, 13px);
  font-weight: var(--shopone-cs-dismiss-weight, 400);
  color: var(--shopone-cs-dismiss, #777);
  background: var(--shopone-cs-dismiss-bg, #fff);
  border-radius: var(--shopone-cs-dismiss-radius, 4px);
}
.shopone-cs-dismiss:hover {
  opacity: 0.85;
}
@media (max-width: 600px) {
  .shopone-cs-modal {
    max-width: var(--shopone-cs-width-mob, 92%);
    padding: 18px 14px 14px;
  }
  .shopone-cs-list {
    grid-template-columns: 1fr;
  }
}
