/******* General CSS *******/
.brxe-post-content video {
	width: 100%;
}
.brx-popup .brx-popup-backdrop {
	transition: none !important;
}

/* Colored divider we use on the site */
.cs-divider {
	width: 60px;
	height: 4px;
	background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
	border-radius: 2px;
}


/******* Search form *******/
/* remove arrow from <select> with multiple (e.g. Brands) */
.cs-search-form-shortcode select[multiple] { 
  -webkit-appearance: none !important; 
  -moz-appearance: none !important;    
  appearance: none !important;         
  background: none !important;         
  padding-right: 0 !important;         
}





/******* Tippy tooltip *******/
/* Global style for all Tippy tooltips */
.tippy-box {
	background: linear-gradient(to bottom, #0591d4, #007bff) !important;
	color: #fff !important;
	border-radius: 4px;
	font-weight: 500;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Arrow (still single color) */
.tippy-box .tippy-arrow {
	color: #007bff !important;
}






/******* Sidebar Vert Banners Randomise (Has corresponding JS) *******/
/* Hide before randomisation, but not in Bricks builder */
.brx-body:not(.iframe) .sidebar-vert-banners {
	visibility: hidden;
}



/******* Post content *******/
/* Helps with images with white padding */
.cs-post__content img,
.cs-post__content figure.wp-block-image:has(figcaption)::before,
.cs-post__content figure.wp-block-image figcaption {
	border-radius: 5px !important;
}
.cs-post__content img {
	border: 2px solid #f2f2f2 !important;
}
.cs-post__content .wp-element-caption {
	line-height: 1.3;
}



/* Distribute column widths intelligently. e.g. Narrow column for short word title cells */
.wp-block-table table {
	table-layout: auto !important;
}
/* Don't let first column (generally title) break word (better for mobile viewing of tables) */
.wp-block-table tr td:first-child { 
	white-space: nowrap; !important;
}
/* Add class to table to give it a min width on mobile for sideways scrolling */
/* Note: For table scrolling to work on this site we need min-width: 0 on .cs-post. This has been set in Bricks. */
.wp-block-table.cs-table-large table {
	min-width: 600px;
}

/* Blockquote/pullquote don't use serif font from Bricks */
blockquote {
	font-family: "Outfit", sans-serif;
	font-weight: 500;
}
/* Lessen pullquote padding */
.cs-post__content .wp-block-pullquote {
	padding: 1.5em 0 !important;
}

/* Gutenberg font sizes used in block quotes aare hard coded to pixels. Let's change them to be more appropriate and responsive. */
 .cs-post__content blockquote.wp-block-quote {
	font-size: calc(var(--text-l) * 1.1);
	margin: 25px 0;
} 
.cs-post__content .has-large-font-size { 
	font-size: var(--text-xl) !important;
}
.cs-post__content .has-x-large-font-size { 
	font-size: var(--text-xxl) !important;
}
@media (max-width: 767px) {
	.cs-post__content blockquote.wp-block-quote {
		font-size: var(--text-l);
		margin: 25px 0;
	} 
	.cs-post__content .has-large-font-size { 
		font-size: calc(var(--text-l) * 0.9) !important;
	}	
	.cs-post__content .has-x-large-font-size { 
		font-size: calc(var(--text-xl) * 0.9) !important;
	}	
}




/* Prevent ACSS border radius applying to figure tags which wrap a table */
figure.wp-block-table {
	border-radius: 0 !important;
}



/* Reviews */
.cs_review {
	display: flex;
	gap: 20px;
	flex-direction: column;
	padding: 30px;
	background: #f1f1f1;
}




/******* Swiper ******/
.swiper {
  width: 100%;
  height: 320px;
}
.swiper-slide {
	background: #fff;
	overflow: hidden;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	gap: 0;
	clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 91% 100%, 0% 100%);
	position: relative;
}
@media (max-width: 1150px) {
	.swiper-slide {
		border-top-left-radius: 4px;
		border-top-right-radius: 4px;
		border-bottom-left-radius: 4px;
	}	
}


a.swiper-slide__image-wrapper {
	overflow: hidden;
	flex-grow: 1;
	display: block;
	text-decoration: none;
}

.swiper-slide__badges {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 5;
}
.swiper-slide__badge {
	font-size: calc(var(--text-s) * 0.9);
	font-weight: 700;
	line-height: 1;
	padding: 8px 13px;
	display: inline-block;
	border-radius: 28px;
	transition: all 0.2s ease;
	/* color: var(--white);
	background-color: var(--primary);
	background-image: linear-gradient(90deg, #06b6d4, #007bff); */
	color: black;
	background: white;
	box-shadow: 0 0 4px 0px #0000001c;
}
.swiper-slide__badge:hover {
	color: black;
	background: rgb(250, 250, 250);
}

.swiper-slide img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	transition: all 0.7s ease;
	transform: scale(1.01);
	border-radius: 0 !important;
}
.swiper-slide:hover img {
	transform: scale(1.05);
}

.swiper-slide__content {
	padding: 12px 15px 15px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: #000;
}



