.redhands-banner-widget {
  width: 100%;
}

.redhands-banner-slot-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #3b0a0f;
}

.redhands-banner-grid {
  display: grid;
  gap: 10px;
}

.redhands-banner-grid--large {
  grid-template-columns: 1fr;
}

.redhands-banner-grid--medium {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.redhands-banner-grid--small {
  grid-template-columns: 1fr;
}

.redhands-banner-item {
  border: 1px solid #efc9cd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  min-height: 110px;
}

.redhands-banner-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.redhands-banner-image-wrap {
  display: block;
}

.redhands-banner-image {
  width: 100%;
  min-height: 120px;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

.redhands-banner-empty-image {
  min-height: 120px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #4b5563;
  background: #f5f7fa;
}

.redhands-banner-text {
  padding: 8px 10px 12px;
}

.redhands-banner-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: #3b0a0f;
}

.redhands-banner-description {
  margin: 6px 0 0;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.4;
}

@media (max-width: 920px) {
  .redhands-banner-grid--medium {
    grid-template-columns: 1fr;
  }
}

/* v3.5 Red * Hands compact portal banner */
.redhands-banner-slot-title {
  display: none;
}

.redhands-banner-grid {
  gap: 0;
}

.redhands-banner-item {
  min-height: 0;
  border-color: #efc9cd;
  border-radius: 0;
}

.redhands-banner-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
}

.redhands-banner-image,
.redhands-banner-empty-image {
  width: 100%;
  min-height: 72px;
  height: 100%;
  aspect-ratio: auto;
}

.redhands-banner-empty-image {
  padding: 10px;
  background: #5b1118;
  color: #fecaca;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.redhands-banner-text {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  padding: 10px 14px;
  background: #fff;
}

.redhands-banner-title {
  overflow: hidden;
  font-size: 13px;
  color: #5b1118;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redhands-banner-description {
  margin-top: 4px;
  overflow: hidden;
  font-size: 11px;
  color: #7f555b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-side-banner .redhands-banner-link {
  grid-template-columns: 1fr;
}

.portal-side-banner .redhands-banner-image,
.portal-side-banner .redhands-banner-empty-image {
  min-height: 86px;
}

.portal-side-banner .redhands-banner-text {
  padding: 9px 11px 10px;
  border-top: 1px solid #e7e9ed;
}

.portal-side-banner .redhands-banner-title,
.portal-side-banner .redhands-banner-description {
  white-space: normal;
}

@media (max-width: 560px) {
  .redhands-banner-link {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}
