/* Cookie Consent Styles */
.cookie-consent-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    padding: 20px 0;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cookie-icon {
    font-size: 24px;
    color: #0052DA;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1a1a1a;
    line-height: 1.3;
}

.cookie-description {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Button Overrides for Cookie Banner */
.cookie-consent-wrapper .th-btn {
    padding: 14px 24px;
    font-size: 14px;
    min-width: auto;
}

.cookie-consent-wrapper .th-btn::after {
    display: none;
}

.cookie-consent-wrapper .th-btn .after-bg {
    display: none;
}

.cookie-consent-wrapper .th-btn:before {
    width: 100%;
    border-radius: 50px;
}

/* Style2 button (Nur notwendige) - Make it visible on white background */
.cookie-consent-wrapper .th-btn.style2 {
    border: 1px solid #0052DA;
    color: #0052DA;
    background: transparent;
}

.cookie-consent-wrapper .th-btn.style2:before {
    background: transparent;
}

.cookie-consent-wrapper .th-btn.style2:hover {
    border-color: #0052DA;
    background: #0052DA;
    color: #fff;
}

.cookie-consent-wrapper .th-btn.style2:hover:before {
    background: #0052DA;
}

.cookie-btn-settings {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.cookie-btn-settings:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.cookie-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-modal-close i {
    font-size: 18px;
}

.cookie-modal-body {
    padding: 24px 28px;
}

.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.cookie-category-info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle label {
    display: block;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    padding-left: 0 !important;
}

.cookie-toggle label:before {
    content: none !important;
    display: none !important;
}

.cookie-toggle label:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: left 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input[type="checkbox"]:checked + label {
    background: #0052DA;
}

.cookie-toggle input[type="checkbox"]:checked + label:after {
    left: 27px;
}

.cookie-toggle input[type="checkbox"]:disabled + label {
    background: #e0e0e0;
    cursor: not-allowed;
    opacity: 1;
    position: relative;
}

.cookie-toggle input[type="checkbox"]:disabled + label:after {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    left: 3px !important;
}

.cookie-toggle input[type="checkbox"]:disabled + label:before {
    content: none !important;
    display: none !important;
}

.cookie-modal-footer {
    padding: 20px 28px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.cookie-modal-footer .th-btn {
    padding: 16px 28px;
    font-size: 15px;
}

.cookie-modal-footer .th-btn::after {
    display: none;
}

.cookie-modal-footer .th-btn .after-bg {
    display: none;
}

.cookie-modal-footer .th-btn:before {
    width: 100%;
    border-radius: 50px;
}

/* Responsive */
@media (max-width: 992px) {
    .cookie-consent-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .cookie-consent-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .cookie-consent-wrapper {
        padding: 18px 0;
    }
    
    .cookie-consent-container {
        padding: 0 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .cookie-consent-content {
        gap: 12px;
    }
    
    .cookie-icon {
        font-size: 22px;
    }

    .cookie-title {
        font-size: 15px;
    }
    
    .cookie-description {
        font-size: 12px;
    }

    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn-settings,
    .cookie-consent-wrapper .th-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
}