/* Slide meta wrapper */
.swiper-slide__meta {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
}
.swiper-slide__meta > * {
	font-size: calc(var(--text-s) * 0.9);
	line-height: 1.3;
}
.swiper-slide__date {
}
.swiper-slide__author {
	text-decoration: underline;
	z-index: 2;	
	margin-top: -1px;
}
.swiper-slide__edit {
	text-decoration: underline;
	z-index: 2;	
	margin-top: -1px;
	margin-left: auto;
	color: var(--neutral-semi-light);
}
.swiper-slide__edit:hover {
	color: #000;
}


.swiper-slide__excerpt {
	font-size: calc(var(--text-s) * 0.9);
	line-height: 1.4;
}

.swiper-slide__title {
	font-size: calc(var(--text-m) * 1.1);
	line-height: 1.2;
	font-weight: var(--heading-font-weight);
	text-wrap: var(--heading-text-wrap);
	color: black;
}
.swiper-slide__title:hover {
	color: black;
}

/* Hover / underline related */
.swiper-slide__title {
  text-decoration: underline;
  text-decoration-color: white;
  text-decoration-thickness: 1.5px;
}
.swiper-slide__title:hover {
  text-decoration-color: currentColor;
}
/* NO NEED to do restrict the below to non-safari as we are using a solid color, not transparecy, so I have commented out the rule. /*
/* Exclude Safari from this because it doesn't support text decoration transition */
/* @supports (not (-webkit-hyphens: none)) { */
  .swiper-slide__title {
	transition: text-decoration-color 0.3s ease;
  }
/* } */









.swiper-button-prev.swiper-button-disabled, 
.swiper-button-next.swiper-button-disabled {
	pointer-events: auto !important; /* Prevent Swiper.js from disabling clicks so user doesn't end up accidentally clicking through when they reach the last slide */
}

/* Turn off default chevrons as we are using our own icon */
.swiper-button-prev:after,
.swiper-button-next:after {
	display: none !important;
} 

/* Make the triggers full height but only on desktop. So they don't get in the way of swiping on mobile. */
@media (min-width: 767.01px) {
	.swiper-button-prev,
	.swiper-button-next {
		height: 100% !important;
		margin-top: 0 !important;
		top: 0 !important;
		bottom: 0 !important;
		width: 35px !important;
	}	
}
/* Remove the triggers completely on mobile as it's a pure touch screen/swipe context */
@media (max-width: 767px) {
	.swiper-button-prev,
	.swiper-button-next {
		display: none !important;
	}	
}

/* Make the prev/next chevrons hidden until slider is hovered */
.swiper-button-prev img,
.swiper-button-next img {
	opacity: 0;
	transition: opacity 0.3s ease;
}
.swiper:hover .swiper-button-prev img,
.swiper:hover .swiper-button-next img {
	opacity: 1;
}
/* Flip chevron */
.swiper-button-prev img {
	transform: scaleX(-100%); 
}
/* Stop img being selectable */
.swiper-button-prev img,
.swiper-button-next img {
	user-select: none !important;
	pointer-events: none !important;	
}



.swiper-slide__cta {
	display: flex;
	align-items: center;
	justify-content: center;
}
.swiper-slide__cta > div {
	text-align: center;
	font-size: var(--text-m);
	border: 3px solid black;
	color: black;
	font-weight: 700;
	border-radius: 20px;
	padding: 10px 15px;
	width: fit-content;
	max-width: 60%;
	line-height: 1.2;
	text-transform: uppercase;
	font-size: 13px;
}
.swiper-slide__cta:hover > div {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
}
.cs-sliders { 
	gap: var(--space-m);
	display: flex;
	flex-direction: column;	
}
@media (max-width: 767px) {
	.cs-sliders {
		gap: calc(var(--space-m) * 1.2);
	}	
}

.cs-slider-section {
	gap: 0.5rem;
	display: flex;
	flex-direction: column;
}
@media (max-width: 767px) {
	.cs-slider-section {
		gap: 0.4rem;
	}
}



/* Slider header */

.cs-slider-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}
@media (max-width: 767px) {
	.cs-slider-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.4rem;
	}
}

.cs-slider-header__title {
  color: #000;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: bold;
  min-width: 0;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.cs-slider-header__line {
  flex-grow: 1;
  height: 2px;
  background-color: white;
  margin: 0;
  min-width: 20px;
}
@media (max-width: 767px) {
	.cs-slider-header__line {
		display: none;
	}
}

.cs-slider-header__description {
  flex-shrink: 1;
  flex-grow: 0;
  min-width: 0;
  max-width: 100%;
  font-weight: 500;
  font-size: var(--text-s);
  line-height: 1;
}





/* FIXES FOR WIDTH ISSUE as per https://github.com/nolimits4web/swiper/issues/3599 */
.cs-swiper-container {
	display: grid;
}
.cs-swiper-container .swiper {
	max-width: 100%;
}




/* Lightbox CSS (used with Basic Lightbox library enqueued in functions-image-lightbox.php */
/* Has corresponding JS in child theme */
#basicLightboxCloseBtn {
	position: fixed;
	top: 10px;
	right: 10px;
	background: transparent;  /* transparent background */
	border: none;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	padding: 0.2em 0.5em;
	cursor: pointer;
	z-index: 10002;
}
/* ensure overlay + modal sit beneath the close button */
.basicLightbox {
	z-index: 10001 !important;
}
