/* Software Detail Page - Optimized CSS */

/* CSS Variables for Consistent Theming */
:root {
    --sm-primary-color: #1A172C;
    --sm-primary-hover: #362e62;
    --sm-secondary-color: #64748b;
    --sm-accent-color: #f1f5f9;
    --sm-border-color: #e0e6ed;
    --sm-shadow-color: rgba(0, 0, 0, 0.1);
    --sm-success-color: #10b981;
    --sm-success-light: #f0fdf4;
    --sm-text-color: #222222;
    --sm-button-radius: 8px;
    --sm-button-padding: 12px 20px;
    --sm-button-gap: 12px;
    --sm-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Override Astra Theme Container Padding - Full Width */
body .ast-container,
body .ast-container-fluid,
.ast-container,
.ast-container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

.software-detail-wrapper .ast-container,
.software-detail-wrapper .ast-container-fluid,
.software-detail-wrapper .site-content .ast-container,
.software-detail-wrapper .site-content .ast-container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Remove any wrapper padding */
.software-detail-wrapper .site-content,
.software-detail-wrapper .ast-separate-container .ast-article-single,
.software-detail-wrapper .ast-separate-container .ast-article-post {
    padding: 0 !important;
    margin: 0 !important;
}

.software-detail-wrapper #primary,
.software-detail-wrapper .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Software Not Available Notice */
.sm-software-not-available {
    max-width: 800px;
    margin: 60px auto;
    padding: 50px 40px;
    text-align: center;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe9a0 100%);
    border: 2px solid #f9a825;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(249, 168, 37, 0.15);
}

.sm-software-not-available-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sm-software-not-available h3 {
    color: #d84315;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.sm-software-not-available-message {
    color: #6d4c41;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.sm-software-not-available-tip {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
}

.sm-software-not-available-tip p {
    color: #5d4037;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* Layout Reset for Detail Page */
.sm-software-detail * {
    box-sizing: border-box;
}

.sm-software-detail {
    overflow-x: hidden;
}

/* CSS Variables */
.software-detail-wrapper,
.sm-software-detail {
    --sm-primary: #2b6cb0;
    --sm-primary-hover: #2c5282;
    --sm-secondary: #4a5568;
    --sm-light-bg: #f7fafc;
    --sm-border-color: #e2e8f0;
    --sm-text-color: #2d3748;
    --sm-text-light: #718096;
    --sm-star-color: #ffb900;
    --sm-star-empty: #e2e8f0;
    --sm-star-hover: #ffca28;
    --sm-star-shadow: rgba(255, 185, 0, 0.5);
    --sm-pros-color: #48bb78;
    --sm-cons-color: #f56565;
    --sm-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --sm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sm-radius: 0.375rem;
    --sm-sidebar-width: 280px;
    --sm-grid-gap: 32px;
    --sm-nav-bg: #ffffff;
    --sm-nav-border: #e5e7eb;
    --sm-nav-text: #374151;
    --sm-nav-active: #3b82f6;
    --sm-nav-hover: #f3f4f6;
    --sm-scroll-highlight: #3b82f6;
}

/* Scroll Target Highlight Effect */
.sm-scroll-target-highlight {
    animation: sm-scroll-highlight 0.6s ease-out;
}

@keyframes sm-scroll-highlight {
    0% {
        background-color: rgba(59, 130, 246, 0.1);
        border-left: 4px solid var(--sm-scroll-highlight);
        padding-left: 12px;
    }
    100% {
        background-color: transparent;
        border-left: none;
        padding-left: 0;
    }
}

/* Base Wrapper */
.software-detail-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--sm-light-bg);
    padding: 80px 0 0 0;
    margin: 0 auto;
}

/* Main Container */
.sm-software-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    color: var(--sm-text-color);
    line-height: 1.5;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible; /* ensure sticky sidebar is not clipped */
}

.sm-software-detail.full-width {
    width: 100%;
    padding: 0;
    margin: 0;
}

.sm-detail-container {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.sm-detail-header {
    position: relative;
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    max-width: 100%;
    margin-bottom: 32px;
    z-index: 50;
    overflow: hidden;
    box-sizing: border-box;
}

.sm-header-content {
    display: flex;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    gap: 30px;
    box-sizing: border-box;
    overflow: visible;
    flex-wrap: wrap;
}

.sm-header-left {
    display: flex;
    align-items: center;
    width: 260px;
    min-width: 260px;
    padding: 15px;
    position: relative;
}

.sm-software-logo {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    border-radius: 0;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.sm-badge-top {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: auto;
}

.sm-header-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.sm-header-main h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    line-height: 1.2;
}

.sm-header-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #4b5563;
    flex-wrap: wrap;
    margin-bottom: 8px;
    width: 100%;
}

.sm-header-byline a {
    color: #003049;
    text-decoration: none;
    font-weight: 500;
}

.sm-header-rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.sm-header-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sm-header-review-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    line-height: 1;
}

.sm-rating-type {
    font-size: 0.85em;
    color: #718096;
    font-weight: 400;
    font-style: italic;
}

.sm-header-weighted-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #e2e8f0;
}

.sm-header-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.sm-action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.sm-action-button:hover {
    color: #111827;
}

.sm-action-button i {
    font-size: 18px;
}

.sm-action-button.save-button {
    background: #003049 !important;
    color: #ffffff !important;
    border: 2px solid #003049 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 1.2 !important;
    min-width: 110px !important;
    max-width: 110px !important;
    width: 110px !important;
    height: 36px !important;
    box-shadow: 0 2px 4px rgba(0, 48, 73, 0.2) !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.sm-action-button.save-button:hover {
    background: #004d73 !important;
    border-color: #004d73 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 48, 73, 0.3) !important;
}

.sm-action-button.save-button:active {
    background: #002137 !important;
    border-color: #002137 !important;
    transform: translateY(0px) !important;
}

.sm-action-button.save-button.saved {
    background: #10b981 !important;
    color: #ffffff !important;
}

.sm-action-button.save-button.saved:hover {
    background: #059669 !important;
}

/* Additional overrides for better visibility */
body .sm-action-button.save-button,
.wp-block-buttons .sm-action-button.save-button,
.entry-content .sm-action-button.save-button {
    background: #003049 !important;
    color: #ffffff !important;
    border: 2px solid #003049 !important;
    padding: 8px 12px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    width: 110px !important;
    height: 36px !important;
    text-transform: none !important;
    font-family: inherit !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 4px rgba(0, 48, 73, 0.2) !important;
    flex-shrink: 0 !important;
}

body .sm-action-button.save-button:hover,
.wp-block-buttons .sm-action-button.save-button:hover,
.entry-content .sm-action-button.save-button:hover {
    background: #004d73 !important;
    border-color: #004d73 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 48, 73, 0.3) !important;
}

body .sm-action-button.save-button.saved,
.wp-block-buttons .sm-action-button.save-button.saved,
.entry-content .sm-action-button.save-button.saved {
    background: #10b981 !important;
    color: #ffffff !important;
}

body .sm-action-button.save-button.saved:hover,
.wp-block-buttons .sm-action-button.save-button.saved:hover,
.entry-content .sm-action-button.save-button.saved:hover {
    background: #059669 !important;
    color: #ffffff !important;
}

/* Button icon styling */
.sm-action-button.save-button .dashicons,
.sm-action-button.save-button i.dashicons,
.sm-compare-toggle .dashicons,
.sm-compare-toggle i.dashicons,
.sm-action-button.claimed-badge .dashicons,
.sm-action-button.claimed-badge i.dashicons {
    font-size: 12px !important;
    width: 12px !important;
    height: 12px !important;
    line-height: 1 !important;
    color: inherit !important;
    margin: 0 !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

/* Ensure button text doesn't wrap and fits properly */
.sm-header-right button,
.sm-header-right a {
    text-align: center !important;
    word-break: keep-all !important;
    hyphens: none !important;
}

/* Compare button label specific styling */
.sm-compare-label {
    flex-shrink: 0 !important;
    overflow: visible !important;
    text-overflow: none !important;
    white-space: nowrap !important;
    display: inline !important;
}

/* ============================================
   G2/CAPTERRA-STYLE MODERN HEADER BUTTONS - RESPONSIVE DESIGN
   ============================================ */

/* Main Header Content Layout */
#sm-software-detail-wrapper .sm-software-detail .sm-header-content {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
}

/* Action Buttons Container - Modern Grid/Flexbox Implementation */
#sm-software-detail-wrapper .sm-software-detail .sm-header-right {
    display: flex !important;
    align-items: center !important;
    gap: var(--sm-button-gap) !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
}

/* Header Actions Wrapper */
#sm-software-detail-wrapper .sm-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

/* Secondary Actions Container */
#sm-software-detail-wrapper .sm-secondary-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Individual Button Items */
#sm-software-detail-wrapper .sm-software-detail .sm-header-right > * {
    flex-shrink: 0 !important;
    min-width: 0 !important;
}

/* ============================================
   MODERN BUTTON STYLES - G2/CAPTERRA INSPIRED
   ============================================ */

/* Base Action Button Styles */
#sm-software-detail-wrapper .sm-action-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    min-width: 120px !important;
    height: 44px !important;
    box-sizing: border-box !important;
    border: 2px solid transparent !important;
    outline: none !important;
    line-height: 1 !important;
    flex-shrink: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Primary Button - Visit Website (Solid) */
