/*
Theme Name: Squadcompetix
Description: Child of Bloghash with Bloglamp styling. Customize the homepage and all template parts (header, hero, featured links, content). Add your own elements and styles here.
Author: Squadcompetix
Template: bloghash
Version: 1.0.0
Text Domain: squadcompetix
*/

/* Squadcompetix custom styles */

/* WooCommerce add to cart buttons */
.single_add_to_cart_button,
.add_to_cart_button {
	background: rgb(246, 146, 30) !important;
}
.lty-badge{display:none;}
.squadcompetix-gallery-text{
	flex-basis: 50%;
	margin-right: 5rem;
	max-width: 100%;
}
/* Cart & Checkout blocks: parent theme .alignwide uses margin-left/right -5rem and breaks layout */
.entry-content .alignwide.wp-block-woocommerce-cart,
.entry-content .alignwide[data-block-name="woocommerce/cart"],
.entry-content .alignwide:has(.wp-block-woocommerce-cart),
.entry-content .alignwide:has([data-block-name="woocommerce/cart"]),
.entry-content .alignwide.wp-block-woocommerce-checkout,
.entry-content .alignwide[data-block-name="woocommerce/checkout"],
.entry-content .alignwide:has(.wp-block-woocommerce-checkout),
.entry-content .alignwide:has([data-block-name="woocommerce/checkout"]) {
	margin-left: 0;
	margin-right: 0;
}

/* Checkout page: remove list margins (parent theme .bloghash-entry ol/ul) */
body.woocommerce-checkout .bloghash-entry ol,
body.woocommerce-checkout .bloghash-entry ul:not(.wp-block-latest-posts) {
	margin: 0;
}

.bloghash-logo img.bloghash-svg-logo{
	height: 75px;
}
.bloghash-logo img{
	max-height: 75px;
}
/* Category links (post categories) */
.post-category .cat-links a {
	background: #808080 ;
	color: #fff !important;
}

/* Orange button (e.g. View giveaway) */
.bloghash-btn.btn-orange,
.btn-orange {
	color: #fff !important;
	background-color: rgb(246, 146, 30) !important;
	border-color: rgb(246, 146, 30) !important;
}
.bloghash-btn.btn-orange:hover,
.bloghash-btn.btn-orange:focus,
.btn-orange:hover,
.btn-orange:focus {
	color: #fff !important;
	background-color: rgb(220, 130, 27) !important;
	border-color: rgb(220, 130, 27) !important;
}

/* Giveaways Ticker – same style as main #ticker (parent targets #ticker only) */
#giveaways-ticker {
	position: relative;
}
#giveaways-ticker .bloghash-card-items {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	margin: 1.8rem 0;
	border: 0.1rem solid rgba(185, 185, 185, 0.4);
	overflow: hidden;
	border-radius: calc(var(--bloghash-radius) - 10px);
}
.bloghash-card__boxed #giveaways-ticker .bloghash-card-items {
	padding: 0;
}
#giveaways-ticker .bloghash-card-items .widget-title {
	position: relative;
	right: 0;
	flex: 0 0 auto;
	min-height: 4.5rem;
	font-size: 1.6rem;
	font-weight: 600;
	padding: 1rem 1.6rem;
	margin: 0;
	border: none;
	line-height: 1.5;
	text-align: center;
	border-radius: 0;
	max-width: 100%;
	gap: 0.5rem;
	background-color: var(--bloghash-primary);
	color: #fff;
}
#giveaways-ticker .bloghash-card-items .widget-title::before {
	content: "";
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	vertical-align: unset;
	background-color: #fff;
	-webkit-mask: none;
	mask: none;
	animation: liveDotBlink 1.5s ease-in-out infinite;
}
#giveaways-ticker .bloghash-card-items .widget-title::after {
	display: none;
}
@media only screen and (max-width: 1025px) {
	#giveaways-ticker .bloghash-card-items .widget-title span::before {
		display: none;
	}
}
/* Giveaways ticker countdown – ticker-specific classes (no lty-shop-* so plugin styles don’t apply) */
#giveaways-ticker .giveaway-ticker-countdown {
	font-size: 1.2rem;
	margin-top: 0;
	line-height: 1.15;
}
#giveaways-ticker .giveaway-ticker-timer-wrapper,
#giveaways-ticker .giveaway-ticker-timer-container {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
}
#giveaways-ticker .giveaway-ticker-timer-section {
	display: inline-flex;
	align-items: baseline;
}
#giveaways-ticker .giveaway-ticker-timer-label,
#giveaways-ticker .giveaway-ticker-timer-unit {
	margin-left: 0.2rem;
}
#giveaways-ticker .giveaway-ticker-countdown .lty-timer-value {
	font-weight: 600;
}

