Navigate privacy laws with feline precision — detect every boundary, respect every territory! GDPR compliance and privacy protection for WordPress. - Cookie consent management - Privacy boundary detection - GDPR-compliant analytics gating - Cross-plugin consent coordination (integrates with TigerStyle Heat) - Visitor preference tracking - Configurable cookie categories Includes build.sh and .distignore for WordPress-installable release ZIPs.
437 lines
8.3 KiB
CSS
437 lines
8.3 KiB
CSS
/**
|
|
* TigerStyle Whiskers - Cookie Consent Styles
|
|
* Feline finesse meets GDPR compliance
|
|
*/
|
|
|
|
/* Consent Overlay */
|
|
.tw-consent-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
z-index: 999999;
|
|
backdrop-filter: blur(2px);
|
|
animation: tw-fade-in 0.3s ease-out;
|
|
}
|
|
|
|
/* Main Consent Banner */
|
|
.tw-consent-banner {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
max-width: 600px;
|
|
width: calc(100% - 40px);
|
|
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
|
|
border-radius: 16px;
|
|
box-shadow: 0 12px 40px rgba(255, 107, 53, 0.3);
|
|
border: 2px solid #ff6b35;
|
|
padding: 24px;
|
|
animation: tw-slide-up 0.4s ease-out;
|
|
}
|
|
|
|
/* Header with Icon */
|
|
.tw-consent-header {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.tw-consent-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
margin-right: 12px;
|
|
color: #ff6b35;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tw-consent-title {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: #2c3e50;
|
|
background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
/* Content Area */
|
|
.tw-consent-content {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.tw-consent-message {
|
|
margin: 0 0 16px 0;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
color: #555;
|
|
}
|
|
|
|
/* Cookie Categories */
|
|
.tw-consent-categories {
|
|
margin-top: 16px;
|
|
border-top: 1px solid #e1e8ed;
|
|
padding-top: 16px;
|
|
}
|
|
|
|
.tw-consent-category {
|
|
margin-bottom: 12px;
|
|
padding: 12px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.tw-consent-category:hover {
|
|
background: #f1f3f4;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.tw-consent-category-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|
|
|
|
.tw-consent-category-info h4 {
|
|
margin: 0 0 4px 0;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.tw-consent-category-info p {
|
|
margin: 0 0 4px 0;
|
|
font-size: 12px;
|
|
color: #666;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.tw-required {
|
|
font-size: 10px;
|
|
color: #ff6b35;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Toggle Switches */
|
|
.tw-consent-switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 48px;
|
|
height: 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tw-consent-switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.tw-consent-slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #ccc;
|
|
transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.tw-consent-slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 18px;
|
|
width: 18px;
|
|
left: 3px;
|
|
bottom: 3px;
|
|
background-color: white;
|
|
transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
border-radius: 50%;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.tw-consent-switch input:checked + .tw-consent-slider {
|
|
background-color: #ff6b35;
|
|
}
|
|
|
|
.tw-consent-switch input:disabled + .tw-consent-slider {
|
|
background-color: #ff6b35;
|
|
opacity: 0.8;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.tw-consent-switch input:checked + .tw-consent-slider:before {
|
|
transform: translateX(24px);
|
|
}
|
|
|
|
.tw-consent-switch input:focus + .tw-consent-slider {
|
|
box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
|
|
}
|
|
|
|
/* Action Buttons */
|
|
.tw-consent-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tw-btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
text-align: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tw-btn:before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 0;
|
|
height: 0;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.tw-btn:active:before {
|
|
width: 300px;
|
|
height: 300px;
|
|
top: 50%;
|
|
left: 50%;
|
|
}
|
|
|
|
.tw-btn-accept {
|
|
background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
|
|
color: white;
|
|
box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
|
|
order: 3;
|
|
}
|
|
|
|
.tw-btn-accept:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
|
|
}
|
|
|
|
.tw-btn-necessary {
|
|
background: #6c757d;
|
|
color: white;
|
|
order: 2;
|
|
}
|
|
|
|
.tw-btn-necessary:hover {
|
|
background: #5a6268;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.tw-btn-customize {
|
|
background: transparent;
|
|
color: #ff6b35;
|
|
border: 2px solid #ff6b35;
|
|
order: 1;
|
|
}
|
|
|
|
.tw-btn-customize:hover {
|
|
background: #ff6b35;
|
|
color: white;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Footer */
|
|
.tw-consent-footer {
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: #666;
|
|
border-top: 1px solid #e1e8ed;
|
|
padding-top: 12px;
|
|
}
|
|
|
|
.tw-consent-footer a {
|
|
color: #ff6b35;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tw-consent-footer a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Consent Manager Button */
|
|
.tw-consent-manager {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.tw-consent-manage-btn {
|
|
background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50px;
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
animation: tw-pulse 2s infinite;
|
|
}
|
|
|
|
.tw-consent-manage-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
|
|
animation: none;
|
|
}
|
|
|
|
.tw-consent-manage-btn svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes tw-fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes tw-slide-up {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-50%) translateY(100px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes tw-pulse {
|
|
0% { box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3); }
|
|
50% { box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5); }
|
|
100% { box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3); }
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.tw-consent-banner {
|
|
bottom: 10px;
|
|
left: 10px;
|
|
right: 10px;
|
|
transform: none;
|
|
max-width: none;
|
|
width: auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.tw-consent-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.tw-btn {
|
|
width: 100%;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.tw-consent-header {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.tw-consent-icon {
|
|
margin-right: 0;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.tw-consent-category-header {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.tw-consent-switch {
|
|
align-self: flex-start;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.tw-consent-banner {
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
border-radius: 16px 16px 0 0;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tw-consent-title {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.tw-consent-message {
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
/* High Contrast Mode Support */
|
|
@media (prefers-contrast: high) {
|
|
.tw-consent-banner {
|
|
border: 3px solid #000;
|
|
background: #fff;
|
|
}
|
|
|
|
.tw-consent-title {
|
|
-webkit-text-fill-color: #000;
|
|
background: none;
|
|
color: #000;
|
|
}
|
|
|
|
.tw-btn-accept {
|
|
background: #000;
|
|
color: #fff;
|
|
border: 2px solid #000;
|
|
}
|
|
|
|
.tw-consent-switch input:checked + .tw-consent-slider {
|
|
background-color: #000;
|
|
}
|
|
}
|
|
|
|
/* Reduced Motion Support */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.tw-consent-overlay,
|
|
.tw-consent-banner,
|
|
.tw-consent-category,
|
|
.tw-consent-slider,
|
|
.tw-consent-slider:before,
|
|
.tw-btn,
|
|
.tw-consent-manage-btn {
|
|
animation: none;
|
|
transition: none;
|
|
}
|
|
|
|
.tw-consent-manage-btn {
|
|
animation: none;
|
|
}
|
|
} |