.cookie-consent-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 100%;
    max-height: 100vh; /* Adjusted to a maximum height of 350px */
    overflow-y: auto;
}

.cookie-consent-wrapper {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-size: 0.8em; /* Slightly larger font size */
}

.cookie-consent-header {
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
}

.cookie-consent-header h2 {
    margin: 0 0 10px 0;
    color: var(--color-text);
    font-size: 1.2em; /* Smaller font size */
}

.cookie-consent-header p {
    margin: 0;
    color: #666;
    font-size: 0.8em; /* Smaller font size */
}

.cookie-consent-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 10px;
}

.tab-button {
    padding: 5px 10px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    position: relative;
    font-size: 0.8em; /* Smaller font size */
}

.tab-button.active {
    color: var(--color-accent);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
}

.cookie-consent-content {
    padding: 10px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
}

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

.category-header h3 {
    margin: 0;
    font-size: 1em; /* Smaller font size */
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

input:checked + .slider {
    background-color: var(--color-accent);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.cookie-consent-footer {
    padding: 5px 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.consent-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.8em; /* Smaller font size */
}

.consent-btn.primary {
    background: var(--color-accent);
    color: white;
}

.consent-btn.secondary {
    background: #f0f0f0;
    color: var(--color-text);
}

.consent-btn:hover {
    transform: translateY(-2px);
}

.cookie-detail-category {
    margin-bottom: 30px;
}

.cookie-services,
.cookie-list {
    margin-top: 15px;
}

.cookie-services ul,
.cookie-list ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.cookie-services li,
.cookie-list li {
    padding: 5px 0;
    color: #666;
    font-size: 0.7em; /* Smaller font size */
}

@media (max-width: 768px) {
    .cookie-consent-wrapper {
        max-height: 100vh;
        border-radius: 0;
        padding: 10px;
        font-size: 0.9em; /* Slightly larger font size */
    }

    .cookie-consent-header {
        padding: 5px;
    }

    .cookie-consent-header h2 {
        font-size: 1em; /* Smaller font size */
    }

    .cookie-consent-header p {
        font-size: 0.7em; /* Smaller font size */
    }

    .cookie-consent-tabs {
        padding: 0 5px;
    }

    .tab-button {
        padding: 5px;
        font-size: 0.7em; /* Smaller font size */
    }

    .cookie-consent-content {
        padding: 5px;
    }

    .cookie-consent-footer {
        flex-direction: column;
        padding: 5px;
        gap: 5px;
    }

    .consent-btn {
        width: 100%;
        padding: 5px;
        font-size: 0.7em; /* Smaller font size */
    }
}

.cookie-consent {
    display: none; /* Change to 'none' */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    width: auto;
    max-height: 100vh; /* Adjusted to a maximum height of 350px */
    overflow-y: auto;
}

.cookie-consent.visible {
    display: flex !important;
}

body.no-scroll {
    overflow: hidden;
}

.cookie-actions {
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.7em; /* Smaller font size */
}

.cookie-btn.primary {
    background: var(--color-accent);
    color: white;
}

.cookie-btn.secondary {
    background: #f0f0f0;
    color: var(--color-text);
}

.cookie-btn:hover {
    transform: translateY(-2px);
}