/* Giveaway Hero Slider – no overlay; image left / info right on desktop; image top / info bottom on mobile */
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .bloghash-post-thumb .inner:after {
	display: none;
}
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	min-height: 0;
	background-color: var(--bloghash-white, #fff);
}
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .giveaway-hero-slide-thumb {
	position: relative;
	width: 100%;
	height: 28rem;
	min-height: 28rem;
	overflow: hidden;
}
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .giveaway-hero-slide-thumb a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .giveaway-hero-slide-thumb .inner {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .giveaway-hero-slide-thumb .inner img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left center;
}
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .giveaway-hero-slide-content {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.6rem;
}
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .giveaway-hero-slide-content .bloghash-hero-container {
	flex: 0 1 auto;
	align-self: center;
	width: 100%;
	max-width: 100%;
}
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .giveaway-hero-slide-content .bloghash-post-content {
	flex: 0 1 auto;
}
.squadcompetix-giveaway-hero-slider .giveaway-hero-slide-post-content {
	max-width: 100%;
}
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .bloghash-post-content .entry-title a,
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .bloghash-post-content .giveaway-hero-product-price,
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .bloghash-post-content .giveaway-hero-countdown,
.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .bloghash-post-content .bloghash-btn {
	color: inherit;
}

/* Giveaway Hero – countdown timer (card-style units) */
.giveaway-hero-countdown .lty-shop-timer-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1rem 0 1.25rem;
}
.giveaway-hero-countdown .lty-shop-timer-container {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.giveaway-hero-countdown .lty-shop-timer-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 4rem;
	padding: 0.65rem 0.5rem;
	background: linear-gradient(145deg, #fff 0%, #f5f5f5 100%);
	border: 1px solid rgba(34, 108, 67, 0.2);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.giveaway-hero-countdown .lty-shop-timer-section .lty-timer-value {
	display: block;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--bloghash-primary, #226c43);
	letter-spacing: 0.02em;
	min-height: 1.2em;
}
.giveaway-hero-countdown .lty-shop-timer-section .lty-shop-timer-content:not(.lty-timer-value) {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(0, 0, 0, 0.55);
	margin-top: 0.2rem;
}
.giveaway-hero-countdown .lty-shop-timer-section:last-child .lty-timer-value {
	color: rgb(246, 146, 30);
}
.giveaway-hero-countdown .lty-shop-timer-section:last-child .lty-timer-value {
	animation: giveaway-hero-timer-pulse 1s ease-in-out infinite;
}
@keyframes giveaway-hero-timer-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.85; }
}
/* Desktop / tablet landscape: image left, info right */
@media (min-width: 769px) {
	.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide {
		flex-direction: row;
		min-height: 40rem;
	}
	.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .giveaway-hero-slide-thumb {
		flex: 0 0 60%;
		width: 60%;
		height: 40rem;
		min-height: 40rem;
	}
	.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .giveaway-hero-slide-content {
		flex: 1 1 40%;
		min-width: 0;
		align-self: stretch;
		padding: 2rem 2.4rem;
	}
	.squadcompetix-giveaway-hero-slider .giveaway-hero-product-slide .giveaway-hero-slide-content .bloghash-hero-container {
		width: 100%;
	}
}

