/* WooCommerce Support System - Premium Frontend Styles - ENHANCED */
.wss-support-option {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin: 25px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Message status indicators */
.wss-message-status {
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.7;
}
.wss-floating-chat-btn.wss-has-new-messages {
    animation: wss-pulse-notification 2s infinite;
}

@keyframes wss-pulse-notification {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
/* Notification sound visual feedback */
.wss-floating-chat-btn.wss-new-message::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: wss-pulse 2s infinite;
}

@keyframes wss-pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.8);
        opacity: 1;
    }
}

/* Sound wave animation for chat button */
.wss-chat-btn-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #007cba;
    animation: wss-sound-wave 3s infinite;
    opacity: 0;
}

@keyframes wss-sound-wave {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
}
/* MINI Support Option Styles */
.wss-support-option {
    background: #f8f9fa;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 8px 0;
    transition: all 0.2s ease;
}

.wss-support-option.wss-selected {
    border-color: #007cba;
    background: #e6f3ff;
}

.wss-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

.wss-plan-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.wss-checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1px solid #999;
    border-radius: 3px;
    background: white;
    flex-shrink: 0;
}

#add_support_plan:checked + .wss-checkbox-custom {
    background: #007cba;
    border-color: #007cba;
}

#add_support_plan:checked + .wss-checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 10px;
    display: block;
    text-align: center;
    line-height: 14px;
}

.wss-plan-title {
    font-size: 12px;
}

.wss-price {
    color: #007cba;
    font-size: 12px;
    font-weight: 600;
}

.wss-support-desc {
    margin: 4px 0 0 24px;
    color: #666;
    font-size: 10px;
    line-height: 1.2;
}

.wss-support-desc .dashicons {
    font-size: 10px;
    width: 10px;
    height: 10px;
}
.wss-message-status.delivered {
    color: #999;
}

.wss-message-status.read {
    color: #4fc3f7;
}

/* Notification badge */
.wss-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Desktop notification */
.wss-desktop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 15px;
    max-width: 300px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid #007cba;
    cursor: pointer;
}

.wss-desktop-notification.show {
    transform: translateX(0);
}

.wss-desktop-notification .wss-notification-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.wss-desktop-notification .wss-notification-content h5 {
    margin: 0 0 5px 0;
    color: #333;
}

.wss-desktop-notification .wss-notification-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.wss-support-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wss-support-option.wss-selected {
    border-color: #007cba;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
    box-shadow: 0 5px 20px rgba(0, 124, 186, 0.15);
    transform: translateY(-2px);
}

.wss-support-option.wss-selected::before {
    opacity: 1;
}

.wss-support-checkbox {
    margin-bottom: 12px;
}

.wss-checkbox-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.wss-support-option.wss-selected .wss-checkbox-label {
    color: #007cba;
}

.wss-checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
}

#add_support_plan {
    display: none;
}

#add_support_plan:checked + .wss-checkbox-custom {
    background: #007cba;
    border-color: #007cba;
}

#add_support_plan:checked + .wss-checkbox-custom::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wss-plan-title {
    flex: 1;
    font-weight: 600;
}

.wss-price {
    font-weight: 600;
    color: #28a745;
    font-size: 11px;
    white-space: nowrap;
}

/* Force small size for WooCommerce price amounts */
.wss-price .woocommerce-Price-amount,
.wss-price .amount,
.wss-price bdi,
.wss-price .woocommerce-Price-currencySymbol {
    font-size: 11px !important;
    font-weight: 600 !important;
}

