.edzkb,
.edzkb * {
  box-sizing: border-box;
}

.edzkb [hidden] {
  display: none !important;
}

.edzkb .kb-box {
  max-width: 760px;
  margin: 32px auto;
  padding: 28px;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.edzkb .kb-header {
  margin-bottom: 22px;
}

.edzkb .kb-heading {
  margin: 0 0 6px 0;
  font-size: 30px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
}

.edzkb .kb-subheading {
  margin: 0;
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

.edzkb .kb-search-wrapper {
  margin-bottom: 8px;
}

.edzkb .kb-search-input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: #222;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edzkb .kb-search-input::placeholder {
  color: #9a9a9a;
}

.edzkb .kb-search-input:focus {
  outline: none;
  border-color: #f0ad00;
  box-shadow: 0 0 0 4px rgba(240, 173, 0, 0.15);
}

.edzkb .kb-status {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
  min-height: 1.2em;
}

.edzkb .kb-results {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edzkb .kb-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.edzkb .kb-result-item:hover,
.edzkb .kb-result-item:focus-visible {
  background: #fffdf7;
  border-color: #f0d27a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.edzkb .kb-result-text {
  min-width: 0;
  flex: 1;
  padding-right: 8px;
}

.edzkb .kb-result-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.35;
  margin-bottom: 8px;
}

.edzkb .kb-result-body {
  font-size: 14px;
  font-weight: 400;
  color: #7a7a7a;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edzkb .kb-result-arrow {
  flex-shrink: 0;
  color: #b08a00;
  font-size: 20px;
  line-height: 1;
}

.edzkb .kb-state-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fcfcfc;
}

.edzkb .kb-state-card--error {
  border-color: #f1d6d6;
  background: #fff8f8;
}

.edzkb .kb-state-icon {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-size: 18px;
  color: #8a8a8a;
}

.edzkb .kb-state-card--error .kb-state-icon {
  color: #c45b5b;
}

.edzkb .kb-state-text {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.edzkb .kb-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #eadfb4;
  border-top-color: #f0ad00;
  border-radius: 50%;
  animation: edzkb-spin 0.8s linear infinite;
}

@keyframes edzkb-spin {
  to {
    transform: rotate(360deg);
  }
}

.edzkb .kb-article-view:not([hidden]) {
  margin-top: 8px;
  animation: edzkb-fade-in 0.35s ease;
}

@keyframes edzkb-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.edzkb .kb-back-button {
  appearance: none;
  display: inline-block;
  width: auto;
  background: transparent;
  border: 1px solid #e2c66b;
  color: #b08a00;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 18px 0;
  box-shadow: none;
  cursor: pointer;
}

.edzkb .kb-back-button:hover,
.edzkb .kb-back-button:focus-visible {
  background: #fff8e6;
}

.edzkb .kb-article-card {
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 32px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.edzkb .kb-article-title {
  margin: 0 0 20px 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  color: #1f1f1f;
  text-transform: none;
  letter-spacing: normal;
}

.edzkb .kb-article-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: #f0ad00;
}

.edzkb .kb-article-card,
.edzkb .kb-article-content,
.edzkb .kb-article-content * {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.edzkb .kb-article-content {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: #3d3d3d;
  overflow-wrap: anywhere;
}

.edzkb .kb-article-content p {
  margin-top: 0;
  margin-bottom: 1em;
}

.edzkb .kb-article-content h2,
.edzkb .kb-article-content h3,
.edzkb .kb-article-content h4 {
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  color: #1f1f1f;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: normal;
}

.edzkb .kb-article-content ol,
.edzkb .kb-article-content ul {
  margin: 20px 0;
  padding-left: 28px;
}

.edzkb .kb-article-content li {
  margin-bottom: 14px;
}

.edzkb .kb-article-content a {
  color: #9a7400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.edzkb .kb-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 12px 0;
}

.edzkb .kb-attachments {
  margin-top: 28px;
}

.edzkb .kb-attachments h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
}

.edzkb .kb-attachments ul {
  margin: 0;
  padding-left: 18px;
}

.edzkb .kb-attachments a {
  color: #9a7400;
}

@media (prefers-reduced-motion: reduce) {
  .edzkb .kb-spinner,
  .edzkb .kb-article-view:not([hidden]),
  .edzkb .kb-result-item,
  .edzkb .kb-search-input {
    animation: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .edzkb .kb-box {
    padding: 20px 16px;
  }

  .edzkb .kb-search-input {
    height: 54px;
    font-size: 15px;
  }

  .edzkb .kb-article-card {
    padding: 20px 18px;
  }

  .edzkb .kb-article-title {
    font-size: 22px;
    line-height: 1.2;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 18px;
  }
}
