/* ==========================================================================
   AttiGlass - Cookie Consent (GDPR Süti Kezelő) Stílusok
   ========================================================================== */

/* Lebegő Süti Értesítő Sáv (Banner) */
#attiglass-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 480px;
    width: calc(100% - 48px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 24px;
    z-index: 999998;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#attiglass-cookie-banner.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cky-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #bc1622;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.cky-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cky-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 18px 0;
}

.cky-text a {
    color: #bc1622;
    text-decoration: underline;
    font-weight: 600;
}

.cky-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cky-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    white-space: nowrap;
}

.cky-btn-accept {
    background: #bc1622;
    color: #ffffff;
}

.cky-btn-accept:hover {
    background: #99101a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(188, 22, 34, 0.25);
}

.cky-btn-reject {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.cky-btn-reject:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cky-btn-settings {
    background: transparent;
    color: #64748b;
    border: 1px solid transparent;
    flex-basis: 100%;
    margin-top: 2px;
    padding: 6px 12px;
    font-size: 13px;
    text-decoration: underline;
}

.cky-btn-settings:hover {
    color: #0f172a;
}

/* Lebegő Süti Ikon (Újranyitó gomb) */
#attiglass-cookie-revisit {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #bc1622;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999990;
    transition: all 0.25s ease;
    font-size: 18px;
}

#attiglass-cookie-revisit:hover {
    transform: scale(1.1);
    background: #bc1622;
    color: #ffffff;
    border-color: #bc1622;
}

/* Modális Süti Beállítások Ablak */
#attiglass-cookie-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#attiglass-cookie-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.cky-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#attiglass-cookie-modal-backdrop.active .cky-modal {
    transform: scale(1);
}

.cky-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cky-modal-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}

.cky-modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.cky-modal-close:hover {
    color: #0f172a;
}

.cky-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    color: #475569;
}

.cky-category {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.cky-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cky-cat-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
}

.cky-always-active {
    font-size: 12px;
    font-weight: 700;
    color: #059669;
    background: #d1fae5;
    padding: 4px 8px;
    border-radius: 4px;
}

.cky-cat-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

/* Kapcsoló gomb (Switch) */
.cky-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

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

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

input:checked + .cky-slider {
    background-color: #bc1622;
}

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

.cky-modal-footer {
    padding: 18px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #ffffff;
}

@media (max-width: 640px) {
    #attiglass-cookie-banner {
        bottom: 12px;
        left: 12px;
        width: calc(100% - 24px);
        padding: 18px;
    }
    .cky-btn {
        flex-basis: 100%;
    }
    #attiglass-cookie-revisit {
        bottom: 16px;
        left: 16px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
