/* Cookie banner — mobile cột dọc, desktop hàng ngang hẹp */
#khCookieBanner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  box-sizing: border-box;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 32, 0.97);
  color: #f8fafc;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.28);
  font: 14px/1.45 system-ui, sans-serif;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
}
#khCookieBanner *,
#khCookieBanner *::before,
#khCookieBanner *::after {
  box-sizing: border-box;
}
#khCookieBanner .kh-ck-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
#khCookieBanner .kh-ck-text {
  font-size: 13px;
  line-height: 1.5;
  color: #e2e8f0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
#khCookieBanner .kh-ck-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #f8fafc;
}
#khCookieBanner .kh-ck-text a {
  color: #93c5fd;
  text-decoration: underline;
}
#khCookieBanner .kh-ck-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
#khCookieBanner .kh-ck-btn {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  font: 600 14px/1.2 system-ui, sans-serif;
  cursor: pointer;
  border: 0;
  text-align: center;
}
#khCookieBanner .kh-ck-btn--accept {
  background: #c9a227;
  color: #0f1720;
}
#khCookieBanner .kh-ck-btn--reject {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #64748b;
}

@media (min-width: 640px) {
  #khCookieBanner {
    padding: 16px 20px;
  }
  #khCookieBanner .kh-ck-inner {
    max-width: 720px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  #khCookieBanner .kh-ck-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
  }
  #khCookieBanner .kh-ck-actions {
    flex-direction: row;
    width: auto;
    flex-shrink: 0;
    gap: 10px;
  }
  #khCookieBanner .kh-ck-btn {
    width: auto;
    min-width: 148px;
    white-space: nowrap;
  }
}
