/* ============================
   Cookie Consent Box
   ============================ */
.cookie_consent_modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    width: 240px;
    background: #1a1a2e;
    border-radius: 12px;
    border: 1px solid rgba(108, 60, 225, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    padding: 14px 14px 12px;
    animation: cookieFadeIn 0.35s ease;
}

@keyframes cookieFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cookie_consent_inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie_consent_left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cookie_icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.2;
}

.cookie_text strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

/* Clip the message to 2 lines to keep the box compact */
.cookie_text p {
    font-size: 11px;
    line-height: 1.5;
    color: #9a9db0;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cookie_consent_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 2px;
}

/* Blue Accept button */
.cookie_consent_accept_btn {
    display: inline-block;
    padding: 5px 14px;
    background: #1565c0;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.cookie_consent_accept_btn:hover {
    background: #0d47a1;
    color: #fff !important;
}

.cookie_consent_close_btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #9a9db0;
    font-size: 13px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.cookie_consent_close_btn:hover {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 400px) {
    .cookie_consent_modal {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 16px;
    }
}

@keyframes cookieFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cookie_consent_inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie_consent_left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cookie_icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1.2;
}

.cookie_text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.cookie_text p {
    font-size: 12px;
    line-height: 1.55;
    color: #9a9db0;
    margin: 0;
}

.cookie_consent_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
}

.cookie_consent_accept_btn {
    display: inline-block;
    padding: 7px 18px;
    background: var(--tg-theme-primary, #6c3ce1);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.cookie_consent_accept_btn:hover {
    background: #5a2ec4;
    color: #fff !important;
}

.cookie_consent_close_btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #9a9db0;
    font-size: 14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.cookie_consent_close_btn:hover {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 400px) {
    .cookie_consent_modal {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 16px;
    }
}