/* Total price section ke liye bhi */
.wss-total-price .woocommerce-Price-amount,
.wss-total-price .amount,
.wss-total-price bdi,
.wss-total-price .woocommerce-Price-currencySymbol {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.wss-selected-plan-item .woocommerce-Price-amount,
.wss-selected-plan-item .amount,
.wss-selected-plan-item bdi,
.wss-selected-plan-item .woocommerce-Price-currencySymbol {
    font-size: 11px !important;
    font-weight: 500 !important;
}

/* Force small size for WooCommerce price amounts */
.wss-price .woocommerce-Price-amount,
.wss-price .amount,
.wss-price bdi,
.wss-price .woocommerce-Price-currencySymbol {
    font-size: 11px !important;
    font-weight: 600 !important;
}

/* Total price section ke liye bhi */
.wss-total-price .woocommerce-Price-amount,
.wss-total-price .amount,
.wss-total-price bdi,
.wss-total-price .woocommerce-Price-currencySymbol {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.wss-selected-plan-item .woocommerce-Price-amount,
.wss-selected-plan-item .amount,
.wss-selected-plan-item bdi,
.wss-selected-plan-item .woocommerce-Price-currencySymbol {
    font-size: 11px !important;
    font-weight: 500 !important;
}

.wss-support-desc {
    margin: 15px 0 0 0;
    color: #666;
    font-size: 14px;
    padding-left: 37px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wss-support-desc .dashicons {
    color: #007cba;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Support Dashboard - ENHANCED */
.wss-support-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.wss-dashboard-header {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 124, 186, 0.3);
    position: relative;
    overflow: hidden;
}

.wss-dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.wss-header-content h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wss-header-content h1 .dashicons {
    font-size: 1.2em;
}

.wss-header-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.2em;
}

.wss-header-stats {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.wss-stat {
    text-align: center;
}

.wss-stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    line-height: 1;
}

.wss-stat-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
}

/* Quick Actions */
.wss-quick-actions {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.wss-quick-actions h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
}

.wss-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.wss-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    justify-content: center;
}

.wss-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.wss-btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.wss-btn-block {
    width: 100%;
}

.wss-btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.wss-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.wss-btn-secondary {
    background: #6c757d;
    color: white;
}

.wss-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.wss-btn-success {
    background: #28a745;
    color: white;
}

.wss-btn-outline {
    background: transparent;
    border: 2px solid #007cba;
    color: #007cba;
}

.wss-btn-outline:hover {
    background: #007cba;
    color: white;
    transform: translateY(-2px);
}

/* Premium Floating Chat Button */
.wss-floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 35px rgba(0, 124, 186, 0.4);
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid white;
    animation: float 3s ease-in-out infinite;
}

.wss-floating-chat-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 45px rgba(0, 124, 186, 0.6);
}

.wss-chat-btn-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wss-chat-btn-icon::before {
    content: "💬";
    font-size: 28px;
    filter: grayscale(0) brightness(10);
}

.wss-chat-btn-pulse {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 22px;
    height: 22px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
}

/* Premium Chat Popup - ORIGINAL DESKTOP STYLE */
.wss-chat-popup {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 380px;
    height: 500px;
    max-height: 70vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    z-index: 10001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wss-chat-popup.wss-popup-open {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.wss-chat-popup-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.wss-chat-popup-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wss-chat-popup-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wss-chat-popup-title-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.wss-chat-popup-title-content span {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wss-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d900;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(0, 217, 0, 0.5);
}

.wss-chat-popup-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.wss-chat-popup-close::before {
    content: "×";
    font-size: 20px;
    font-weight: bold;
}

.wss-chat-popup-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

/* Chat Messages Area - HIDE SCROLLBAR BUT KEEP FUNCTIONALITY */
.wss-chat-popup-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23000000' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.wss-chat-popup-messages::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Chat Input Area */
.wss-chat-popup-input-container {
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.wss-chat-popup-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.wss-chat-popup-attach {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
    font-size: 18px;
}

.wss-chat-popup-attach::before {
    content: "📎";
}

.wss-chat-popup-attach:hover {
    background: #f8f9fa;
    transform: scale(1.05);
    color: #007cba;
    border-color: #007cba;
}

.wss-chat-popup-input {
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: white;
    border-radius: 25px;
    padding: 4px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.wss-chat-popup-input:focus-within {
    border-color: #007cba;
    box-shadow: 0 2px 12px rgba(0, 124, 186, 0.2);
}

.wss-chat-popup-input textarea {
    flex: 1;
    border: none;
    border-radius: 16px;
    padding: 6px 10px;
    resize: none;
    font-family: inherit;
    font-size: 11px;
    min-height: 16px;
    max-height: 60px;
    background: transparent;
    line-height: 1.2;
    margin: 0;
    outline: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 16px;
}

.wss-chat-popup-input textarea::-webkit-scrollbar {
    display: none;
}

.wss-chat-popup-input textarea::placeholder {
    color: #999;
}

.wss-chat-popup-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
    flex-shrink: 0;
    font-size: 18px;
    position: relative;
}

.wss-chat-popup-send::before {
    content: "➤";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wss-chat-popup-send:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.wss-chat-popup-send:disabled {
    background: #ccc;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Premium Message Styles - NO STATUS INDICATORS */
.wss-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 16px;
    max-width: 85%;
    animation: messageSlide 0.3s ease-out;
}

.wss-message-user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.wss-message-admin {
    margin-right: auto;
}

.wss-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #007cba;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.wss-message-user .wss-message-avatar {
    background: #005a87;
    order: 1;
}

.wss-message-content {
    background: white;
    padding: 10px 14px 6px 14px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    max-width: fit-content;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: auto;
    border: 1px solid #e0e0e0;
}

.wss-message-user .wss-message-content {
    background: #007cba;
    color: white;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
    border: none;
}

.wss-message-admin .wss-message-content {
    border-bottom-left-radius: 5px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wss-message-text {
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
    color: inherit;
    white-space: pre-wrap;
    font-size: 14px;
    max-width: 300px;
}

.wss-message-time {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    text-align: right;
}

.wss-message-admin .wss-message-time {
    text-align: left;
    color: #999;
}

/* File Preview */
.wss-file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease;
    border: 1px solid #e0e0e0;
}

.wss-file-preview-info {
    flex: 1;
    min-width: 0;
}

.wss-file-preview-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wss-file-preview-size {
    font-size: 11px;
    color: #666;
}

.wss-file-preview-remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.wss-file-preview-remove::before {
    content: "×";
}

.wss-file-preview-remove:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

/* Notification Badge */
.wss-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: notificationPulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255,68,68,0.3);
    border: 2px solid white;
}

/* Welcome Message */
.wss-welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    margin: 20px;
    border: 1px solid #e0e0e0;
}

