/* Cookie Banner Styles - AlwaysPharma */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px 15px;
    text-align: left;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
    font-family: 'Helvetica', sans-serif;
    border-top: 3px solid #CE4F49; /* AlwaysPharma red accent */
}

.cookie-banner h2 {
    margin: 0 0 12px 0;
    font-size: 1.4em;
    color: #2D2E29;
    font-weight: 600;
    font-family: 'Helvetica', sans-serif;
}

.cookie-banner p {
    margin: 0 0 12px 0;
    line-height: 1.5;
    font-size: 0.95em;
    color: #656565;
    font-family: 'Helvetica', sans-serif;
}

.cookie-preferences {
    margin: 20px 0 10px 0;
}

.cookie-preferences h3 {
    color: #2D2E29;
    font-weight: 600;
    font-family: 'Helvetica', sans-serif;
    margin: 15px 0 8px 0;
    font-size: 1.1em;
}

.cookie-category {
    border: 1px solid #e0e0e0;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    background: #FAEDE8; /* Subtle AlwaysPharma background */
}

.cookie-category h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: #2D2E29;
    font-weight: 600;
}

.cookie-category p {
    color: #656565;
    font-size: 0.9em;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    flex: 1;
    min-width: 120px;
    text-align: center;
    font-family: 'Helvetica', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-accept {
    background: #CE4F49 !important; /* AlwaysPharma red */
    color: white;
}

.btn-accept:hover {
    background: #b03a35 !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #2D2E29;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #CE4F49;
    color: #CE4F49;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    float: right;
}

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

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

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

input:checked + .slider {
    background-color: #CE4F49; /* AlwaysPharma red */
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.disabled-toggle {
    opacity: 0.5;
    pointer-events: none;
}

.close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    transition: color 0.3s ease;
}

.close-icon:hover {
    color: #CE4F49;
}

.cookie-banner a {
    color: #CE4F49; /* AlwaysPharma red for links */
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner a:hover {
    color: #b03a35;
    text-decoration: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .cookie-banner {
        padding: 15px 10px;
    }

    .cookie-banner h2 {
        font-size: 1.2em;
    }

    .cookie-banner p {
        font-size: 0.9em;
    }

    .cookie-category {
        padding: 8px;
    }

    .btn-cookie {
        padding: 8px 12px;
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-cookie {
        width: 100%;
    }

    .close-icon {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }

    .toggle-switch {
        width: 50px;
        height: 28px;
    }

    .slider:before {
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
    }

    input:checked + .slider:before {
        transform: translateX(22px);
    }
}