/*
 * Baner wpisu z bloga na końcu opisu produktu (moduł dobremyjki_blogbaner), w kolorach motywu kubiczduo:
 * niebieski #0969b3 (ciemniejszy #07548f, jasne tło #e3eef7), nagłówki #060707, tekst #4a4a49.
 */
.dmbb {
  margin: 28px 0 8px;
}

.dmbb__link {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #cfe6f7;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dmbb__link:hover,
.dmbb__link:focus {
  border-color: #0969b3;
  box-shadow: 0 6px 18px rgba(9, 105, 179, 0.14);
  color: inherit;
  text-decoration: none;
}

.dmbb__link:focus-visible {
  outline: 2px solid #0969b3;
  outline-offset: 2px;
}

/* Zdjęcie zawsze w całości (grafiki wpisów mają napisy, przycięcie by je ucinało); wolne miejsce nad i pod
   nim ma jasne tło. */
.dmbb__media {
  display: flex;
  flex: 0 0 46%;
  align-items: center;
  max-width: 46%;
  background: #e3eef7;
}

.dmbb__img {
  display: block;
  width: 100%;
  height: auto;
}

.dmbb__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 20px 24px;
}

.dmbb__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0969b3;
}

.dmbb__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #060707;
}

.dmbb__excerpt {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  color: #4a4a49;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.dmbb__button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 4px;
  padding: 9px 18px;
  border-radius: 4px;
  background: #0969b3;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.2s;
}

.dmbb__link:hover .dmbb__button,
.dmbb__link:focus .dmbb__button {
  background: #07548f;
}

.dmbb__arrow {
  transition: transform 0.2s;
}

.dmbb__link:hover .dmbb__arrow {
  transform: translateX(3px);
}

@media (max-width: 575px) {
  .dmbb__link {
    flex-direction: column;
  }

  .dmbb__media {
    flex-basis: auto;
    max-width: none;
  }

  .dmbb__body {
    padding: 16px 18px 18px;
  }

  .dmbb__title {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dmbb__link,
  .dmbb__button,
  .dmbb__arrow {
    transition: none;
  }

  .dmbb__link:hover .dmbb__arrow {
    transform: none;
  }
}