.wss-welcome-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.wss-welcome-icon::before {
    content: "💬";
}

.wss-welcome-message h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.wss-welcome-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.8;
}

/* Loading Animation */
.wss-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.wss-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: wss-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes wss-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    70% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(0.8); opacity: 1; }
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes notificationPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Desktop Notification */
.wss-desktop-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10002;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid #007cba;
    max-width: 300px;
}

.wss-desktop-notification.show {
    transform: translateX(0);
}

.wss-notification-icon {
    font-size: 24px;
}

.wss-notification-content h5 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 14px;
}

.wss-notification-content p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

/* Support Dashboard Styles - ENHANCED */
.wss-active-plan-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.wss-active-plan-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
}

.wss-plan-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    background: white;
}

.wss-plan-card.wss-plan-active {
    border-color: #007cba;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
}

.wss-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wss-plan-title h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.3em;
}

.wss-support-id {
    color: #666;
    font-size: 0.9em;
}

.wss-plan-status .wss-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.wss-status-active {
    background: #d4edda;
    color: #155724;
}

.wss-plan-progress {
    margin-bottom: 20px;
}

.wss-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.wss-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.wss-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #666;
}

.wss-plan-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.wss-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.wss-feature .dashicons {
    color: #007cba;
}

.wss-plan-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Recent Support Tickets - ENHANCED - FIXED DUPLICATE ISSUE */
.wss-recent-tickets {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.wss-recent-tickets h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
}

/* Desktop Table View - ENHANCED */
.wss-tickets-table {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.wss-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: #f8f9fa;
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.wss-table-body {
    background: white;
}

.wss-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
    transition: background-color 0.2s ease;
}

.wss-table-row:hover {
    background-color: #f8f9fa;
}

.wss-table-row:last-child {
    border-bottom: none;
}

