/**
 * TTFC Cookie Consent Banner Styles
 */

.ttfc-cookie-banner {
    position: fixed;
    z-index: 999999;
    background: #fff;
    color: #333;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.ttfc-cookie-banner.ttfc-cookie-bottom {
    bottom: 0;
    left: 0;
    transform: translateY(100%);
}

.ttfc-cookie-banner.ttfc-cookie-top {
    top: 0;
    left: 0;
    transform: translateY(-100%);
}

.ttfc-cookie-banner.ttfc-cookie-bottom-left {
    bottom: 20px;
    left: 20px;
    width: auto;
    max-width: 400px;
    border-radius: 8px;
    transform: translateY(20px);
}

.ttfc-cookie-banner.ttfc-cookie-bottom-right {
    bottom: 20px;
    right: 20px;
    width: auto;
    max-width: 400px;
    border-radius: 8px;
    transform: translateY(20px);
}

.ttfc-cookie-banner.ttfc-cookie-visible {
    opacity: 1;
    transform: translateY(0);
}

.ttfc-cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.ttfc-cookie-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.ttfc-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.ttfc-cookie-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.ttfc-cookie-btn-accept {
    background: #2271b1;
    color: #fff;
}

.ttfc-cookie-btn-accept:hover {
    background: #135e96;
}

.ttfc-cookie-btn-decline {
    background: #f0f0f1;
    color: #3c434a;
}

.ttfc-cookie-btn-settings {
    background: transparent;
    color: #2271b1;
    text-decoration: underline;
    padding: 8px 0;
}

/* Dark Theme */
.ttfc-cookie-dark {
    background: #1d2327;
    color: #f0f0f1;
}

.ttfc-cookie-dark .ttfc-cookie-btn-decline {
    background: #3c434a;
    color: #f0f0f1;
}

/* Modal Styles */
.ttfc-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ttfc-cookie-modal-visible {
    opacity: 1;
}

.ttfc-cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.ttfc-cookie-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 8px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.ttfc-cookie-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
}

.ttfc-cookie-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

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

.ttfc-cookie-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.ttfc-cookie-category-name {
    font-weight: 600;
}

.ttfc-cookie-category-description {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.ttfc-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.ttfc-cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ttfc-cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.ttfc-cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .ttfc-cookie-toggle-slider {
    background-color: #2271b1;
}

input:checked + .ttfc-cookie-toggle-slider:before {
    transform: translateX(20px);
}

input:disabled + .ttfc-cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.ttfc-cookie-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ttfc-cookie-btn-outline {
    background: transparent;
    border: 1px solid #2271b1;
    color: #2271b1;
}

.ttfc-cookie-btn-outline:hover {
    background: #f0f6fb;
}

@media (max-width: 600px) {
    .ttfc-cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
