/* 
 * GES Cookie Manager Styles 
 * Theme Colors: Primary #0a532c, Secondary #007BFF, Accent #ffc107
 */

/* --- Banner Styles --- */
.ges-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 999999; /* Highest priority */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 4px solid #0a532c;
    font-family: 'Merriweather', serif;
}

@media (min-width: 768px) {
    .ges-cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 3rem;
    }
}

.ges-banner-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #0a532c;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.ges-banner-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

.ges-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* --- Button Styles --- */
.ges-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ges-btn-primary {
    background-color: #0a532c;
    color: #fff;
}
.ges-btn-primary:hover {
    background-color: #084022;
}

.ges-btn-outline {
    background-color: transparent;
    border-color: #0a532c;
    color: #0a532c;
}
.ges-btn-outline:hover {
    background-color: #f0fdf4;
}

.ges-btn-text {
    background-color: transparent;
    color: #6b7280;
    text-decoration: underline;
}
.ges-btn-text:hover {
    color: #1f2937;
}

/* --- Modal Styles --- */
.ges-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999998;
    backdrop-filter: blur(2px);
}

.ges-cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.ges-modal-header {
    padding: 1.5rem;
    background: #0a532c;
    color: #fff;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ges-modal-header h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
}

.ges-close-icon {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.ges-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-family: 'Merriweather', serif;
}

.ges-modal-intro {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.ges-cookie-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.ges-cookie-row:last-child {
    border-bottom: none;
}

.ges-cookie-info {
    padding-right: 1rem;
}

.ges-cookie-title {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.ges-cookie-desc {
    font-size: 0.85rem;
    color: #6b7280;
}

.ges-modal-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
    text-align: right;
}

/* --- Toggle Switch --- */
.ges-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.ges-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ges-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.ges-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .ges-slider {
    background-color: #0a532c; /* Primary Green */
}

input:focus + .ges-slider {
    box-shadow: 0 0 1px #0a532c;
}

input:checked + .ges-slider:before {
    transform: translateX(24px);
}

/* Rounded sliders */
.ges-slider.round {
    border-radius: 34px;
}

.ges-slider.round:before {
    border-radius: 50%;
}

.ges-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
