.ft-dwe-downloads {
	display: grid;
	gap: 18px;
	width: 100%;
	margin: 0;
}

.ft-dwe-download-product {
	background: #fff;
	border: 1px solid #e9edf5;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(17, 24, 39, .05);
}

.ft-dwe-download-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 96px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.ft-dwe-download-summary::-webkit-details-marker {
	display: none;
}

.ft-dwe-download-product-main {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1 1 auto;
}

.ft-dwe-download-thumb {
	width: 78px;
	height: 78px;
	flex: 0 0 78px;
	object-fit: cover;
	border-radius: 14px;
	background: #f4f6fa;
}

.ft-dwe-download-product-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ft-dwe-download-product-title {
	font-size: 15px;
	line-height: 1.9;
	font-weight: 700;
	color: #111827;
	word-break: break-word;
}

.ft-dwe-download-product-count {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
}

.ft-dwe-chevron {
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	border-inline-start: 2px solid #374151;
	border-bottom: 2px solid #374151;
	transform: rotate(-45deg);
	transition: transform .18s ease;
	margin-inline: 8px 6px;
}

.ft-dwe-download-product[open] .ft-dwe-chevron {
	transform: rotate(135deg);
}

.ft-dwe-download-files {
	padding: 0 16px 14px;
}

.ft-dwe-download-file-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid #edf1f6;
}

.ft-dwe-download-file-main {
	min-width: 0;
	flex: 1 1 auto;
}

.ft-dwe-download-file-name {
	font-size: 15px;
	line-height: 1.8;
	font-weight: 700;
	color: #111827;
	word-break: break-word;
}

.ft-dwe-download-file-meta {
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
}

.ft-dwe-download-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

.ft-dwe-button,
.ft-dwe-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #13c296 0%, #0d9a38 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: 0 12px 24px rgba(13, 154, 56, .18);
	white-space: nowrap;
}

.ft-dwe-button:hover,
.ft-dwe-button:focus {
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.ft-dwe-button-play,
.ft-dwe-button-play:visited {
	background: linear-gradient(135deg, #4668ff 0%, #7f4dff 100%);
	box-shadow: 0 12px 24px rgba(70, 104, 255, .18);
}

.ft-dwe-section-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.5;
	color: #111827;
}

.ft-dwe-section-subtitle {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.9;
	color: #6b7280;
}

.ft-dwe-thankyou-downloads {
	margin-top: 26px;
	padding: 22px;
	background: #fff;
	border: 1px solid #e9edf5;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(17, 24, 39, .05);
}

/* Hide WooCommerce's default order downloads table on pages where this stylesheet loads.
   The plugin prints a cleaner replacement block. */
.woocommerce-order-downloads,
.woocommerce-table--order-downloads {
	display: none !important;
}

.ft-dwe-player-page {
	background: #f4f7fb;
	margin: 0;
}

.ft-dwe-player-shell {
	max-width: 980px;
	margin: 0 auto;
	padding: 24px 16px 40px;
}

.ft-dwe-player-card {
	background: #fff;
	border: 1px solid #e9edf5;
	border-radius: 24px;
	box-shadow: 0 16px 40px rgba(17, 24, 39, .08);
	padding: 20px;
}

.ft-dwe-player-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.ft-dwe-back-link,
.ft-dwe-back-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	text-decoration: none;
}

.ft-dwe-back-link:hover,
.ft-dwe-back-link:focus {
	color: #111827;
	text-decoration: none;
}

.ft-dwe-player-product {
	font-size: 13px;
	font-weight: 700;
	color: #6b7280;
	margin-bottom: 6px;
}

.ft-dwe-player-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.6;
	font-weight: 800;
	color: #111827;
}

.ft-dwe-player-frame {
	margin-top: 18px;
	border-radius: 18px;
	overflow: hidden;
	background: #0f172a;
	padding: 14px;
}

.ft-dwe-video-player,
.ft-dwe-audio-player {
	display: block;
	width: 100%;
	max-width: 100%;
}

.ft-dwe-video-player {
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
}

.ft-dwe-audio-player {
	background: #fff;
	border-radius: 12px;
}


.ft-dwe-inline-audio {
	width: 100%;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #e1e7ef;
}

.ft-dwe-inline-audio-player {
	display: block;
	width: 100%;
	max-width: 560px;
	height: 44px;
	margin-inline-start: auto;
}

@media (max-width: 767px) {
	.ft-dwe-downloads {
		gap: 12px;
	}

	.ft-dwe-download-summary {
		min-height: 88px;
		padding: 12px 14px;
		gap: 10px;
	}

	.ft-dwe-download-product-main {
		gap: 10px;
	}

	.ft-dwe-download-thumb {
		width: 64px;
		height: 64px;
		flex-basis: 64px;
	}

	.ft-dwe-download-product-title,
	.ft-dwe-download-file-name {
		font-size: 14px;
	}

	.ft-dwe-download-file-row {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.ft-dwe-download-actions {
		justify-content: stretch;
		width: 100%;
	}

	.ft-dwe-button,
	.ft-dwe-button:visited {
		flex: 1 1 100%;
		width: 100%;
	}

	.ft-dwe-thankyou-downloads {
		padding: 16px;
		margin-top: 18px;
	}

	.ft-dwe-section-title {
		font-size: 20px;
	}

	.ft-dwe-player-shell {
		padding: 16px 12px 28px;
	}

	.ft-dwe-player-card {
		padding: 14px;
		border-radius: 18px;
	}

	.ft-dwe-player-title {
		font-size: 19px;
	}

	.ft-dwe-player-frame {
		padding: 10px;
		border-radius: 14px;
	}

	.ft-dwe-inline-audio-player {
		max-width: 100%;
		height: 48px;
	}
}
