/** 
 * ============================================================================= 
 * KS-Semilla - Cookie Consent Banner & Modal Styles
 * Path: nutrients/NtCookieConsent/assets/css/nt-cookie-consent.css
 * -----------------------------------------------------------------------------
 * @author     Guillermo Arturo Shikina Zapata
 * @since      2025
 * @copyright  KhamaleonLab 
 * @license    See LICENSE.md for details.
 * @version    1.0.0
 * update      20250626
 * -----------------------------------------------------------------------------
 * This file contains specific styles for the cookie consent banner and modal,
 * complementing utility classes from ks-styles.css. 
 * ============================================================================= */

/* --- Utility Class --- */
/* This class is used by the JavaScript to toggle visibility. */
.nt-is-hidden {
    display: none !important;
}

/* The saved preferences message defaults to block when visible */
#ksCookiePrefsSavedMsg {
    display: block;
}

/* --- Main Cookie Consent Banner --- */
#ks-cookie-consent-banner {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa; 
    box-shadow: 0 -0.2rem 0.5rem rgba(0,0,0,0.1); 
    z-index: 10000; 
    border-top: 0.1rem solid #e0e0e0; 
}

#ks-cookie-consent-banner .btn-configure {
    background-color: #6c757d; 
    color: #ffffff;
    border-color: #6c757d; 
}
#ks-cookie-consent-banner .btn-configure:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

#ks-cookie-consent-banner .btn-reject {
    background-color: #f8f9fa; 
    color: #dc3545; 
    border: 0.1rem solid #dc3545; 
}
#ks-cookie-consent-banner .btn-reject:hover {
    background-color: #e9ecef;
    color: #c82333;
    border-color: #bd2130;
}

/* --- Cookie Preferences Modal --- */
#ks-cookie-preferences-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); 
    z-index: 10001; 
}

#ks-cookie-preferences-modal .cookie-preferences-content {
    max-width: 60rem; 
    width: 100%; 
    max-height: 85vh; 
    overflow-y: auto;
    position: relative; 
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.2); 
}

#ks-cookie-preferences-modal .cookie-preferences-close {
    position: absolute;
    top: 1.5rem; 
    right: 2rem; 
    background: none;
    border: none;
    font-size: 2.4rem; 
    line-height: 1; 
    cursor: pointer; 
    color: #777; 
}
#ks-cookie-preferences-modal .cookie-preferences-close:hover {
    color: #333; 
}

#ks-cookie-preferences-modal .cookie-category {
    border-bottom: 0.1rem solid #eeeeee; 
}
#ks-cookie-preferences-modal .cookie-category:last-of-type {
    border-bottom: none;
    margin-bottom: 0; 
    padding-bottom: 0; 
}

#ks-cookie-preferences-modal .cookie-category-toggle {
    min-width: 1.8rem; 
    min-height: 1.8rem; 
    margin-left: 1rem; 
}

#ks-cookie-preferences-modal .btn-save {
    background-color: #007BFF; 
    color: #ffffff;
}
#ks-cookie-preferences-modal .btn-save:hover {
    background-color: #0056b3; 
}

/* --- RESPONSIVE FOR BANNER AND MODAL (Adapted from ks-rd-styles.css) --- */
@media (max-width: 76.7rem) { /* Matches the 76.8rem breakpoint (mobile first) */
    #ks-cookie-consent-banner .cookie-consent-content {
        flex-direction: column;
        align-items: stretch; 
        text-align: center; 
    }
    #ks-cookie-consent-banner .cookie-consent-text-content { 
        margin-bottom: 1.5rem; 
    }
    #ks-cookie-consent-banner .cookie-consent-actions {
        flex-direction: column; 
        width: 100%; 
    }
    #ks-cookie-consent-banner .cookie-consent-actions .btn {
        width: 100%; 
        margin-right: 0; 
        margin-bottom: 1rem; 
    }
    #ks-cookie-consent-banner .cookie-consent-actions .btn:last-child {
        margin-bottom: 0;
    }

    #ks-cookie-preferences-modal .cookie-preferences-content {
        padding: 1.5rem; 
        max-height: 90vh;
    }

    #ks-cookie-preferences-modal .cookie-preferences-close {
        top: 1rem;
        right: 1rem;
    }
    
    #ks-cookie-preferences-modal .cookie-preferences-actions {
        text-align: center;
    }
     #ks-cookie-preferences-modal .cookie-preferences-actions .btn {
        width: 100%; 
    }
}

/* Adjustments for tablets if necessary, using the 76.8rem or 102.4rem breakpoint */
/* @media (min-width: 76.8rem) and (max-width: 1023.98px) { ... } */