/* ===========================
   FRONTEND CSS (theme-front.css)
   =========================== */

/* 0) Theme / Global */
body, .page-wrapper {
	background-color: rgba(220, 255, 219, 0.48);
}

/* 4) WooCommerce specific fixes */
/* Peida "Vajuta siia" link */
.woocommerce-form-coupon-toggle {
	display: none !important;
}

/* Näita kupongivormi alati */
form.checkout_coupon {
	display: block !important;
}

/* Password field container fix */
.password-input {
	position: relative;
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
}

.password-input input[type="password"], .password-input .woocommerce-Input
	{
	width: 100%;
	padding-right: 3rem;
	box-sizing: border-box;
}

.password-input .show-password-input {
	position: absolute;
	top: 50%;
	right: .5rem;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}

.password-input .show-password-input::-moz-focus-inner {
	border: 0;
	padding: 0;
}
/* Konteiner */
.arch-price-wrapper {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	line-height: 1.2;
}

/* --- Soodushind (Roheline) --- */
.arch-sale-price ins {
	text-decoration: none;
	color: #27ae60 !important;
	font-weight: 700 !important;
	font-size: 1.25em;
	background: transparent;
}

/* --- Tavahind (Punane) --- */
.arch-regular-price del {
	color: #c0392b !important;
	font-size: 0.9em;
	font-weight: 400 !important;
	text-decoration: line-through !important;
	opacity: 0.9 !important;
}

/* --- GARANTII: Valuutamärgi näitamine --- */
/* Mõned teemad peidavad .amount sees olevaid asju del sees */
.arch-regular-price del .amount, .arch-sale-price ins .amount {
	display: inline-block !important; /* Kindlustame, et number on näha */
}

/* Fix: Kui valuutamärk on kadunud, siis sageli teemad peidavad selle del sees */
.arch-regular-price del .amount {
	color: inherit; /* Pärineb punase värvi */
	text-decoration: inherit; /* Pärineb maha tõmbamise */
}

/* Tabs handling */
.woocommerce-tabs .tabs, .woocommerce-tabs .wc-tabs {
	display: none;
}

/* 5) PPOM / VM / Events Front-end blocks */
.vm-sale-closed {
	-webkit-filter: grayscale(1);
	filter: grayscale(1);
}

.vm-announcement {
	padding: 10px;
	margin: 10px;
	color: #000;
	background: #ffe922;
	border: 1px solid #ccc;
}

.vm-announcement-red {
	padding: 10px;
	margin: 10px;
	color: #fff;
	background: #fc4343;
	border: 1px solid #ccc;
}

.vm-green {
	color: darkgreen;
}

.vm-red {
	color: #990000;
}

.bowling-reservations, .bowling-discount-info {
	margin-bottom: 5px;
	clear: both;
}

/*
.reservation-field {
    color: black;
    display: inline-block;
    border: 1px solid #555;
    padding: 0 2.9em 0 1em;
    line-height: 2em;
}
*/

/* Event info compact layout */
/*
.event_info {
    width: 120px;
    display: inline-block;
    padding: 2px;
    line-height: 1.2;
}

.event_info_time {
    width: 40px;
    display: inline-block;
    padding: 2px;
    text-align: right;
}

.event_info_title {
    width: 200px;
    display: inline-block;
    padding: 8px 3px;
}
*/

/* Facebook event data */
/*
.facebook_event_data {
    display: inline-flex;
    flex-wrap: wrap;
}

.facebook_event_data_col {
    padding: 5px 20px 15px 20px;
    margin: 5px;
    border: 1px solid #ddd;
    display: inline-block;
    vertical-align: top;
}
*/

/* 6) Targeted border-radius & images */
.akt_eventcol-1-1 img, .post-content img, .fg-wrapper img,
	.wp-post-image {
	border-radius: 10px;
}

/* 7) Small fixes */
.vm-price-and-sale p, .vm-price-and-sale fieldset {
	margin: 0;
	padding: 0;
}

p.stock.in-stock {
	display: none;
}

form.cart.ppom-flex-controller {
	width: 100%;
}

/* contact form */
.wpcf7-quiz {
	width: 15%;
}

p {
	margin: 0 !important;
	line-height: 1.5;
	color: #0c0c0c !important;
}

/*
:root :where(p) {
	color: inherit !important;
}
*/

