.ukf-affiliate-panel {
  box-sizing: border-box;
  width: 100%;
  margin: 28px auto;
  padding: 24px;
  overflow: hidden;
  color: #222;
  background: #b2000e;
  border-top: 6px solid #f88c00;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ukf-affiliate-panel *,
.ukf-affiliate-panel *::before,
.ukf-affiliate-panel *::after {
  box-sizing: border-box;
}

.ukf-affiliate-heading {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.ukf-affiliate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.ukf-affiliate-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 16px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #f88c00;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.ukf-affiliate-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 210px;
  margin: 0 0 14px;
  padding: 8px;
  overflow: hidden;
  background: #fff;
  border-radius: 7px;
}

.ukf-affiliate-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 0;
}

.ukf-affiliate-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.ukf-affiliate-title a {
  color: #b2000e;
  text-decoration: none;
}

.ukf-affiliate-title a:hover,
.ukf-affiliate-title a:focus {
  color: #f88c00;
  text-decoration: underline;
}

.ukf-affiliate-description {
  margin: 0 0 16px;
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

.ukf-affiliate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: auto 0 0;
  padding: 11px 16px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  background: #f88c00;
  border: 0;
  border-radius: 7px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ukf-affiliate-button:hover,
.ukf-affiliate-button:focus {
  color: #fff !important;
  background: #b2000e;
  outline: 2px solid #f88c00;
  outline-offset: 2px;
  transform: translateY(-1px);
}

.ukf-affiliate-disclosure {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.ukf-affiliate-empty {
  padding: 12px 15px;
  color: #646970;
  background: #fff8e5;
  border-left: 4px solid #dba617;
}

@media (max-width: 800px) {
  .ukf-affiliate-grid {
    grid-template-columns: 1fr;
  }

  .ukf-affiliate-image-link {
    height: 190px;
  }
}

@media (max-width: 480px) {
  .ukf-affiliate-panel {
    margin: 20px auto;
    padding: 18px 14px;
    border-radius: 10px;
  }

  .ukf-affiliate-grid {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ukf-affiliate-button {
    transition: none;
  }
}

