.dhiyara-free-download-card {
  align-items: center;
  background: linear-gradient(135deg, #e8fbf7 0%, #f2efff 58%, #fff5d6 100%);
  border: 1px solid rgba(91, 79, 233, .14);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(40, 48, 77, .10);
  display: grid;
  gap: 8px 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 22px 0;
  padding: 20px;
}

.dhiyara-free-download-icon {
  align-items: center;
  background: #1da997;
  border-radius: 15px;
  color: #fff;
  display: inline-flex;
  font-size: 28px;
  font-weight: 900;
  grid-row: 1 / span 2;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.dhiyara-free-download-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.dhiyara-free-download-copy strong {
  color: #28304d;
  font-size: 17px;
}

.dhiyara-free-download-copy > span:last-child {
  color: #657184;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.dhiyara-free-download-kicker {
  color: #0d8174;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.dhiyara-free-download-button {
  align-items: center;
  background: linear-gradient(135deg, #6550e8, #cf347e);
  border-radius: 999px;
  box-shadow: 0 5px 0 #4434b8;
  color: #fff !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none !important;
  transition: box-shadow .18s ease, transform .18s ease;
}

.dhiyara-free-download-button:hover {
  box-shadow: 0 7px 0 #4434b8;
  color: #fff !important;
  transform: translateY(-2px);
}

.dhiyara-free-download-button:focus-visible {
  outline: 4px solid #ffd45a;
  outline-offset: 3px;
}

.dhiyara-free-download-button span {
  font-size: 18px;
  line-height: 1;
}

.dhiyara-free-download-privacy {
  color: #657184;
  font-size: 11px;
  font-weight: 700;
  grid-column: 2 / -1;
}

.dhiyara-free-download-error {
  color: #b42318;
  display: block;
  font-weight: 700;
  padding: 12px;
}

.dhiyara-topic-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
}

.dhiyara-topic-filters-label {
  color: #657184;
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.dhiyara-topic-filter {
  background: #fff;
  border: 1px solid rgba(91, 79, 233, .16);
  border-radius: 999px;
  color: #28304d;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 15px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.dhiyara-topic-filter:hover,
.dhiyara-topic-filter:focus-visible {
  background: #f0edff;
  color: #4434b8;
  transform: translateY(-1px);
}

.dhiyara-topic-filter.is-active {
  background: linear-gradient(135deg, #6550e8, #cf347e);
  border-color: transparent;
  color: #fff;
}

.dhiyara-topic-filter-status {
  color: #657184;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

.dhiyara-topic-meta {
  color: #657184;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  margin-left: 9px;
}

.dhiyara-library-card[hidden] {
  display: none !important;
}

/* Newspaper's lazy-animation class can leave filtered cards transparent. */
.dhiyara-library-image img {
  opacity: 1 !important;
  visibility: visible !important;
}

.dhiyara-mobile-purchase-bar {
  display: none;
}

@media (max-width: 640px) {
	.dhiyara-mobile-purchase-bar {
		background: rgba(255, 255, 255, .94);
		bottom: 0;
		box-shadow: 0 -8px 24px rgba(40, 48, 77, .14);
		display: block;
		left: 0;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		position: fixed;
		right: 0;
		z-index: 999;
	}

	.dhiyara-mobile-purchase-bar .dhiyara-button {
		display: flex;
		justify-content: center;
		margin: 0;
		width: 100%;
	}

	.dhiyara-topic-filters {
		gap: 7px;
	}

	.dhiyara-topic-filter {
		font-size: 12px;
		min-height: 34px;
		padding: 7px 11px;
	}

	.dhiyara-topic-filter-status {
		flex-basis: 100%;
		margin-left: 0;
		margin-top: 2px;
	}

  .dhiyara-free-download-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 17px;
  }

  .dhiyara-free-download-icon {
    height: 48px;
    width: 48px;
  }

  .dhiyara-free-download-button {
    grid-column: 1 / -1;
    margin-top: 6px;
    width: 100%;
  }

  .dhiyara-free-download-privacy {
    grid-column: 1 / -1;
    text-align: center;
  }
}
