/*
Theme Name: drSpa theme
Author: Michal "maximer mane" Brdys
Author URI: https://maxymer.pl
Description: Theme created for drSpa.pl by maximer.pl
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 2.0
Text Domain: drSpa
Tags: shop, full site editing
*/


/* Globals */
@media (max-width: 768px) {
	body,
	html {
		overflow-x: hidden !important;
	}
}

.home,
.wp-singular,
.archive,
.search,
.blog,
.error404 {
	margin: 0 0 !important;
}


/* Lightbox */
.elementor-slideshow__header {
	max-width: 100vw;
	overflow-x: auto;
	box-sizing: border-box;
	padding-right: 10px;
}

.elementor-slideshow__header svg {
	max-width: 100%;
	height: auto;
}


/* Banner */
.banner-cover {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}


/* Footer */
.footer-logo img {
	filter: brightness(0) invert(1);
}


/* Realizations - colors samples */
.realization-color-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.realization-color-preview {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    overflow: visible;
    border: 2px solid #ddd;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    cursor: pointer;
}

.realization-color-preview--empty {
    background: #f3f3f3;
}

.realization-color-preview::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    
    background: rgba(120,120,120,0.8); /* szare 80% */
    color: #fff;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-align: center;

    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;

    pointer-events: none;
    z-index: 9999;
}

.realization-color-preview::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    
    border: 6px solid transparent;
    border-top-color: rgba(120,120,120,0.8);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.realization-color-preview:hover::after,
.realization-color-preview:hover::before {
    opacity: 1;
    visibility: visible;
}