#huniko-cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#huniko-cookie-panel {
    max-width: 780px;
    width: 95%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#huniko-cookie-panel * {
    box-sizing: border-box;
}

.hc-tabs {
    display: flex;
    border-bottom: 1px solid #e1e1e1;
}

.hc-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
}

.hc-tab-active {
    border-bottom: 3px solid;
}

.hc-body {
    padding: 16px 18px 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.hc-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.hc-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.hc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 18px 18px;
    border-top: 1px solid #eee;
    justify-content: center;
    text-align: center;
}

.hc-btn {
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid transparent;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.hc-btn-secondary {
    background: transparent;
    border-color: #ccc;
}

.hc-category {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hc-category:last-child {
    border-bottom: none;
}

.hc-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hc-cat-title {
    font-weight: 600;
}
.hc-details-html{
    font-size: 14px;
}
#huniko-cookie-panel .hc-body,
#huniko-cookie-panel .hc-details-html {
    max-height: 70vh;
    overflow-y: auto;
}
.hc-cat-text {
    font-size: 13px;
    margin-top: 6px;
}

.hc-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.hc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hc-slider {
    position: absolute;
    inset: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: .2s;
}

.hc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .2s;
}

.hc-switch input:checked + .hc-slider {
    background-color: #0056d6;
}

.hc-switch input:checked + .hc-slider:before {
    transform: translateX(22px);
}

.hc-switch input:disabled + .hc-slider {
    background-color: #999;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    #huniko-cookie-panel {
        width: 100%;
        border-radius: 0;
        max-width: none;
    }
    .hc-buttons {
        flex-direction: column;
    }
    .hc-btn {
        width: 100%;
        text-align: center;
    }
}
#huniko-cookie-reopen {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    z-index: 99998;
    cursor: pointer;
}

#huniko-cookie-reopen img {
    width: 100%;
    height: auto;
}

/* Mobil stackelt táblázat */
@media (max-width: 600px) {

    .cookie-table {
        width: 100%;
        border-collapse: collapse;
    }

    .cookie-table thead {
        display: none;
    }

    .cookie-table tr {
        display: block;
        margin-bottom: 12px;
        background: #fafafa;
        border: 1px solid #e5e5e5;
        border-radius: 6px;
        padding: 10px;
    }

    .cookie-table td {
        display: block;
        padding: 6px 0;
        border: none;
        font-size: 14px;
    }

    .cookie-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 4px;
        color: #333;
    }
}