/* WooCommerce My Account */
.page.woocommerce-account .wp-block-post-title {
	max-width: none;
}

.page.woocommerce-account main .woocommerce {
	max-width: var(--wp--style--global--wide-size);
	margin-top: var(--wp--preset--spacing--40);
}

.page.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 20%;
}

.page.woocommerce-account .woocommerce-MyAccount-content {
	width: 80%;
}

@media only screen and (max-width: 768px) {
	.page.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
	.page.woocommerce-account .woocommerce-MyAccount-content {
		width: 100%;
	}

	.page.woocommerce-account .woocommerce-MyAccount-content {
		margin-bottom: var(--wp--preset--spacing--60);
	}

	.page.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--30);
		text-align: center;
	}

	.page.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul > li {
		padding: var(--wp--preset--spacing--20);
	}
}

/* WooCommerce My Account Custom Dashboard */
.dashboard-products {
	width: 100%;
	text-align: left;
	margin-top: calc(-1 * var(--wp--preset--spacing--30));
	border-spacing: 0 var(--wp--preset--spacing--30);
}

.dashboard-products tr {
	background-color: var(--wp--preset--color--accent-5);
}

.dashboard-products td {
	padding: 1rem;
}

.dashboard-products td:first-child {
	width: 18%;
	border-radius: 1rem 0 0 1rem;
}

.dashboard-products td:last-child {
	width: 16%;
	border-radius: 0 1rem 1rem 0;
}

.dashboard-products .pill {
	display: block;
	text-align: center;
	border-radius: 1rem;
}

.dashboard-products .dashboard-product-name {
	font-weight: bold;
}

.dashboard-products .dashboard-product-name a {
	text-decoration: none;
}

.dashboard-products .dashboard-product-button a {
	font-weight: bold;
	text-decoration: none;
}

.dashboard-products .dashboard-product-button a span {
	padding-top: 1px;
}

@media only screen and (max-width: 768px) {
	.dashboard-products tr {
		display: flex;
		flex-direction: column;
		width: 100%;
		margin-bottom: 1rem;
		border-radius: 1rem;
	}

	.dashboard-products tr > td,
	.dashboard-products td:first-child,
	.dashboard-products td:last-child {
		width: initial;
	}

	.dashboard-products tr > td:nth-child(2) {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}

	.dashboard-product-button {
		text-align: center;
	}

	.dashboard-product-button .dashicons-arrow-right-alt {
		display: none;
	}
}

/* WooCommerce Product Page */
body.product.bought .hide-bought {
	display: none;
}

body.product:not(.bought) .show-bought {
	display: none;
}

/* Custom blocks */

.hacor_product_files_block h2 {
	margin-bottom: var(--wp--preset--spacing--40);
}

.hacor_product_files_block .replay {
	margin-bottom: var(--wp--preset--spacing--70);
}

.hacor_product_files_block .replay video,
.hacor_product_files_block .replay .hacor-mediaelement {
	width: 100%;
	max-width: 100%;
}

.hacor_product_files_block .file-modals input,
.hacor_product_files_block .file-modals .file-modal {
	display: none;
}

.hacor_product_files_block .file-modals input:checked ~ .file-modal {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hacor_product_files_block .file-modal {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 10;
	margin: 0;
}

.hacor_product_files_block .file-modal .file-viewer {
	max-width: 800px;
	max-height: 80%;
}

.hacor_product_files_block .file-modal iframe {
	width: 100%;
	border: none;
	aspect-ratio: 21/29.7;
}

.hacor_product_files_block .file-list ul {
	display: flex;
	list-style: none;
	padding: 0;
	gap: var(--wp--preset--spacing--50);
	flex-wrap: wrap;
}

.hacor_product_files_block .file-list label {
	position: relative;
	display: block;
	background-color: white;
	border-radius: 1rem;
	padding: var(--wp--preset--spacing--50);
	width: 126px;
	height: 100px;
	cursor: pointer;
}

.hacor_product_files_block .file-list svg,
.hacor_product_files_block .file-list span {
	display: block;
}

.hacor_product_files_block .file-list svg {
	width: auto;
	height: 80%;
	margin: auto;
	color: var(--wp--preset--color--accent-3);
}

.hacor_product_files_block .file-list span {
	text-align: center;
	margin-top: var(--wp--preset--spacing--30);
}

.hacor_product_files_block .file-list a {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	text-decoration: none;
	padding: var(--wp--preset--spacing--50);
}

.hacor_product_files_block .file-list a:hover {
	color: inherit;
}

.wp-block-hacor-events-product-alt-thumbnail img {
	max-width: 100%;
	border-radius: inherit;
	height: auto;
	vertical-align: middle;
	width: 100%;
}

.wp-block-hacor-events-product-alt-thumbnail a {
	border: 0;
	border-radius: inherit;
	box-shadow: none;
	display: block;
	text-decoration: none;
}

.brevo-opt-in .optional {
	display: none;
}