#sm-software-detail-wrapper .sm-primary-btn {
    background: var(--sm-primary-color, #2563eb) !important;
    color: #ffffff !important;
    border-color: var(--sm-primary-color, #2563eb) !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2) !important;
}

#sm-software-detail-wrapper .sm-primary-btn:hover {
    background: var(--sm-primary-hover, #1d4ed8) !important;
    border-color: var(--sm-primary-hover, #1d4ed8) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3) !important;
}

#sm-software-detail-wrapper .sm-primary-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2) !important;
}

/* Secondary Buttons - Outline Style */
#sm-software-detail-wrapper .sm-secondary-btn {
    background: transparent !important;
    color: var(--sm-primary-color, #2563eb) !important;
    border-color: var(--sm-border-color, #e5e7eb) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

#sm-software-detail-wrapper .sm-secondary-btn:hover {
    background: var(--sm-accent-color, #f8fafc) !important;
    border-color: var(--sm-primary-color, #2563eb) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

#sm-software-detail-wrapper .sm-secondary-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Button Icons */
#sm-software-detail-wrapper .sm-action-button .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
    margin-right: 6px !important;
}

/* ============================================
   RESPONSIVE LAYOUTS
   ============================================ */

/* Desktop Layout (≥1024px) - Single row with optimal spacing */
@media (min-width: 1024px) {
    #sm-software-detail-wrapper .sm-software-detail .sm-header-right {
        flex-wrap: nowrap !important;
        gap: 16px !important;
        max-width: 600px !important;
        justify-content: flex-end !important;
    }
    
    #sm-software-detail-wrapper .sm-software-detail .sm-header-content {
        flex-wrap: nowrap !important;
        gap: 30px !important;
    }
    
    #sm-software-detail-wrapper .sm-header-actions {
        flex-wrap: nowrap !important;
        gap: 16px !important;
    }
    
    #sm-software-detail-wrapper .sm-secondary-actions {
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
}

/* Tablet Layout (769px - 1023px) - Compact single row */
@media (min-width: 769px) and (max-width: 1023px) {
    #sm-software-detail-wrapper .sm-software-detail .sm-header-right {
        flex-wrap: nowrap !important;
        gap: 12px !important;
        max-width: 520px !important;
        justify-content: flex-end !important;
    }
    
    #sm-software-detail-wrapper .sm-software-detail .sm-header-content {
        flex-wrap: nowrap !important;
        gap: 20px !important;
    }
    
    #sm-software-detail-wrapper .sm-action-button {
        min-width: 100px !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
        height: 40px !important;
    }
    
    #sm-software-detail-wrapper .sm-action-button .dashicons {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
        margin-right: 4px !important;
    }
}

/* Mobile Layout (≤768px) - Perfect 2×2 Button Grid */
@media (max-width: 768px) {
    #sm-software-detail-wrapper .sm-software-detail .sm-header-right {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Force 2 equal columns */
        gap: 12px !important;
        width: 100% !important;
        margin-top: 15px !important;
        align-items: stretch !important;
    }
    
    #sm-software-detail-wrapper .sm-software-detail .sm-header-content {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    /* Remove nested grid containers - all buttons are direct children */
    #sm-software-detail-wrapper .sm-header-actions {
        display: contents !important; /* Flatten structure for grid */
    }
    
    #sm-software-detail-wrapper .sm-secondary-actions {
        display: contents !important; /* Flatten structure for grid */
    }
    
    /* Ensure ALL buttons are equal size and perfect grid items */
    #sm-software-detail-wrapper .sm-action-button {
        width: 100% !important;
        min-width: auto !important;
        justify-content: center !important;
        height: 44px !important; /* Fixed height for consistency */
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Primary button spans both columns */
    #sm-software-detail-wrapper .sm-primary-btn {
        grid-column: span 2 !important;
        order: 1 !important; /* Ensure it's first in grid */
    }
    
    /* Secondary buttons in grid positions */
    #sm-software-detail-wrapper .sm-secondary-btn:nth-child(1) {
        order: 2 !important; /* First secondary button */
    }
    
    #sm-software-detail-wrapper .sm-secondary-btn:nth-child(2) {
        order: 3 !important; /* Second secondary button */
    }
    
    #sm-software-detail-wrapper .sm-secondary-btn:nth-child(3) {
        order: 4 !important; /* Third secondary button */
    }
}

/* Small Mobile (≤480px) - Stacked compact layout */
@media (max-width: 480px) {
    #sm-software-detail-wrapper .sm-software-detail .sm-header-right {
        gap: 10px !important;
    }
    
    #sm-software-detail-wrapper .sm-secondary-actions {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    #sm-software-detail-wrapper .sm-action-button {
        padding: 10px 14px !important;
        font-size: 13px !important;
        height: 38px !important;
    }
    
    #sm-software-detail-wrapper .sm-action-button .dashicons {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
        margin-right: 4px !important;
    }
    
    /* Single column for all buttons on very small screens */
    #sm-software-detail-wrapper .sm-primary-btn {
        grid-column: span 1 !important;
    }
}

/* Ensure proper button text visibility */
.sm-action-button.save-button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Star rating numeric value next to stars */
.sm-software-detail .smst-header-star-rating-value,
.sm-software-detail .smst-summary-star-rating-value,
.sm-software-detail .smst-similar-star-rating-value,
.sm-software-detail .smst-review-star-rating-value,
.smst-header-star-rating-value,
.smst-summary-star-rating-value,
.smst-similar-star-rating-value,
.smst-review-star-rating-value {
    margin-left: 6px !important;
    font-weight: 600 !important;
    color: var(--sm-text-color) !important;
    font-size: 16px !important;
}

/* Claimed Badge Button - Updated with CSS Variables */
.sm-action-button.claimed-badge {
    color: var(--sm-success-color) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: var(--sm-button-padding) !important;
    border-radius: var(--sm-button-radius) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border: 2px solid var(--sm-success-color) !important;
    background: var(--sm-success-light) !important;
    height: 44px !important;
    min-width: 120px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: var(--sm-transition) !important;
}

.sm-action-button.claimed-badge:hover {
    background: var(--sm-success-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* Write Review Button Styles - Modernized with CSS Variables */
.sm-write-review-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: var(--sm-button-padding) !important;
    border-radius: var(--sm-button-radius) !important;
    background: var(--sm-primary-color) !important;
    color: #ffffff !important;
    border: 2px solid var(--sm-primary-color) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: var(--sm-transition) !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    min-width: 120px !important;
    height: 44px !important;
    box-shadow: 0 3px 8px rgba(26, 23, 44, 0.2) !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    gap: 6px !important;
}

.sm-write-review-btn:hover {
    background: var(--sm-primary-hover) !important;
    border-color: var(--sm-primary-hover) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(26, 23, 44, 0.3) !important;
}

/* Visit Website Button Styles - Modernized with CSS Variables */
.sm-visit-website-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: var(--sm-button-padding) !important;
    border-radius: var(--sm-button-radius) !important;
    background: #ffffff !important;
    color: var(--sm-primary-color) !important;
    border: 2px solid var(--sm-primary-color) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: var(--sm-transition) !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    min-width: 120px !important;
    height: 44px !important;
    box-shadow: 0 3px 8px rgba(26, 23, 44, 0.1) !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    gap: 6px !important;
}

.sm-visit-website-btn:hover {
    background: var(--sm-accent-color) !important;
    border-color: var(--sm-primary-hover) !important;
    color: var(--sm-primary-hover) !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(26, 23, 44, 0.15) !important;
}

.sm-compare-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: var(--sm-button-padding) !important;
    border-radius: var(--sm-button-radius) !important;
    border: 2px solid var(--sm-primary-color) !important;
    background: #ffffff !important;
    color: var(--sm-primary-color) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: var(--sm-transition) !important;
    line-height: 1.4 !important;
    min-height: 44px !important;
    height: 44px !important;
    min-width: 120px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: ellipsis !important;
    gap: 6px !important;
}

.sm-compare-toggle:hover {
    background: var(--sm-accent-color) !important;
    color: var(--sm-primary-hover) !important;
    border-color: var(--sm-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(26, 23, 44, 0.15) !important;
}

.sm-compare-toggle.is-active {
    background: var(--sm-success-color) !important;
    color: #ffffff !important;
    border-color: var(--sm-success-color) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

.sm-compare-toggle.is-disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.sm-compare-toggle.is-active:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3) !important;
}
.sm-card-footer .sm-compare-toggle {
    margin-left: 10px;
    padding: 12px 18px;
}

/* Floating Compare Bar - Hidden by default, shows when user adds software */
.sm-floating-compare-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    border-top: 2px solid #e5e7eb !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15) !important;
    padding: 12px 20px !important;
    display: none; /* Hidden by default */
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    transition: transform 0.3s ease !important;
    text-align: center !important;
}

/* Show the bar when it has the 'show' class or when visible */
.sm-floating-compare-bar[style*="display: flex"],
.sm-floating-compare-bar[style*="display:flex"],
.sm-floating-compare-bar.show {
    display: flex !important;
}

.sm-floating-compare-bar .sm-floating-compare-items {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.sm-floating-compare-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    flex-shrink: 0;
}

.sm-floating-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.sm-floating-thumb.placeholder {
    background: #e5e7eb;
}

.sm-floating-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sm-floating-remove {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
    transition: color 0.2s ease;
}

.sm-floating-remove:hover {
    color: #ef4444;
}

.sm-compare-now-btn {
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    background: #003049 !important;
    color: #ffffff !important;
    border: 2px solid #003049 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.sm-compare-now-btn:hover {
    background: #004d73;
    border-color: #004d73;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 48, 73, 0.3);
}

