/* CSS Reset for Recipe Roundup Widget */
.rk-recipe-list,
.rk-recipe-list * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 !important;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  line-height: 1;
}

.rk-recipe-list {
  margin: 2rem 0;
  line-height: 1.4;
  color: #333;
}

.rk-recipe-card {
  display: flex;
  margin-bottom: 2rem;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.rk-recipe-card:last-child {
  margin-bottom: 0;
}

.rk-recipe-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.rk-recipe-number {
  font-weight: bold;
  margin-right: 5px;
}

.rk-recipe-image {
  flex: 0 0 40%;
  max-width: 40%;
  max-height: 300px;
}

.rk-recipe-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.rk-recipe-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.rk-recipe-title {
  margin: 0 0 0.5rem 0;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
}

.rk-recipe-description {
  margin-bottom: 1rem;
  line-height: 1.4;
  flex-grow: 1;
}

.rk-recipe-link {
  align-self: flex-start;
  text-decoration: none;
  padding: 0.9rem 3.5rem;
  font-size: 1em;
  border-radius: 4px;
  transition: opacity 0.3s ease;
  font-weight: 600;
}

.rk-recipe-link:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .rk-recipe-card {
    flex-direction: column;
  }

  .rk-recipe-image {
    flex: 0 0 200px;
    height: 100%;
    max-width: 100%;
  }

  .rk-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .rk-recipe-image {
    height: 100%;
    max-width: 100%;
  }

  .rk-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.rk-recipe-image:empty {
  display: none;
}

.rk-recipe-card:not(:has(.rk-recipe-image img)) .rk-recipe-content {
  flex: 1;
}
