:root {
    --gracie-red: #cc0000;
    --gracie-blue: #2d8cff;
    --gracie-white: #ffffff;
}

.cookie-consent-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--gracie-white);
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    font-family: 'Titillium Web', sans-serif;
}

.cookie-consent-container.show {
    transform: translateY(0);
}

.cookie-consent-text {
    flex: 1 1 60%;
    margin-right: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--gracie-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-consent-text a:hover {
    color: var(--gracie-red);
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Titillium Web', sans-serif;
    font-size: 0.9rem;
}

.cookie-btn-accept-all {
    background-color: var(--gracie-red);
    color: white;
}

.cookie-btn-accept-all:hover {
    background-color: #a00000;
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn-settings:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cookie-btn-accept-necessary {
    background-color: #555;
    color: white;
}

.cookie-btn-accept-necessary:hover {
    background-color: #444;
    transform: translateY(-2px);
}

/* Cookie settings modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: translateY(0);
}

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

.cookie-settings-header h3 {
    color: var(--gracie-red);
    margin: 0;
    font-size: 1.5rem;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}

.cookie-settings-close:hover {
    color: var(--gracie-red);
}

.cookie-settings-body {
    margin-bottom: 20px;
}

.cookie-settings-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-settings-section:last-child {
    border-bottom: none;
}

.cookie-settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-settings-section-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

input:checked + .cookie-toggle-slider {
    background-color: var(--gracie-red);
}

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

.cookie-settings-section-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

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

.cookie-settings-save {
    background-color: var(--gracie-red);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings-save:hover {
    background-color: #a00000;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .cookie-consent-container {
        padding: 12px 15px;
    }
    
    .cookie-consent-text {
        font-size: 0.9rem;
        margin-right: 15px;
    }
    
    .cookie-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
    
    .cookie-settings-content {
        width: 80%;
        max-width: 500px;
        padding: 20px;
    }
    
    .cookie-settings-header h3 {
        font-size: 1.3rem;
    }
    
    .cookie-settings-section-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-consent-text {
        margin-right: 0;
        margin-bottom: 15px;
        flex: 1 1 100%;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
        padding: 10px;
    }
    
    .cookie-settings-content {
        width: 95%;
        padding: 20px 15px;
    }
}