.sm-compare-now-btn.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile Responsive - Floating Compare Bar */
@media (max-width: 768px) {
    .sm-floating-compare-bar {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .sm-floating-compare-bar .sm-floating-compare-items {
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        justify-content: center;
    }
    
    .sm-floating-compare-item {
        padding: 6px 10px;
        min-width: 140px;
    }
    
    .sm-floating-thumb {
        width: 28px;
        height: 28px;
    }
    
    .sm-floating-name {
        font-size: 13px;
        max-width: 100px;
    }
    
    .sm-floating-remove {
        font-size: 18px;
    }
    
    .sm-compare-now-btn {
        width: auto;
        max-width: 300px;
        margin: 0 auto;
        padding: 12px 20px;
        justify-content: center;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .sm-floating-compare-bar {
        padding: 8px 12px;
    }
    
    .sm-floating-compare-item {
        padding: 5px 8px;
        min-width: 120px;
    }
    
    .sm-floating-thumb {
        width: 24px;
        height: 24px;
    }
    
    .sm-floating-name {
        font-size: 12px;
        max-width: 80px;
    }
    
    .sm-compare-now-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

 

/* Navigation */
.sm-header-nav {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}

.sm-software-detail .sm-header-tabs,
.sm-software-detail .sm-detail-tabs {
    list-style: none !important;
    display: flex;
    margin: 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.sm-header-tabs li,
.sm-detail-tabs li {
    margin: 0;
}

.sm-header-tabs a,
.sm-detail-tabs a {
    display: block;
    padding: 12px 20px;
    color: #4b5563 !important;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s;
    font-size: 15px;
}

.sm-header-tabs li.active a,
.sm-detail-tabs li.active a,
.sm-header-tabs li.active a:hover,
.sm-detail-tabs li.active a:hover,
.sm-header-tabs li.active a:focus,
.sm-detail-tabs li.active a:focus {
    color: #003049 !important;
    border-bottom-color: #003049 !important;
    font-weight: 600 !important;
    background: transparent !important;
}

.sm-header-tabs a:hover,
.sm-detail-tabs a:hover {
    color: #003049 !important;
    border-bottom-color: transparent !important;
}

/* Header Buttons - Consistent Styling */
.sm-write-review-btn,
.sm-visit-website-btn,
.sm-roadmap-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    min-width: 140px !important;
    max-width: 200px !important;
    height: 44px !important;
    box-sizing: border-box !important;
    border: 2px solid transparent !important;
    outline: none !important;
    line-height: 1 !important;
    flex-shrink: 1 !important;
}

/* Write a Review Button - Pink/Red Theme (FA346E) */
.sm-write-review-btn,
.sm-header-right .sm-write-review-btn,
body .sm-write-review-btn {
    background: #FA346E !important;
    color: #ffffff !important;
    border: 2px solid #FA346E !important;
    box-shadow: 0 2px 4px rgba(250, 52, 110, 0.2) !important;
}

.sm-write-review-btn:hover,
.sm-header-right .sm-write-review-btn:hover,
body .sm-write-review-btn:hover {
    background: #E82A5F !important;
    border-color: #E82A5F !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(250, 52, 110, 0.3) !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

/* ======================================================================
   CLAIM STATUS BADGE (Inline with "By" line)
   ====================================================================== */

.sm-claim-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.4;
    white-space: nowrap;
}

.sm-claim-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

.sm-claim-badge.sm-claimed {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.sm-claim-badge.sm-claimed .dashicons {
    color: #4caf50;
}

.sm-claim-badge.sm-unclaimed {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ff9800;
}

.sm-claim-badge.sm-unclaimed .dashicons {
    color: #ff9800;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sm-claim-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .sm-claim-badge .dashicons {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }
}

/* ======================================================================
   G2-STYLE GRID LAYOUT - TWO COLUMN DESIGN WITH SIDEBAR NAVIGATION
   ====================================================================== */

/* Main Grid Container - Normal Layout */
.sm-detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    position: relative;
    align-items: start;
    overflow: visible;
}

/* Left Sidebar - Normal Height */
.sm-left-sidebar {
    position: static;
    border-right: 1px solid #ccd0d4;
    padding: 20px;
    margin: 0;
    height: auto;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

/* Sidebar content flows naturally with internal scroll */
.sm-left-sidebar * {
    overflow: visible !important;
}

.sm-left-sidebar .sm-nav-list {
    overflow: visible !important;
}

.sm-left-sidebar .sm-nav-list li {
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
}

/* Enhanced normal positioning for sidebar */
.sm-detail-grid > .sm-left-sidebar {
    position: static;
    height: auto;
    overflow: visible;
    width: 100%;
    border-right: 1px solid #ccd0d4;
}

/* Allow normal page scrolling */
body, html {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
}

.sm-software-detail.full-width,
.sm-software-detail {
    overflow: visible !important;
    transform: none !important;
    contain: none !important;
    height: auto !important;
    position: relative !important;
}

/* Prevent any transforms on grid container - ensure sticky works */
.sm-detail-grid {
    transform: none !important;
    backface-visibility: visible !important;
    perspective: none !important;
    filter: none !important;
    contain: none !important;
    isolation: auto !important;
    position: relative !important;
    overflow: visible !important;
}

/* WordPress Dashboard Style - Sticky Sidebar on Desktop */
@media (min-width: 992px) {
    /* Ensure grid layout works with sticky sidebar */
    html body .sm-detail-grid {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 0 !important;
        position: relative !important;
        width: 100% !important;
        min-height: 100vh !important;
    }
    
    /* Make main content normal without scroll */
    .sm-main-content,
    .sm-detail-grid > .sm-main-content,
    html body .sm-main-content {
        margin: 0 !important;
        width: 100% !important;
        padding: 10px !important;
        background: #ffffff !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure content sections inside main area can scroll properly */
    .sm-main-content .sm-content-section,
    .sm-main-content > *,
    .sm-main-content section {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Make sure tabs content is scrollable */
    .sm-detail-tabs + div,
    .sm-detail-tabs ~ div {
        overflow: visible !important;
        height: auto !important;
    }
}

/* Normal static sidebar rules */
html body.wp-admin .sm-left-sidebar,
html body:not(.wp-admin) .sm-left-sidebar,
html body div.sm-software-detail .sm-left-sidebar,
html body article .sm-software-detail .sm-left-sidebar,
html body main .sm-software-detail .sm-left-sidebar,
html body section .sm-software-detail .sm-left-sidebar {
    position: static !important;
    height: auto !important;
    width: 100% !important;
    overflow: visible !important;
    border-right: 1px solid #ccd0d4 !important;
    z-index: auto !important;
    padding: 20px !important;
    margin: 0 !important;
}

@media (min-width: 992px) {
    /* Normal desktop sidebar - static position */
    html body.wp-admin .sm-left-sidebar,
    html body:not(.wp-admin) .sm-left-sidebar,
    html body div.sm-software-detail .sm-left-sidebar,
    html body article .sm-software-detail .sm-left-sidebar,
    html body main .sm-software-detail .sm-left-sidebar,
    html body section .sm-software-detail .sm-left-sidebar {
        position: static !important;
        height: auto !important;
        width: 100% !important;
        overflow: visible !important;
        border-right: 1px solid #ccd0d4 !important;
        transform: none !important;
        will-change: auto !important;
        z-index: auto !important;
        margin: 0 !important;
        padding: 20px !important;
        float: none !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}

/* NORMAL LAYOUT: Standard WordPress sidebar behavior */
@media (min-width: 992px) {
    /* STEP 1: Maintain grid layout for proper sidebar positioning */
    .sm-detail-grid {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 32px !important;
        position: relative !important;
        overflow: visible !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 20px !important;
    }
    
    /* STEP 2: NORMAL SIDEBAR POSITIONING - Standard WordPress behavior */
    html body .sm-left-sidebar,
    html body div .sm-left-sidebar,
    html body article .sm-left-sidebar,
    html body main .sm-left-sidebar,
    html body section .sm-left-sidebar,
    html body .site .sm-left-sidebar,
    html body .site-content .sm-left-sidebar,
    html body .content-area .sm-left-sidebar,
    html body .main-content .sm-left-sidebar,
    html body .entry-content .sm-left-sidebar,
    html body .post .sm-left-sidebar,
    html body .page .sm-left-sidebar,
    html body .single .sm-left-sidebar,
    html body div.sm-software-detail .sm-left-sidebar,
    html body div.sm-software-detail.full-width .sm-left-sidebar {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        z-index: 1 !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        will-change: auto !important;
        display: block !important;
        float: none !important;
    }
    
    /* STEP 3: Main content area - normal without scroll */
    .sm-main-content {
        background: #ffffff;
        padding: 10px;
        margin: 0;
        width: 100%;
        height: auto;
        overflow: visible !important;
        box-sizing: border-box;
        position: relative;
    }
}

/* Mobile: Stack layout naturally */
@media (max-width: 991px) {
    /* Stack sidebar above content on mobile */
    .sm-detail-grid {
        display: block !important;
        padding: 15px !important;
        gap: 0 !important;
    }
    
    .sm-left-sidebar {
        width: 100% !important;
        margin-bottom: 30px !important;
        padding: 20px !important;
        background: #f9f9f9 !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    .sm-main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
        background: #ffffff !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
}

/* Mobile Navigation Toggle */
.sm-nav-toggle {
    display: none;
    background: var(--sm-nav-bg);
    border: 1px solid var(--sm-nav-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--sm-nav-text);
    transition: all 0.2s ease;
}

.sm-nav-toggle:hover {
    background: var(--sm-nav-hover);
}

.sm-nav-toggle-icon {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
    vertical-align: middle;
    margin-left: auto;
}

.sm-nav-toggle-icon::before,
.sm-nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.sm-nav-toggle-icon::before {
    top: -6px;
}

.sm-nav-toggle-icon::after {
    bottom: -6px;
}

/* Sidebar Navigation - G2 Style */
.sm-sidebar-nav {
    background: var(--sm-nav-bg);
    border: 1px solid var(--sm-nav-border);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sm-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-nav-list li {
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
}

.sm-nav-list li:last-child {
    border-bottom: none;
}

.sm-nav-link {
    display: block;
    padding: 14px 16px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
    position: relative;
}

.sm-nav-link:hover {
    background: #f9fafb;
    color: #1f2937;
    text-decoration: none;
}

.sm-nav-link.active,
.sm-nav-link[aria-current="true"] {
    background: #eff6ff;
    color: #003049;
    font-weight: 600;
    border-left-color: #003049;
}

.sm-nav-link.active:hover {
    background: #dbeafe;
}

/* Enhanced navigation interaction states */
.sm-nav-link.clicking {
    background: #dbeafe;
    transform: translateX(2px);
    transition: all 0.15s ease;
}

.sm-nav-link:focus {
    outline: 2px solid #003049;
    outline-offset: -2px;
    background: #f0f9ff;
}

.sm-nav-link:focus-visible {
    outline: 2px solid #003049;
    outline-offset: -2px;
}

/* Smooth scroll behavior for the entire document */
html {
    scroll-behavior: smooth;
}

/* Enhanced section scroll margin for precise positioning */
.sm-content-section {
    scroll-margin-top: calc(var(--header-height, 80px) + 24px);
    scroll-snap-margin-top: calc(var(--header-height, 80px) + 24px);
}

/* Enhanced targeting for specific heading elements */
.sm-tab-header {
    scroll-margin-top: calc(var(--header-height, 80px) + 60px);
    scroll-snap-margin-top: calc(var(--header-height, 80px) + 60px);
}

.sm-tab-header h2 {
    scroll-margin-top: calc(var(--header-height, 80px) + 60px);
    scroll-snap-margin-top: calc(var(--header-height, 80px) + 60px);
    position: relative;
}

/* Ensure direct h2 elements also have proper scroll margins */
.sm-content-section > h2 {
    scroll-margin-top: calc(var(--header-height, 80px) + 60px);
    scroll-snap-margin-top: calc(var(--header-height, 80px) + 60px);
}

/* Enhanced styling for tab headers with better visibility */
.sm-tab-header {
    margin-bottom: 40px;
    padding: 24px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.sm-tab-header h2 {
    color: #111827;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    position: relative;
    letter-spacing: -0.5px;
}

/* Tab header description paragraph - no decoration */
.sm-tab-header p,
.sm-tab-header .sm-tab-description {
    color: #6b7280 !important;
    font-size: 16px !important;
    margin: 12px 0 0 0 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: none !important;
    font-weight: 400 !important;
}

.sm-tab-header p::before,
.sm-tab-header p::after,
.sm-tab-header .sm-tab-description::before,
.sm-tab-header .sm-tab-description::after {
    display: none !important;
    content: none !important;
}

.sm-tab-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -20px;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Add subtle shadow for better definition */
.sm-tab-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 8px;
    z-index: -1;
}

/* Focus styles for better accessibility when targeted */
.sm-tab-header h2:focus,
.sm-content-section h2:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Visual indicator when a heading is being targeted (temporary) */
.sm-scroll-target-highlight {
    animation: highlightTarget 1.0s ease-out;
}

/* Special animation for tab header headings */
.sm-tab-header h2.sm-scroll-target-highlight {
    animation: highlightTabHeader 1.2s ease-out;
}

@keyframes highlightTarget {
    0% {
        background-color: rgba(59, 130, 246, 0.15);
        transform: translateX(-6px);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    30% {
        background-color: rgba(59, 130, 246, 0.1);
        transform: translateX(-2px);
    }
    70% {
        background-color: rgba(59, 130, 246, 0.05);
    }
    100% {
        background-color: transparent;
        transform: translateX(0);
        box-shadow: none;
    }
}

@keyframes highlightTabHeader {
    0% {
        transform: scale(1.02) translateY(-2px);
        text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    }
    50% {
        transform: scale(1.01) translateY(-1px);
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    }
    100% {
        transform: scale(1) translateY(0);
        text-shadow: none;
    }
}

/* Enhanced underline animation when targeted */
.sm-tab-header h2.sm-scroll-target-highlight::after {
    animation: pulseUnderline 1.2s ease-out;
}

@keyframes pulseUnderline {
    0%, 100% {
        width: 80px;
        opacity: 1;
    }
    50% {
        width: 120px;
        opacity: 0.8;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.6);
    }
}

/* Highlights Card - G2 Style */
.sm-highlights-card {
    background: var(--sm-nav-bg);
    border: 1px solid var(--sm-nav-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.sm-highlights-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--sm-text-color);
}

.sm-highlights-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.sm-highlight-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sm-highlight-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sm-highlight-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* Review Summary Card - G2 Style */
.sm-review-summary-card {
    background: var(--sm-nav-bg);
    border: 1px solid var(--sm-nav-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.sm-summary-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--sm-text-color);
}

.sm-summary-rating {
    text-align: center;
}

.sm-summary-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--sm-text-color);
    line-height: 1;
    margin-bottom: 8px;
}

.sm-summary-stars {
    margin-bottom: 8px;
}

/* Remove comprehensive star rating system from this file to avoid conflicts with detail-page-software-reviews.css */

.sm-summary-count {
    font-size: 14px;
    color: var(--sm-text-light);
    font-weight: 500;
}

/* Sidebar Summary Breakdown */
.sm-summary-breakdown {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--sm-nav-border);
}

.sm-breakdown-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--sm-text-color);
}

.sm-breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sm-breakdown-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.sm-breakdown-label {
    min-width: 24px;
    font-weight: 500;
    color: var(--sm-text-color);
}

.sm-breakdown-bar {
    flex: 1;
    height: 6px;
    background: var(--sm-nav-border);
    border-radius: 3px;
    overflow: hidden;
}

.sm-breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sm-nav-active) 0%, #8b5cf6 100%);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.sm-breakdown-percent {
    min-width: 32px;
    text-align: right;
    font-weight: 500;
    color: var(--sm-text-light);
}

/* Summary Actions */
.sm-summary-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--sm-nav-border);
}