/* Slider swiper: remove horizontal padding and hide nav buttons on mobile */
@media only screen and (max-width: 768px) {
	.six-slider .bloghash-swiper,
	.two-slider .bloghash-swiper {
		padding-left: 0;
		padding-right: 0;
	}
	.six-slider .swiper-button-prev,
	.six-slider .swiper-button-next,
	.two-slider .swiper-button-prev,
	.two-slider .swiper-button-next {
		display: none;
	}
}
.btn-small-green {background-color: #226c43 !important;}
.lty_lottery_failed_status span {
background-color:#FAC78F !important;
margin: 0 5px;
}
.lty_lottery_started_status span {
	background-color:#C8D9CF !important;
	margin: 0 5px;
}

/* Lottery progress bar – track, fill and cups (single product + loop / giveaway hero) */
.lty-lottery-progress-bar .lty-progress-bar,
.lty-lottery-progress-bar-loop .lty-progress-bar {
	overflow: visible;
}
.lty-progress-bar {
	position: absolute;
	background-color: rgba(0, 0, 0, 0.08);
	height: 18px;
	overflow: visible;
}
/* Progress fill (completed) – visible behind the cups */
.lty-progress-bar > span {
	position: relative;
	z-index: 0;
}
.lty-progress-bar .lty-progress-fill {
	background-color: rgb(246, 146, 30);
	display: block;
	height: 100%;
	border-radius: 5px;
}
/* Cups inside the progress bar: overlay on top of the fill (icons slightly taller than bar) */
.lty-progress-bar .lty-progress-cups--milestone {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	pointer-events: none;
	display: flex;
	align-items: center;
	z-index: 1;
}
.lty-progress-bar .lty-progress-cups--milestone .lty-progress-cup {
	top: 50%;
	transform: translate(-50%, -50%);
}
/* Unreached: gray; reached: orange — cup icon a bit larger than bar (18px) */
.lty-progress-bar .lty-progress-cups--milestone .lty-progress-cup .lty-progress-cup-icon {
	width: 22px;
	height: 22px;
	color: #888;
	filter: grayscale(100%);
	opacity: 0.85;
}
.lty-progress-bar .lty-progress-cups--milestone .lty-progress-cup.lty-progress-cup-reached .lty-progress-cup-icon {
	color: rgb(246, 146, 30);
	filter: none;
	opacity: 1;
}
.single-product .lty-progress-bar .lty-progress-cups--milestone .lty-progress-cup .lty-progress-cup-icon {
	width: 24px;
	height: 24px;
}
.single-product .lty-progress-bar .lty-progress-cups--milestone .lty-progress-cup.lty-progress-cup-reached .lty-progress-cup-icon {
	color: rgb(246, 146, 30);
}
.lty-progress-cups {
	display: flex;
	width: 100%;
	margin-bottom: 0.35rem;
	justify-content: space-between;
	align-items: center;
	gap: 0;
}
/* Bonus draw milestone cups: 10 cups (every 10%) or 5 cups (every 20%) – positioned at each percent */
.lty-progress-cups--milestone {
	position: relative;
	display: block;
	height: 1.5rem;
}
.lty-progress-cups--milestone .lty-progress-cup {
	position: absolute;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	max-width: none;
}
.lty-progress-cup {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 10%;
	max-width: 10%;
}
.lty-progress-cup-icon {
	width: 22px;
	height: 22px;
	color: #888;
	filter: grayscale(100%);
	opacity: 0.85;
	transition: filter 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}
/* Reached milestone: orange */
.lty-progress-cup-reached .lty-progress-cup-icon {
	filter: none;
	opacity: 1;
	color: rgb(246, 146, 30);
}
/* Single product page: cups a bit larger than bar */
.single-product .lty-progress-cup-icon {
	width: 24px;
	height: 24px;
}
.single-product .lty-progress-cup-reached .lty-progress-cup-icon {
	color: rgb(246, 146, 30);
}
/* Giveaway hero slider – same cup treatment as single product (gray + grayscale until reached, then orange); nested under .lty-progress-bar wins over Swiper/transform quirks */
.squadcompetix-giveaway-hero-slider .lty-lottery-progress-bar-loop .lty-progress-cups {
	margin-bottom: 0.25rem;
}
.squadcompetix-giveaway-hero-slider .lty-progress-bar .lty-progress-cups--milestone .lty-progress-cup:not(.lty-progress-cup-reached) .lty-progress-cup-icon {
	width: 22px;
	height: 22px;
	color: #888;
	fill: currentColor;
	filter: grayscale(100%);
	-webkit-filter: grayscale(100%);
	opacity: 0.85;
}
.squadcompetix-giveaway-hero-slider .lty-progress-bar .lty-progress-cups--milestone .lty-progress-cup:not(.lty-progress-cup-reached) .lty-progress-cup-icon path {
	fill: currentColor;
}
.squadcompetix-giveaway-hero-slider .lty-progress-bar .lty-progress-cups--milestone .lty-progress-cup.lty-progress-cup-reached .lty-progress-cup-icon {
	width: 22px;
	height: 22px;
	color: rgb(246, 146, 30);
	fill: currentColor;
	filter: none;
	-webkit-filter: none;
	opacity: 1;
}
.squadcompetix-giveaway-hero-slider .lty-progress-bar .lty-progress-cups--milestone .lty-progress-cup.lty-progress-cup-reached .lty-progress-cup-icon path {
	fill: currentColor;
}

/* Bonus draw milestone: gray until reached, then orange */
.lty-progress-cup-bonus-draw:not(.lty-progress-cup-reached) .lty-progress-cup-icon {
	color: #888;
	filter: grayscale(100%);
	opacity: 0.85;
}
.lty-progress-cup-bonus-draw.lty-progress-cup-reached .lty-progress-cup-icon {
	color: rgb(246, 146, 30);
	filter: none;
	opacity: 1;
}
.single-product .lty-progress-cup-bonus-draw.lty-progress-cup-reached .lty-progress-cup-icon {
	color: rgb(246, 146, 30);
}
.lty-lottery-progress-bar .lty-progress-bar-percentage {
	z-index:998;
	transform: translateY(-30px);
}
.lty-progress-count {
	margin-top:20px;
}
p.lty-minimum-ticket-notice
{

	display:none;
}
p.lty-maximum-ticket-notice{
	display:none;
}
p.lty-maximum-tickets-per-user-notice{
	display:none;
}
p.lty-gift-product-notice{display:none;}
p.lty-tickets-sold{display:none;}
p.lty-progress-remaining-count{display:none;}
p.lty-winners-count{display:none;}
.lty-participate-now{
	margin-top:0px!important;
}
.lty-lottery-progress-bar{
	margin-top:30px;
}

/* Property lottery: rules agreement + locked state for ticket UI / quantity / participate */
.squadcompetix-property-rules-agreement {
	margin: 1rem 0 1.25rem;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.02);
}
.squadcompetix-property-rules-label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
	font-size: 1.95rem;
	line-height: 1.45;
	margin: 0;
}
.squadcompetix-property-rules-label input[type="checkbox"] {
	margin-top: 0.2rem;
	flex-shrink: 0;
}
.squadcompetix-property-rules-link {
	text-decoration: underline;
}
form.lty-participate-now.squadcompetix-property-rules--locked .lty-lottery-ticket-container,
form.lty-participate-now.squadcompetix-property-rules--locked .lty-lottery-predefined-buttons-container,
form.lty-participate-now.squadcompetix-property-rules--locked .quantity,
form.lty-participate-now.squadcompetix-property-rules--locked .lty-lottery-range-slider-wrapper,
form.lty-participate-now.squadcompetix-property-rules--locked button[type="submit"][name="add-to-cart"] {
	opacity: 0.45;
	filter: grayscale(35%);
	pointer-events: none;
	transition: opacity 0.2s ease, filter 0.2s ease;
}
form.lty-participate-now.squadcompetix-property-rules--locked button[type="submit"][name="add-to-cart"] {
	cursor: not-allowed;
}
.lty-lottery-question-answer-container {float:none;}

