.tk-matec * {
  box-sizing: border-box;
}

.tk-matec {
  box-sizing: border-box;
  --tk-primary: #DE000E;
  --tk-black: #000000;
  --tk-text: #888888;
  --tk-muted: #777;
  --tk-line: #e5e5e5;
  --tk-soft: #fafafa;
  color: var(--tk-text);
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.tk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.tk-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.tk-top h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 800;
}

.tk-top p {
  margin: 0;
  color: var(--tk-muted);
  font-size: 16px;
  max-width: 760px;
}

.tk-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fafafa;
  border: 1px solid var(--tk-line);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 24px 0;
}

.tk-panel-main {
  background: #fafafa;
}

.tk-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tk-panel-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tk-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tk-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  flex: 0 0 auto;
}

.tk-panel h3 {
  margin-top: 0;
  color: #000;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.tk-panel h4 {
  margin: 0 0 4px;
  color: #000;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}
.tk-substep{
	display: flex;
    flex-direction: column;
    gap: 8px;
}
.tk-panel .tk-list-header h4{
  margin-bottom: 0px;
  font-size: 16px;
  line-height: 24px;
}

.tk-grid {
  display: grid;
  gap: 12px;
}

.tk-fields {
  display: grid;
  gap: 14px;
}

.tk-grid-2,
.tk-fields-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tk-grid-3,
.tk-fields-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tk-choice {
  width: 100%;
  min-height: 72px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: #000;
  text-align: left;
  cursor: pointer;
}

.tk-choice-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.tk-choice strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.tk-choice-content > span {
  color: #717171;
  font-size: 13px;
  line-height: 1.35;
}

.tk-choice-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f5f5f5;
}

.tk-choice-icon img {
  width: auto;
  max-width: 32px;
  height: 32px;
  object-fit: contain;
}

.tk-choice:hover,
.tk-choice.is-active {
  background: #000 !important;
  border-color: #000;
  color: #fff;
}

.tk-choice:hover .tk-choice-icon,
.tk-choice.is-active .tk-choice-icon {
  background: #fff;
}

.tk-choice.is-active .tk-choice-content > span {
  color: rgba(255, 255, 255, .78);
}

.tk-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background-color: var(--tk-soft);
  color: var(--tk-primary);
  font-weight: 700;
}

.tk-selected span {
  font-weight: 700;
}

.tk-selected button,
.tk-outline {
  border: 1px solid #dcdcdc;
  background: #fff;
  color: #111;
  padding: 10px 16px;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.tk-selected button:hover,
.tk-outline:hover {
  border-color: #111;
}

.tk-params {
  margin-top: 18px;
  padding: 18px;
  border-radius: 15px;
  background: #fafafa;
  border: 1px solid #efefef;
}

.tk-path-name {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(227, 6, 19, .08);
  color: #a2000a;
  font-weight: 800;
}

.tk-number,
.tk-input {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tk-textarea {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.tk-number span,
.tk-input span,
.tk-textarea span {
  color: #888;
  font-size: 14px;
  font-weight: 500;
}

.tk-number input,
.tk-input input,
.tk-textarea textarea,
.tk-input textarea {
  width: 100%;
  background: #fff;
  color: #111;
  font-size: 16px;
  outline: none;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}

.tk-number input:focus,
.tk-input input:focus,
.tk-textarea textarea:focus,
.tk-input textarea:focus {
  border-color: #000;
}

.tk-number small {
  color: #777;
  font-size: 13px;
}

.tk-note {
  margin: 14px 0 0;
  color: #777;
  font-size: 13px;
}

.tk-extra {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
}

.tk-extra label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
}

.tk-extra input[type="checkbox"] {
  margin-top: 2px;
}

.tk-extra-products {
  margin-top: 14px;
}

.tk-summary-panel {
  border-color: rgba(227, 6, 19, .22);
}

.tk-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.tk-summary-box {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 15px;
  padding: 18px;
}

.tk-summary-box h4,
.tk-quote h4 {
  margin: 0 0 14px;
  font-size: 18px;
}

.tk-summary-box pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #242424;
  font: 14px/1.55 Arial, Helvetica, sans-serif;
}

.tk-product-section {
  margin-bottom: 16px;
}

.tk-product-section > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.tk-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid #e8e8e8;
}