.sm-summary-link {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: rgba(59, 130, 246, 0.05);
    color: var(--sm-nav-active);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    border-left: none;
}

.sm-summary-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--sm-nav-active);
    text-decoration: none;
}

/* Main Content Area - G2 Style */
.sm-main-content {
    min-width: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.sm-tab-content {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Remove extra spacing from content sections in tab */
.sm-content-section#product-info,
.sm-content-section.active {
    margin-top: 0;
    padding-top: 0;
}

/* Specifically target the overview single wrapper */
.sm-overview-single {
    margin: 0;
    padding: 0;
}

.sm-detail-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Content Sections - Proper G2 spacing and scroll behavior */
.sm-content-section {
    margin-bottom: 48px;
    scroll-margin-top: 24px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.sm-content-section:last-child {
    margin-bottom: 24px;
}

.sm-content-section h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
    line-height: 1.3;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.sm-content-section h3 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    line-height: 1.4;
}

/* Section Visibility - All sections visible by default */
.sm-content-section {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Content section backgrounds and cards */
.sm-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.sm-section:last-child {
    margin-bottom: 0;
}

/* ======================================================================
   ACCESSIBILITY ENHANCEMENTS
   ====================================================================== */

/* Screen Reader Only Content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip Links */
.sm-skip-links {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 999999;
}

.sm-skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--sm-nav-active);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sm-skip-link:focus {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: 999999;
}

/* Focus Management */
.sm-content-section h1,
.sm-content-section h2,
.sm-content-section h3 {
    outline: none;
}

.sm-content-section h1:focus,
.sm-content-section h2:focus,
.sm-content-section h3:focus {
    outline: 2px solid var(--sm-nav-active);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --sm-nav-bg: #000000;
        --sm-nav-border: #ffffff;
        --sm-nav-text: #ffffff;
        --sm-nav-active: #00ff00;
        --sm-nav-hover: #333333;
        --sm-text-color: #000000;
        --sm-text-light: #333333;
    }
    
    .sm-nav-link {
        border: 2px solid var(--sm-nav-border);
    }
    
    .sm-nav-link.active {
        background: var(--sm-nav-active);
        color: #000000;
        border-color: var(--sm-nav-active);
    }
}

/* Smooth Scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Content transitions for G2-like feel */
.sm-content-section {
    transition: opacity 0.2s ease-in-out;
}

.sm-nav-link {
    position: relative;
}

.sm-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #003049 !important;
    transition: all 0.2s ease;
}

/* Loading states for smooth transitions */
.sm-content-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Hover effects for interactive elements */
.sm-section {
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.sm-section:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .sm-breakdown-fill {
        transition: none;
    }
    
    .sm-section {
        transition: none;
    }
    
    .sm-section:hover {
        transform: none;
    }
}

/* Write Review Button Styles - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */

.sm-visit-website-btn {
    background-color: #003049 !important;
    color: white !important;
    border: 2px solid #003049 !important;
    box-shadow: 0 2px 4px rgba(0, 48, 73, 0.2) !important;
    height: 44px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    min-width: 140px !important;
    max-width: 200px !important;
    line-height: 1 !important;
    flex-shrink: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.sm-visit-website-btn:hover {
    background-color: #004d73 !important;
    border-color: #004d73 !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(0, 48, 73, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Admin Reviewed badge */
.sm-admin-reviewed-badge, .admin-reviewed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}
.sm-admin-reviewed-badge .dashicons, .admin-reviewed-badge .dashicons { color: #10b981; font-size: 16px; line-height: 1; }

/* Tab Content */
.sm-software-detail .sm-tab-content {
    margin: 0 0 30px 0; /* Remove top margin, keep bottom */
    width: 100%;
}

.sm-software-detail .sm-tab-pane {
    display: none;
    animation: fadeIn 0.3s;
}

.sm-software-detail .sm-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ======================================================================
   MAIN CONTENT SECTIONS
   Unified styling for all content sections in the detail page
   ====================================================================== */

.sm-section {
    margin-bottom: 2rem;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.sm-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--sm-text-color);
    font-weight: 600;
}

.sm-section h3 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    line-height: 1.4;
}

