/*
Theme Name: MDS
Author: MDS
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 5.7
Version: 1.0.0
Text Domain: mds
*/

/*------------------------------------------------
Reset Basic HTML
------------------------------------------------*/
button {
	border: 0px solid transparent;
	background-color: transparent;
	border-radius: 0;
	padding: 0;
	margin: 0;
}

/*------------------------------------------------
Utility
------------------------------------------------*/
/* Prevent highlighting */
.no-select {
	position: relative;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
}
.no-drag-image,
figure.no-drag-image > img {
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	pointer-events: none;
}
.hidden {
	display: none !important;
}
.uppercase {
	text-transform: uppercase;
}

.vertical-tag-list {
	display: flex;
	flex-direction: column;
}
.vertical-tag-list a {
	text-decoration: none;
	pointer-events: none;
}
.vertical-tag-list .wp-block-post-terms__separator {
	display: none;
}

/*------------------------------------------------
Page
------------------------------------------------*/
body {
	overflow-y: scroll;
	-webkit-font-smoothing: subpixel-antialiased;
}
.entry-content > section.wp-block-group {
	margin-top: 0;
}
.entry-content > section.wp-block-group,
.wp-site-blocks > section.wp-block-group,
footer > section.wp-block-group,
header > .wp-block-group,
.wp-site-blocks > .woocommerce {
	padding-inline: var(--page-padding);
}
footer {
	margin-top: 0;
}
main {
	margin-top: 0;
}
header.wp-block-template-part {
	max-width: var(--wp--style--global--wide-size);
	margin: auto;
}

/*------------------------------------------------
Gallery
------------------------------------------------*/
.wp-block-gallery .wp-block-image {
	transition: scale 0.25s;
}
.wp-block-gallery .wp-block-image:hover {
	scale: 0.98;
}

/*------------------------------------------------
Media With Text
------------------------------------------------*/
.wp-block-media-text {
	gap: var(--media-with-text-gap);
}
.wp-block-media-text__content :first-child {
	margin-top: 0;
}
.wp-block-media-text .wp-block-media-text__content {
	padding-right: 0;
	padding-left: 0;
}
.wp-block-media-text__content > * {
	max-width: var(--media-with-text-content-max-width);
	margin-left: auto;
	margin-right: auto;
}

/*------------------------------------------------
Theme Colour Palette Gutenberg Block
------------------------------------------------*/
.theme-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	position: relative;
	z-index: 1;
}
.theme-colors .components-button {
	box-shadow: none;
}
.theme-colors .components-circular-option-picker__option:hover {
	box-shadow: none !important;
}

/*------------------------------------------------
Animations
------------------------------------------------*/
/* Hide the default checkbox */
input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	position: relative;
	width: 15px !important;
	height: 15px !important;
	background-color: transparent;
	border-radius: 4px;
	cursor: pointer;
	display: inline-block;
	vertical-align: middle;
	margin-right: 10px;
	outline: none;
	align-self: center;
	border: 1px solid var(--wp--preset--color--primary);
}

/* Add a border to the custom checkbox */
input[type="checkbox"]::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 4px;
}

/* Show the checkmark when the checkbox is checked */
input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	width: 48%;
	height: 20%;
	border: 1px solid transparent;
	rotate: -45deg;
	translate: -50% 70%;
	inset: 0% 0 0 50%;
	border-bottom-color: var(--wp--preset--color--background);
	border-left-color: var(--wp--preset--color--background);
}

/* Change background color of checkbox when checked */
input[type="checkbox"]:checked {
	background-color: var(--wp--preset--color--primary);
	border: none;
}
