/**
 * CSS for the public-facing consent banner.
 */

#gcmv2-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 6px;
    margin: 7px;
}

#gcmv2-consent-banner.show {
    display: block;
}

#gcmv2-banner-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color:#222;
    padding-bottom: 9px;
}

#gcmv2-banner-actions {
    display: grid;
    gap: 10px;
    align-items: center;
}

.gcmv2-btn {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    color: #222;
    transition: background-color 0.2s ease;
}

#gcmv2-btn-accept {
    background-color: #dd3333;
    color: #fff;
}

#gcmv2-btn-accept:hover {
    background-color: #dd3333;
    color: #fff;
}

#gcmv2-btn-decline {
    background-color: #f44336;
}

#gcmv2-btn-decline:hover {
    background-color: #e53935;
}

#gcmv2-btn-prefs {
    background-color: #555;
    color: #222;
}

#gcmv2-btn-prefs:hover {
    background-color: #222;
}

/* Modal Styles */
.gcmv2-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

#gcmv2-prefs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.gcmv2-modal-content {
    background-color: #fff;
    color: #333;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 85%;
    max-width: 500px;
    z-index: 10003;
    font-family:sans-serif;
    display: flex; /* Added for flexbox layout */
    flex-direction: column; /* Stack children vertically */
    max-height: 90vh; /* Limit height to enable scrolling for content */
    position: relative; /* For sticky footer positioning */
}


.gcmv2-modal-content h3 {
    margin-top: 0;
    font-size: 20px;
}

/* Close button for the modal */
.gcmv2-btn-close {
    position: absolute;
    top: 27px;
    right: 25px;
    background: #e9e9e9;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #222;
    line-height: 1;
    padding: 0px 7px 0px 7px;
    border-radius: 3px;
}

.gcmv2-btn-close:hover {
    color: #000;
}

/* Styles for the scrollable body of the modal */
.gcmv2-modal-body {
    overflow-y: auto; /* Enable vertical scrolling */
    flex-grow: 1; /* Allow content to take up available space */
    padding-bottom: 20px; /* Space above sticky footer */
    margin-right: -21px;
    padding-right: 20px;
}

.gcmv2-prefs-toggle {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.gcmv2-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gcmv2-prefs-description {
    margin: 10px 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.gcmv2-prefs-toggle:last-of-type {
    border-bottom: none;
}

.gcmv2-prefs-toggle label {
    font-weight: bold;
}

.gcmv2-modal-actions {
    display: grid;
    gap: 15px;
    margin-top: 0;
    padding-top: 17px;
    padding-bottom: 6px;
    position: sticky;
    bottom: 0;
    background-color: #fff;
    z-index: 10;
    /* box-shadow: 0px -1px 1px 0px rgba(0, 0, 0, 0.1); */
    /* outline-color: black; */
    border-top: 1px solid #cdcdcd;
}

#gcmv2-btn-save-prefs {
    background-color: #c9cfdb;
}
#gcmv2-btn-accept-all-prefs {
    background-color: #C7435E; 
    color:#fff
}

#gcmv2-btn-reject-all {
    background-color: #c9cfdb;
}
