/* Native Cookie Banner Styles */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
}

.cookie-banner-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 25px;
    max-width: 500px;
    margin-left: auto;
    border: 1px solid #eee;
}

.cookie-banner-card h4 {
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.cookie-banner-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-banner-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner-btns button {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
    min-width: 120px;
}

.btn-accept-all {
    background: #3067f0; /* A3D Corporate Blue */
    color: #fff;
}

.btn-accept-all:hover {
    background: #154492; /* Darker Blue */
}

.btn-reject-all, .btn-settings {
    background: #f0f0f0;
    color: #444;
}

.btn-reject-all:hover, .btn-settings:hover {
    background: #e0e0e0;
}

/* Modal Ajustes */
#cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cookie-settings-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    overflow: hidden;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.cookie-settings-header {
    background: #032154; /* Dark Corporate Blue */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    color: #fff;
}

.cookie-settings-header h5 {
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.cookie-settings-body {
    padding: 20px;
    overflow-y: auto;
}

.cookie-option-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cookie-option-info {
    padding-right: 20px;
}

.cookie-option-info h6 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #333;
}

.cookie-option-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
}

.cookie-settings-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Switch Styles */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    flex-shrink: 0;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #3067f0;
}

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

input:disabled + .cookie-slider {
    background-color: #aaa;
    cursor: not-allowed;
}

/* Floating Bubble */
.cookie-bubble {
    position: fixed;
    bottom: 80px; /* Moved up to avoid overlapping with accessibility widget */
    left: 20px;
    width: 55px;
    height: 55px;
    background: #3067f0; /* Corporate Blue */
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 9998;
    transition: 0.3s;
}

.cookie-bubble svg {
    width: 32px;
    height: 32px;
}

.cookie-bubble:hover {
    transform: scale(1.1);
    background: #032154;
}

@media (max-width: 576px) {
    .cookie-banner-card {
        margin: 0;
    }
    .cookie-bubble {
        bottom: 70px;
        left: 10px;
        width: 40px;
        height: 40px;
    }
}
