.mtk-offer {
  --mtk-accent: #ef7428;
  --mtk-ink: var(--wp--preset--color--contrast, #222);
  font-family: inherit;
  margin-block: 2rem;
  color: var(--mtk-ink);
}

/* Szerokość zewnętrznego bloku ustala układ motywu. Wewnętrzny SSR
   nie może ponownie ograniczać oferty do contentSize motywu. */
.mtk-offer {
  box-sizing: border-box;
  min-width: 0;
}

.mtk-offer > .mtk-grid {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.editor-styles-wrapper .mtk-editor > .mtk-editor-preview,
.mtk-editor > .mtk-editor-preview > .wp-block-server-side-render,
.mtk-editor > .mtk-editor-preview > div,
.mtk-editor .mtk-offer {
  width: 100%;
  max-width: none !important;
  margin-inline: 0 !important;
  box-sizing: border-box;
}

.mtk-editor .mtk-offer {
  margin-block: 0;
}

.mtk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.mtk-card {
  min-width: 0;
  background: var(--wp--preset--color--base, #fff);
  color: inherit;
  box-shadow: 3px 5px 9px #00000026;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}

.mtk-photo {
  overflow: hidden;
  flex-shrink: 0;
}
.mtk-photo img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.mtk-card-body {
  padding: 1rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mtk-card-body h2,
.mtk-card-body h3 {
  font-family: inherit;
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.mtk-card-body p {
  margin: 0 0 0.65rem;
  line-height: 1.6;
}
.mtk-params {
  font-size: 0.95rem;
  color: inherit;
  opacity: 0.85;
}

.mtk-prices {
  list-style: none !important;
  padding: 0 !important;
  margin: 0.5rem 0 0.3rem !important;
}
.mtk-prices li {
  margin-bottom: 0.3rem;
  line-height: 1.5;
}
.mtk-prices strong {
  font-size: 1.15rem;
  font-weight: 500;
}
.mtk-card small {
  font-size: 0.75rem;
  opacity: 0.7;
}

.mtk-details {
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mtk-description {
  max-width: 65ch;
}

.mtk-actions {
  margin-top: auto;
  padding-top: 0.5rem;
  display: block;
}

.mtk-product-link {
  font-size: 0.875rem;
  line-height: 1.4;
}

.mtk-actions a:focus-visible {
  outline: 3px solid var(--mtk-ink);
  outline-offset: 4px;
}

.mtk-delivery {
  border-left: 4px solid var(--mtk-accent);
  padding: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  background: #faf7f4;
}
.mtk-status {
  font-weight: 500;
}

@media (max-width: 900px) {
  .mtk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .mtk-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .mtk-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

.mtk-prices li::marker {
  content: "";
}
