/* Flag Style
.style-square .block-quick-links__inner span {
	position: absolute;
	top: 16px;
	left: 0px;
	z-index: 2;
}

/* End Flag Style */

/* Center Style
.style-square .block-quick-links__inner a {
	display: grid;
	justify-content: center;
	align-items: center;
	white-space: nowrap;
}

.style-square .block-quick-links__inner img {
	grid-area: 1 / 1 / 2 / 2;
	z-index: 1;
}

.style-square .block-quick-links__inner span {
	max-width: calc( 100% - 16px );
	margin: 0 auto;
	grid-area: 1 / 1 / 2 / 2;
	z-index: 2;
}
/* End Center Style */

/* Lower Style
.style-square .block-quick-links__inner span {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
}
/* End Lower Style */

/* Bottom Style
.style-square .block-quick-links__inner span {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
}
/* End Bottom Style */

/* Corner Style
.style-square .block-quick-links__inner span {
	position: absolute;
	bottom: 0;
	left: 0;
	width: max-content;
}
/* End Corner Style */


.block-quick-links {
	--cwp-columns: 2;
	--cwp-gap: 8px;
}
.block-quick-links__inner {
	display: grid;
	color: var(--wp--preset--color--foreground);
	grid-template-columns: repeat( var(--cwp-columns), minmax( 0, 1fr ) );
	gap: var(--cwp-gap);
	font-size: var(--wp--preset--font-size--small);
	text-align: left;
}

.block-quick-links__inner span {
	background: var(--wp--preset--color--secondary);
	border-radius: var(--wp--custom--button--border-radius);
	display: inline-block;
	padding: 8px 12px;
	line-height: var(--wp--custom--typography--interface--line-height);
	font-family: var(--wp--custom--typography--interface--font-family);
	font-weight: var(--wp--custom--typography--interface--font-weight);
	letter-spacing: var(--wp--custom--typography--interface--letter-spacing);
	text-transform: var(--wp--custom--typography--interface--text-transform);
	font-size: var(--wp--preset--font-size--min);
}

.block-quick-links__inner a {
	color: var(--wp--preset--color--foreground);
	display: block;
	position: relative;
	font-weight: 700;
	text-align: center;
	z-index: 2;
}

.block-quick-links__inner a,
.editor-styles-wrapper .block-quick-links__inner a {
	text-decoration: none;
}

.block-quick-links__inner a svg {
	display: block;
	margin-inline-start: auto;
	margin-inline-end: auto;
}

.block-quick-links__inner img {
	z-index: 1;
	width: 100%;
	aspect-ratio: var(--wp--custom--aspect-ratio);
	object-fit: cover;
}

:where(.block-quick-links.style-square) .block-quick-links__inner span {
	display: block;
	font-size: var(--wp--preset--font-size--tiny);
}

.block-quick-links.style-circle {
	--cwp-columns: 3;
}

.block-quick-links.style-circle img {
	border-radius: 50%;
	aspect-ratio: 1;
}

.block-quick-links.style-circle span {
	background: transparent;
}

.block-quick-links.style-circle a:where(:focus, :hover) span {
	text-decoration: underline;
}

.has-background .block-quick-links.style-circle span {
	color: inherit;
}

.style-circle .block-quick-links__inner {
	text-align: center;
}

.layout-flex .block-quick-links__inner a {
	flex-basis: 150px;
	flex-grow: 1;
}

.block-quick-links__carousel-lede {
	display: none;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 900;
	line-height: var(--wp--custom--line-height--small);
}

.layout-explore .block-quick-links__inner {
	position: relative;
}

.layout-explore .block-quick-links__inner::after {
	content: "";
	display: inline-block;
	background-image: url("https://www.thecookierookie.com/wp-content/themes/thecookierookie-2024/assets/icons/utility/explore.svg");
	background-position: 50% 50%;
	background-repeat: no-repeat;
	height: 74px;
	width: clamp(82px, 9.5vw, 137px);
	transform: rotate(-6deg);
	position: absolute;
	pointer-events: none;
	top: -24px;
	left: calc(-1 * var(--wp--custom--layout--padding) + 4px);
	z-index: 10;
}

.layout-explore:where(.style-square) .block-quick-links__inner {
	--cwp-columns: 3;
}

.layout-explore:where(.style-square) .block-quick-links__inner a {
	background-color: var(--wp--preset--color--background);
	box-shadow: var(--wp--custom--box-shadow--1);
	padding: 12px;
}

.layout-explore:where(.style-square) .block-quick-links__inner img {
	aspect-ratio: 1.33;
}

.layout-explore:where(.style-square) .block-quick-links__inner span {
	background-color: transparent;
	padding: 8px 0 0;
}

@media only screen and (max-width: 599px) {
	.block-quick-links.layout-carousel {
		margin-inline-start: calc(-1 * var(--wp--custom--layout--padding));
		margin-inline-end: calc(-1 * var(--wp--custom--layout--padding));
	}

	.layout-carousel .block-quick-links__inner {
		display: flex;
		overflow-x: auto;
	}

	.layout-carousel .block-quick-links__inner::before,
	.layout-carousel .block-quick-links__inner::after {
		content: "";
		padding: 4px;
	}

	.layout-carousel .block-quick-links__inner > * {
		flex-basis: 104px;
		flex-shrink: 0;
	}

	.layout-carousel.style-square .block-quick-links__inner > * {
		flex-basis: 200px;
	}

	.layout-carousel .block-quick-links__carousel-lede {
		display: block;
		padding-inline-start: var(--wp--custom--layout--padding);
		padding-inline-end: var(--wp--custom--layout--padding);
	}
}

@media only screen and (min-width: 600px) {

	.block-quick-links {
		--cwp-gap: 16px;
	}

	.block-quick-links.style-circle {
		--cwp-columns: 4;
	}

	.layout-flex .block-quick-links__inner,
	.layout-carousel .block-quick-links__inner {
		display: flex;
	}
}

@media only screen and (max-width: 900px) {
	.layout-flex .block-quick-links__inner {
		flex-wrap: wrap;
	}
}
@media only screen and (min-width: 900px) {
	.block-quick-links {
		--cwp-columns: 4;
	}

	.block-quick-links.style-circle {
		--cwp-columns: 6;
	}

	.layout-explore .block-quick-links__inner::after {
		left: -24px;
	}
}