/* Categories */
.sm-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sm-category-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #e8f0fe;
    color: var(--sm-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.sm-category-tag:hover {
    background: #d2e3fc;
    color: var(--sm-primary);
    text-decoration: none;
}

/* Clickable category links */
a.sm-category-tag.sm-category-link {
    cursor: pointer;
    text-decoration: none;
}

a.sm-category-tag.sm-category-link:hover {
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

a.sm-category-tag.sm-category-link:active {
    transform: translateY(0);
}

/* Video Container */
.sm-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--sm-radius);
}

.sm-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Content section backgrounds and cards */
.sm-section {
    margin-bottom: 2rem;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}

.sm-section:last-child {
    margin-bottom: 0;
}

/* Content transitions for G2-like feel */
.sm-section {
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.sm-section:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}


/* Integrations */
.sm-integrations-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
    margin-bottom: 1.5rem;
}

.sm-integrations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.sm-integration-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
}

.sm-integration-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sm-light-bg);
    border-radius: 50%;
    color: var(--sm-primary);
}

.sm-integration-name {
    font-weight: 500;
}

/* Write Review Section */
.sm-write-review-section {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
}

.sm-write-review-container {
    text-align: center;
}

/* Similar Software - MIGRATED to detail-page-similar-software.css */
/* All similar software styles have been moved to the dedicated CSS file */

/* Review Modal - Uses common-login-modal.css for two-column layout */
.sm-review-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sm-review-modal.active {
    display: flex;
}

/* Remove old single-column modal styles - now using two-column layout from common-login-modal.css */
/* .sm-review-modal-content styles removed - conflicts with new layout */

.sm-review-form-steps {
    padding: 2rem;
}

/* ======================================================================
   VENDOR INFORMATION SECTION
   Improved styling for vendor details with better organization
   ====================================================================== */

.software-vendor-information {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 24px;
    margin: 30px 0;
    width: 100%;
    box-sizing: border-box;
}

.vendor-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    color: #1f2937;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.vendor-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.vendor-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.vendor-detail-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.vendor-detail-icon {
    font-size: 18px;
    color: #4b5563;
    min-width: 24px;
    text-align: center;
}

.vendor-detail-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.vendor-detail-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vendor-detail-value {
    color: #1f2937;
    font-weight: 500;
}

.vendor-detail-value a {
    color: #003049;
    text-decoration: none;
    font-weight: 500;
}

.vendor-detail-value a:hover {
    text-decoration: underline;
}

.vendor-overview {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.vendor-overview h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    color: #1f2937;
}

.vendor-description {
    color: #4b5563;
    line-height: 1.6;
}

.vendor-pros-cons {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.vendor-pros-cons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.vendor-pros h4,
.vendor-cons h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
}

.vendor-pros h4 {
    color: #10b981;
}

.vendor-cons h4 {
    color: #ef4444;
}

.vendor-pros-list,
.vendor-cons-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vendor-pro-item,
.vendor-con-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 4px;
}

.vendor-pro-item {
    background: rgba(16, 185, 129, 0.05);
}

.vendor-con-item {
    background: rgba(239, 68, 68, 0.05);
}

.vendor-pro-icon,
.vendor-con-icon {
    flex-shrink: 0;
    font-weight: bold;
}

.vendor-pro-text,
.vendor-con-text {
    color: #4b5563;
    line-height: 1.5;
}

/* Pros & Cons Section */
.sm-pros-cons-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--sm-shadow);
    border: 1px solid #e5e7eb;
    padding: 24px 28px;
    margin: 30px 0;
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .sm-pros-cons-section {
        padding: 16px 16px;
        margin: 20px 0;
    }
    
    .sm-pros-cons-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .sm-pros-cons-section {
        padding: 12px 12px;
        margin: 15px 0;
    }
    
    .sm-pros-cons-section h2 {
        font-size: 16px;
        margin-bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.sm-pros-cons-section h2 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #111827;
    gap: 15px;
    flex-wrap: wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

.sm-pros-cons-section h2 span:first-child {
    flex: 1 1 auto;
    min-width: 200px;
}

/* Title and info wrapper styling */
.sm-pros-cons-title {
    display: block;
    flex: 1 1 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.sm-how-determined {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sm-how-determined i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clickable link styling */
.sm-how-determined-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #2b6cb0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    margin: -4px -8px;
}

.sm-how-determined-link:hover {
    background-color: rgba(43, 108, 176, 0.1);
    color: #1e5a96;
    text-decoration: underline;
}

.sm-how-determined-link:focus {
    outline: 2px solid #2b6cb0;
    outline-offset: 2px;
}

.sm-how-determined-link i {
    font-size: 16px;
}

/* Tooltip Modal Styles */
.sm-tooltip-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sm-tooltip-modal-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sm-tooltip-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sm-tooltip-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.sm-tooltip-header {
    margin-bottom: 20px;
}

.sm-tooltip-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.sm-tooltip-body {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

.sm-tooltip-body p {
    margin: 0 0 12px 0;
}

.sm-tooltip-body p:last-child {
    margin-bottom: 0;
}

.sm-tooltip-body ul {
    margin: 12px 0;
    padding-left: 24px;
    list-style-type: none;
}

.sm-tooltip-body li {
    margin: 8px 0;
    position: relative;
    padding-left: 16px;
}

.sm-tooltip-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: 700;
}

.sm-tooltip-body strong {
    color: #111827;
}

/* Info icon styles */
.sm-pros-cons-section h2 .sm-info-icon,
.sm-pros-cons-section h2 [class*="info"],
.sm-pros-cons-section h2 svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
}

@media (max-width: 768px) {
    .sm-pros-cons-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
        gap: 10px;
    }
    
    .sm-pros-cons-title {
        flex: 1 1 100%;
    }
    
    .sm-how-determined {
        flex: 0 1 auto;
        font-size: 13px;
    }
    
    .sm-pros-cons-section h2 .sm-info-icon,
    .sm-pros-cons-section h2 [class*="info"],
    .sm-pros-cons-section h2 svg {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
}

@media (max-width: 480px) {
    .sm-pros-cons-section h2 {
        font-size: 16px;
        margin-bottom: 12px;
        gap: 8px;
    }
    
    .sm-pros-cons-title {
        flex: 1 1 100%;
    }
    
    .sm-how-determined {
        flex: 1 1 100%;
        font-size: 12px;
        margin-top: 4px;
    }
    
    .sm-pros-cons-section h2 .sm-info-icon,
    .sm-pros-cons-section h2 [class*="info"],
    .sm-pros-cons-section h2 svg {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }
}

.sm-pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .sm-pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .sm-pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 12px;
    }
}

.sm-pros-container,
.sm-cons-container {
    padding: 0;
}

