.chat-ad-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: 88px !important;
  gap: 6px !important;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 6px !important;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff !important;
  border: 0 !important;
}

.chat-ad-grid .chat-ad-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 10px;
  box-sizing: border-box;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: #e5232a !important;
  background: #fff !important;
  border: 1px solid #ffb6b9 !important;
  border-radius: 9px;
}

.chat-ad-grid strong,
.chat-ad-grid small {
  display: block;
  margin: 0;
  overflow: hidden;
  color: #e5232a !important;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-ad-grid strong {
  font-size: 14px;
  font-weight: 700;
}

.chat-ad-grid small {
  margin-top: 3px;
  font-size: 12px;
}

.chat-ad-grid a:hover {
  color: #e5232a !important;
  background: #fff5f5 !important;
  border-color: #ff8e94 !important;
}

.chat-ad-grid a:focus-visible {
  outline: 2px solid #e5232a;
  outline-offset: -3px;
}

.chat-ad-grid .chat-ad-empty {
  color: #e5232a !important;
}

.c28-chat-grid-wrap {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .chat-ad-grid {
    grid-auto-rows: 64px !important;
    gap: 4px !important;
    padding: 4px !important;
  }

  .chat-ad-grid .chat-ad-slot {
    padding: 6px 4px;
    border-radius: 7px;
  }

  .chat-ad-grid strong {
    font-size: 11px;
  }

  .chat-ad-grid small {
    margin-top: 2px;
    font-size: 9px;
  }
}
