/*
 * Theme Name:  Revision Child
 * Theme URI:   https://revision.codesupply.co/
 * Description: Revision Child Theme
 * Author:      Code Supply Co.
 * Author URI:  https://codesupply.co/
 * Template:    revision
 * Version:     1.0.0
 */

/* Copy any classes from parent theme here. They will override the parent's version. */

/* Code block copy button */

.cs-code-block {
	position: relative;
}

.cs-code-copy-btn {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 1;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	border-radius: var(--cs-button-border-radius);
	border: none;
	background-color: rgba(0, 0, 0, 0.75);
	color: #ffffff;
	cursor: pointer;
	transition: 0.2s ease;
	white-space: nowrap;
	opacity: 1 !important;
}

.cs-code-copy-btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	background-image: url('img/copy-svgrepo-com.svg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
	opacity: 1 !important;
}

@media (hover: hover) {
	.cs-code-copy-btn:hover {
		background-color: rgba(0, 0, 0, 0.8);
	}
}

.cs-code-copy-tooltip {
	position: absolute;
	top: 0.75rem;
	right: calc(0.75rem + 28px);
	z-index: 1;
	padding: 4px 8px;
	font-family: var(--cs-font-secondary-family), sans-serif;
	font-size: 11px;
	line-height: 1.4;
	border-radius: var(--cs-button-border-radius);
	background: rgba(0, 0, 0, 0.85);
	color: #ffffff;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.cs-code-copy-tooltip.is-visible {
	opacity: 1;
}

/* Fix for Elementor nested carousel on mobile and tablet */
.widget.block-15 .e-n-carousel .swiper-slide {
	max-width: 100% !important;
}

/* Mobile devices - 1 slide per view */
@media (max-width: 767.98px) {
	.widget.block-15 .e-n-carousel .swiper-slide {
		width: 100% !important;
		flex-basis: 100% !important;
	}
	
	.widget.block-15 .e-n-carousel .swiper-wrapper {
		width: 100% !important;
	}
	
	.widget.block-15 .e-n-carousel {
		width: 100%;
		overflow: hidden;
	}
}

/* Tablet devices - 2 slides per view */
@media (min-width: 768px) and (max-width: 991.98px) {
	.widget.block-15 .e-n-carousel .swiper-slide {
		width: 50% !important;
		flex-basis: 50% !important;
	}
	
	.widget.block-15 .e-n-carousel .swiper-wrapper {
		width: 100% !important;
	}
	
	.widget.block-15 .e-n-carousel {
		width: 100%;
		overflow: hidden;
	}
}
