/* KODUNG CMS — shared partner credits. Intentionally scoped to avoid legacy CSS. */
.kdc-credits,
.kdc-credits * {
  box-sizing: border-box;
}
.kdc-credits {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(175, 217, 247, .16);
  background: linear-gradient(110deg, #071a2c 0%, #0b263e 52%, #0b2037 100%);
  color: #c9d9e8;
  font-family: "Kanit", "Sarabun", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .01em;
  text-align: left;
}
.kdc-credits::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(260px, 45%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #6bc7f8 50%, transparent);
  pointer-events: none;
}
.kdc-credits__inner {
  width: min(1160px, calc(100% - 40px));
  min-width: 0;
  margin: 0 auto;
  padding: 19px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.kdc-credits__heading {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #8eafc9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  white-space: nowrap;
}
.kdc-credits__signal {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #72d7fb;
  box-shadow: 0 0 0 4px rgba(114, 215, 251, .09);
}
.kdc-credits__partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.kdc-credits__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 18px;
  min-width: 0;
  white-space: nowrap;
}
.kdc-credits__item + .kdc-credits__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 15px;
  width: 1px;
  transform: translateY(-50%);
  background: rgba(195, 222, 245, .20);
}
.kdc-credits__label {
  font-size: 12px;
  color: #9eb6ca;
  font-weight: 400;
}
.kdc-credits .kdc-credits__link {
  display: inline-block;
  padding: 2px 0;
  color: #f6fbff;
  border-bottom: 1px solid rgba(141, 202, 248, .34);
  background: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  text-transform: none;
  transition: color .18s ease, border-color .18s ease;
}
.kdc-credits .kdc-credits__link::before {
  content: none;
}
.kdc-credits .kdc-credits__link::after {
  content: "↗";
  display: inline-block;
  margin-left: 6px;
  color: #83cffa;
  font-size: 11px;
  font-weight: 700;
  opacity: .9;
}
.kdc-credits .kdc-credits__link:hover {
  color: #8ad7ff;
  border-bottom-color: #8ad7ff;
  transform: none;
}
.kdc-credits .kdc-credits__link:focus-visible {
  outline: 2px solid #8ad7ff;
  outline-offset: 5px;
  border-radius: 2px;
}
/* Existing category pages reserve footer space for a floating mobile CTA.
   Move that safe area below the credits, rather than leaving an empty gap above. */
.footer:has(> .kdc-credits) {
  padding-bottom: 0 !important;
}
@media (max-width: 820px) {
  .kdc-credits__inner {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px 0;
  }
  .kdc-credits__partners {
    justify-content: center;
  }
}
@media (max-width: 580px) {
  .kdc-credits__inner {
    width: min(390px, calc(100% - 32px));
    gap: 15px;
    padding: 22px 0;
  }
  .kdc-credits__partners {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 2px 12px;
    border: 1px solid rgba(200, 228, 246, .13);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
  }
  .kdc-credits__item {
    justify-content: space-between;
    padding: 9px 4px;
    white-space: normal;
  }
  .kdc-credits__item + .kdc-credits__item {
    border-top: 1px solid rgba(195, 222, 245, .10);
  }
  .kdc-credits__item + .kdc-credits__item::before {
    display: none;
  }
}
@media (max-width: 760px) {
  /* Floating phone/LINE CTA must not cover the third credit on tablets or phones. */
  body:has(.sticky-cta) .kdc-credits {
    padding-bottom: calc(106px + env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .kdc-credits .kdc-credits__link { transition: none; }
}
