Joywork/css/consent.css

148 lines
3.1 KiB
CSS
Raw Normal View History

2026-05-22 20:21:54 +02:00
#user-consent-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: white;
border-top: 1px solid #ddd;
box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
z-index: 9999;
transform: translateY(0);
transition: transform 0.3s ease;
}
#user-consent-banner.hidden {
transform: translateY(100%);
}
#user-consent-banner .banner-content {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: 20px;
}
#user-consent-banner .banner-text {
color: #666;
font-size: 14px;
line-height: 1.5;
flex: 1;
}
#user-consent-banner .banner-buttons {
display: flex;
gap: 12px;
flex-shrink: 0;
}
#user-consent-banner .btn {
padding: 10px 20px;
border: none;
border-radius: 3px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
min-width: 100px;
text-align: center;
}
#user-consent-banner .btn.accept {
background-color: #4CAF50;
color: white;
}
#user-consent-banner .btn.decline {
background-color: #f44336;
color: white;
}
#user-consent-banner .btn:hover {
opacity: 0.9;
transform: translateY(-2px);
}
@media (max-width: 768px) {
#user-consent-banner .banner-content {
flex-direction: column;
text-align: center;
}
#user-consent-banner .banner-buttons {
width: 100%;
justify-content: center;
}
}
#checkbox_privacy_policy_1,
#checkbox_privacy_policy_2,
#checkbox_privacy_policy_3 {
.checkbox-label {
display: block;
position: relative;
padding-left: 25px; /* место под чекбокс */
margin-bottom: 15px;
cursor: pointer;
font-size: 14px;
line-height: 18px;
user-select: none;
}
.checkbox-label input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.checkbox-label .checkmark {
position: absolute;
left: 15px;
top: 0;
height: 25px;
width: 25px;
background-color: #fff;
border: 2px solid #ccc;
border-radius: 3px;
transition: background-color 0.3s, border-color 0.3s;
}
.checkbox-label:hover input ~ .checkmark {
border-color: #888;
}
.checkbox-label input:checked ~ .checkmark {
background-color: #4CAF50; /* зелёный фон */
border-color: #4CAF50;
}
.checkbox-label .checkmark:after {
content: "";
position: absolute;
display: none;
left: 6px;
top: 2px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.checkbox-label input:checked ~ .checkmark:after {
display: block;
}
}
#registerButton_1[disabled], #registerButton_2[disabled], #registerButton_3[disabled] {
background-color: #ccc;
cursor: not-allowed;
opacity: 0.6;
pointer-events: none;
}