/*
 * Site-wide styles.
 *
 * Moved here from WPCode: the Header & Footer CSS, and the "Table2 CSS" and
 * "Commercial Cornice Page Styling" snippets. The old header's rules are in
 * header-old.css.
 */

/* Base */

body * {
	font-family: 'Open Sans';
}

h3 {
	margin-bottom: 20px;
	font-size: 23px !important;
}

.entry-content.wp-block-post-content {
	margin-top: 0px;
}

.wp-block-navigation a:where(:not(.wp-element-button)):hover {
	text-decoration: none;
}

.wp-block-search__label {
	display: none;
}

/* The Mobile Menu plugin's site name next to its logo. */
.headertext {
	display: none;
}

/* Helper classes used in page content */

.aspect-ratioed {
	aspect-ratio: 2 / 1;
}

.overflow-auto {
	overflow-x: hidden !important;
}

.wrap-reverse {
	flex-wrap: wrap-reverse !important;
}

.underline-link-on-hover:hover {
	text-decoration: underline !important;
}

.expand-image-icon-visible.wp-lightbox-container button {
	background-color: #792215 !important;
	opacity: 0.75;
}

@media screen and (max-width: 781px) {
	.hide-on-mobile {
		display: none !important;
	}

	.product-page-subheader {
		display: none !important;
	}
}

/* Breadcrumbs */

body.home .breadcrumb-container {
	display: none;
}

.breadcrumb-container.theme1 {
	background-color: #792215;
}

.breadcrumb-container.theme1 ol {
	display: flex;
	list-style-type: none;
	margin: 0;
}

.breadcrumb-container.theme1 li {
	margin: 0;
	display: flex;
	align-items: center;
}

.breadcrumb-container.theme1 li a {
	margin: 0 5px;
	padding: 10px 10px;
	text-decoration: none;
	color: #ffffff;
}

.breadcrumb-container.theme1 .separator {
	color: #ffffff;
	margin: 0 5px;
}

.breadcrumb-container li:last-child .separator:last-child {
	display: none;
}

/* The breadcrumb plugin puts line breaks between items. */
.breadcrumb-container br {
	display: none;
}

@media screen and (max-width: 781px) {
	.breadcrumb-container {
		display: none !important;
	}
}

/* Product page buttons (from the "Button Functions Snippet" in WPCode) */

.product-page-button-grey:hover {
	color: white !important;
	background-color: var(--wp--preset--color--accent-4) !important;
}

.container-product-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.item-product-buttons {
	flex-grow: 1;
	flex-basis: 0;
	width: calc(25% - 10px);
}

.product-page-button {
	width: 100%;
}

.bigger-product-buttons {
	flex-grow: 1.5;
}

/* Tables */

.wp-block-table {
	white-space: nowrap;
	overflow-x: auto;
	color: #383838;
	box-shadow: 3px 3px 5px 0px rgba(50, 50, 50, 0.28);
	border: 1px solid #DDD;
	text-align: center;
}

.wp-block-table.is-style-stripes {
	background-color: white;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd):hover {
	background-color: #E3E3E3;
}

.white-space-wrap tbody th {
	white-space: normal;
}

/* Tables with the "table2" class: red header row, rounded corners. */

.wp-block-table.table2 {
	display: block;
	overflow-x: auto;
	width: 100%;
}

.wp-block-table.table2 table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-family: Arial, sans-serif;
	text-align: center;
	border-radius: 11px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.wp-block-table.table2 th,
.wp-block-table.table2 td {
	padding: 12px 15px;
	border: none;
	transition: background-color 0.2s ease-in-out;
}

.wp-block-table.table2 th {
	background-color: #792215;
	color: white;
	font-weight: bold;
}

.wp-block-table.table2 tr:nth-child(even) {
	background-color: #f2f2f2;
}

.wp-block-table.table2 tr:hover td {
	background-color: #f5dddd;
}

.wp-block-table.table2 td {
	color: #333;
	text-align: center;
}

.wp-block-table.table2 tr:first-child th:first-child {
	border-top-left-radius: 11px;
}

.wp-block-table.table2 tr:first-child th:last-child {
	border-top-right-radius: 11px;
}

.wp-block-table.table2 tr:last-child td:first-child {
	border-bottom-left-radius: 11px;
}

.wp-block-table.table2 tr:last-child td:last-child {
	border-bottom-right-radius: 11px;
}

/* Footer */

.social-media-icons-footer {
	border-radius: 50%;
	height: 30px;
	width: 30px !important;
	font-size: 19px !important;
}

/* Product cards on the Commercial Cornice page */

.pci-product-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 1rem;
}

h3.height-title {
	font-weight: 600;
	margin-top: 4rem;
}

.pci-product-card {
	width: 260px;
	border-radius: 10px;
	border-style: groove;
}

@media (max-width: 767px) {
	.pci-product-card {
		width: 100%;
	}
}

.pci-product-image-container {
	display: flex;
	justify-content: center;
}

.pci-product-image {
	width: 160px;
	height: auto;
}

.pci-product-info {
	padding: 0 15px 10px 30px;
	font-size: 14px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.pci-download-link {
	color: var(--wp--preset--color--accent-4);
	text-decoration: underline;
}
