/**
 * Techgeering Solutions Pvt. Ltd.
 * Cookie Consent & Preferences Styling
 */

.tg-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #0d6efd;
    padding: 16px 0;
    z-index: 99999;
    font-family: inherit;
    animation: tgSlideUp 0.3s ease-out;
}

@keyframes tgSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.tg-consent-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
}

.tg-consent-desc {
    font-size: 0.88rem;
    color: #6c757d;
    line-height: 1.5;
}

.tg-policy-link {
    color: #0d6efd;
    text-decoration: underline;
}

.tg-policy-link:hover {
    color: #0b5ed7;
}

.tg-consent-buttons .btn {
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
}

/* Preferences Modal Overlay */
.tg-consent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.tg-consent-modal-dialog {
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: tgFadeIn 0.2s ease-out;
}

@keyframes tgFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tg-consent-modal-content {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tg-consent-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tg-consent-modal-header h5 {
    font-size: 1.15rem;
    color: #1e293b;
}

.tg-consent-modal-header .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0;
}

.tg-consent-modal-header .btn-close:hover {
    color: #0f172a;
}

.tg-consent-modal-body {
    padding: 24px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tg-cookie-category:last-child {
    border-bottom: none !important;
}

.cursor-pointer {
    cursor: pointer;
}

.tg-consent-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .tg-consent-banner {
        padding: 14px 10px;
    }
    .tg-consent-buttons {
        justify-content: stretch;
    }
    .tg-consent-buttons .btn {
        flex: 1 1 100%;
        text-align: center;
    }
    .tg-consent-modal-footer {
        flex-direction: column;
    }
    .tg-consent-modal-footer .btn {
        width: 100%;
    }
}