/* --- Table of Contents (MCE) --- */
.mce-toc ul {
	display: grid;
	/* Muudatus: Vähendasin minmax 240px -> 220px, et kitsamatel ekraanidel (nt vanemad telefonid)
	   oleks ruudustik paindlikum, kuid säiliks loogika. */
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 15px;
	list-style: none !important;
	padding: 0;
	margin: 30px 0;
}

.mce-toc li {
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	/* Muudatus: Tagame, et element on tsentreeritud oma ruudustiku pesas */
	display: flex;
	justify-content: center;
}

.mce-toc a {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-color: var(--wp--preset--color--secondary);
	border: 1px solid var(--wp--preset--color--secondary);
	color: #ffffff;
	border-radius: 6px;
	padding: 15px 20px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	
	/* --- Fix mobiilivaate jaoks --- */
	width: 100%; /* Täidab ruudustiku pesa */
	max-width: 350px; /* Piirang: nupud ei lähe kunagi laiemaks kui 350px (visuaalselt ilusam mobiilis) */
	/* Kui ruudustiku pesa on laiem kui 350px, hoiab see nupu keskel */
	margin-left: auto;
	margin-right: auto;
}

.mce-toc a:hover, .mce-toc a:focus {
	background-color: var(--wp--preset--color--button-hover-color);
	border-color: var(--wp--preset--color--button-hover-color);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(230, 126, 34, 0.2);
}

/* MyAccount navigation — grouped and simplified */
.woocommerce-MyAccount-navigation {
	margin: 0;
	padding: 0;
}

.woocommerce-MyAccount-navigation li {
	list-style: none;
	text-align: center;
	margin-right: 30px;
	width: 90%;
	line-height: 40px;
	margin-bottom: 5px;
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	text-decoration: none;
	color: #000;
	border: 1px solid #bbb;
	border-radius: 3px;
	padding: 5px;
}

@media ( max-width :750px) {
	.woocommerce-MyAccount-navigation li {
		width: 100%;
	}
}

@media ( min-width :751px) and (max-width:990px) {
	.woocommerce-MyAccount-navigation li {
		width: max-content;
		margin-right: 2px;
	}
	.woocommerce-MyAccount-navigation ul {
		display: inline-flex;
	}
}
/* * WooCommerce Galerii Cleanup CSS 
 * Eesmärk: Peita visuaalsed elemendid ja kaitsta pilte allalaadimise eest.
 */

/* --- 1. WOOCOMMERCE TOOTEGALERII SPETSIIFIKA --- */

/* Peidame luubi ikooni */
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Peidame zoomitud pildi konteineri */
img.zoomImg {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Keelame lingi avamise pildil (tooteleht) */
.woocommerce-product-gallery__image a {
    cursor: default;
    pointer-events: none;
}

/* Overlay kaitse tootelehel (kõige kindlam meetod) */
.woocommerce-product-gallery__image {
    position: relative;
}

.woocommerce-product-gallery__image::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent; 
}

/* --- 2. GLOBAALNE PILTIDE KAITSE (TERVE LEHT) --- */

/* Baaskaitse kõigile piltidele: ei saa lohistada ega valida */
img {
    -webkit-user-drag: none;       /* Chrome/Safari: Keelab lohistamise */
    -khtml-user-drag: none;
    -moz-user-drag: none;          /* Firefox: Keelab lohistamise */
    -o-user-drag: none;
    user-drag: none;
    user-select: none;             /* Keelab valimise (siniseks minemise) */
    -webkit-touch-callout: none;   /* iOS: Keelab pika vajutuse menüü */
}

/* --- 3. AGRESSIIVSEM KAITSE SISUPILTIDELE --- */
/* Lisame 'pointer-events: none' ainult sisu piltidele.
   See teeb pildi hiire jaoks "nähtamatuks" - paremklikk läheb läbi pildi taustale.
   Ei rakenda globaalselt 'img' peale, sest see lõhuks nupud/ikoonid.
*/

/* WordPressi tavaline sisu, Gutenberg plokid, Elementor pildid, WooCommerce arhiiv */
.entry-content img,
.wp-block-image img,
.elementor-image img,
.woocommerce-loop-product__link img, 
.gallery-item img,
/* TÄIENDUS: Avalehe ja toodete gridide lisaselektorid */
.home .product img,                /* Avalehe tooted */
ul.products li.product img,        /* Klassikaline WooCommerce grid */
.wc-block-grid__product-image img, /* WooCommerce Gutenberg Blocks */
.bundled_product_image img         /* Pakettide pildid (Product Bundles) */
{
    pointer-events: none !important;
}