.sm-pros-container h3,
.sm-cons-container h3 {
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.sm-pros-container h3 { color: var(--sm-pros-color); }
.sm-cons-container h3 { color: var(--sm-cons-color); }

.sm-pro-icon,
.sm-con-icon { margin-right: 8px; }

/* Better list spacing */
.sm-feature-list { display: flex; flex-direction: column; gap: 12px; }

/* Card-style items for readability */
.sm-feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.sm-pros-container .sm-feature-item { border-left: 4px solid var(--sm-pros-color); }
.sm-cons-container .sm-feature-item { border-left: 4px solid var(--sm-cons-color); }

.sm-feature-item:hover { box-shadow: var(--sm-shadow-md); transform: translateY(-1px); }

.sm-feature-text {
    font-size: 15px;
    color: #111827;
    font-weight: 500;
    text-decoration: none;
}

.sm-feature-item:hover .sm-feature-text { color: #1d4ed8; text-decoration: underline; }

/* Count pill */
.sm-selection-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-width: 28px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #f3f4f6;
    color: #111827;
}

.sm-pros-container .sm-selection-count { background: rgba(72, 187, 120, 0.12); color: #047857; }
.sm-cons-container .sm-selection-count { background: rgba(245, 101, 101, 0.12); color: #b91c1c; }

.sm-no-features { color: var(--sm-text-light); font-style: italic; }

 .sm-reviews-verification { margin-top: 20px; padding-top: 20px; border-top: none; }

/* Reference-style Pros & Cons panels (green/red backgrounds with bullet icons) */
.sm-pros-container,
.sm-cons-container {
    border-radius: 10px;
    padding: 16px 16px 12px 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}
.sm-pros-container { background: #ecfdf5; border-color: #bbf7d0; }
.sm-cons-container { background: #ffe4e6; border-color: #fecaca; }

/* Headings inside panels */
.sm-pros-container h3,
.sm-cons-container h3 { margin: 0 0 10px 0; }
.sm-pros-container h3 { color: #047857; }
.sm-cons-container h3 { color: #b91c1c; }

/* Items become clean bullet list with left icon and subtle count pill */
.sm-pros-cons-section .sm-feature-list { 
    gap: 10px;
    display: flex;
    flex-direction: column;
}
.sm-pros-cons-section .sm-feature-item {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 6px;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}
.sm-pros-cons-section .sm-feature-text { text-decoration: none; color: #1f2937; flex: 1 1 auto; word-break: break-word; overflow-wrap: break-word; }

/* Bullet icons */
.sm-pros-container .sm-feature-item::before,
.sm-cons-container .sm-feature-item::before {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    margin-right: 6px;
    flex: 0 0 18px;
    min-width: 18px;
}
.sm-pros-container .sm-feature-item::before { content: '✓'; background: #d1fae5; color: #047857; font-weight: 700; }
.sm-cons-container .sm-feature-item::before { content: '✖'; background: #fee2e2; color: #b91c1c; font-weight: 700; }

/* Count pills subtle on right */
.sm-pros-cons-section .sm-selection-count {
    background: rgba(0,0,0,0.06);
    color: #374151;
    border-radius: 999px;
    min-width: 28px; height: 22px; padding: 0 8px; font-size: 12px; font-weight: 700;
    margin-left: auto; /* push count to the far right */
    flex-shrink: 0;
}
.sm-pros-container .sm-selection-count { background: rgba(4, 120, 87, 0.12); color: #065f46; }
.sm-cons-container .sm-selection-count { background: rgba(185, 28, 28, 0.12); color: #7f1d1d; }

/* Mobile responsive - Pros and Cons items */
@media (max-width: 768px) {
    .sm-pros-cons-section .sm-feature-item {
        padding: 10px 8px;
        gap: 8px;
    }
    
    .sm-pros-cons-section .sm-feature-text {
        font-size: 14px;
    }
    
    .sm-pros-cons-section .sm-selection-count {
        min-width: 24px;
        height: 20px;
        padding: 0 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .sm-pros-cons-section .sm-feature-item {
        padding: 8px 4px;
        gap: 6px;
    }
    
    .sm-pros-cons-section .sm-feature-item::before {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
    
    .sm-pros-cons-section .sm-feature-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .sm-pros-cons-section .sm-selection-count {
        min-width: 22px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }
}
.sm-pros-container .sm-selection-count { background: rgba(4, 120, 87, 0.12); color: #065f46; }
.sm-cons-container .sm-selection-count { background: rgba(185, 28, 28, 0.12); color: #7f1d1d; }

/* Review Verification Styles - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */

/* Reviews Tab Visibility Fix - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */

/* Fix theme conflicts */
.sm-software-detail *,
.sm-software-detail *::before,
.sm-software-detail *::after {
    box-sizing: border-box;
}

.sm-software-detail h1,
.sm-software-detail h2,
.sm-software-detail h3,
.sm-software-detail h4,
.sm-software-detail h5,
.sm-software-detail h6 {
    margin-top: 0;
    line-height: 1.2;
    font-family: inherit;
}

.sm-software-detail ul,
.sm-software-detail ol {
    margin-top: 0;
    margin-bottom: 1rem;
}

.sm-software-detail .sm-detail-tabs a:focus {
    outline: none;
    text-decoration: none;
}

.sm-software-detail button {
    cursor: pointer;
}

/* G2-Style Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .sm-detail-grid {
        grid-template-columns: 240px 1fr;
        gap: 24px;
        padding: 16px;
    }
    
    :root {
        --sm-sidebar-width: 240px;
        --sm-grid-gap: 24px;
    }
}

/* Mobile and Tablet Layout - G2 Style */
@media (max-width: 991px) {
    .sm-detail-grid {
        display: block;
        padding: 16px;
        max-width: 100%;
        gap: 0;
    }
    
    .sm-left-sidebar {
        position: static !important; /* disable sticky on mobile to avoid layout shift */
        top: auto !important;
        margin-bottom: 24px;
        width: 100%;
        height: auto !important;
        will-change: auto; /* remove optimization on mobile */
        contain: none; /* remove layout containment on mobile */
    }
    
    .sm-nav-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 16px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 0;
        font-size: 16px;
        font-weight: 500;
        color: #374151;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .sm-nav-toggle:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }
    
    .sm-nav-toggle::after {
        content: '▼';
        transition: transform 0.2s ease;
        font-size: 12px;
        color: #6b7280;
    }
    
    .sm-nav-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    .sm-nav-toggle-icon {
        display: none; /* Use ::after pseudo-element instead */
    }
    
    .sm-sidebar-nav {
        position: static;
        top: auto;
        margin-bottom: 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    
    .sm-sidebar-nav.expanded {
        max-height: 500px;
    }
    
    .sm-nav-toggle-icon {
        display: none; /* disable old toggle icon */
    }
    
    .sm-highlights-card {
        position: static;
        top: auto;
        margin-top: 0;
    }
    
    /* .sm-review-summary-card - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */
    
    .sm-content-section {
        scroll-margin-top: 16px;
        margin-bottom: 48px;
        min-height: 50vh;
    }
    
    .sm-content-section:last-child {
        min-height: auto;
    }
    
    .sm-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .sm-content-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    /* Overview styles moved to overview-section.css */
    
    .vendor-details,
    .vendor-pros-cons-container {
        grid-template-columns: 1fr;
    }
}

/* Traditional Responsive Breakpoints */
@media (max-width: 1024px) {
    /* Overview grid styles moved to overview-section.css */
    
    .sm-pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sm-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sm-header-left {
        width: 200px;
        min-width: 200px;
    }
    
    .sm-software-logo {
        max-height: 120px;
    }
    
    .sm-header-right {
        width: 100%;
        margin-top: 1rem;
        justify-content: space-between;
        display: flex;
        flex-direction: row;
        gap: 12px;
    }
    
    .sm-header-right .sm-write-review-btn,
    .sm-header-right .sm-visit-website-btn {
        flex: 1;
        min-width: 130px !important;
        height: 42px !important;
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
    
    .sm-header-actions {
        flex-wrap: wrap;
    }
    
    .sm-badge-top {
        width: 60px;
        top: -15px;
        right: -15px;
    }
    
    /* Button sizing handled by main responsive rules */
    
    .sm-feature-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sm-feature-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .sm-similar-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .vendor-details,
    .vendor-pros-cons-container {
        grid-template-columns: 1fr;
    }
    
    .sm-detail-tabs a {
        padding: 0.5rem 1rem;
    }
}

/* Extra small devices: Stack buttons side-by-side with adjusted sizing */
@media (max-width: 600px) {
    .sm-header-right {
        gap: 10px;
    }
    
    .sm-header-right .sm-write-review-btn,
    .sm-header-right .sm-visit-website-btn {
        padding: 10px 14px !important;
        font-size: 13px !important;
        height: 40px !important;
        min-width: 110px !important;
    }
}

@media (max-width: 480px) {
    .sm-software-detail {
        padding: 0 0.5rem;
    }
    
    .sm-header-right {
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }
    
    .sm-header-right .sm-write-review-btn,
    .sm-header-right .sm-visit-website-btn {
        flex: 1;
        min-width: 100px !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
        height: 40px !important;
    }
    
    /* Button sizing handled by main responsive rules */
    
    .sm-similar-grid {
        grid-template-columns: 1fr;
    }
}



/* ======================================================================
   CRITICAL OVERRIDES - Merged from software-detail-template-overrides.css
   High priority CSS for ensuring proper layout and design consistency
   ====================================================================== */

/* ======================================================================
   SOFTWARE DETAIL TEMPLATE - CRITICAL OVERRIDES
   High priority CSS for ensuring proper layout and design consistency
   ====================================================================== */

/* SWREV REVIEWS SECTION - CRITICAL OVERRIDES - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */

/* SIMILAR SOFTWARE SECTION - MIGRATED to detail-page-similar-software.css on 2025-10-11 */
/* All similar software styles have been moved to the dedicated CSS file */

/* SAVE TO LISTS BUTTON */
.sm-save-to-lists-btn {
    background: #003049 !important;
    color: #ffffff !important;
    border: 2px solid #003049 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 48, 73, 0.2) !important;
}

.sm-save-to-lists-btn:hover {
    background: #004d73 !important;
    border-color: #004d73 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 48, 73, 0.3) !important;
}

.sm-save-to-lists-btn:active {
    background: #002137 !important;
    border-color: #002137 !important;
    transform: translateY(0px) !important;
}

.sm-save-to-lists-btn:focus {
    outline: 2px solid #003049 !important;
    outline-offset: 2px !important;
}

.sm-save-to-lists-btn .icon {
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Ensure button styling overrides any theme styles */
body .sm-save-to-lists-btn,
.wp-block-buttons .sm-save-to-lists-btn,
.entry-content .sm-save-to-lists-btn {
    background: #003049 !important;
    color: #ffffff !important;
    border: 2px solid #003049 !important;
}

body .sm-save-to-lists-btn:hover,
.wp-block-buttons .sm-save-to-lists-btn:hover,
.entry-content .sm-save-to-lists-btn:hover {
    background: #004d73 !important;
    border-color: #004d73 !important;
    color: #ffffff !important;
}

/* ======================================================================
   HORIZONTAL STICKY TABS NAVIGATION - Desktop Layout Enhancement
   Added: 2025-10-18
   Converts sidebar navigation to horizontal sticky tabs for better UX
   ====================================================================== */

/* Admin bar-safe offset variables */
:root { 
    --sh-admin-bar: 0px; 
}

body.admin-bar { 
    --sh-admin-bar: 32px; 
}

@media (max-width: 782px) {
    body.admin-bar { 
        --sh-admin-bar: 46px; 
    }
}

/* Desktop Layout: Single-column with horizontal tabs */
@media (min-width: 1024px) {
    /* Fix ALL parent containers to allow sticky positioning - CRITICAL */
    body,
    html,
    .sm-software-detail,
    .sm-software-detail.g2-style,
    .sm-software-detail.full-width,
    .software-detail-wrapper,
    .entry-content,
    .site-content,
    main,
    article {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        transform: none !important;
        contain: none !important;
        filter: none !important;
        perspective: none !important;
        will-change: auto !important;
    }
    
    /* Ensure parent container allows full width with white background */
    .sm-software-detail,
    .sm-software-detail.g2-style,
    .sm-software-detail.full-width {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    
    /* Two-column layout: sidebar on left, content on right - FULL WIDTH */
    body .sm-software-detail .sm-detail-grid,
    .sm-software-detail .sm-detail-grid,
    .sm-detail-grid {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        grid-template-rows: auto !important;
        gap: 32px !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    
    /* Hide mobile toggle on desktop */
    .sm-nav-toggle {
        display: none !important;
    }
    
    /* Sidebar on left with vertical stack of cards - CLEAN WHITE BACKGROUND */
    body .sm-software-detail .sm-left-sidebar,
    .sm-software-detail .sm-left-sidebar,
    .sm-detail-grid .sm-left-sidebar,
    .sm-left-sidebar {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        padding: 0 !important;
        border: none !important;
        border-right: none !important;
        background: transparent !important;
        background-color: transparent !important;
        width: 100% !important;
        position: sticky !important;
        top: calc(var(--sh-admin-bar) + 80px) !important;
        align-self: start !important;
        max-height: calc(100vh - var(--sh-admin-bar) - 100px) !important;
        overflow-y: auto !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    
    /* Cards styling */
    .sm-highlights-card,
    .sm-review-summary-card {
        display: block !important;
        margin: 0 !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        padding: 20px !important;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Main content takes remaining space */
    body .sm-software-detail .sm-main-content,
    .sm-software-detail .sm-main-content,
    .sm-main-content {
        width: 100% !important;
        min-width: 0 !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
    }
    
    /* Ensure main content spans full width */
    .sm-main-content {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
    
    /* Horizontal tabs container - ENHANCED STICKY */
    body .sm-top-tabs,
    .sm-software-detail .sm-top-tabs,
    nav.sm-top-tabs {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: var(--sh-admin-bar) !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e5e7eb !important;
        margin: 0 0 32px 0 !important;
        padding: 0 20px !important;
        transition: box-shadow 0.2s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
        left: 0 !important;
        right: 0 !important;
    }

/* Shadow effect when stuck */
.sm-top-tabs.is-stuck {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Horizontal navigation list */
.sm-top-tabs .sm-nav-list {
    display: flex !important;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Navigation list items */
.sm-top-tabs .sm-nav-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: none !important;
}

/* Navigation links - reuse existing tab styling */
.sm-top-tabs .sm-nav-link {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
    padding: 14px 20px !important;
    color: #4b5563 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent !important;
    border-left: none !important;
    transition: all 0.2s ease !important;
    font-size: 15px !important;
    background: transparent !important;
}

.sm-top-tabs .sm-nav-link:hover {
    color: #003049 !important;
    background: #f9fafb !important;
}

/* Active tab styling */
.sm-top-tabs .sm-nav-link.active,
.sm-top-tabs .sm-nav-link[aria-current="true"] {
    color: #003049 !important;
    border-bottom-color: #003049 !important;
    font-weight: 600 !important;
    background: rgba(0, 48, 73, 0.05) !important;
}

.sm-top-tabs .sm-nav-link.active:hover {
    background: rgba(0, 48, 73, 0.1) !important;
}

/* Click interaction */
.sm-top-tabs .sm-nav-link.clicking {
    background: rgba(0, 48, 73, 0.1) !important;
    transform: translateY(1px);
}

/* Focus styles for accessibility */
.sm-top-tabs .sm-nav-link:focus {
    outline: 2px solid #003049 !important;
    outline-offset: -2px !important;
    background: rgba(0, 48, 73, 0.05) !important;
}

.sm-top-tabs .sm-nav-link:focus-visible {
    outline: 2px solid #003049 !important;
    outline-offset: -2px !important;
}

}

/* Mobile: Keep existing behavior (≤1023px) */
@media (max-width: 1023px) {
    /* Ensure sticky doesn't interfere on mobile */
    .sm-top-tabs {
        position: static !important;
        box-shadow: none !important;
    }
    
    /* Mobile keeps collapsible sidebar behavior */
    .sm-left-sidebar {
        display: block !important;
    }
}

/* Sentinel element for IntersectionObserver (no visual styling needed) */
#sm-tabs-sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
    margin: 0;
    padding: 0;
}


/* ========================================
   ROADMAP INTEGRATION STYLES
   ======================================== */

/* Navigation Link Styling */
.sm-roadmap-link {
    display: flex !important;
    align-items: center;
    gap: 6px;
    position: relative;
}

.sm-roadmap-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sm-roadmap-link .sm-new-badge {
    display: inline-block;
    padding: 2px 6px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Hero Button Styling */
.sm-roadmap-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sm-roadmap-btn:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    text-decoration: none;
}

.sm-roadmap-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sm-roadmap-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .sm-roadmap-link .sm-new-badge {
        display: none; /* Hide badge on mobile to save space */
    }
}

/* Make sure button fits in header */
.sm-header-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 992px) {
    .sm-header-right {
        flex-direction: column;
        width: 100%;
    }
    
    .sm-roadmap-btn,
    .sm-write-review-btn,
    .sm-visit-website-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Community Guidelines Widget */
.sm-guidelines-widget {
    background: linear-gradient(135deg, #003049 0%, #0a3d5e 100%);
    border-radius: 12px;
    padding: 0;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 48, 73, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sm-guidelines-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 48, 73, 0.3);
}

.sm-guidelines-widget .sm-widget-content {
    padding: 18px 20px;
    color: #ffffff;
}

.sm-guidelines-widget .sm-widget-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.sm-guidelines-widget .sm-widget-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #ffffff;
    flex-shrink: 0;
    margin-top: 2px;
}

.sm-guidelines-widget .sm-widget-text {
    flex: 1;
}

.sm-guidelines-widget .sm-widget-text h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.sm-guidelines-widget .sm-widget-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.sm-guidelines-widget .sm-widget-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sm-guidelines-widget .sm-widget-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(2px);
    color: #ffffff;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sm-guidelines-widget {
        margin-top: 16px;
    }
    
    .sm-guidelines-widget .sm-widget-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .sm-guidelines-widget {
        margin-top: 20px;
    }
    
    .sm-guidelines-widget .sm-widget-content {
        padding: 16px 18px;
    }
    
    .sm-guidelines-widget .sm-widget-header {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .sm-guidelines-widget .sm-widget-icon {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
    
    .sm-guidelines-widget .sm-widget-text h4 {
        font-size: 15px;
    }
    
    .sm-guidelines-widget .sm-widget-text p {
        font-size: 12px;
    }
    
    .sm-guidelines-widget .sm-widget-link {
        font-size: 12px;
        padding: 7px 14px;
    }
}

/* Roadmap Embed Section - Matching Overview/FAQ section styling */
.sm-roadmap-embed-section {
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
}

.sm-roadmap-embed-section .sm-section-header {
    text-align: left;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8e8e8;
}

.sm-roadmap-embed-section .sm-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.sm-roadmap-embed-section .sm-section-title .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #667eea;
}

.sm-roadmap-embed-section .sm-section-description {
    font-size: 16px;
    color: #64748b;
    max-width: 100%;
    margin: 0;
    line-height: 1.6;
}

/* Roadmap CTA Card - Matching User Review Style */
.sm-roadmap-cta-card {
    background: #ffffff;
    border: 1px solid rgba(0, 48, 73, 0.15);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 48, 73, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sm-roadmap-cta-card:hover {
    border-color: rgba(0, 48, 73, 0.25);
    box-shadow: 0 6px 20px rgba(0, 48, 73, 0.12);
    transform: translateY(-2px);
}

.sm-roadmap-cta-content {
    display: grid;
    grid-template-columns: 260px 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 140px;
    overflow: visible;
}

.sm-roadmap-cta-icon {
    background: #003049;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 24px;
}

.sm-roadmap-cta-icon .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    color: #ffffff;
}

.sm-roadmap-cta-text {
    flex: 1;
    padding: 24px 0;
}

.sm-roadmap-cta-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.sm-roadmap-cta-text p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.sm-roadmap-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #003049;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: 24px;
}

.sm-roadmap-cta-button:hover {
    background: #00243a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 48, 73, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.sm-roadmap-cta-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Roadmap Preview Note */
.sm-roadmap-preview-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(0, 48, 73, 0.05);
    border: 1px solid rgba(0, 48, 73, 0.1);
    border-radius: 8px;
    color: #003049;
    font-size: 14px;
}

.sm-roadmap-preview-note .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #003049;
}

.sm-roadmap-preview-note p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sm-roadmap-embed-section {
        padding: 16px;
    }
    
    .sm-roadmap-embed-section .sm-section-title {
        font-size: 24px;
    }
    
    .sm-roadmap-embed-section .sm-section-title .dashicons {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
    
    .sm-roadmap-embed-section .sm-section-description {
        font-size: 14px;
    }
    
    .sm-roadmap-cta-card {
        padding: 0;
    }
    
    .sm-roadmap-cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }
    
    .sm-roadmap-cta-icon {
        width: 100%;
        min-height: 100px;
        padding: 20px;
    }
    
    .sm-roadmap-cta-icon .dashicons {
        font-size: 42px;
        width: 42px;
        height: 42px;
    }
    
    .sm-roadmap-cta-text {
        padding: 20px;
    }
    
    .sm-roadmap-cta-text h3 {
        font-size: 20px;
    }
    
    .sm-roadmap-cta-text p {
        font-size: 14px;
    }
    
    .sm-roadmap-cta-button {
        width: calc(100% - 40px);
        justify-content: center;
        margin: 0 20px 20px 20px;
    }
    
    .sm-roadmap-preview-note {
        flex-direction: row;
        text-align: center;
        padding: 12px;
    }
}

/* Discussion Link in Navigation */
.sm-discussion-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-discussion-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.sm-discussion-link:hover {
    color: #667eea;
}

/* Fix for navigation items with external links */
.sm-nav-link.sm-discussion-link,
.sm-nav-link.sm-roadmap-link {
    text-decoration: none;
}

.sm-nav-link.sm-discussion-link:hover,
.sm-nav-link.sm-roadmap-link:hover {
    text-decoration: none;
    color: #667eea;
}

/* Discussion Embed Section - Matching Overview/FAQ section styling */
.sm-discussion-embed-section {
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
}

.sm-discussion-embed-section .sm-section-header {
    text-align: left;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8e8e8;
}

.sm-discussion-embed-section .sm-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.sm-discussion-embed-section .sm-section-title .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #10b981;
}

.sm-discussion-embed-section .sm-section-description {
    font-size: 16px;
    color: #64748b;
    max-width: 100%;
    margin: 0;
    line-height: 1.6;
}

/* Discussion CTA Card */
.sm-discussion-cta-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    margin-bottom: 24px;
    overflow: hidden;
}

.sm-discussion-cta-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    color: #ffffff;
    overflow: visible;
}

.sm-discussion-cta-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-discussion-cta-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ffffff;
}

.sm-discussion-cta-text {
    flex: 1;
}

.sm-discussion-cta-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.sm-discussion-cta-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.sm-discussion-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.sm-discussion-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
}

.sm-discussion-features li .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.sm-discussion-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #ffffff;
    color: #10b981;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-top: 20px;
}

.sm-discussion-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #059669;
    text-decoration: none;
}

.sm-discussion-cta-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Discussion Preview Note */
.sm-discussion-preview-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
}

.sm-discussion-preview-note .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #10b981;
}

.sm-discussion-preview-note p {
    margin: 0;
}

/* Responsive Design for Discussion */
@media (max-width: 768px) {
    .sm-discussion-embed-section {
        padding: 16px;
    }
    
    .sm-discussion-embed-section .sm-section-title {
        font-size: 24px;
    }
    
    .sm-discussion-embed-section .sm-section-title .dashicons {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
    
    .sm-discussion-embed-section .sm-section-description {
        font-size: 14px;
    }
    
    .sm-discussion-cta-card {
        padding: 24px;
    }
    
    .sm-discussion-cta-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .sm-discussion-cta-icon {
        width: 60px;
        height: 60px;
    }
    
    .sm-discussion-cta-icon .dashicons {
        font-size: 36px;
        width: 36px;
        height: 36px;
    }
    
    .sm-discussion-cta-text h3 {
        font-size: 20px;
    }
    
    .sm-discussion-cta-text p {
        font-size: 14px;
    }
    
    .sm-discussion-features li {
        justify-content: center;
    }
    
    .sm-discussion-cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .sm-discussion-preview-note {
        flex-direction: column;
        text-align: center;
    }
}

/* ======================================================================
   MOBILE RESPONSIVE STYLES - HEADER SECTION
   ====================================================================== */

/* Tablet - Header Layout (769px to 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .sm-header-content {
        flex-wrap: wrap;
        gap: 20px;
        padding: 15px;
    }
    
    .sm-header-left {
        width: 150px;
        min-width: 150px;
        padding: 10px;
    }
    
    .sm-software-logo {
        max-height: 120px;
    }
    
    .sm-header-main {
        flex: 1;
        min-width: 300px;
    }
    
    .sm-header-main h1 {
        font-size: 26px;
    }
    
    .sm-header-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .sm-header-right .sm-write-review-btn,
    .sm-header-right .sm-visit-website-btn,
    .sm-header-right .sm-action-button {
        flex: 1 1 calc(50% - 5px);
        min-width: 180px !important;
        height: 44px !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
}

/* Mobile - Logo Next to Software Name */
@media (max-width: 768px) {
    /* Header content - wrap to allow stacking */
    .sm-header-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 15px !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Top row: Logo + Name/Rating */
    .sm-header-left {
        width: 80px !important;
        min-width: 80px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }
    
    .sm-software-logo {
        width: 80px !important;
        height: 80px !important;
        max-height: 80px !important;
        object-fit: contain !important;
    }
    
    /* Main content - takes remaining space in first row */
    .sm-header-main {
        flex: 1 !important;
        text-align: left !important;
        order: 2 !important;
        min-width: 0 !important;
    }
    
    .sm-header-main h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .sm-header-byline {
        justify-content: flex-start;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .sm-header-rating-section {
        justify-content: flex-start;
        gap: 8px;
        margin: 8px 0;
        flex-wrap: wrap;
    }
    
    .sm-header-stars {
        font-size: 16px;
    }
    
    .sm-header-review-count {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .sm-rating-type {
        font-size: 12px;
        display: inline-block;
    }
    
    /* Hide actions from main section on mobile */
    .sm-header-actions {
        display: none !important;
    }
    
    /* Badge positioning */
    .sm-badge-top {
        width: 60px;
        top: -10px;
        right: -10px;
    }
    
    /* Right section - full width below, contains all buttons */
    .sm-header-right {
        width: 100%;
        order: 3;
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        overflow: visible !important;
        position: relative !important;
        z-index: 5 !important;
    }
    
    /* All buttons in right section - full width and stacked */
    .sm-header-right .sm-write-review-btn,
    .sm-header-right .sm-visit-website-btn,
    .sm-header-right .sm-action-button,
    .sm-header-right .save-button,
    .sm-header-right .sm-compare-toggle {
        width: 100% !important;
        min-width: auto !important;
        justify-content: center;
        margin: 0 !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    /* Ensure compare button is always visible on mobile */
    .sm-compare-toggle {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 10 !important;
        background: #ffffff !important;
        color: #003049 !important;
        border: 2px solid #003049 !important;
    }
    
    /* Compare button hover state on mobile */
    .sm-compare-toggle:hover {
        background: #f0f7ff !important;
        color: #002137 !important;
        border-color: #004d73 !important;
    }
    
    /* Compare button active state on mobile */
    .sm-compare-toggle.is-active {
        background: #10b981 !important;
        color: #ffffff !important;
        border-color: #10b981 !important;
    }
    
    /* Compare button icon on mobile */
    .sm-compare-toggle .dashicons {
        font-size: 16px !important;
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Compare button label on mobile */
    .sm-compare-toggle .sm-compare-label {
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    /* Claimed badge - full width */
    .sm-header-right .sm-action-button.claimed-button {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
}

/* Extra Small Mobile - Even More Compact */
@media (max-width: 480px) {
    .sm-header-content {
        gap: 12px;
        padding: 12px;
    }
    
    /* Smaller logo on very small screens */
    .sm-header-left {
        width: 70px;
        min-width: 70px;
    }
    
    .sm-software-logo {
        width: 70px;
        height: 70px;
        max-height: 70px;
    }
    
    .sm-header-main h1 {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .sm-header-byline {
        font-size: 13px;
    }
    
    .sm-header-rating-section {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }
    
    .sm-header-review-count {
        font-size: 13px;
        width: 100%;
    }
    
    .sm-badge-top {
        width: 50px;
        top: -8px;
        right: -8px;
    }
    
    .sm-header-right {
        margin-top: 12px;
        gap: 8px;
    }
    
    .sm-write-review-btn,
    .sm-visit-website-btn,
    .sm-compare-toggle {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    /* Ensure compare button is properly sized on extra small screens */
    .sm-compare-toggle {
        width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    
    .sm-compare-toggle .dashicons {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
    }
    
    .sm-compare-toggle .sm-compare-label {
        font-size: 13px !important;
    }
}

/* New Badge for Tabs */
.sm-new-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 10px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(238, 90, 111, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(238, 90, 111, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 3px 8px rgba(238, 90, 111, 0.5);
    }
}

/* Hover effect for tabs with New badge */
.sm-nav-link:hover .sm-new-badge {
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
    transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sm-new-badge {
        font-size: 9px;
        padding: 2px 6px;
        margin-left: 6px;
    }
}

/* UNIFIED BUTTON SIZING - Make all header buttons the same size */
.sm-header-right .sm-write-review-btn,
.sm-header-right .sm-visit-website-btn,
.sm-header-right .sm-save-to-lists-btn,
.sm-header-right .sm-compare-toggle,
.sm-header-right .sm-action-button {
    height: 44px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 130px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* Icon sizing consistency */
.sm-header-right .sm-action-button .dashicons,
.sm-header-right .sm-action-button i.dashicons,
.sm-header-right .sm-save-to-lists-btn .dashicons,
.sm-header-right .sm-compare-toggle .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
}

/* Mobile responsive - keep buttons same size on mobile too */
@media (max-width: 768px) {
    .sm-header-right .sm-write-review-btn,
    .sm-header-right .sm-visit-website-btn,
    .sm-header-right .sm-save-to-lists-btn,
    .sm-header-right .sm-compare-toggle,
    .sm-header-right .sm-action-button {
        height: 42px !important;
        padding: 10px 18px !important;
        font-size: 13px !important;
        min-width: 110px !important;
    }
}

@media (max-width: 480px) {
    .sm-header-right .sm-write-review-btn,
    .sm-header-right .sm-visit-website-btn,
    .sm-header-right .sm-save-to-lists-btn,
    .sm-header-right .sm-compare-toggle,
    .sm-header-right .sm-action-button {
        height: 40px !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
        min-width: 100px !important;
    }
}
