/* ===== cookie-popup.css – DAYSPRING HEART CARE ===== */

.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-popup.show {
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-card {
    background: rgba(10, 46, 74, 0.97);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 18px 24px;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    color: white;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Green‑red‑blue stripe at the top */
.cookie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #e63946 0%, #e63946 33%, #27ae60 33%, #27ae60 66%, #0a4b78 66%);
    border-radius: 20px 20px 0 0;
}

.cookie-text {
    flex: 1 1 300px;
}
.cookie-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cookie-text h4 i {
    color: #27ae60;
    font-size: 1.2rem;
}
.cookie-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #d4e2f0;
    margin: 0;
}
.cookie-link {
    color: #27ae60;
    text-decoration: underline;
    font-weight: 500;
}
.cookie-link:hover {
    color: #2ecc71;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.cookie-btn {
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
}
.accept-btn {
    background: #27ae60;
    color: white;
}
.accept-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
}
.settings-btn {
    background: transparent;
    color: white;
    font-size: 1.3rem;
    padding: 6px 10px;
    border-radius: 50%;
    line-height: 1;
}
.settings-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
    .cookie-popup {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    .cookie-card {
        flex-direction: column;
        text-align: center;
        padding: 18px 16px;
        gap: 12px;                /* reduced from 18px */
    }
    .cookie-text {
        flex: 1 1 auto;           /* lets it shrink naturally instead of a fixed 300px */
    }
    .cookie-text h4 {
        justify-content: center;
        margin-bottom: 4px;       /* small space between heading and paragraph */
    }
    .cookie-text p {
        margin-bottom: 0;
        font-size: 0.82rem;
        line-height: 1.4;
    }
    .cookie-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;                 /* tighter space between buttons */
        margin-top: 4px;          /* tiny push from the text */
    }
    .cookie-btn {
        padding: 10px 18px;       /* slightly smaller buttons on mobile */
        font-size: 0.85rem;
    }
    .settings-btn {
        font-size: 1.2rem;
        padding: 6px 8px;
    }
    .cookie-card::before {
        border-radius: 20px 20px 0 0;
    }
}