/* Cookie Consent Pro - Frontend Styles */

:root{
    --ccsp_coci_primary: #3498db;
    --ccsp_coci_secondary: #2ecc71;
    --ccsp_coci_tertiary: #e74c3c;
    --ccsp_coci_background: #f9f9f9;
    --ccsp_coci_text: #333;
    --ccsp_coci_header: #8ae2f8;
    --ccsp_coci_catdesc: #666;

}

[data-theme="dark"]{
    --ccsp_coci_primary: #2980b9;
    --ccsp_coci_secondary: #27ae60;
    --ccsp_coci_tertiary: #c0392b;
    --ccsp_coci_background: #2c3e50;
    --ccsp_coci_text: #ecf0f1;
    --ccsp_coci_header: #335057;
    --ccsp_coci_catdesc: #bdc3c7;
}


.ccsp_coci_icon{
    width: 3rem;
    height: 3rem;
}

.ccsp_coci_cookie-icon{
    width: 2.5rem;
    height: 2.5rem;
    fill: currentColor !important;
}

.ccsp_coci_cookiebanner{
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor !important;
}

.ccsp_coci_banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ccsp_coci_background);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    padding: 25px;
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--ccsp_primary, #3498db);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ccsp_coci_banner.ccsp_coci_banner-top {
    top: 0;
    bottom: auto;
    transform: translateY(-100%);
    border-top: none;
    border-bottom: 3px solid var(--ccsp_primary, #3498db);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.ccsp_coci_banner.ccsp_coci_banner-center {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 500px;
    border-radius: 15px;
    border: 3px solid var(--ccsp_primary, #3498db);
}

.ccsp_coci_banner.ccsp_coci_show {
    transform: translateY(0);
}

.ccsp_coci_banner.ccsp_coci_banner-center.ccsp_coci_show {
    transform: translate(-50%, -50%) scale(1);
}

.ccsp_coci_banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ccsp_coci_banner-text {
    flex: 1;
    min-width: 300px;
}

.ccsp_coci_banner-text h4 {
    color: var(--ccsp_coci_text);
    margin-bottom: 8px;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ccsp_coci_banner-text p {
    color: var(--ccsp_coci_catdesc);
    line-height: 1.5;
    margin: 0;
    font-size: 1.5rem;
}

.ccsp_coci_banner-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ccsp_coci_btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.ccsp_coci_btn:focus {
    outline: 2px solid var(--ccsp_coci_primary, #3498db) !important;
    outline-offset: 2px;
    background: var(--ccsp_coci_primary, #3498db);
    border-color: var(--ccsp_coci_primary, #3498db);
    color: var(--ccsp_coci_text);
}
.ccsp_coci_btn:focus-visible {
    outline: 2px solid var(--ccsp_coci_primary, #3498db) !important;
    outline-offset: 2px;
}
.ccsp_coci_btn:active {
    transform: translateY(0) scale(0.98);
}   



.ccsp_coci_btn-accept {
    background: #27ae60;
    color: white;
}

.ccsp_coci_btn-accept:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.ccsp_coci_btn-reject {
    background: #e74c3c;
    color: white;
}

.ccsp_coci_btn-reject:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.ccsp_coci_btn-customize {
    background: transparent;
    color: var(--ccsp_primary, #3498db);
    border: 2px solid var(--ccsp_primary, #3498db);
}

.ccsp_coci_btn-customize:hover {
    background: var(--ccsp_primary, #3498db);
    color: white;
    transform: translateY(-1px);
}

/* Preferences Modal */
.ccsp_coci_modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ccsp_coci_modal.ccsp_coci_show {
    opacity: 1;
    visibility: visible;
}

.ccsp_coci_modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    /* overflow-y: auto; */
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.ccsp_coci_modal.ccsp_coci_show .ccsp_coci_modal-content {
    transform: scale(1);
}

.ccsp_coci_modal-header {
    background: linear-gradient(135deg, var(--ccsp-primary, #3498db), #2980b9);
    color: white;
    padding: 1rem;
    border-radius: .5rem .5rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ccsp_coci_modal-header h3 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: white;
}

.ccsp_coci_close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccsp_coci_close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.ccsp_coci_close-btn:focus {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
    background: rgba(255,255,255,0.2) !important;
}
.ccsp_coci_close-btn:focus-visible {
    outline: none;
    outline-offset: 0;
}

.ccsp_coci_modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: 50vh;
    background: var(--ccsp_coci_background);
    /* color: var(--ccsp_coci_text-color); */
}

.ccsp_coci_category {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid #ecf0f1;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.ccsp_coci_category:hover {
    border-color: var(--ccsp-primary, #3498db);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.ccsp_coci_category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ccsp_coci_category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ccsp-primary, #3498db);
    font-size: 1.8rem;
}

.ccsp_coci_toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: #bdc3c7;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ccsp_coci_toggle.ccsp_coci_disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.ccsp_coci_toggle.ccsp_coci_active {
    background: #27ae60;
}

.ccsp_coci_toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ccsp_coci_toggle.ccsp_coci_active::after {
    transform: translateX(30px);
}

.ccsp_coci_category-desc {
    color: var(--ccsp_coci_catdesc);
    line-height: 1.5;
    font-size: 1.2rem;
    margin: 0;
}

.ccsp_coci_modal-footer {
    padding: 1rem;
    border-top: 1px solid #ecf0f1;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: var(--ccsp_coci_primary, #3498db);
    border-radius: 0 0 .5rem .5rem;
    position: sticky;
    bottom: 0;
}

/* Floating Cookie Button */
.ccsp_coci_float-button {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 140px;
    height: 10px;
    background: var(--ccsp-primary, #3498db);
    border-radius: 1rem 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999998;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    color: white;
    font-size: 1.5rem;
}

.ccsp_coci_float-button:hover {
   height: 40px;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.ccsp_coci_float-button:active {
    transform: translateY(0) scale(1);
}

/* Add tooltip text */
.ccsp_coci_float-button::after {
    content: "Manage cookies";
    position: absolute;
    bottom: 5px; 
    right: 50%;
    transform: translateX(50%);
    /* background: rgba(0, 0, 0, 0.8); */
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999999;
}

/* Show tooltip on hover */
.ccsp_coci_float-button:hover::after {
    opacity: 1;
}


/* .ccsp_coci_float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--ccsp-primary-color, #3498db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999998;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    color: white;
    font-size: 1.5rem;

    .ccsp_coci_float-button:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.ccsp_coci_float-button:active {
    transform: translateY(0) scale(1);
}

} */


/* GDPR Rights Information */
.ccsp_coci_gdpr-rights {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.ccsp_coci_gdpr-rights h4 {
    color: #0c5460;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ccsp_coci_gdpr-rights ul {
    margin: 15px 0;
    padding-left: 20px;
}

.ccsp_coci_gdpr-rights li {
    margin-bottom: 8px;
    color: #0c5460;
}

.ccsp_coci_gdpr-rights p {
    margin: 15px 0 0 0;
    font-weight: 600;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ccsp_coci_banner {
        padding: 20px 15px;
    }
    
    .ccsp_coci_banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ccsp_coci_banner-text {
        min-width: auto;
    }
    
    .ccsp_coci_banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .ccsp_coci_btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .ccsp_coci_modal {
        padding: 10px;
    }
    
    .ccsp_coci_modal-content {
        max-height: 90vh;
    }
    
    .ccsp_coci_modal-body {
        padding: 20px;
    }
    
    .ccsp_coci_category {
        padding: 15px;
    }
    
    .ccsp_coci_category-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ccsp_coci_modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .ccsp_coci_float-button {
        bottom: 0;
        right: 35px;
        width: 120px;
        height: 20px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .ccsp_coci_banner-actions {
        flex-direction: column;
    }
    
    .ccsp_coci_btn {
        width: 100%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ccsp_coci_banner {
        border: 2px solid #000;
    }
    
    .ccsp_coci_btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ccsp_coci_banner,
    .ccsp_coci_modal,
    .ccsp_coci_modal-content,
    .ccsp_coci_btn,
    .ccsp_coci_toggle,
    .ccsp_coci_float-button {
        transition: none;
    }
}

/* Print styles */
@media print {
    .ccsp_coci_banner,
    .ccsp_coci_modal,
    .ccsp_coci_float-button {
        display: none !important;
    }
}