/* Grid */
.squadcompetix-winners-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Card */
.squadcompetix-winner-card {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}

/* Image */
.squadcompetix-winner-card__image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1; /* square cards — change to 4/3 or 3/4 as needed */
}

.squadcompetix-winner-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.squadcompetix-winner-card__image--ticket {
	object-fit: contain;
	background: rgba(0, 0, 0, 0.04);
}

.squadcompetix-winner-card__image--missing {
	background: rgba(0, 0, 0, 0.08);
	min-height: 120px;
}

/* Overlay + name/email label (tweak .squadcompetix-winner-card__overlay--label for position) */
.squadcompetix-winner-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 0.75rem;
	pointer-events: none;
}

.squadcompetix-winner-card__label {
	color: black;
	font-size: 1.5rem;
	line-height: 1.3;
	word-break: break-word;
}

.squadcompetix-winner-separator {
	opacity: 0.7;
}
.lty_ticket_logs_tab{ display:none!important;}

.bloghash-container{max-width: 1480px !important;}

.lty-not-won-giveaway-products{display:none;}
.lty-instant-win{display:none;}
.products .lty-progress-bar{
	width:90%;

}
.woocommerce-MyAccount-navigation-link--downloads {
	display: none!important;
}
/* Shop grid: equal-height cards; meta-wrap grows so lottery/footer content sits at the bottom */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: flex;
	flex-wrap: wrap;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	display: flex;
	flex-direction: column;
	float: none;
	height: auto;
}

.woocommerce ul.products li.product .bloghash-product-thumb,
.woocommerce-page ul.products li.product .bloghash-product-thumb {
	flex-shrink: 0;
}

.woocommerce ul.products li.product .meta-wrap,
.woocommerce-page ul.products li.product .meta-wrap {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.squadcompetix-winner-card{
	background:white;
}
