.ws-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    padding: 20px;
    animation: slideUp 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ws-cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ws-cookie-banner-text {
    text-align: left;
}

.ws-cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
}

.ws-cookie-banner-text p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    max-width: 800px;
}

.ws-cookie-banner-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ws-cookie-banner-links {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.ws-cookie-banner-links a {
    color: #3182ce;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ws-cookie-banner-links a:hover,
.ws-cookie-banner-links a:focus {
    color: #2c5aa0;
    text-decoration: underline;
}


.ws-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.4;
    min-height: 40px;
    box-sizing: border-box;
    white-space: nowrap;
    font-family: inherit;
    background: #ffffff;
}

.ws-btn:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

.ws-btn-primary {
    background-color: #3182ce;
    color: #ffffff;
    border-color: #3182ce;
}

.ws-btn-primary:hover,
.ws-btn-primary:focus {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
    color: #ffffff;
}

.ws-btn-secondary {
    background-color: #f7fafc;
    color: #2d3748;
    border-color: #cbd5e0;
}

.ws-btn-secondary:hover,
.ws-btn-secondary:focus {
    background-color: #edf2f7;
    border-color: #a0aec0;
    color: #2d3748;
}

.ws-btn-outline {
    background-color: transparent;
    color: #3182ce;
    border-color: #3182ce;
}

.ws-btn-outline:hover,
.ws-btn-outline:focus {
    background-color: #3182ce;
    color: #ffffff;
}


.ws-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 32, 44, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ws-cookie-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.ws-cookie-modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
    padding-bottom: 16px;
}

.ws-cookie-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
}

