/**
 * @package SP Cookie Consent
 * @author JoomShaper https://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2018 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/

#sp-cookie-consent *,
#sp-cookie-consent *::before,
#sp-cookie-consent *::after {
	box-sizing: border-box;
}

#sp-cookie-consent {
	position: fixed;
	font-size: 16px;
	font-weight: 500;
	bottom: 0;
	z-index: 10001;
}

#sp-cookie-consent a,
#sp-cookie-consent a:hover {
	text-decoration: underline;
}

#sp-cookie-consent.position-bottom_left,
#sp-cookie-consent.position-bottom_right {
	width: 400px;
	max-width: 100%;
	border-radius: 4px;
	bottom: 20px;
}

#sp-cookie-consent.position-bottom_left {
	left: 20px;
}

#sp-cookie-consent.position-bottom_right {
	right: 20px;
}

#sp-cookie-consent.position-bottom {
	left: 0;
	width: 100%;
	display: table;
}

#sp-cookie-consent > div {
	padding: 20px;
	position: relative;
}

#sp-cookie-consent.position-bottom > div {
	-ms-flex-align: center!important;
    align-items: center!important;
	display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

#sp-cookie-consent.position-bottom > div > .sp-cookie-consent-action {
	margin-top: 15px;
}

@media (min-width: 992px) {
	#sp-cookie-consent.position-bottom > div > .sp-cookie-consent-content {
		-ms-flex: 0 0 75%;
		flex: 0 0 75%;
		max-width: 75%;
	}

	#sp-cookie-consent.position-bottom > div > .sp-cookie-consent-action {
		-ms-flex: 0 0 25%;
		flex: 0 0 25%;
		max-width: 25%;
		margin-top: 0;
		text-align: right;
	}
}

#sp-cookie-consent .sp-cookie-allow {
	display: inline-block;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	padding: 7px 15px;
	font-size: 90%;
	font-weight: bold;
	line-height: 1.5;
	border-radius: .25rem;
	transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

#sp-cookie-consent.position-bottom_left .sp-cookie-allow,
#sp-cookie-consent.position-bottom_right .sp-cookie-allow {
	margin-top: 15px;
}

#sp-cookie-consent .sp-cookie-allow:hover,
#sp-cookie-consent .sp-cookie-allow:focus,
#sp-cookie-consent .sp-cookie-allow:active {
	text-decoration: none;
}

/* Основной контейнер плашки */
#sp-cookie-consent.position-bottom_right {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;
    max-width: 360px;
    width: calc(100% - 48px);
    z-index: 99999;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Внутренний оберточный div */
#sp-cookie-consent.position-bottom_right > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

/* Текст внутри плашки */
#sp-cookie-consent .sp-cookie-consent-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

/* Ссылки на политики */
#sp-cookie-consent .sp-cookie-consent-content a {
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

#sp-cookie-consent .sp-cookie-consent-content a:hover {
    opacity: 0.8;
}

/* Блок с кнопкой */
#sp-cookie-consent .sp-cookie-consent-action {
    display: flex;
    justify-content: flex-start;
}

/* Кнопка "Принять" */
#sp-cookie-consent a.sp-cookie-allow {
    display: inline-block;
    padding: 9px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

#sp-cookie-consent a.sp-cookie-allow:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