.wss-ticket-subject {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wss-ticket-subject strong {
    font-size: 14px;
    color: #333;
}

.wss-ticket-id {
    font-size: 0.8em;
    color: #666;
}

.wss-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.wss-status-open {
    background: #d1ecf1;
    color: #0c5460;
}

.wss-status-pending {
    background: #fff3cd;
    color: #856404;
}

.wss-status-resolved {
    background: #d4edda;
    color: #155724;
}

.wss-ticket-date {
    color: #666;
    font-size: 0.9em;
}

/* Mobile Card View - ENHANCED */
.wss-tickets-cards {
    display: none;
}

.wss-ticket-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.wss-ticket-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.wss-ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.wss-ticket-card-title {
    flex: 1;
}

.wss-ticket-card-title strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.wss-ticket-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.wss-ticket-card-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.wss-ticket-card-actions {
    display: flex;
    justify-content: flex-end;
}

.wss-no-tickets {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.wss-no-tickets p {
    margin: 0;
    font-size: 14px;
}

/* Ticket Details Modal Styles */
.wss-ticket-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wss-ticket-details-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.wss-ticket-details-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.wss-ticket-details-header h3 {
    margin: 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wss-ticket-details-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.wss-ticket-details-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.wss-ticket-details-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa; /* Light gray background for the body */
}

.wss-ticket-conversation {
    max-width: 100%;
}

.wss-ticket-header-info {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.wss-ticket-header-info h4 {
    margin: 0 0 10px 0;
    color: #333; /* Black text color */
    font-size: 1.2em;
}

.wss-ticket-meta {
    margin: 0;
    color: #666; /* Dark gray for meta text */
    font-size: 0.9em;
}

.wss-ticket-messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ENHANCED: Single background for all ticket messages */
.wss-ticket-message {
    padding: 15px;
    border-radius: 12px;
    max-width: 80%;
    animation: messageSlide 0.3s ease-out;
    background: white; /* Single white background for all messages */
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Remove individual background colors - use single white background */
.wss-ticket-message.user {
    margin-left: auto;
    border-bottom-right-radius: 5px;
    /* Removed blue background */
}

.wss-ticket-message.admin {
    margin-right: auto;
    border-bottom-left-radius: 5px;
    /* Removed separate white background */
}

.wss-message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8em;
    color: #666; /* Dark gray for meta information */
}

.wss-message-sender {
    font-weight: 600;
    color: #333; /* Black for sender name */
}

.wss-message-time {
    font-size: 0.75em;
    color: #999; /* Light gray for time */
}

.wss-message-content {
    line-height: 1.4;
    word-wrap: break-word;
    color: #333; /* Black text color for message content */
    font-size: 14px;
}

.wss-no-messages {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

/* Status badges in ticket details */
.wss-ticket-header-info .wss-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.wss-ticket-header-info .wss-status-open {
    background: #d1ecf1;
    color: #0c5460;
}

.wss-ticket-header-info .wss-status-pending {
    background: #fff3cd;
    color: #856404;
}

.wss-ticket-header-info .wss-status-resolved {
    background: #d4edda;
    color: #155724;
}

/* Mobile styles for ticket details */
@media (max-width: 768px) {
    .wss-ticket-details-content {
        width: 95%;
        height: 90vh;
    }
    
    .wss-ticket-message {
        max-width: 90%;
        padding: 12px;
    }
    
    .wss-ticket-header-info {
        padding: 15px;
    }
    
    .wss-message-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .wss-message-time {
        font-size: 0.7em;
    }
}

/* Ensure consistent text colors */
.wss-ticket-conversation * {
    color: #333 !important; /* Force black text throughout */
}

.wss-ticket-message * {
    color: #333 !important; /* Force black text in messages */
}

.wss-ticket-message.user {
    background: #007cba;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.wss-ticket-message.admin {
    background: white;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wss-message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8em;
    opacity: 0.8;
}

.wss-message-sender {
    font-weight: 600;
}

.wss-message-time {
    font-size: 0.75em;
}

.wss-message-content {
    line-height: 1.4;
    word-wrap: break-word;
}

.wss-no-messages {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: white;
    border-radius: 12px;
}

/* Form Styles */
.wss-form-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.wss-form-header {
    margin-bottom: 25px;
}

.wss-form-header h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wss-form-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.wss-form-group {
    margin-bottom: 20px;
}

.wss-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.wss-form-group input,
.wss-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wss-form-group input:focus,
.wss-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.wss-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* No Support Styles */
.wss-no-support {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 30px;
}

.wss-no-support-content {
    max-width: 500px;
    margin: 0 auto;
}

.wss-no-support-content .dashicons {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 20px;
}

.wss-no-support-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5em;
}

.wss-no-support-content p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.wss-no-support-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.wss-no-support-notice p {
    margin: 0 0 15px 0;
    color: #856404;
    font-weight: 600;
}

.wss-no-support-notice ol {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.wss-no-support-notice li {
    margin-bottom: 8px;
}

/* Login Required Styles */
.wss-login-required {
    background: white;
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.wss-login-content .dashicons {
    font-size: 64px;
    color: #6c757d;
    margin-bottom: 25px;
}

.wss-login-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.8em;
}

.wss-login-content p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
}

.wss-login-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Styles - ENHANCED */
@media (max-width: 768px) {
    .wss-support-dashboard {
        padding: 15px;
    }
    
    .wss-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .wss-header-content h1 {
        font-size: 2em;
        flex-direction: column;
        gap: 10px;
    }
    
    .wss-header-stats {
        gap: 20px;
    }
    
    .wss-stat-number {
        font-size: 2em;
    }
    
    .wss-quick-actions,
    .wss-active-plan-section,
    .wss-recent-tickets,
    .wss-form-container {
        padding: 20px;
    }
    
    .wss-action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .wss-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wss-plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wss-plan-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .wss-plan-actions {
        flex-direction: column;
    }
    
    .wss-form-actions {
        flex-direction: column;
    }
    
    /* Enhanced Mobile Tickets - HIDE DESKTOP, SHOW MOBILE */
    .wss-tickets-table.wss-desktop-view {
        display: none !important;
    }
    
    .wss-tickets-cards.wss-mobile-view {
        display: block !important;
    }
    
    .wss-ticket-card {
        padding: 16px;
    }
    
    .wss-ticket-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .wss-ticket-card-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .wss-ticket-card-actions .wss-btn {
        width: 100%;
    }
    
    /* Chat Popup Mobile Styles */
    .wss-chat-popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 10001;
        max-width: none;
        max-height: none;
    }
    
    .wss-chat-popup-header {
        border-radius: 0;
        padding: 15px;
    }
    
    .wss-message {
        max-width: 90%;
    }
    
    .wss-message-text {
        max-width: 250px;
    }
    
    .wss-floating-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .wss-chat-btn-icon::before {
        font-size: 24px;
    }
    
    .wss-ticket-details-content {
        width: 95%;
        height: 90vh;
    }
    
    .wss-ticket-message {
        max-width: 90%;
    }
    
    .wss-login-actions {
        flex-direction: column;
    }
    
    .wss-login-actions .wss-btn {
        width: 100%;
    }
}

/* Desktop Styles - Show desktop table, hide mobile cards */
@media (min-width: 769px) {
    .wss-tickets-table.wss-desktop-view {
        display: block !important;
    }
    
    .wss-tickets-cards.wss-mobile-view {
        display: none !important;
    }
}

/* Hide floating button when chat is open */
body.wss-chat-open .wss-floating-chat-btn {
    display: none !important;
}

/* Fix z-index issues */
.wss-chat-popup {
    z-index: 10001 !important;
}

.wss-floating-chat-btn {
    z-index: 10000 !important;
}

.wss-desktop-notification {
    z-index: 10002 !important;
}

.wss-ticket-details-modal {
    z-index: 10003 !important;
}

/* Additional Utility Classes */
.wss-text-center {
    text-align: center;
}

.wss-text-left {
    text-align: left;
}

.wss-text-right {
    text-align: right;
}

.wss-mb-0 {
    margin-bottom: 0;
}

.wss-mt-0 {
    margin-top: 0;
}

.wss-p-0 {
    padding: 0;
}

/* Smooth transitions for all interactive elements */
.wss-btn,
.wss-support-option,
.wss-ticket-card,
.wss-feature,
.wss-chat-popup-close,
.wss-chat-popup-attach,
.wss-chat-popup-send,
.wss-file-preview-remove,
.wss-ticket-details-close {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles for accessibility */
.wss-btn:focus,
.wss-support-option:focus,
.wss-chat-popup-close:focus,
.wss-chat-popup-attach:focus,
.wss-chat-popup-send:focus,
.wss-form-group input:focus,
.wss-form-group textarea:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .wss-floating-chat-btn,
    .wss-chat-popup,
    .wss-desktop-notification {
        display: none !important;
    }
    
    .wss-support-dashboard {
        box-shadow: none;
        padding: 0;
    }
    
    .wss-dashboard-header {
        background: #007cba !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}