/* =====================================================
   COOKIE CONSENT — CONFORMIZEI V4
===================================================== */

.cookie-consent{

    position:fixed;

    left:24px;
    right:24px;
    bottom:24px;

    display:none;
    justify-content:center;

    z-index:9998;

    opacity:0;

    transform:translateY(30px);

    transition:
    opacity .35s ease,
    transform .35s ease;
}

.cookie-consent.show{

    display:flex;

    opacity:1;

    transform:translateY(0);
}

/* CARD */

.cookie-consent-card{

    width:100%;
    max-width:920px;

    display:flex;

    justify-content:space-between;

    gap:26px;

    padding:26px 30px;

    border-radius:26px;

    background:
    rgba(255,255,255,.96);

    backdrop-filter:
    blur(18px);

    border:
    1px solid rgba(15,23,42,.06);

    box-shadow:
    0 30px 70px rgba(15,23,42,.10);
}

/* CONTENT */

.cookie-consent-content{

    flex:1;
}

.cookie-consent-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:10px 14px;

    margin-bottom:18px;

    border-radius:999px;

    background:
    rgba(46,91,235,.08);

    color:#0A2A66;

    font-size:10px;

    font-weight:800;

    letter-spacing:1.3px;

    text-transform:uppercase;
}

.cookie-consent-content h3{

    font-size:24px;

    line-height:1;

    font-weight:800;

    color:#111827;

    margin-bottom:10px;
}

.cookie-consent-content p{

    max-width:560px;

    font-size:16px;

    line-height:1.7;

    color:#64748B;

    margin-bottom:22px;
}

/* LINKS */

.cookie-links{

    display:flex;

    flex-direction:row;

    align-items:center;

    flex-wrap:wrap;

    gap:10px;

    row-gap:6px;
}

.cookie-links a{

    color:#0A2A66;

    font-size:14px;
	
	line-height:1.3;

    font-weight:700;

    text-decoration:none;
}

.cookie-links span{

    color:#CBD5E1;
	display:inline-flex;
}

/* BUTTON AREA */

.cookie-consent-actions{

    width:260px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:stretch;

    gap:12px;

    align-self:center;

    margin:auto 0;
}

.cookie-btn{

    border:none;

    border-radius:14px;

    height:48px;

    padding:0 22px;

    font-size:14px;

    font-weight:700;

    cursor:pointer;

    transition:.25s ease;
}

.cookie-btn:hover{

    transform:translateY(-2px);
}

/* PRIMARY */

.cookie-btn-primary{

    background:
    linear-gradient(
        135deg,
        #0A2A66,
        #2E5BEB
    );

    color:#FFFFFF;
}

/* LIGHT */

.cookie-btn-light{

    background:
    #EEF2F7;

    color:#1F2937;
	
	border:
    1px solid #E2E8F0;
}

/* OUTLINE */

.cookie-btn-outline{

    background:#FFFFFF;

    color:#1F2937;

    border:
    1px solid #E2E8F0;
}

/* FLOAT BUTTON */

.cookie-floating-btn{

    position:fixed;

    left:24px;
    bottom:45px;

    width:52px;
    height:52px;

    border:none;

    border-radius:50%;

    background:
    linear-gradient(
        135deg,
        #0A2A66,
        #2E5BEB
    );

    color:#FFFFFF;

    cursor:pointer;

    z-index:9999;

    box-shadow:
    0 20px 40px rgba(46,91,235,.22);
}

/* MOBILE */

@media(max-width:991px){

    .cookie-consent{

        left:16px;
        right:16px;
        bottom:16px;
    }

    .cookie-consent-card{

        flex-direction:column;

        gap:28px;

        padding:22px;

		border-radius:26px;

		max-height:82vh;

		overflow-y:auto;
    }

    .cookie-consent-content h3{

    font-size:18px;

    line-height:1.1;

    margin-bottom:10px;
	}

    .cookie-consent-content p{

    font-size:15px;

    line-height:1.7;

    margin-bottom:18px;
	}

    .cookie-consent-actions{

        width:100%;
    }

    .cookie-btn{

        width:100%;
    }

    .cookie-floating-btn{

    left:18px;

    bottom:24px;

    width:54px;
    height:54px;

    z-index:9997;
}
}

/* ======================================================
COOKIE MODAL V2 — CONFORMIZEI ENTERPRISE
====================================================== */

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.cookie-modal.active {
    display: flex;
}

/* OVERLAY */

.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 35, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* MODAL */

