/* wp-content/plugins/my-cookie-consent/cookie-consent.css */

#myCookieConsentBox {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 20px 25px; /* Növelt padding */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column; /* Elemek egymás alá rendezése */
    align-items: stretch; /* Elemek kinyújtása a konténer szélességére */
    gap: 15px; /* Távolság az elemek között */
    max-width: 680px; /* Maximális szélesség */
    width: calc(100% - 40px); /* Reszponzív szélesség, kis margóval */
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#myCookieConsentBox.my-cookie-consent-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
    pointer-events: none;
}

#myCookieConsentBox p#myCookieConsentMessage { /* ID hozzáadva a specificitásért */
    margin: 0;
    font-size: 15px;
    line-height: 1.5; /* Növelt sorköz */
    text-align: left; /* Alapértelmezett balra igazítás */
}

#myCookieConsentBox a {
    color: #87CEEB;
    text-decoration: underline;
}

#myCookieConsentBox a:hover {
    color: #add8e6; /* Világosabb kék hoverre */
}

/* Stílusok a lenyíló cookie részletekhez */
#myCookieListDetails {
    background-color: #2a2a2a; /* Enyhén sötétebb háttér */
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.6;
    max-height: 150px; /* Maximális magasság */
    overflow-y: auto; /* Automatikus görgetősáv, ha szükséges */
    border: 1px solid #444; /* Finom keret */
}

#myCookieListDetails.my-cookie-list-hidden {
    display: none;
}

#myCookieListDetails h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #eee;
}

#myCookieListDetails ul {
    padding-left: 20px;
    margin-bottom: 0;
}

#myCookieListDetails li {
    margin-bottom: 8px;
}

#myCookieListDetails code { /* Stílus a PHP-ben hozzáadott code tagekhez */
    background-color: #454545;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95em;
}

.my-cookie-consent-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end; /* Gombok jobbra igazítása */
    width: 100%;
}

#myCookieConsentBox button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

#myCookieConsentBox button:hover {
    background-color: #45a049;
    transform: translateY(-1px); /* Kis emelkedés hoverre */
}

#myDeclineCookie {
    background-color: #f44336 !important;
}

#myDeclineCookie:hover {
    background-color: #d32f2f !important;
}

/* Cookie ikon stílusai változatlanok */
#myCookieConsentIcon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #6fd5cb;
    color: #fff;
    padding: 1px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, background-color 0.3s ease;
}

#myCookieConsentIcon:hover {
    background-color: #0a4461;
    transform: scale(1.05);
}

#myCookieConsentIcon.my-cookie-consent-icon-hidden {
    opacity: 0;
    transform: translateX(-100px);
    pointer-events: none;
}


/* Reszponzívitás mobilra */
@media (max-width: 768px) {
    #myCookieConsentBox {
        bottom: 0;
        left: 50%;
        right: 0;
        transform: translateX(-50%);
        width: 100%;
        max-width: 90%;
        border-radius: 8px 8px 0 0;
        padding: 15px;
        gap: 12px;
        box-sizing: border-box;
    }

    #myCookieConsentBox p#myCookieConsentMessage {
        text-align: center; /* Középre igazítás mobil nézetben */
    }
    
    #myCookieListDetails {
        max-height: 120px; /* Kisebb maximális magasság mobilon */
    }

    .my-cookie-consent-buttons {
        flex-direction: column; /* Gombok egymás alá */
        align-items: center; /* Gombok középre */
        gap: 12px;
    }

    #myCookieConsentBox button {
        width: 90%; /* Gombok szélessége */
        max-width: 320px; /* Maximális szélesség a gomboknak */
    }

    #myCookieConsentIcon {
        bottom: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 22px;
        line-height: 0;
    }
}