/* Download cards (Figma 2001:1577 and 2001:1585). Colours can be changed in the block's colour settings. */
.gurm-download {
	--gurm-dl-cream: #f7efe6;
	--gurm-dl-wine: #6e1e2e;
	display: flex;
	align-items: center;
	gap: 16px;
	box-sizing: border-box;
	padding: 16px;
	border: 1px solid #ddcbb8;
	border-radius: 16px;
	background-color: var(--gurm-dl-wine);
	color: var(--gurm-dl-cream);
	font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
}

.gurm-download__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 90px;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(62, 40, 20, .15);
	object-fit: cover;
}

.gurm-download__body {
	flex: 1;
	min-width: 0;
}

.gurm-download .gurm-download__title {
	display: block;
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	color: inherit;
}

.gurm-download .gurm-download__meta {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 22.5px;
	color: inherit;
}

.gurm-download__meta:empty {
	display: none;
}

.gurm-download__actions {
	display: flex;
	gap: 16px;
	align-items: center;
	margin: 0;
}

.gurm-download__select {
	position: relative;
	flex: 1;
	min-width: 0;
}

.gurm-download__select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #3a3324;
	border-bottom: 2px solid #3a3324;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.gurm-download__select select {
	width: 100%;
	height: 44px;
	padding: 0 40px 0 12px;
	border: 2px solid #8a7b63;
	border-radius: 10px;
	background: #fffdf9;
	color: #3a3324;
	font: inherit;
	font-size: 16px;
	appearance: none;
	cursor: pointer;
}

.gurm-download__button {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 44px;
	padding: 0 16px;
	border: 2px solid var(--gurm-dl-cream);
	border-radius: 10px;
	background: var(--gurm-dl-cream);
	color: var(--gurm-dl-wine);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}

.gurm-download__button:hover,
.gurm-download__button:focus-visible {
	background: transparent;
	color: var(--gurm-dl-cream);
}

.gurm-download__select select:focus-visible,
.gurm-download__button:focus-visible {
	outline: 2px solid var(--gurm-dl-cream);
	outline-offset: 2px;
}

/* Mobile: select and button stacked. */
@media (max-width: 600px) {
	.gurm-download {
		align-items: flex-start;
	}

	.gurm-download-community .gurm-download__actions {
		flex-direction: column;
		align-items: stretch;
	}
}