.cookie-modal-content {
    position: relative;
    z-index: 2;

    width: min(920px, 100%);
    max-height: 88vh;

    overflow: hidden;

    background: #ffffff;
    border-radius: 34px;

    box-shadow:
        0 40px 120px rgba(15,23,42,.18),
        0 20px 50px rgba(15,23,42,.10);

    animation: modalFade .28s ease;
}

/* ANIMATION */

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* HEADER */

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;

    margin-bottom: 34px;
}

.cookie-modal-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 18px;

    border-radius: 999px;

    background: #eef2ff;

    color: #1b2c74;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    margin-bottom: 20px;
}

.cookie-modal-header h2 {
    margin: 0 0 14px;

    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;

    color: #0f172a;
}

.cookie-modal-header p {
    margin: 0;

    max-width: 620px;

    font-size: 18px;
    line-height: 1.7;

    color: #64748b;
}

/* CLOSE */

.cookie-close {
    flex-shrink: 0;

    width: 58px;
    height: 58px;

    border: none;
    border-radius: 20px;

    background: #f3f4f6;

    font-size: 30px;
    font-weight: 300;

    cursor: pointer;

    transition: .25s ease;
}

.cookie-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

/* CATEGORY */

.cookie-category {
    background: #f8fafc;

    border: 1px solid #eef2f7;

    border-radius: 28px;

    padding: 26px 30px;

    margin-bottom: 18px;

    transition: .25s ease;
}

.cookie-category:hover {
    border-color: rgba(54, 87, 255, 0.18);

    box-shadow:
        0 10px 25px rgba(54, 87, 255, 0.06);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
}

.cookie-category-header h4 {
    margin: 0 0 10px;

    font-size: 28px;
    font-weight: 700;

    color: #111827;
}

.cookie-category-header p {
    margin: 0;

    color: #667085;

    font-size: 17px;
    line-height: 1.7;

    max-width: 620px;
}

/* ALWAYS ON */

.cookie-always-on {
    flex-shrink: 0;

    background:
        linear-gradient(
            135deg,
            #1b2c74,
            #3657ff
        );

    color: white;

    padding: 12px 18px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;
}

/* TAGS */

.cookie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 22px;
}

.cookie-tags span {
    background: #eef2ff;

    color: #1b2c74;

    padding: 12px 18px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;
}

/* SWITCH */

.cookie-switch {
    position: relative;
    display: inline-block;

    width: 64px;
    height: 36px;

    flex-shrink: 0;
}

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

.cookie-slider {
    position: absolute;
    inset: 0;

    background: #d1d5db;

    border-radius: 999px;

    cursor: pointer;

    transition: .25s ease;
}

.cookie-slider::before {
    content: "";

    position: absolute;

    width: 28px;
    height: 28px;

    left: 4px;
    top: 4px;

    border-radius: 50%;

    background: white;

    transition: .25s ease;

    box-shadow:
        0 4px 10px rgba(0,0,0,.18);
}

.cookie-switch input:checked + .cookie-slider {
    background:
        linear-gradient(
            135deg,
            #1b2c74,
            #3657ff
        );
}

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

/* FOOTER */

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;

    margin-top: 34px;
}

/* SCROLLBAR */

.cookie-modal-scroll::-webkit-scrollbar {
    width: 10px;
}

.cookie-modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cookie-modal-scroll::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
}

.cookie-modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* MOBILE */

@media (max-width: 768px) {

    .cookie-modal {
        padding: 0;
    }

    .cookie-modal-content {

    position: relative;
    z-index: 2;

    width: min(920px, 100%);
    max-height: 88vh;

    overflow: hidden;

    background: #ffffff;

    border-radius: 34px;

    box-shadow:
        0 40px 120px rgba(15,23,42,.18),
        0 20px 50px rgba(15,23,42,.10);

    animation: modalFade .28s ease;
}

/* SCROLL INTERNO */

.cookie-modal-scroll {

    max-height: 88vh;

    overflow-y: auto;

    padding: 42px;

    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

    .cookie-modal-header {
        flex-direction: column;
    }

    .cookie-modal-header h2 {
        font-size: 34px;
    }

    .cookie-category {
        padding: 22px;
    }

    .cookie-category-header {
        flex-direction: column;
    }

    .cookie-category-header h4 {
        font-size: 24px;
    }

    .cookie-modal-footer {
        flex-direction: column;
        position: sticky;
        bottom: 0;

        background: white;

        padding-top: 18px;

        margin-top: 28px;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}