/* Antigravity Cookie Consent Styles */

/* Banner */
.ag-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 999999;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.ag-policy-link {
    color: var(--ag-primary, #3b82f6);
    text-decoration: underline;
    margin-left: 0.5rem;
}

.ag-policy-link:hover {
    text-decoration: none;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .ag-cookie-banner {
        flex-direction: row;
        padding: 1.5rem 3rem;
    }
}

.ag-cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

.ag-cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Buttons */
.ag-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ag-btn-primary {
    background-color: var(--ag-primary, #3b82f6);
    color: #ffffff;
}

.ag-btn-primary:hover {
    filter: brightness(90%);
}

.ag-btn-outline {
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.ag-btn-outline:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

/* Modal */
.ag-cookie-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    display: flex;
}

.ag-modal-content {
    background-color: #fefefe;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.ag-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ag-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}

.ag-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.ag-close:hover,
.ag-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.ag-modal-body {
    padding: 1.5rem;
}

.ag-option {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1rem;
}

.ag-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ag-option-title {
    font-weight: 500;
    color: #374151;
}

.ag-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ag-switch-label {
    width: 100%;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

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

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

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

input:checked+.ag-slider {
    background-color: var(--ag-primary, #3b82f6);
}

input:focus+.ag-slider {
    box-shadow: 0 0 1px var(--ag-primary, #3b82f6);
}

input:checked+.ag-slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

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

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

.ag-modal-footer {
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}