.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);
  padding: 25px 25px 25px;
  box-sizing: border-box;
}
.shopone-cs-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  background: #F1F1F1;
  cursor: pointer;
  color: #111;
  padding: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shopone-cs-close:hover {
  background: #E6E6E6;
  color: #111;
}
.shopone-cs-close__icon {
  display: block;
  pointer-events: none;
}
.shopone-cs-overlay .shopone-cs-title {
  display: block;
  margin: 0 28px 6px 0;
  padding: 0;
  border: 0;
  background: none !important;
  font-family: var(--shopone-cs-title-font, inherit) !important;
  font-size: var(--shopone-cs-title-size, 18px) !important;
  font-weight: var(--shopone-cs-title-weight, 400) !important;
  font-style: normal !important;
  line-height: 1.3 !important;
  color: var(--shopone-cs-title, #111) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-shadow: none !important;
  text-decoration: none !important;
}
.shopone-cs-overlay .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, 14px);
  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(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.shopone-cs-list:has(> .shopone-cs-item:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shopone-cs-list > .shopone-cs-item:only-child {
  grid-column: 2;
}
.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-link {
  display: block;
  margin: 0 0 8px;
  text-decoration: none !important;
  color: inherit;
}
.shopone-cs-item__img-link .shopone-cs-item__img {
  margin: 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 {
  margin: 0 0 8px;
  line-height: 1.35;
}
.shopone-cs-item__price-regular {
  font-family: var(--shopone-cs-price-regular-font, inherit);
  font-size: var(--shopone-cs-price-regular-size, 14px);
  font-weight: var(--shopone-cs-price-regular-weight, 400);
  color: var(--shopone-cs-price-regular, #999) !important;
  margin-right: 6px;
  text-decoration: line-through;
}
.shopone-cs-item__price-sale {
  font-family: var(--shopone-cs-price-font, inherit);
  font-size: var(--shopone-cs-price-size, 14px);
  font-weight: var(--shopone-cs-price-weight, 400);
  color: var(--shopone-cs-price, #111) !important;
}
.shopone-cs-item__btn,
.shopone-cs-item__btn:link,
.shopone-cs-item__btn:visited,
.shopone-cs-item__btn:hover,
.shopone-cs-item__btn:focus,
.shopone-cs-item__btn:active {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  box-sizing: border-box;
  padding: 8px 10px;
  font-family: var(--shopone-cs-btn-font, inherit);
  font-size: var(--shopone-cs-btn-size, 14px);
  font-weight: var(--shopone-cs-btn-weight, 400);
  color: var(--shopone-cs-btn-text, #fff) !important;
  background: var(--shopone-cs-btn-bg, #111);
  border-radius: var(--shopone-cs-btn-radius, 4px);
  opacity: 1;
}
.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, 14px);
  font-weight: var(--shopone-cs-dismiss-weight, 400);
  color: var(--shopone-cs-dismiss, #111);
  background: var(--shopone-cs-dismiss-bg, #f1f1f1);
  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%);
  }
  .shopone-cs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .shopone-cs-list:has(> .shopone-cs-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shopone-cs-list > .shopone-cs-item:only-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc((100% - 8px) / 2);
    justify-self: center;
  }
}
