/* QAFlow - Sidebar widget components (includes/widgets.php)
   Extracted from inline style="" attributes */

.wgt-thumb {
    object-fit: cover;
}

.wgt-thumb-60x45 {
    width: 60px;
    height: 45px;
    object-fit: cover;
}

.wgt-thumb-60x45-fallback {
    width: 60px;
    height: 45px;
    background: var(--card-bg, #f8f9fa);
}

.wgt-title-14 {
    font-size: 14px;
    line-height: 1.3;
    color: var(--text-primary, #212529);
}

.wgt-title-clamp2 {
    font-size: 14px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.wgt-meta-12 {
    font-size: 12px;
}

.wgt-avatar-40 {
    object-fit: cover;
}

.wgt-topic-badge {
    font-size: 10px;
}

.wgt-cat-icon-40 {
    width: 40px;
    height: 40px;
}

.wgt-thumb-50x35 {
    width: 50px;
    height: 35px;
    object-fit: cover;
}

.wgt-clamp2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wgt-rank-badge {
    width: 24px;
}

.wgt-cat-link {
    text-decoration: none;
}

.wgt-thumb-40 {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.wgt-thumb-40-square {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.wgt-fallback-icon-40 {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wgt-item-name {
    font-size: 0.85rem;
}

.wgt-item-badge-sm {
    font-size: 0.65rem;
}

.wgt-thumb-28 {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.wgt-fallback-icon-28 {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wgt-fallback-icon-28 i {
    font-size: 0.8rem;
}

.wgt-item-domain {
    font-size: 0.75rem;
}

.wgt-thumb-36-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 4px;
    flex-shrink: 0;
    background: #fff;
}

.wgt-fallback-icon-36-deal {
    width: 36px;
    height: 36px;
    background: #fef2f2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wgt-thumb-36-job {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 3px;
    flex-shrink: 0;
    background: #fff;
}

.wgt-fallback-icon-36-job {
    width: 36px;
    height: 36px;
    background: #f0fdf4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wgt-item-badge-xs {
    font-size: 0.6rem;
}

.wgt-thumb-poster {
    width: 45px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.wgt-fallback-icon-poster {
    width: 45px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wgt-item-name-lg {
    font-size: 0.88rem;
}

.wgt-imdb-badge {
    font-size: 0.7rem;
}

.wgt-thumb-55 {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.wgt-fallback-icon-55 {
    width: 55px;
    height: 55px;
    background: #fef3c7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wgt-online-icon {
    font-size: 0.6rem;
}

.wgt-cart-icon {
    font-size: 2rem;
    color: var(--primary);
}

/* Newsletter popup modal (includes/footer.php) */
.nl-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.nl-popup-overlay.show {
    display: flex;
}

.nl-popup-card {
    background: #fff;
    border-radius: 16px;
    max-width: 440px;
    width: 90%;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: nlPopIn 0.3s ease;
}

.nl-popup-header {
    background: linear-gradient(135deg, var(--primary, #4CAF50), var(--primary-dark, #2e7d32));
    padding: 30px 30px 20px;
    text-align: center;
    color: #fff;
}

.nl-popup-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.9;
}

.nl-popup-header h4 {
    margin: 0 0 6px;
    font-weight: 700;
}

.nl-popup-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}

.nl-popup-body {
    padding: 24px 30px 30px;
}

.nl-popup-form {
    display: flex;
    gap: 8px;
}

.nl-popup-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.nl-popup-submit {
    padding: 10px 20px;
    background: var(--primary, #4CAF50);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.nl-popup-msg {
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

.nl-popup-msg-success {
    color: #10b981;
}

.nl-popup-msg-error {
    color: #ef4444;
}

.nl-popup-later {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
}

.nl-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.pro-badge-founder {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
