/* Product Page - Already Purchased Buttons */
a.mfs-owned {
    background-color: #6c757d !important;
    cursor: default !important;
    opacity: 0.6;
    pointer-events: none;
}

a.mfs-owned:hover {
    background-color: #6c757d !important;
    opacity: 0.6;
}

/* Session Management in Customer Portal */
.mfs-sessions-container {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

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

.mfs-sessions-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.mfs-logout-all {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.mfs-logout-all:hover {
    background-color: #c82333;
}

.mfs-sessions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mfs-session-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mfs-session-item.current {
    border-color: #007bff;
    background: #f0f8ff;
}

.mfs-session-info {
    flex: 1;
}

.mfs-session-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.mfs-session-device {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.mfs-session-details {
    font-size: 13px;
    color: #666;
}

.mfs-session-ip {
    margin-right: 15px;
}

.mfs-session-time {
    color: #999;
}

.mfs-logout-session {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.mfs-logout-session:hover {
    background-color: #5a6268;
}

.mfs-logout-session:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sign In Button in Header */
.mfs-header-signin {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.mfs-header-signin:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.mfs-user-menu {
    position: relative;
    display: inline-block;
}

.mfs-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.mfs-user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1000;
}

.mfs-user-dropdown.show {
    display: block;
}

.mfs-user-dropdown-item {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.mfs-user-dropdown-item:last-child {
    border-bottom: none;
}

.mfs-user-dropdown-email {
    color: #666;
    font-size: 12px;
}

.mfs-user-dropdown-link {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 10px 16px;
    transition: background-color 0.2s;
}

.mfs-user-dropdown-link:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.mfs-user-dropdown-logout {
    color: #dc3545;
}

/* Loading state */
.mfs-loading {
    opacity: 0.6;
    pointer-events: none;
}

.mfs-loading::after {
    content: "...";
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}

/* Responsive */
@media (max-width: 768px) {
    .mfs-sessions-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mfs-logout-all {
        margin-top: 10px;
    }

    .mfs-session-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .mfs-logout-session {
        margin-top: 10px;
    }
}