.tk-product:first-of-type {
  border-top: 0;
}

.tk-product b {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 7px;
  background: #111;
  color: #fff;
  font-size: 13px;
}

.tk-product p {
  margin: 8px 0 5px;
  font-size: 14px;
  line-height: 1.35;
}

.tk-product span {
  color: #777;
  font-size: 12px;
}

.tk-product-side {
  min-width: 72px;
  text-align: right;
}

.tk-product-side strong {
  display: block;
  font-size: 16px;
}

.tk-product-side a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--tk-primary);
  font-weight: 800;
  text-decoration: none;
}

.tk-quote {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #ececec;
}

.tk-textarea textarea {
  min-height: 150px;
  resize: vertical;
}

.tk-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.tk-primary {
  padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    background-color: #DE000E !important;
    cursor: pointer;
}
.tk-secondary{
 padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    background-color: #000 !important;
    cursor: pointer;
}
.tk-primary:hover, .tk-secondary:hover {
  transform: translateY(-1px);
}

.tk-status {
  margin-top: 14px;
  min-height: 22px;
  font-weight: 800;
}

.tk-status.ok {
  color: #138a1a;
}

.tk-status.error {
  color: #c00000;
}

.tk-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tk-counter-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

.tk-status-pending {
  background: #fff3cd;
  color: #856404;
}

.tk-status-ok {
  background: #d4edda;
  color: #155724;
}

.tk-status-error {
  background: #f8d7da;
  color: #721c24;
}

.tk-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.tk-product-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--tk-line);
  border-radius: 10px;
  transition: box-shadow 0.2s ease;
}

.tk-product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.tk-product-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.tk-product-info img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  background: #f4f4f4;
  flex-shrink: 0;
}

.tk-no-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  background: #eee;
  flex-shrink: 0;
}

.tk-product-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.3;
}

.tk-product-info span {
  color: #777;
  font-size: 12px;
}

.tk-product-qty input {
  width: 70px;
  padding: 8px;
  margin-left: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.tk-product-qty input:focus {
  outline: none;
  border-color: var(--tk-primary);
  box-shadow: 0 0 0 2px rgba(227, 6, 19, .2);
}

@media (max-width: 900px) {
  .tk-grid-3,
  .tk-fields-3,
  .tk-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .tk-matec {
    padding: 10px 0 30px;
  }

  .tk-panel {
    padding: 18px;
    border-radius: 14px;
  }

  .tk-grid-2,
  .tk-fields-2 {
    grid-template-columns: 1fr;
  }

  .tk-panel-head {
    flex-direction: column;
  }

  .tk-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tk-primary,
  .tk-outline {
    width: 100%;
    justify-content: center;
  }
}

.tk-matec input::placeholder,
.tk-matec textarea::placeholder {
  color: #888888;
  opacity: 1;
}

.tk-select-number {
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    padding: 0.75rem 1rem;
    width: 100%; 
    font-size: 16px;
}
.tk-product-qty .tk-select-number{
	padding: 0.5rem 0.75rem;
    min-width: 64px;
}
/* Nagłówek marki i przełącznik języka */
.tk-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tk-line);
}

.tk-brand-logo {
  display: inline-flex;
  align-items: center;
  max-width: 320px;
  text-decoration: none;
}

.tk-brand-logo img {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
}

.tk-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--tk-line);
  border-radius: 9px;
  background: #fff;
}

.tk-language-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.tk-language-button img {
  display: block;
  width: 26px;
  height: 17px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.tk-language-button:hover {
  border-color: #d7d7d7;
  background: #f6f6f6;
}

.tk-language-button.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.tk-language-button:focus-visible {
  outline: 3px solid rgba(227, 6, 19, .25);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .tk-brandbar {
    min-height: 0;
    gap: 16px;
  }

  .tk-brand-logo {
    max-width: 150px;
  }

  .tk-brand-logo img {
    width: 145px;
  }

  .tk-language-button {
    min-height: 38px;
    padding: 6px 8px;
  }

  .tk-language-button span {
    display: none;
  }

  .tk-language-button img {
    width: 28px;
    height: 18px;
  }

  .tk-secondary {
    width: 100%;
    margin-left: 0 !important;
  }
}
.tk-product-description {
  display: block;
  margin: 4px 0 6px;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}
