/**
 * Custom CSS overrides for CookieConsent to match Google CMP style
 * Layout: [Personnaliser] [Tout accepter]
 */

/* Google blue color scheme */
:root {
    --cc-bg: #fff;
    --cc-text: #202124;
    --cc-btn-primary-bg: #1a73e8;
    --cc-btn-primary-text: #fff;
    --cc-btn-primary-hover-bg: #1557b0;
    --cc-btn-secondary-bg: #fff;
    --cc-btn-secondary-text: #1a73e8;
    --cc-btn-secondary-hover-bg: #f1f3f4;
    --cc-btn-secondary-border-color: #dadce0;
    --cc-overlay-bg: rgba(0, 0, 0, 0.6);
}

/* Modal styling - reduced padding */
#cc-main .cm {
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    max-width: 500px;
    padding: 16px 20px;
}

/* Body/content area - tighter spacing */
#cc-main .cm__body {
    padding: 0;
}

/* Title */
#cc-main .cm__title {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
    padding: 0;
}

/* Description text */
#cc-main .cm__desc {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 0;
}

/* Buttons container */
#cc-main .cm__btns {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
}

/* All buttons base - BIGGER */
#cc-main .cm__btn {
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 32px;
    min-height: 44px;
    min-width: 140px;
    transition: background-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

/* Primary button (Accept all) - Blue */
#cc-main .cm__btn--primary {
    background-color: #1a73e8;
    color: #fff;
    border: none;
}

#cc-main .cm__btn--primary:hover {
    background-color: #1557b0;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

/* Secondary button (Manage preferences) - White with border */
#cc-main .cm__btn--secondary {
    background-color: #fff;
    color: #1a73e8;
    border: 1px solid #dadce0;
}

#cc-main .cm__btn--secondary:hover {
    background-color: #f8f9fa;
    border-color: #d2e3fc;
}

/* Overlay backdrop */
#cc-main .cm-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* Text content wrapper - reduce margins */
#cc-main .cm__texts {
    padding: 0;
    margin-bottom: 12px;
}

/* Footer area with buttons - reduce padding */
#cc-main .cm__footer {
    padding: 0;
    margin: 0;
}

/* Preferences modal styling */
#cc-main .pm {
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    padding: 16px 20px;
}

#cc-main .pm__title {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
}

/* Toggle switch - Google blue when on */
#cc-main .pm__toggle {
    background: #dadce0;
}

#cc-main .pm__toggle.is-on,
#cc-main input[type="checkbox"]:checked + .pm__toggle {
    background: #1a73e8;
}

/* Section styling */
#cc-main .pm__section {
    border-bottom: 1px solid #e8eaed;
    padding: 12px 0;
}

#cc-main .pm__section-title {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

#cc-main .pm__section-desc {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.4;
}

/* Preferences modal buttons - also bigger */
#cc-main .pm__btn {
    padding: 12px 32px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
}
