/**
 * Agence RG - CookieConsent v3 Theme
 * Ultra compact, zero border radius, exact colors
 */

:root {
    --cc-font-family: 'Inter', 'Montserrat', sans-serif;
    
    /* Global Styling */
    --cc-bg: #FFFFFF;
    --cc-text: #343B47;
    
    /* Variables for standard internal classes */
    --cc-btn-border-radius: 0px; /* Square buttons */
    --cc-modal-border-radius: 0px; /* Square box */
    --cc-modal-margin: 1rem;

    --cc-toggle-bg-on: #343B47;
    --cc-toggle-bg-off: #e5e7eb;
    --cc-toggle-bg-readonly: #d1d5db;
}

/* Modal sizing and compact padding */
#cc-main .cm {
    max-width: 320px !important;
    padding: 0px !important; /* Remove padding from main box to allow full-width footer */
    overflow: hidden;
}

#cc-main .cm__body {
    padding: 15px 15px 15px 15px !important; /* Reduced top/bottom padding */
}

#cc-main .cm__texts {
    border-bottom: 1px solid #f3f4f6 !important; /* ONE single line here */
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
}

#cc-main .cm__btns {
    margin: 0 !important;
    padding: 0 !important;
}

#cc-main {
    --cc-modal-box-shadow: 0 10px 30px rgba(52, 59, 71, 0.15);
}

/* Force Accept/Refuse buttons side-by-side with STRICTLY equal width and height */
#cc-main .cm__btn-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    border: none !important; /* Remove the duplicate border */
}

/* Base button styles */
#cc-main .cm__btn {
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 38px !important; /* Slightly more compact height */
    border: none !important;
    flex: 1 1 0% !important; /* Force strictly equal width */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* "ACCEPTER" Button -> Primary Dark Color */
#cc-main .cm__btn[data-role="all"] {
    background-color: #343B47 !important;
    color: #FFFFFF !important;
}

/* "REFUSER" Button -> Accent Gold Color */
#cc-main .cm__btn[data-role="necessary"] {
    background-color: #C7A363 !important;
    color: #FFFFFF !important;
}

/* "PERSONNALISER" Button -> Outline */
#cc-main .cm__btn[data-role="show"] {
    background-color: transparent !important;
    border: 1px solid #e5e7eb !important;
    color: #9ca3af !important;
    flex: 0 0 100% !important;
    margin-top: 10px !important;
    margin-bottom: 0px !important; /* Remove bottom margin to save height */
    width: 100% !important;
    height: 38px !important; /* Same height */
}

/* Header icon/title - COMPACT */
#cc-main .cm__title {
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    color: #343B47;
    text-align: center;
    display: block;
    margin-bottom: 10px;
    margin-top: 5px;
}

/* Description - COMPACT */
#cc-main .cm__desc {
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 0px;
}

/* Icon (Pseudo element before title) - COMPACT */
#cc-main .cm__title::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto 10px auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23343B47' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'%3E%3C/path%3E%3Cpath d='M8.5 8.5v.01'%3E%3C/path%3E%3Cpath d='M16 12.5v.01'%3E%3C/path%3E%3Cpath d='M12 16v.01'%3E%3C/path%3E%3Cpath d='M11 12.5v.01'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Close button - Just the cross, no background */
#cc-main .cm__btn--close {
    position: absolute !important;
    background-color: transparent !important;
    top: 8px !important;
    right: 8px !important;
    width: 32px !important;
    height: 32px !important;
    color: #9ca3af !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    z-index: 100 !important;
}

#cc-main .cm__btn--close svg {
    stroke: #9ca3af !important; /* Gray cross */
    stroke-width: 2.5px !important;
    width: 20px !important;
    height: 20px !important;
}
#cc-main .cm__btn--close:hover svg {
    stroke: #343B47 !important; /* Darken on hover */
}

/* Footer Link - Full width gray box */
#cc-main .cm__footer {
    display: block !important;
    background-color: #f3f4f6 !important; /* Light gray */
    padding: 12px 20px !important;
    text-align: center;
    margin-top: 0px !important;
}

#cc-main .cm__links {
    justify-content: center;
}

#cc-main .cm__link {
    color: #6b7280 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    border: none !important;
}

#cc-main .cm__link:hover {
    color: #343B47 !important;
}
