/* ==================================================
   Cookie Consent Banner
    WeatherNet
   Primary colour: #844cdd
   ================================================== */

#cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: min(420px, calc(100% - 40px));
    z-index: 99999;
    font-family: Arial, Helvetica, sans-serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hidden state */
#cookie-banner.cc-hidden {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
}

/* Visible state */
#cookie-banner.cc-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Main box */
.cc-window {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(132,76,221,0.15);
}


/* Heading */
.cc-window h3 {
    margin: 0 0 12px;
    color: #222;
    font-size: 20px;
}
/* Text */
.cc-window p {
    color: #555;
    line-height: 1.5;
    font-size: 14px;
    margin: 0 0 18px;
}

/* Options */
.cc-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid #eeeeee;
}
.cc-option strong {
    font-size: 14px;
    color: #333;
}
.cc-option small {
    color: #666;
    font-size: 12px;
}
.cc-always {
    font-size: 12px;
    color: #844cdd;
    font-weight: bold;
}

/* Checkbox */
.cc-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #844cdd;
}

/* Buttons */
.cc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.cc-buttons button {
    flex: 1;
    min-width: 120px;
    padding: 11px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* Main button */
#acceptCookies {
    background: #844cdd;
    color: #fff;
}
#acceptCookies:hover {
    background: #713bc9;
}
/* Secondary buttons */
#rejectCookies,
#saveCookies {
    background: #f2f2f2;
    color: #333;
}
#rejectCookies:hover,
#saveCookies:hover {
    background: #e5e5e5;
}

/* Privacy link */
.cc-links {
    margin-top: 15px !important;
    text-align: center;
}
.cc-links a {
    color: #844cdd;
    text-decoration: none;
    font-size: 13px;
}
.cc-links a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
    #cookie-banner {
        bottom: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }
    .cc-window {
        padding: 20px;
    }
    .cc-buttons button {
        width: 100%;
        flex-basis: 100%;
    }
}