/* Passed GDPR Consent Banner CSS */

.passed-cookie-banner-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 420px;
    max-width: calc(100vw - 48px);
    background: #ffffff;
    border: 1px solid #e3e2e0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow: hidden;
    animation: passedSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes passedSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.passed-cookie-banner-wrap * {
    box-sizing: border-box;
}

.passed-cookie-banner-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative; /* Hivatkozási alap az X gombnak */
}

.passed-cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 32px; /* Hely az X gomb számára */
}

/* Bezárás (X) gomb stílusa */
.passed-cookie-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    outline: none;
    z-index: 10;
}

.passed-cookie-close-btn:hover {
    color: #000000;
    background-color: #f3f2f0;
}

.passed-cookie-close-btn svg {
    display: block;
}

.passed-cookie-banner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.passed-cookie-banner-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
}

.passed-cookie-banner-body {
    font-size: 14px;
    line-height: 1.5;
    color: #444444;
}

.passed-cookie-intro {
    margin: 0 0 16px 0;
}

.passed-cookie-intro:last-child {
    margin-bottom: 0;
}

/* Részletes kategóriák */
.passed-cookie-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f3f2f0;
    margin-top: 12px;
    animation: passedFadeIn 0.3s ease;
}

@keyframes passedFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.passed-cookie-toggle-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.toggle-info {
    flex: 1;
}

.toggle-info strong {
    display: block;
    font-size: 14px;
    color: #000000;
    margin-bottom: 2px;
}

.toggle-info p {
    margin: 0;
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
}

/* Kapcsoló gomb stílus (Switch) */
.passed-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

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

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

.passed-switch input:checked + .passed-slider {
    background-color: #91c740;
}

.passed-switch input:focus + .passed-slider {
    box-shadow: 0 0 1px #91c740;
}

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

.passed-switch input:disabled + .passed-slider {
    background-color: #e3e2e0;
    cursor: not-allowed;
}

/* Gombok */
.passed-cookie-banner-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.passed-button-group-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.passed-button-group-row.settings-buttons {
    justify-content: space-between;
    align-items: center;
}

.passed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
    text-decoration: none;
    border: 1px solid transparent;
}

.passed-btn-primary {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    flex: 1;
}

.passed-btn-primary:hover {
    background-color: #91c740;
    border-color: #91c740;
    color: #ffffff;
}

.passed-btn-secondary {
    background-color: transparent;
    color: #000000;
    border-color: #000000;
    flex: 1;
}

.passed-btn-secondary:hover {
    background-color: #f3f2f0;
}

.passed-btn-link {
    background-color: transparent;
    color: #666666;
    border: none;
    padding: 6px 0;
    font-weight: 500;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.passed-btn-link:hover {
    color: #000000;
}

/* Adatkezelési tájékoztató rész */
.passed-cookie-banner-policy {
    font-size: 11px;
    color: #888888;
    text-align: center;
    margin-top: 8px;
    border-top: 1px solid #f3f2f0;
    padding-top: 12px;
}

.passed-cookie-banner-policy a {
    color: #666666;
    text-decoration: underline;
}

.passed-cookie-banner-policy a:hover {
    color: #91c740;
}

/* Lebegő visszahívó cookie gomb */
.passed-cookie-trigger-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #91c740;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 11px;
    z-index: 999998;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
    overflow: hidden;
    white-space: nowrap;
}

.passed-cookie-trigger-btn svg {
    flex-shrink: 0;
}

.passed-cookie-trigger-text {
    opacity: 0;
    visibility: hidden;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff !important; /* Kényszerített fehér szín alaphelyzetben */
    transition: opacity 0.25s ease, visibility 0.25s ease, color 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: inline-block;
}

/* Hover állapot: kinyíló text */
.passed-cookie-trigger-btn:hover {
    width: 190px;
    background-color: #91c740;
    color: #000000;
    border-color: #000000;
}

.passed-cookie-trigger-btn:hover .passed-cookie-trigger-text {
    opacity: 1;
    visibility: visible;
    color: #000000 !important; /* Kényszerített fekete szín hoverkor a zöld háttéren */
}

/* Mobil reszponzivitás */
@media only screen and (max-width: 576px) {
    .passed-cookie-banner-wrap {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
    
    .passed-cookie-banner-card {
        padding: 20px;
    }
    
    .passed-button-group-row.main-buttons {
        flex-direction: column;
    }
    
    .passed-btn {
        width: 100%;
    }
    
    .passed-cookie-trigger-btn {
        bottom: 16px;
        left: 16px;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .passed-cookie-trigger-btn:hover {
        width: 42px;
        background-color: #000000;
        color: #ffffff;
        border-color: #91c740;
    }
    
    .passed-cookie-trigger-text {
        display: none;
    }
}