.ws-cookie-modal-close {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    font-size: 18px;
    cursor: pointer;
    color: #4a5568;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ws-cookie-modal-close:hover,
.ws-cookie-modal-close:focus {
    background-color: #edf2f7;
    border-color: #cbd5e0;
    outline: none;
}

.ws-cookie-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.ws-cookie-modal-body > p {
    margin-bottom: 24px;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

.ws-cookie-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}


.ws-cookie-category {
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.ws-cookie-category:hover {
    border-color: #cbd5e0;
    background: #f1f5f9;
}

.ws-cookie-category-header {
    margin-bottom: 12px;
}

.ws-cookie-category h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

.ws-cookie-category-name {
    margin-left: 12px;
    font-weight: 600;
}

.ws-cookie-category-desc {
    margin: 8px 0 0 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}


.ws-cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.ws-cookie-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ws-cookie-slider {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    background-color: #cbd5e0;
    border-radius: 28px;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.ws-cookie-slider:before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ws-cookie-toggle input:checked + .ws-cookie-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ws-cookie-toggle input:checked + .ws-cookie-slider:before {
    transform: translateX(24px);
}

.ws-cookie-toggle input:disabled + .ws-cookie-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.7;
    cursor: not-allowed;
}

.ws-cookie-toggle input:focus + .ws-cookie-slider {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}


.ws-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 14px;
    border-left: 4px solid;
}

.ws-message-success {
    background-color: #f0fff4;
    color: #22543d;
    border-left-color: #38a169;
}

.ws-message-error {
    background-color: #fed7d7;
    color: #742a2a;
    border-left-color: #e53e3e;
}

.ws-message-info {
    background-color: #ebf8ff;
    color: #2a4365;
    border-left-color: #3182ce;
}


@media (max-width: 768px) {
    .ws-cookie-banner {
        padding: 16px;
    }
    
    .ws-cookie-banner-content {
        gap: 12px;
    }
    
    .ws-cookie-banner-text h3 {
        font-size: 16px;
    }
    
    .ws-cookie-banner-text p {
        font-size: 13px;
    }
    
    .ws-cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        align-items: stretch;
    }
    
    .ws-cookie-banner-buttons .ws-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ws-cookie-banner-links {
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .ws-cookie-modal {
        padding: 12px;
    }
    
    .ws-cookie-modal-content {
        border-radius: 12px;
        max-height: 95vh;
    }
    
    .ws-cookie-modal-header,
    .ws-cookie-modal-body,
    .ws-cookie-modal-footer {
        padding: 20px 16px;
    }
    
    .ws-cookie-modal-header h2 {
        font-size: 20px;
    }
    
    .ws-cookie-category {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .ws-cookie-banner {
        padding: 12px;
    }
    
    .ws-cookie-banner-text h3 {
        font-size: 15px;
    }
    
    .ws-cookie-banner-text p {
        font-size: 12px;
    }
    
    .ws-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .ws-cookie-banner-links {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}


.ws-privacy-policy,
.ws-cookie-policy {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: #2d3748;
}

.privacy-section {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-section h2 {
    color: #1a202c;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.privacy-section h3 {
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 24px;
}

.privacy-section h4 {
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 16px;
}

.privacy-section address {
    font-style: normal;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-left: 4px solid #667eea;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.privacy-section address a {
    word-break: break-all;
    overflow-wrap: break-word;
}


.ws-cookie-settings-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ws-cookie-intro {
    margin-bottom: 40px;
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.ws-cookie-intro h2 {
    color: #1a202c;
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
}

.ws-cookie-intro p {
    color: #4a5568;
    font-size: 16px;
    margin: 0;
}

.ws-cookie-settings-page .ws-cookie-category {
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ws-cookie-category-header {
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.ws-cookie-settings-page .ws-cookie-category p {
    padding: 0 24px 20px;
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.ws-cookie-settings-page .ws-cookie-category details {
    padding: 0 24px 20px;
}

.ws-cookie-settings-page .ws-cookie-category summary {
    cursor: pointer;
    color: #3182ce;
    font-weight: 600;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.ws-cookie-settings-page .ws-cookie-category summary:hover {
    color: #2c5aa0;
}

.ws-cookie-actions {
    text-align: center;
    margin: 40px 0;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.ws-consent-info {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid #9ae6b4;
}


.ws-external-placeholder {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin: 24px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ws-external-placeholder:hover {
    border-color: #a0aec0;
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
}

.ws-placeholder-content {
    max-width: 400px;
}

.ws-placeholder-icon {
    margin-bottom: 20px;
    opacity: 0.7;
}

.ws-placeholder-text h4 {
    margin: 0 0 12px 0;
    color: #1a202c;
    font-size: 20px;
    font-weight: 600;
}

.ws-placeholder-text p {
    margin: 0 0 24px 0;
    color: #4a5568;
    line-height: 1.6;
}


.ws-cookie-toggle:focus-within .ws-cookie-slider {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

.ws-cookie-banner-links a:focus,
.privacy-section a:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
    border-radius: 4px;
}


@media (prefers-contrast: high) {
    .ws-cookie-banner {
        border-top-width: 3px;
        border-top-color: #000;
    }
    
    .ws-btn-primary {
        background: #000;
        border-color: #000;
    }
    
    .ws-btn-primary:hover,
    .ws-btn-primary:focus {
        background: #333;
    }
}


@media (prefers-reduced-motion: reduce) {
    .ws-cookie-banner,
    .ws-cookie-modal,
    .ws-cookie-modal-content,
    .ws-btn,
    .ws-cookie-slider,
    .ws-cookie-slider:before {
        animation: none;
        transition: none;
    }
}

@media (prefers-color-scheme: dark) {
    .ws-cookie-banner {
        background: #2d3748;
        border-top-color: #4a5568;
        color: #e2e8f0;
    }
    
    .ws-cookie-banner-text h3 {
        color: #f7fafc;
    }
    
    .ws-cookie-banner-text p {
        color: #cbd5e0;
    }
    
    .ws-cookie-modal-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .ws-cookie-category {
        background: #4a5568;
        border-color: #718096;
    }
}

@media print {
    .ws-cookie-banner,
    .ws-cookie-modal {
        display: none !important;
    }
}